Panagiotis Triantafyllou

new coupons request for sm inside getUnifiedCouponsDeals and new static variable for this list

This diff is collapsed. Click to expand it.
...@@ -105,6 +105,7 @@ public class WarplyManagerHelper { ...@@ -105,6 +105,7 @@ public class WarplyManagerHelper {
105 private static HashMap<String, CampaignList> mUniqueCampaignList = new HashMap<String, CampaignList>(); 105 private static HashMap<String, CampaignList> mUniqueCampaignList = new HashMap<String, CampaignList>();
106 private static CouponList mCouponList = new CouponList(); 106 private static CouponList mCouponList = new CouponList();
107 private static CouponList mCouponRedeemedList = new CouponList(); 107 private static CouponList mCouponRedeemedList = new CouponList();
108 + private static CouponList mSmCouponsList = new CouponList();
108 private static CouponList mCouponListExpired = new CouponList(); 109 private static CouponList mCouponListExpired = new CouponList();
109 private static CouponsetsList mCouponsetsList = new CouponsetsList(); 110 private static CouponsetsList mCouponsetsList = new CouponsetsList();
110 private static CouponsetsList mCouponsetsDealsList = new CouponsetsList(); 111 private static CouponsetsList mCouponsetsDealsList = new CouponsetsList();
...@@ -1368,10 +1369,19 @@ public class WarplyManagerHelper { ...@@ -1368,10 +1369,19 @@ public class WarplyManagerHelper {
1368 mCouponRedeemedList.addAll(couponRedeemedList); 1369 mCouponRedeemedList.addAll(couponRedeemedList);
1369 } 1370 }
1370 1371
1372 + public static void setSmCouponsList(CouponList couponRedeemedList) {
1373 + mSmCouponsList.clear();
1374 + mSmCouponsList.addAll(couponRedeemedList);
1375 + }
1376 +
1371 public static CouponList getCouponRedeemedList() { 1377 public static CouponList getCouponRedeemedList() {
1372 return mCouponRedeemedList; 1378 return mCouponRedeemedList;
1373 } 1379 }
1374 1380
1381 + public static CouponList getSmCouponsList() {
1382 + return mSmCouponsList;
1383 + }
1384 +
1375 public static LoyaltyBadgeModel getLoyaltyBadge() { 1385 public static LoyaltyBadgeModel getLoyaltyBadge() {
1376 return mLoyaltyBadge; 1386 return mLoyaltyBadge;
1377 } 1387 }
......