Panagiotis Triantafyllou

minor fixes

...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library' ...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
2 2
3 ext { 3 ext {
4 PUBLISH_GROUP_ID = 'ly.warp' 4 PUBLISH_GROUP_ID = 'ly.warp'
5 - PUBLISH_VERSION = '4.5.4-cosbeta38' 5 + PUBLISH_VERSION = '4.5.4-cosbeta39'
6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk' 6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
7 } 7 }
8 8
......
...@@ -147,6 +147,11 @@ ...@@ -147,6 +147,11 @@
147 android:permission="android.permission.BIND_JOB_SERVICE" /> 147 android:permission="android.permission.BIND_JOB_SERVICE" />
148 148
149 <service 149 <service
150 + android:name="ly.warp.sdk.services.EventCampaignService"
151 + android:exported="false"
152 + android:permission="android.permission.BIND_JOB_SERVICE" />
153 +
154 + <service
150 android:name="ly.warp.sdk.services.WarplyBeaconsRangingService" 155 android:name="ly.warp.sdk.services.WarplyBeaconsRangingService"
151 android:exported="false" /> 156 android:exported="false" />
152 157
......
...@@ -11,6 +11,8 @@ import android.widget.ProgressBar; ...@@ -11,6 +11,8 @@ import android.widget.ProgressBar;
11 import android.widget.TextView; 11 import android.widget.TextView;
12 12
13 import androidx.appcompat.app.AlertDialog; 13 import androidx.appcompat.app.AlertDialog;
14 +import androidx.work.OneTimeWorkRequest;
15 +import androidx.work.WorkManager;
14 16
15 import com.bumptech.glide.Glide; 17 import com.bumptech.glide.Glide;
16 import com.bumptech.glide.load.engine.DiskCacheStrategy; 18 import com.bumptech.glide.load.engine.DiskCacheStrategy;
...@@ -18,12 +20,18 @@ import com.bumptech.glide.load.engine.DiskCacheStrategy; ...@@ -18,12 +20,18 @@ import com.bumptech.glide.load.engine.DiskCacheStrategy;
18 import org.json.JSONObject; 20 import org.json.JSONObject;
19 21
20 import ly.warp.sdk.R; 22 import ly.warp.sdk.R;
23 +import ly.warp.sdk.Warply;
21 import ly.warp.sdk.io.callbacks.CallbackReceiver; 24 import ly.warp.sdk.io.callbacks.CallbackReceiver;
25 +import ly.warp.sdk.io.models.Campaign;
26 +import ly.warp.sdk.io.models.CampaignList;
22 import ly.warp.sdk.io.models.Coupon; 27 import ly.warp.sdk.io.models.Coupon;
23 import ly.warp.sdk.io.models.CouponList; 28 import ly.warp.sdk.io.models.CouponList;
24 import ly.warp.sdk.io.models.Couponset; 29 import ly.warp.sdk.io.models.Couponset;
30 +import ly.warp.sdk.io.request.WarplyGetCampaignsRequest;
25 import ly.warp.sdk.io.request.WarplyRedeemCouponRequest; 31 import ly.warp.sdk.io.request.WarplyRedeemCouponRequest;
26 import ly.warp.sdk.io.request.WarplyUserCouponsRequest; 32 import ly.warp.sdk.io.request.WarplyUserCouponsRequest;
33 +import ly.warp.sdk.services.EventCampaignService;
34 +import ly.warp.sdk.services.EventService;
27 import ly.warp.sdk.utils.managers.WarplyManager; 35 import ly.warp.sdk.utils.managers.WarplyManager;
28 36
29 37
...@@ -45,6 +53,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe ...@@ -45,6 +53,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
45 private Coupon mCoupon; 53 private Coupon mCoupon;
46 private boolean mIsTermsPressed = false; 54 private boolean mIsTermsPressed = false;
47 private AlertDialog mAlertDialogCouponset; 55 private AlertDialog mAlertDialogCouponset;
56 + private Campaign mLoyalty;
48 57
49 // =========================================================== 58 // ===========================================================
50 // Methods for/from SuperClass/Interfaces 59 // Methods for/from SuperClass/Interfaces
...@@ -56,6 +65,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe ...@@ -56,6 +65,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
56 setContentView(R.layout.activity_couponset_info); 65 setContentView(R.layout.activity_couponset_info);
57 66
58 mCouponset = (Couponset) getIntent().getSerializableExtra("couponset"); 67 mCouponset = (Couponset) getIntent().getSerializableExtra("couponset");
68 + mLoyalty = (Campaign) getIntent().getSerializableExtra("loyalty");
59 69
60 mIvBack = findViewById(R.id.iv_couponset_info_back); 70 mIvBack = findViewById(R.id.iv_couponset_info_back);
61 mTvTerms = findViewById(R.id.tv_terms); 71 mTvTerms = findViewById(R.id.tv_terms);
...@@ -84,7 +94,9 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe ...@@ -84,7 +94,9 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
84 } 94 }
85 if (view.getId() == R.id.ll_get_gift) { 95 if (view.getId() == R.id.ll_get_gift) {
86 mPbLoading.setVisibility(View.VISIBLE); 96 mPbLoading.setVisibility(View.VISIBLE);
87 - WarplyManager.redeemCoupon(new WarplyRedeemCouponRequest().setCouponsetUuid(mCouponset.getUuid()), mRedeemCouponCallback); 97 + WarplyManager.redeemCoupon(new WarplyRedeemCouponRequest()
98 + .setCouponsetUuid(mCouponset.getUuid())
99 + .setCommunicationUuid(mLoyalty.getSessionUUID()), mRedeemCouponCallback);
88 return; 100 return;
89 } 101 }
90 if (view.getId() == R.id.ll_terms_inner) { 102 if (view.getId() == R.id.ll_terms_inner) {
...@@ -143,6 +155,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe ...@@ -143,6 +155,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
143 new Thread(() -> { 155 new Thread(() -> {
144 if (!Thread.currentThread().isInterrupted()) { 156 if (!Thread.currentThread().isInterrupted()) {
145 WarplyManager.getUserCouponsWithCouponsets(new WarplyUserCouponsRequest(), mUserCouponsReceiver); 157 WarplyManager.getUserCouponsWithCouponsets(new WarplyUserCouponsRequest(), mUserCouponsReceiver);
158 + WarplyManager.getCampaigns(new WarplyGetCampaignsRequest().setLanguage("en"), mCampaignsCallback);
146 } 159 }
147 }).start(); 160 }).start();
148 showDialog(true, 1); 161 showDialog(true, 1);
...@@ -206,8 +219,22 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe ...@@ -206,8 +219,22 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
206 private final CallbackReceiver<CouponList> mUserCouponsReceiver = new CallbackReceiver<CouponList>() { 219 private final CallbackReceiver<CouponList> mUserCouponsReceiver = new CallbackReceiver<CouponList>() {
207 @Override 220 @Override
208 public void onSuccess(CouponList result) { 221 public void onSuccess(CouponList result) {
222 +// Thread.currentThread().interrupt();
223 + }
224 +
225 + @Override
226 + public void onFailure(int errorCode) {
209 Thread.currentThread().interrupt(); 227 Thread.currentThread().interrupt();
210 } 228 }
229 + };
230 +
231 + private CallbackReceiver<CampaignList> mCampaignsCallback = new CallbackReceiver<CampaignList>() {
232 + @Override
233 + public void onSuccess(CampaignList result) {
234 + OneTimeWorkRequest mywork = new OneTimeWorkRequest.Builder(EventCampaignService.class).build();
235 + WorkManager.getInstance(CouponsetInfoActivity.this).enqueue(mywork);
236 +// Thread.currentThread().interrupt();
237 + }
211 238
212 @Override 239 @Override
213 public void onFailure(int errorCode) { 240 public void onFailure(int errorCode) {
......
...@@ -127,7 +127,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene ...@@ -127,7 +127,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
127 127
128 @Subscribe() 128 @Subscribe()
129 public void onMessageEvent(WarplyEventBusManager event) { 129 public void onMessageEvent(WarplyEventBusManager event) {
130 - if (event.getCcmsAdded() != null) { 130 + if (event.getCcmsAdded() != null || event.getCampaignsAdded() != null) {
131 filterItems(); 131 filterItems();
132 132
133 if (WarplyManagerHelper.getSeasonalList() != null && WarplyManagerHelper.getSeasonalList().size() > 0) { 133 if (WarplyManagerHelper.getSeasonalList() != null && WarplyManagerHelper.getSeasonalList().size() > 0) {
...@@ -161,6 +161,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene ...@@ -161,6 +161,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
161 if (cpns.getUuid().equals(cpnUuid)) { 161 if (cpns.getUuid().equals(cpnUuid)) {
162 Intent intent = new Intent(GiftsForYouActivity.this, CouponsetInfoActivity.class); 162 Intent intent = new Intent(GiftsForYouActivity.this, CouponsetInfoActivity.class);
163 intent.putExtra("couponset", (Serializable) cpns); 163 intent.putExtra("couponset", (Serializable) cpns);
164 + intent.putExtra("loyalty", (Serializable) dataItem.getCampaign());
164 startActivity(intent); 165 startActivity(intent);
165 break; 166 break;
166 } 167 }
...@@ -254,6 +255,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene ...@@ -254,6 +255,7 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
254 if (cpns.getUuid().equals(cpnUuid)) { 255 if (cpns.getUuid().equals(cpnUuid)) {
255 Intent intent = new Intent(GiftsForYouActivity.this, CouponsetInfoActivity.class); 256 Intent intent = new Intent(GiftsForYouActivity.this, CouponsetInfoActivity.class);
256 intent.putExtra("couponset", (Serializable) cpns); 257 intent.putExtra("couponset", (Serializable) cpns);
258 + intent.putExtra("loyalty", (Serializable) dataItem.getCampaign());
257 startActivity(intent); 259 startActivity(intent);
258 break; 260 break;
259 } 261 }
......
1 +/*
2 + * Copyright 2010-2013 Warply Ltd. All rights reserved.
3 + *
4 + * Redistribution and use in source and binary forms, without modification, are
5 + * permitted provided that the following conditions are met:
6 + *
7 + * 1. Redistributions of source code must retain the above copyright notice,
8 + * this list of conditions and the following disclaimer.
9 + *
10 + * 2. Redistributions in binary form must reproduce the above copyright notice,
11 + * this list of conditions and the following disclaimer in the documentation
12 + * and/or other materials provided with the distribution.
13 + *
14 + * THIS SOFTWARE IS PROVIDED BY THE WARPLY LTD ``AS IS'' AND ANY EXPRESS OR
15 + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16 + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
17 + * EVENT SHALL WARPLY LTD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
18 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
19 + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
20 + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
21 + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22 + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
23 + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 + */
25 +
26 +package ly.warp.sdk.io.models;
27 +
28 +
29 +/**
30 + * Created by Panagiotis Triantafyllou on 21-July-22.
31 + */
32 +
33 +public class LoyaltyEventModel {
34 + private boolean success;
35 +
36 + public LoyaltyEventModel() {
37 + this.success = true;
38 + }
39 +
40 + public boolean isSuccess() {
41 + return success;
42 + }
43 +
44 + public void setSuccess(boolean success) {
45 + this.success = success;
46 + }
47 +}
...@@ -25,6 +25,7 @@ public class WarplyRedeemCouponRequest { ...@@ -25,6 +25,7 @@ public class WarplyRedeemCouponRequest {
25 private final String KEY_ACTION = "action"; 25 private final String KEY_ACTION = "action";
26 private final String KEY_ACTION_VALUE = "retrieve_coupon"; 26 private final String KEY_ACTION_VALUE = "retrieve_coupon";
27 private final String KEY_COUPONSET = "coupon_set"; 27 private final String KEY_COUPONSET = "coupon_set";
28 + private final String KEY_COMMUNICATION_UUID = "communication_uuid";
28 29
29 // =========================================================== 30 // ===========================================================
30 // Fields 31 // Fields
...@@ -33,6 +34,7 @@ public class WarplyRedeemCouponRequest { ...@@ -33,6 +34,7 @@ public class WarplyRedeemCouponRequest {
33 private HashMap<String, String> mFilters; 34 private HashMap<String, String> mFilters;
34 private long mCacheUpdateInterval = 0; 35 private long mCacheUpdateInterval = 0;
35 private String mCouponsetUuid = ""; 36 private String mCouponsetUuid = "";
37 + private String mCommunicationUuid = "";
36 38
37 // =========================================================== 39 // ===========================================================
38 // Constructor 40 // Constructor
...@@ -83,6 +85,11 @@ public class WarplyRedeemCouponRequest { ...@@ -83,6 +85,11 @@ public class WarplyRedeemCouponRequest {
83 return this; 85 return this;
84 } 86 }
85 87
88 + public WarplyRedeemCouponRequest setCommunicationUuid(String uuid) {
89 + mCommunicationUuid = uuid;
90 + return this;
91 + }
92 +
86 /** 93 /**
87 * Call this to get how often the cached data will be updated. 94 * Call this to get how often the cached data will be updated.
88 * 95 *
...@@ -145,6 +152,7 @@ public class WarplyRedeemCouponRequest { ...@@ -145,6 +152,7 @@ public class WarplyRedeemCouponRequest {
145 try { 152 try {
146 bodyJsonObject.putOpt(KEY_ACTION, KEY_ACTION_VALUE); 153 bodyJsonObject.putOpt(KEY_ACTION, KEY_ACTION_VALUE);
147 bodyJsonObject.putOpt(KEY_COUPONSET, mCouponsetUuid); 154 bodyJsonObject.putOpt(KEY_COUPONSET, mCouponsetUuid);
155 + bodyJsonObject.putOpt(KEY_COMMUNICATION_UUID, mCommunicationUuid);
148 } catch (JSONException e) { 156 } catch (JSONException e) {
149 if (WarpConstants.DEBUG) 157 if (WarpConstants.DEBUG)
150 e.printStackTrace(); 158 e.printStackTrace();
......
1 +package ly.warp.sdk.services;
2 +
3 +import android.content.Context;
4 +
5 +import androidx.annotation.NonNull;
6 +import androidx.work.Worker;
7 +import androidx.work.WorkerParameters;
8 +
9 +import org.greenrobot.eventbus.EventBus;
10 +
11 +import ly.warp.sdk.io.models.LoyaltyEventModel;
12 +import ly.warp.sdk.utils.managers.WarplyEventBusManager;
13 +
14 +/**
15 + * Created by Panagiotis Triantafyllou on 21/Ιουλ/2022.
16 + */
17 +public class EventCampaignService extends Worker {
18 +
19 + public EventCampaignService(@NonNull Context context, @NonNull WorkerParameters workerParams) {
20 + super(context, workerParams);
21 + }
22 +
23 + @NonNull
24 + @Override
25 + public Result doWork() {
26 + LoyaltyEventModel campaignsAdded = new LoyaltyEventModel();
27 + EventBus.getDefault().post(new WarplyEventBusManager(campaignsAdded));
28 +
29 + return Result.success();
30 + }
31 +}
...@@ -34,7 +34,6 @@ import androidx.appcompat.app.AlertDialog; ...@@ -34,7 +34,6 @@ import androidx.appcompat.app.AlertDialog;
34 import androidx.work.OneTimeWorkRequest; 34 import androidx.work.OneTimeWorkRequest;
35 import androidx.work.WorkManager; 35 import androidx.work.WorkManager;
36 36
37 -import org.greenrobot.eventbus.EventBus;
38 import org.json.JSONObject; 37 import org.json.JSONObject;
39 38
40 import java.io.Serializable; 39 import java.io.Serializable;
...@@ -44,8 +43,6 @@ import java.util.HashMap; ...@@ -44,8 +43,6 @@ import java.util.HashMap;
44 import ly.warp.sdk.R; 43 import ly.warp.sdk.R;
45 import ly.warp.sdk.Warply; 44 import ly.warp.sdk.Warply;
46 import ly.warp.sdk.activities.CouponsetInfoActivity; 45 import ly.warp.sdk.activities.CouponsetInfoActivity;
47 -import ly.warp.sdk.activities.GiftsForYouActivity;
48 -import ly.warp.sdk.activities.MoreForYouActivity;
49 import ly.warp.sdk.activities.TelcoActivity; 46 import ly.warp.sdk.activities.TelcoActivity;
50 import ly.warp.sdk.activities.WarpViewActivity; 47 import ly.warp.sdk.activities.WarpViewActivity;
51 import ly.warp.sdk.db.WarplyDBHelper; 48 import ly.warp.sdk.db.WarplyDBHelper;
...@@ -54,7 +51,6 @@ import ly.warp.sdk.io.models.ActiveDFYCouponModel; ...@@ -54,7 +51,6 @@ import ly.warp.sdk.io.models.ActiveDFYCouponModel;
54 import ly.warp.sdk.io.models.Campaign; 51 import ly.warp.sdk.io.models.Campaign;
55 import ly.warp.sdk.io.models.CampaignList; 52 import ly.warp.sdk.io.models.CampaignList;
56 import ly.warp.sdk.io.models.Consumer; 53 import ly.warp.sdk.io.models.Consumer;
57 -import ly.warp.sdk.io.models.ContexualEventModel;
58 import ly.warp.sdk.io.models.Coupon; 54 import ly.warp.sdk.io.models.Coupon;
59 import ly.warp.sdk.io.models.CouponList; 55 import ly.warp.sdk.io.models.CouponList;
60 import ly.warp.sdk.io.models.Couponset; 56 import ly.warp.sdk.io.models.Couponset;
...@@ -67,7 +63,6 @@ import ly.warp.sdk.io.request.CosmoteRetrieveSharingRequest; ...@@ -67,7 +63,6 @@ import ly.warp.sdk.io.request.CosmoteRetrieveSharingRequest;
67 import ly.warp.sdk.io.request.CosmoteSharingRequest; 63 import ly.warp.sdk.io.request.CosmoteSharingRequest;
68 import ly.warp.sdk.io.request.WarplyIntegrationRequest; 64 import ly.warp.sdk.io.request.WarplyIntegrationRequest;
69 import ly.warp.sdk.services.EventService; 65 import ly.warp.sdk.services.EventService;
70 -import ly.warp.sdk.utils.managers.WarplyEventBusManager;
71 import ly.warp.sdk.utils.managers.WarplyManager; 66 import ly.warp.sdk.utils.managers.WarplyManager;
72 67
73 /** 68 /**
...@@ -502,6 +497,7 @@ public class WarplyManagerHelper { ...@@ -502,6 +497,7 @@ public class WarplyManagerHelper {
502 if (cpns.getUuid().equals(cpnUuid)) { 497 if (cpns.getUuid().equals(cpnUuid)) {
503 Intent intent = new Intent(context, CouponsetInfoActivity.class); 498 Intent intent = new Intent(context, CouponsetInfoActivity.class);
504 intent.putExtra("couponset", (Serializable) cpns); 499 intent.putExtra("couponset", (Serializable) cpns);
500 + intent.putExtra("loyalty", (Serializable) item);
505 context.startActivity(intent); 501 context.startActivity(intent);
506 break; 502 break;
507 } 503 }
...@@ -557,8 +553,8 @@ public class WarplyManagerHelper { ...@@ -557,8 +553,8 @@ public class WarplyManagerHelper {
557 * Open Questionnaire 553 * Open Questionnaire
558 */ 554 */
559 public static String openQuestionnaire() { 555 public static String openQuestionnaire() {
560 - if (mCampaignList != null && mCampaignList.size() > 0) { 556 + if (mCampaignListAll != null && mCampaignListAll.size() > 0) {
561 - for (Campaign camp : mCampaignList) { 557 + for (Campaign camp : mCampaignListAll) {
562 if (camp.getOfferCategory().equals("questionnaire")) { 558 if (camp.getOfferCategory().equals("questionnaire")) {
563 return constructCampaignUrl(camp); 559 return constructCampaignUrl(camp);
564 } 560 }
...@@ -572,8 +568,8 @@ public class WarplyManagerHelper { ...@@ -572,8 +568,8 @@ public class WarplyManagerHelper {
572 * Open Pacing 568 * Open Pacing
573 */ 569 */
574 public static String openPacing() { 570 public static String openPacing() {
575 - if (mCampaignList != null && mCampaignList.size() > 0) { 571 + if (mCampaignListAll != null && mCampaignListAll.size() > 0) {
576 - for (Campaign camp : mCampaignList) { 572 + for (Campaign camp : mCampaignListAll) {
577 if (camp.getOfferCategory().equals("pacing")) { 573 if (camp.getOfferCategory().equals("pacing")) {
578 String pacingUrl = constructCampaignUrl(camp); 574 String pacingUrl = constructCampaignUrl(camp);
579 WarpUtils.log("PACING_LOG: " + pacingUrl); 575 WarpUtils.log("PACING_LOG: " + pacingUrl);
...@@ -598,6 +594,7 @@ public class WarplyManagerHelper { ...@@ -598,6 +594,7 @@ public class WarplyManagerHelper {
598 if (cpns.getUuid().equals(cpnUuid)) { 594 if (cpns.getUuid().equals(cpnUuid)) {
599 Intent intent = new Intent(context, CouponsetInfoActivity.class); 595 Intent intent = new Intent(context, CouponsetInfoActivity.class);
600 intent.putExtra("couponset", (Serializable) cpns); 596 intent.putExtra("couponset", (Serializable) cpns);
597 + intent.putExtra("loyalty", (Serializable) item);
601 context.startActivity(intent); 598 context.startActivity(intent);
602 break; 599 break;
603 } 600 }
......
...@@ -6,6 +6,7 @@ import ly.warp.sdk.io.models.ActiveDFYCouponEventModel; ...@@ -6,6 +6,7 @@ import ly.warp.sdk.io.models.ActiveDFYCouponEventModel;
6 import ly.warp.sdk.io.models.ContexualEventModel; 6 import ly.warp.sdk.io.models.ContexualEventModel;
7 import ly.warp.sdk.io.models.CouponEventModel; 7 import ly.warp.sdk.io.models.CouponEventModel;
8 import ly.warp.sdk.io.models.LoyaltyContextualOfferModel; 8 import ly.warp.sdk.io.models.LoyaltyContextualOfferModel;
9 +import ly.warp.sdk.io.models.LoyaltyEventModel;
9 import ly.warp.sdk.io.models.LoyaltyGiftsForYouOfferClickEvent; 10 import ly.warp.sdk.io.models.LoyaltyGiftsForYouOfferClickEvent;
10 import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel; 11 import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel;
11 import ly.warp.sdk.io.models.QuestionnaireEventModel; 12 import ly.warp.sdk.io.models.QuestionnaireEventModel;
...@@ -33,6 +34,7 @@ public class WarplyEventBusManager { ...@@ -33,6 +34,7 @@ public class WarplyEventBusManager {
33 private CouponEventModel coupon; 34 private CouponEventModel coupon;
34 private ActiveDFYCouponEventModel activeCoupon; 35 private ActiveDFYCouponEventModel activeCoupon;
35 private ContexualEventModel ccmsAdded; 36 private ContexualEventModel ccmsAdded;
37 + private LoyaltyEventModel campaignsAdded;
36 38
37 public WarplyEventBusManager() { 39 public WarplyEventBusManager() {
38 40
...@@ -50,6 +52,10 @@ public class WarplyEventBusManager { ...@@ -50,6 +52,10 @@ public class WarplyEventBusManager {
50 this.ccmsAdded = ccmsAdded; 52 this.ccmsAdded = ccmsAdded;
51 } 53 }
52 54
55 + public WarplyEventBusManager(LoyaltyEventModel campaignsAdded) {
56 + this.campaignsAdded = campaignsAdded;
57 + }
58 +
53 public WarplyEventBusManager(CouponEventModel coupon) { 59 public WarplyEventBusManager(CouponEventModel coupon) {
54 this.coupon = coupon; 60 this.coupon = coupon;
55 } 61 }
...@@ -167,4 +173,8 @@ public class WarplyEventBusManager { ...@@ -167,4 +173,8 @@ public class WarplyEventBusManager {
167 public ContexualEventModel getCcmsAdded() { 173 public ContexualEventModel getCcmsAdded() {
168 return ccmsAdded; 174 return ccmsAdded;
169 } 175 }
176 +
177 + public LoyaltyEventModel getCampaignsAdded() {
178 + return campaignsAdded;
179 + }
170 } 180 }
......
...@@ -1387,510 +1387,510 @@ public class WarplyManager { ...@@ -1387,510 +1387,510 @@ public class WarplyManager {
1387 } 1387 }
1388 WarplyManagerHelper.setCampaignList(mNewCampaignList); 1388 WarplyManagerHelper.setCampaignList(mNewCampaignList);
1389 1389
1390 -// ArrayList<LoyaltyContextualOfferModel> list = new ArrayList<>(); 1390 + ArrayList<LoyaltyContextualOfferModel> list = new ArrayList<>();
1391 -// JSONArray jArray = null; 1391 + JSONArray jArray = null;
1392 -// try { 1392 + try {
1393 -// jArray = new JSONArray("[\n" + 1393 + jArray = new JSONArray("[\n" +
1394 -// " {\n" + 1394 + " {\n" +
1395 -// " \"UACIOfferTrackingCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" + 1395 + " \"UACIOfferTrackingCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" +
1396 -// " \"businessAdditionalId\": \"\",\n" + 1396 + " \"businessAdditionalId\": \"\",\n" +
1397 -// " \"dataCategory\": \"Data\",\n" + 1397 + " \"dataCategory\": \"Data\",\n" +
1398 -// " \"dataValue\": \"None\",\n" + 1398 + " \"dataValue\": \"None\",\n" +
1399 -// " \"discount\": \"None\",\n" + 1399 + " \"discount\": \"None\",\n" +
1400 -// " \"eligibleAssets\": [\n" + 1400 + " \"eligibleAssets\": [\n" +
1401 -// " \"306945218770\",\n" + 1401 + " \"306945218770\",\n" +
1402 -// " \"306944333488\",\n" + 1402 + " \"306944333488\",\n" +
1403 -// " \"306932222490\",\n" + 1403 + " \"306932222490\",\n" +
1404 -// " \"306996824010\",\n" + 1404 + " \"306996824010\",\n" +
1405 -// " \"306972713201\",\n" + 1405 + " \"306972713201\",\n" +
1406 -// " \"306942496252\",\n" + 1406 + " \"306942496252\",\n" +
1407 -// " \"306977316716\",\n" + 1407 + " \"306977316716\",\n" +
1408 -// " \"306945433100\",\n" + 1408 + " \"306945433100\",\n" +
1409 -// " \"306977403986\",\n" + 1409 + " \"306977403986\",\n" +
1410 -// " \"306936581495\",\n" + 1410 + " \"306936581495\",\n" +
1411 -// " \"306980689662\",\n" + 1411 + " \"306980689662\",\n" +
1412 -// " \"306970101490\",\n" + 1412 + " \"306970101490\",\n" +
1413 -// " \"306973396329\",\n" + 1413 + " \"306973396329\",\n" +
1414 -// " \"306972577064\",\n" + 1414 + " \"306972577064\",\n" +
1415 -// " \"306974923219\",\n" + 1415 + " \"306974923219\",\n" +
1416 -// " \"306977513761\",\n" + 1416 + " \"306977513761\",\n" +
1417 -// " \"306984220987\",\n" + 1417 + " \"306984220987\",\n" +
1418 -// " \"306979949205\",\n" + 1418 + " \"306979949205\",\n" +
1419 -// " \"306943134127\",\n" + 1419 + " \"306943134127\",\n" +
1420 -// " \"306970437794\",\n" + 1420 + " \"306970437794\",\n" +
1421 -// " \"306932535319\",\n" + 1421 + " \"306932535319\",\n" +
1422 -// " \"306974063133\",\n" + 1422 + " \"306974063133\",\n" +
1423 -// " \"306932520323\",\n" + 1423 + " \"306932520323\",\n" +
1424 -// " \"306978733823\",\n" + 1424 + " \"306978733823\",\n" +
1425 -// " \"306985995420\",\n" + 1425 + " \"306985995420\",\n" +
1426 -// " \"306983879555\",\n" + 1426 + " \"306983879555\",\n" +
1427 -// " ],\n" + 1427 + " ],\n" +
1428 -// " \"id\": \"000003590\",\n" + 1428 + " \"id\": \"000003590\",\n" +
1429 -// " \"loyaltyCampaignId\": \"NA\",\n" + 1429 + " \"loyaltyCampaignId\": \"NA\",\n" +
1430 -// " \"minsValue\": \"None\",\n" + 1430 + " \"minsValue\": \"None\",\n" +
1431 -// " \"noOfRecurrance\": \"None\",\n" + 1431 + " \"noOfRecurrance\": \"None\",\n" +
1432 -// " \"notificationMessage\": \"None\",\n" + 1432 + " \"notificationMessage\": \"None\",\n" +
1433 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 1433 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1434 -// " \"offerCode1\": \"000003590\",\n" + 1434 + " \"offerCode1\": \"000003590\",\n" +
1435 -// " \"offerName\": \"CCMS loyalty white label\",\n" + 1435 + " \"offerName\": \"CCMS loyalty white label\",\n" +
1436 -// " \"price\": \"None\",\n" + 1436 + " \"price\": \"None\",\n" +
1437 -// " \"productType\": \"White Label\",\n" + 1437 + " \"productType\": \"White Label\",\n" +
1438 -// " \"provDuration\": \"0.0\",\n" + 1438 + " \"provDuration\": \"0.0\",\n" +
1439 -// " \"provStepValueMins\": \"None\",\n" + 1439 + " \"provStepValueMins\": \"None\",\n" +
1440 -// " \"score\": \"50\",\n" + 1440 + " \"score\": \"50\",\n" +
1441 -// " \"treatmentCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" + 1441 + " \"treatmentCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" +
1442 -// " \"validity\": \"0\",\n" + 1442 + " \"validity\": \"0\",\n" +
1443 -// " \"voiceCategory\": \"None\",\n" + 1443 + " \"voiceCategory\": \"None\",\n" +
1444 -// " \"wave\": \"1\",\n" + 1444 + " \"wave\": \"1\",\n" +
1445 -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + 1445 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
1446 -// " },\n" + 1446 + " },\n" +
1447 -// " {\n" + 1447 + " {\n" +
1448 -// " \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n" + 1448 + " \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n" +
1449 -// " \"businessAdditionalId\": \"\",\n" + 1449 + " \"businessAdditionalId\": \"\",\n" +
1450 -// " \"dataCategory\": \"Data\",\n" + 1450 + " \"dataCategory\": \"Data\",\n" +
1451 -// " \"dataValue\": \"233\",\n" + 1451 + " \"dataValue\": \"233\",\n" +
1452 -// " \"discount\": \"None\",\n" + 1452 + " \"discount\": \"None\",\n" +
1453 -// " \"eligibleAssets\": [\n" + 1453 + " \"eligibleAssets\": [\n" +
1454 -// " \"306945218770\",\n" + 1454 + " \"306945218770\",\n" +
1455 -// " \"306944333488\",\n" + 1455 + " \"306944333488\",\n" +
1456 -// " \"306932222490\",\n" + 1456 + " \"306932222490\",\n" +
1457 -// " \"306996824010\",\n" + 1457 + " \"306996824010\",\n" +
1458 -// " \"306972713201\",\n" + 1458 + " \"306972713201\",\n" +
1459 -// " \"306942496252\",\n" + 1459 + " \"306942496252\",\n" +
1460 -// " \"306977316716\",\n" + 1460 + " \"306977316716\",\n" +
1461 -// " \"306945433100\",\n" + 1461 + " \"306945433100\",\n" +
1462 -// " \"306977403986\",\n" + 1462 + " \"306977403986\",\n" +
1463 -// " \"306936581495\",\n" + 1463 + " \"306936581495\",\n" +
1464 -// " \"306980689662\",\n" + 1464 + " \"306980689662\",\n" +
1465 -// " \"306970101490\",\n" + 1465 + " \"306970101490\",\n" +
1466 -// " \"306973396329\",\n" + 1466 + " \"306973396329\",\n" +
1467 -// " \"306972577064\",\n" + 1467 + " \"306972577064\",\n" +
1468 -// " \"306974923219\",\n" + 1468 + " \"306974923219\",\n" +
1469 -// " \"306977513761\",\n" + 1469 + " \"306977513761\",\n" +
1470 -// " \"306984220987\",\n" + 1470 + " \"306984220987\",\n" +
1471 -// " \"306979949205\",\n" + 1471 + " \"306979949205\",\n" +
1472 -// " \"306943134127\",\n" + 1472 + " \"306943134127\",\n" +
1473 -// " \"306970437794\",\n" + 1473 + " \"306970437794\",\n" +
1474 -// " \"306932535319\",\n" + 1474 + " \"306932535319\",\n" +
1475 -// " \"306974063133\",\n" + 1475 + " \"306974063133\",\n" +
1476 -// " \"306932520323\",\n" + 1476 + " \"306932520323\",\n" +
1477 -// " \"306978733823\",\n" + 1477 + " \"306978733823\",\n" +
1478 -// " \"306985995420\",\n" + 1478 + " \"306985995420\",\n" +
1479 -// " \"306983879555\",\n" + 1479 + " \"306983879555\",\n" +
1480 -// " ],\n" + 1480 + " ],\n" +
1481 -// " \"id\": \"000003599\",\n" + 1481 + " \"id\": \"000003599\",\n" +
1482 -// " \"loyaltyCampaignId\": \"9a92d445956145f6bbc5cd20cef543b9\",\n" + //c5cc5f4f65624f47a580b720233fa60d 1482 + " \"loyaltyCampaignId\": \"9a92d445956145f6bbc5cd20cef543b9\",\n" + //c5cc5f4f65624f47a580b720233fa60d
1483 -// " \"minsValue\": \"None\",\n" + 1483 + " \"minsValue\": \"None\",\n" +
1484 -// " \"noOfRecurrance\": \"None\",\n" + 1484 + " \"noOfRecurrance\": \"None\",\n" +
1485 -// " \"notificationMessage\": \"None\",\n" + 1485 + " \"notificationMessage\": \"None\",\n" +
1486 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 1486 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1487 -// " \"offerCode1\": \"000003599\",\n" + 1487 + " \"offerCode1\": \"000003599\",\n" +
1488 -// " \"offerName\": \"CCMS loyalty white label with campaignId\",\n" + 1488 + " \"offerName\": \"CCMS loyalty white label with campaignId\",\n" +
1489 -// " \"price\": \"None\",\n" + 1489 + " \"price\": \"None\",\n" +
1490 -// " \"productType\": \"White Label\",\n" + 1490 + " \"productType\": \"White Label\",\n" +
1491 -// " \"provDuration\": \"0.0\",\n" + 1491 + " \"provDuration\": \"0.0\",\n" +
1492 -// " \"provStepValueMins\": \"None\",\n" + 1492 + " \"provStepValueMins\": \"None\",\n" +
1493 -// " \"score\": \"50\",\n" + 1493 + " \"score\": \"50\",\n" +
1494 -// " \"treatmentCode\": \"51ed.e10.2c006f18.71e96d08\",\n" + 1494 + " \"treatmentCode\": \"51ed.e10.2c006f18.71e96d08\",\n" +
1495 -// " \"validity\": \"0\",\n" + 1495 + " \"validity\": \"0\",\n" +
1496 -// " \"voiceCategory\": \"None\",\n" + 1496 + " \"voiceCategory\": \"None\",\n" +
1497 -// " \"wave\": \"1\",\n" + 1497 + " \"wave\": \"1\",\n" +
1498 -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + 1498 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1499 -// " \"title\": \"Test1\",\n" + 1499 + " \"title\": \"Test1\",\n" +
1500 -// " \"subtitle\": \"Test1\",\n" + 1500 + " \"subtitle\": \"Test1\",\n" +
1501 -// " \"description\": \"Test1\",\n" + 1501 + " \"description\": \"Test1\",\n" +
1502 -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + 1502 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
1503 -// " },\n" + 1503 + " },\n" +
1504 -// " {\n" + 1504 + " {\n" +
1505 -// " \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + 1505 + " \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" +
1506 -// " \"businessAdditionalId\": \"\",\n" + 1506 + " \"businessAdditionalId\": \"\",\n" +
1507 -// " \"businessService\": \"0.0\",\n" + 1507 + " \"businessService\": \"0.0\",\n" +
1508 -// " \"eligibleAssets\": [\n" + 1508 + " \"eligibleAssets\": [\n" +
1509 -// " \"306945218770\",\n" + 1509 + " \"306945218770\",\n" +
1510 -// " \"306944333488\",\n" + 1510 + " \"306944333488\",\n" +
1511 -// " \"306932222490\",\n" + 1511 + " \"306932222490\",\n" +
1512 -// " \"306996824010\",\n" + 1512 + " \"306996824010\",\n" +
1513 -// " \"306972713201\",\n" + 1513 + " \"306972713201\",\n" +
1514 -// " \"306942496252\",\n" + 1514 + " \"306942496252\",\n" +
1515 -// " \"306977316716\",\n" + 1515 + " \"306977316716\",\n" +
1516 -// " \"306945433100\",\n" + 1516 + " \"306945433100\",\n" +
1517 -// " \"306977403986\",\n" + 1517 + " \"306977403986\",\n" +
1518 -// " \"306936581495\",\n" + 1518 + " \"306936581495\",\n" +
1519 -// " \"306980689662\",\n" + 1519 + " \"306980689662\",\n" +
1520 -// " \"306970101490\",\n" + 1520 + " \"306970101490\",\n" +
1521 -// " \"306973396329\",\n" + 1521 + " \"306973396329\",\n" +
1522 -// " \"306972577064\",\n" + 1522 + " \"306972577064\",\n" +
1523 -// " \"306974923219\",\n" + 1523 + " \"306974923219\",\n" +
1524 -// " \"306977513761\",\n" + 1524 + " \"306977513761\",\n" +
1525 -// " \"306984220987\",\n" + 1525 + " \"306984220987\",\n" +
1526 -// " \"306979949205\",\n" + 1526 + " \"306979949205\",\n" +
1527 -// " \"306943134127\",\n" + 1527 + " \"306943134127\",\n" +
1528 -// " \"306970437794\",\n" + 1528 + " \"306970437794\",\n" +
1529 -// " \"306932535319\",\n" + 1529 + " \"306932535319\",\n" +
1530 -// " \"306974063133\",\n" + 1530 + " \"306974063133\",\n" +
1531 -// " \"306932520323\",\n" + 1531 + " \"306932520323\",\n" +
1532 -// " \"306978733823\",\n" + 1532 + " \"306978733823\",\n" +
1533 -// " \"306985995420\",\n" + 1533 + " \"306985995420\",\n" +
1534 -// " \"306983879555\",\n" + 1534 + " \"306983879555\",\n" +
1535 -// " ],\n" + 1535 + " ],\n" +
1536 -// " \"id\": \"000003588\",\n" + 1536 + " \"id\": \"000003588\",\n" +
1537 -// " \"loyaltyCampaignId\": \"NA\",\n" + 1537 + " \"loyaltyCampaignId\": \"NA\",\n" +
1538 -// " \"noOfRecurrance\": \"0\",\n" + 1538 + " \"noOfRecurrance\": \"0\",\n" +
1539 -// " \"notificationMessage\": \"None\",\n" + 1539 + " \"notificationMessage\": \"None\",\n" +
1540 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 1540 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1541 -// " \"offerCode1\": \"000003588\",\n" + 1541 + " \"offerCode1\": \"000003588\",\n" +
1542 -// " \"offerName\": \"CCMS loyalty postpay addon\",\n" + 1542 + " \"offerName\": \"CCMS loyalty postpay addon\",\n" +
1543 -// " \"postpayProduct\": \"0.0\",\n" + 1543 + " \"postpayProduct\": \"0.0\",\n" +
1544 -// " \"price\": \"None\",\n" + 1544 + " \"price\": \"None\",\n" +
1545 -// " \"productType\": \"MOBILE ADDON\",\n" + 1545 + " \"productType\": \"MOBILE ADDON\",\n" +
1546 -// " \"provDuration\": \"0.0\",\n" + 1546 + " \"provDuration\": \"0.0\",\n" +
1547 -// " \"score\": \"50\",\n" + 1547 + " \"score\": \"50\",\n" +
1548 -// " \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + 1548 + " \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" +
1549 -// " \"validity\": \"0\",\n" + 1549 + " \"validity\": \"0\",\n" +
1550 -// " \"wave\": \"1\",\n" + 1550 + " \"wave\": \"1\",\n" +
1551 -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + 1551 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1552 -// " \"title\": \"Test2\",\n" + 1552 + " \"title\": \"Test2\",\n" +
1553 -// " \"subtitle\": \"Test2\",\n" + 1553 + " \"subtitle\": \"Test2\",\n" +
1554 -// " \"description\": \"Test2\",\n" + 1554 + " \"description\": \"Test2\",\n" +
1555 -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + 1555 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
1556 -// " },\n" + 1556 + " },\n" +
1557 -// " {\n" + 1557 + " {\n" +
1558 -// " \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + 1558 + " \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" +
1559 -// " \"businessAdditionalId\": \"\",\n" + 1559 + " \"businessAdditionalId\": \"\",\n" +
1560 -// " \"dataCategory\": \"Data\",\n" + 1560 + " \"dataCategory\": \"Data\",\n" +
1561 -// " \"dataValue\": \"None\",\n" + 1561 + " \"dataValue\": \"None\",\n" +
1562 -// " \"discount\": \"None\",\n" + 1562 + " \"discount\": \"None\",\n" +
1563 -// " \"eligibleAssets\": [\n" + 1563 + " \"eligibleAssets\": [\n" +
1564 -// " \"306945218770\",\n" + 1564 + " \"306945218770\",\n" +
1565 -// " \"306944333488\",\n" + 1565 + " \"306944333488\",\n" +
1566 -// " \"306932222490\",\n" + 1566 + " \"306932222490\",\n" +
1567 -// " \"306996824010\",\n" + 1567 + " \"306996824010\",\n" +
1568 -// " \"306972713201\",\n" + 1568 + " \"306972713201\",\n" +
1569 -// " \"306942496252\",\n" + 1569 + " \"306942496252\",\n" +
1570 -// " \"306977316716\",\n" + 1570 + " \"306977316716\",\n" +
1571 -// " \"306945433100\",\n" + 1571 + " \"306945433100\",\n" +
1572 -// " \"306977403986\",\n" + 1572 + " \"306977403986\",\n" +
1573 -// " \"306936581495\",\n" + 1573 + " \"306936581495\",\n" +
1574 -// " \"306980689662\",\n" + 1574 + " \"306980689662\",\n" +
1575 -// " \"306970101490\",\n" + 1575 + " \"306970101490\",\n" +
1576 -// " \"306973396329\",\n" + 1576 + " \"306973396329\",\n" +
1577 -// " \"306972577064\",\n" + 1577 + " \"306972577064\",\n" +
1578 -// " \"306974923219\",\n" + 1578 + " \"306974923219\",\n" +
1579 -// " \"306977513761\",\n" + 1579 + " \"306977513761\",\n" +
1580 -// " \"306984220987\",\n" + 1580 + " \"306984220987\",\n" +
1581 -// " \"306979949205\",\n" + 1581 + " \"306979949205\",\n" +
1582 -// " \"306943134127\",\n" + 1582 + " \"306943134127\",\n" +
1583 -// " \"306970437794\",\n" + 1583 + " \"306970437794\",\n" +
1584 -// " \"306932535319\",\n" + 1584 + " \"306932535319\",\n" +
1585 -// " \"306974063133\",\n" + 1585 + " \"306974063133\",\n" +
1586 -// " \"306932520323\",\n" + 1586 + " \"306932520323\",\n" +
1587 -// " \"306978733823\",\n" + 1587 + " \"306978733823\",\n" +
1588 -// " \"306985995420\",\n" + 1588 + " \"306985995420\",\n" +
1589 -// " \"306983879555\",\n" + 1589 + " \"306983879555\",\n" +
1590 -// " ],\n" + 1590 + " ],\n" +
1591 -// " \"id\": \"000003608\",\n" + 1591 + " \"id\": \"000003608\",\n" +
1592 -// " \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" + 1592 + " \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" +
1593 -// " \"minsValue\": \"None\",\n" + 1593 + " \"minsValue\": \"None\",\n" +
1594 -// " \"noOfRecurrance\": \"None\",\n" + 1594 + " \"noOfRecurrance\": \"None\",\n" +
1595 -// " \"notificationMessage\": \"None\",\n" + 1595 + " \"notificationMessage\": \"None\",\n" +
1596 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 1596 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1597 -// " \"offerCode1\": \"000003608\",\n" + 1597 + " \"offerCode1\": \"000003608\",\n" +
1598 -// " \"offerName\": \"CCMS loyalty gifts4u v1\",\n" + 1598 + " \"offerName\": \"CCMS loyalty gifts4u v1\",\n" +
1599 -// " \"price\": \"None\",\n" + 1599 + " \"price\": \"None\",\n" +
1600 -// " \"productType\": \"White Label\",\n" + 1600 + " \"productType\": \"White Label\",\n" +
1601 -// " \"provDuration\": \"0.0\",\n" + 1601 + " \"provDuration\": \"0.0\",\n" +
1602 -// " \"provStepValueMins\": \"None\",\n" + 1602 + " \"provStepValueMins\": \"None\",\n" +
1603 -// " \"score\": \"50\",\n" + 1603 + " \"score\": \"50\",\n" +
1604 -// " \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + 1604 + " \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" +
1605 -// " \"validity\": \"0\",\n" + 1605 + " \"validity\": \"0\",\n" +
1606 -// " \"voiceCategory\": \"None\",\n" + 1606 + " \"voiceCategory\": \"None\",\n" +
1607 -// " \"wave\": \"1\",\n" + 1607 + " \"wave\": \"1\",\n" +
1608 -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + 1608 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1609 -// " \"title\": \"Test3\",\n" + 1609 + " \"title\": \"Test3\",\n" +
1610 -// " \"subtitle\": \"Test3\",\n" + 1610 + " \"subtitle\": \"Test3\",\n" +
1611 -// " \"description\": \"Test3\",\n" + 1611 + " \"description\": \"Test3\",\n" +
1612 -// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + 1612 + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
1613 -// " },\n" + 1613 + " },\n" +
1614 -// " {\n" + 1614 + " {\n" +
1615 -// " \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" + 1615 + " \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" +
1616 -// " \"businessAdditionalId\": \"\",\n" + 1616 + " \"businessAdditionalId\": \"\",\n" +
1617 -// " \"businessService\": \"0.0\",\n" + 1617 + " \"businessService\": \"0.0\",\n" +
1618 -// " \"eligibleAssets\": [\n" + 1618 + " \"eligibleAssets\": [\n" +
1619 -// " \"306945218770\",\n" + 1619 + " \"306945218770\",\n" +
1620 -// " \"306944333488\",\n" + 1620 + " \"306944333488\",\n" +
1621 -// " \"306932222490\",\n" + 1621 + " \"306932222490\",\n" +
1622 -// " \"306996824010\",\n" + 1622 + " \"306996824010\",\n" +
1623 -// " \"306972713201\",\n" + 1623 + " \"306972713201\",\n" +
1624 -// " \"306942496252\",\n" + 1624 + " \"306942496252\",\n" +
1625 -// " \"306977316716\",\n" + 1625 + " \"306977316716\",\n" +
1626 -// " \"306945433100\",\n" + 1626 + " \"306945433100\",\n" +
1627 -// " \"306977403986\",\n" + 1627 + " \"306977403986\",\n" +
1628 -// " \"306936581495\",\n" + 1628 + " \"306936581495\",\n" +
1629 -// " \"306980689662\",\n" + 1629 + " \"306980689662\",\n" +
1630 -// " \"306970101490\",\n" + 1630 + " \"306970101490\",\n" +
1631 -// " \"306973396329\",\n" + 1631 + " \"306973396329\",\n" +
1632 -// " \"306972577064\",\n" + 1632 + " \"306972577064\",\n" +
1633 -// " \"306974923219\",\n" + 1633 + " \"306974923219\",\n" +
1634 -// " \"306977513761\",\n" + 1634 + " \"306977513761\",\n" +
1635 -// " \"306984220987\",\n" + 1635 + " \"306984220987\",\n" +
1636 -// " \"306979949205\",\n" + 1636 + " \"306979949205\",\n" +
1637 -// " \"306943134127\",\n" + 1637 + " \"306943134127\",\n" +
1638 -// " \"306970437794\",\n" + 1638 + " \"306970437794\",\n" +
1639 -// " \"306932535319\",\n" + 1639 + " \"306932535319\",\n" +
1640 -// " \"306974063133\",\n" + 1640 + " \"306974063133\",\n" +
1641 -// " \"306932520323\",\n" + 1641 + " \"306932520323\",\n" +
1642 -// " \"306978733823\",\n" + 1642 + " \"306978733823\",\n" +
1643 -// " \"306985995420\",\n" + 1643 + " \"306985995420\",\n" +
1644 -// " \"306983879555\",\n" + 1644 + " \"306983879555\",\n" +
1645 -// " ],\n" + 1645 + " ],\n" +
1646 -// " \"id\": \"000003612\",\n" + 1646 + " \"id\": \"000003612\",\n" +
1647 -// " \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" + 1647 + " \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" +
1648 -// " \"noOfRecurrance\": \"0\",\n" + 1648 + " \"noOfRecurrance\": \"0\",\n" +
1649 -// " \"notificationMessage\": \"None\",\n" + 1649 + " \"notificationMessage\": \"None\",\n" +
1650 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 1650 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1651 -// " \"offerCode1\": \"000003612\",\n" + 1651 + " \"offerCode1\": \"000003612\",\n" +
1652 -// " \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" + 1652 + " \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" +
1653 -// " \"postpayProduct\": \"0.0\",\n" + 1653 + " \"postpayProduct\": \"0.0\",\n" +
1654 -// " \"price\": \"None\",\n" + 1654 + " \"price\": \"None\",\n" +
1655 -// " \"productType\": \"MOBILE ADDON\",\n" + 1655 + " \"productType\": \"MOBILE ADDON\",\n" +
1656 -// " \"provDuration\": \"0.0\",\n" + 1656 + " \"provDuration\": \"0.0\",\n" +
1657 -// " \"score\": \"50\",\n" + 1657 + " \"score\": \"50\",\n" +
1658 -// " \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" + 1658 + " \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" +
1659 -// " \"validity\": \"0\",\n" + 1659 + " \"validity\": \"0\",\n" +
1660 -// " \"wave\": \"1\",\n" + 1660 + " \"wave\": \"1\",\n" +
1661 -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + 1661 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1662 -// " \"title\": \"Test4\",\n" + 1662 + " \"title\": \"Test4\",\n" +
1663 -// " \"subtitle\": \"Test4\",\n" + 1663 + " \"subtitle\": \"Test4\",\n" +
1664 -// " \"description\": \"Test4\",\n" + 1664 + " \"description\": \"Test4\",\n" +
1665 -// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + 1665 + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
1666 -// " },\n" + 1666 + " },\n" +
1667 -// " {\n" + 1667 + " {\n" +
1668 -// " \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + 1668 + " \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" +
1669 -// " \"businessAdditionalId\": \"\",\n" + 1669 + " \"businessAdditionalId\": \"\",\n" +
1670 -// " \"dataCategory\": \"Data\",\n" + 1670 + " \"dataCategory\": \"Data\",\n" +
1671 -// " \"dataValue\": \"None\",\n" + 1671 + " \"dataValue\": \"None\",\n" +
1672 -// " \"discount\": \"None\",\n" + 1672 + " \"discount\": \"None\",\n" +
1673 -// " \"eligibleAssets\": [\n" + 1673 + " \"eligibleAssets\": [\n" +
1674 -// " \"306945218770\",\n" + 1674 + " \"306945218770\",\n" +
1675 -// " \"306944333488\",\n" + 1675 + " \"306944333488\",\n" +
1676 -// " \"306932222490\",\n" + 1676 + " \"306932222490\",\n" +
1677 -// " \"306996824010\",\n" + 1677 + " \"306996824010\",\n" +
1678 -// " \"306972713201\",\n" + 1678 + " \"306972713201\",\n" +
1679 -// " \"306942496252\",\n" + 1679 + " \"306942496252\",\n" +
1680 -// " \"306977316716\",\n" + 1680 + " \"306977316716\",\n" +
1681 -// " \"306945433100\",\n" + 1681 + " \"306945433100\",\n" +
1682 -// " \"306977403986\",\n" + 1682 + " \"306977403986\",\n" +
1683 -// " \"306936581495\",\n" + 1683 + " \"306936581495\",\n" +
1684 -// " \"306980689662\",\n" + 1684 + " \"306980689662\",\n" +
1685 -// " \"306970101490\",\n" + 1685 + " \"306970101490\",\n" +
1686 -// " \"306973396329\",\n" + 1686 + " \"306973396329\",\n" +
1687 -// " \"306972577064\",\n" + 1687 + " \"306972577064\",\n" +
1688 -// " \"306974923219\",\n" + 1688 + " \"306974923219\",\n" +
1689 -// " \"306977513761\",\n" + 1689 + " \"306977513761\",\n" +
1690 -// " \"306984220987\",\n" + 1690 + " \"306984220987\",\n" +
1691 -// " \"306979949205\",\n" + 1691 + " \"306979949205\",\n" +
1692 -// " \"306943134127\",\n" + 1692 + " \"306943134127\",\n" +
1693 -// " \"306970437794\",\n" + 1693 + " \"306970437794\",\n" +
1694 -// " \"306932535319\",\n" + 1694 + " \"306932535319\",\n" +
1695 -// " \"306974063133\",\n" + 1695 + " \"306974063133\",\n" +
1696 -// " \"306932520323\",\n" + 1696 + " \"306932520323\",\n" +
1697 -// " \"306978733823\",\n" + 1697 + " \"306978733823\",\n" +
1698 -// " \"306985995420\",\n" + 1698 + " \"306985995420\",\n" +
1699 -// " \"306983879555\",\n" + 1699 + " \"306983879555\",\n" +
1700 -// " ],\n" + 1700 + " ],\n" +
1701 -// " \"id\": \"000003610\",\n" + 1701 + " \"id\": \"000003610\",\n" +
1702 -// " \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" + 1702 + " \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" +
1703 -// " \"minsValue\": \"None\",\n" + 1703 + " \"minsValue\": \"None\",\n" +
1704 -// " \"noOfRecurrance\": \"None\",\n" + 1704 + " \"noOfRecurrance\": \"None\",\n" +
1705 -// " \"notificationMessage\": \"None\",\n" + 1705 + " \"notificationMessage\": \"None\",\n" +
1706 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 1706 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1707 -// " \"offerCode1\": \"000003610\",\n" + 1707 + " \"offerCode1\": \"000003610\",\n" +
1708 -// " \"offerName\": \"CCMS loyalty more4u v1\",\n" + 1708 + " \"offerName\": \"CCMS loyalty more4u v1\",\n" +
1709 -// " \"price\": \"20\",\n" + 1709 + " \"price\": \"20\",\n" +
1710 -// " \"productType\": \"White Label\",\n" + 1710 + " \"productType\": \"White Label\",\n" +
1711 -// " \"provDuration\": \"7.0\",\n" + 1711 + " \"provDuration\": \"7.0\",\n" +
1712 -// " \"provStepValueMins\": \"None\",\n" + 1712 + " \"provStepValueMins\": \"None\",\n" +
1713 -// " \"score\": \"60\",\n" + 1713 + " \"score\": \"60\",\n" +
1714 -// " \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + 1714 + " \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" +
1715 -// " \"validity\": \"0\",\n" + 1715 + " \"validity\": \"0\",\n" +
1716 -// " \"voiceCategory\": \"None\",\n" + 1716 + " \"voiceCategory\": \"None\",\n" +
1717 -// " \"wave\": \"1\",\n" + 1717 + " \"wave\": \"1\",\n" +
1718 -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + 1718 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1719 -// " \"title\": \"Test5\",\n" + 1719 + " \"title\": \"Test5\",\n" +
1720 -// " \"subtitle\": \"Test5\",\n" + 1720 + " \"subtitle\": \"Test5\",\n" +
1721 -// " \"description\": \"Test5\",\n" + 1721 + " \"description\": \"Test5\",\n" +
1722 -// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + 1722 + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
1723 -// " },\n" + 1723 + " },\n" +
1724 -// " {\n" + 1724 + " {\n" +
1725 -// " \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + 1725 + " \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" +
1726 -// " \"businessAdditionalId\": \"\",\n" + 1726 + " \"businessAdditionalId\": \"\",\n" +
1727 -// " \"businessService\": \"0.0\",\n" + 1727 + " \"businessService\": \"0.0\",\n" +
1728 -// " \"eligibleAssets\": [\n" + 1728 + " \"eligibleAssets\": [\n" +
1729 -// " \"306945218770\",\n" + 1729 + " \"306945218770\",\n" +
1730 -// " \"306944333488\",\n" + 1730 + " \"306944333488\",\n" +
1731 -// " \"306932222490\",\n" + 1731 + " \"306932222490\",\n" +
1732 -// " \"306996824010\",\n" + 1732 + " \"306996824010\",\n" +
1733 -// " \"306972713201\",\n" + 1733 + " \"306972713201\",\n" +
1734 -// " \"306942496252\",\n" + 1734 + " \"306942496252\",\n" +
1735 -// " \"306977316716\",\n" + 1735 + " \"306977316716\",\n" +
1736 -// " \"306945433100\",\n" + 1736 + " \"306945433100\",\n" +
1737 -// " \"306977403986\",\n" + 1737 + " \"306977403986\",\n" +
1738 -// " \"306936581495\",\n" + 1738 + " \"306936581495\",\n" +
1739 -// " \"306980689662\",\n" + 1739 + " \"306980689662\",\n" +
1740 -// " \"306970101490\",\n" + 1740 + " \"306970101490\",\n" +
1741 -// " \"306973396329\",\n" + 1741 + " \"306973396329\",\n" +
1742 -// " \"306972577064\",\n" + 1742 + " \"306972577064\",\n" +
1743 -// " \"306974923219\",\n" + 1743 + " \"306974923219\",\n" +
1744 -// " \"306977513761\",\n" + 1744 + " \"306977513761\",\n" +
1745 -// " \"306984220987\",\n" + 1745 + " \"306984220987\",\n" +
1746 -// " \"306979949205\",\n" + 1746 + " \"306979949205\",\n" +
1747 -// " \"306943134127\",\n" + 1747 + " \"306943134127\",\n" +
1748 -// " \"306970437794\",\n" + 1748 + " \"306970437794\",\n" +
1749 -// " \"306932535319\",\n" + 1749 + " \"306932535319\",\n" +
1750 -// " \"306974063133\",\n" + 1750 + " \"306974063133\",\n" +
1751 -// " \"306932520323\",\n" + 1751 + " \"306932520323\",\n" +
1752 -// " \"306978733823\",\n" + 1752 + " \"306978733823\",\n" +
1753 -// " \"306985995420\",\n" + 1753 + " \"306985995420\",\n" +
1754 -// " \"306983879555\",\n" + 1754 + " \"306983879555\",\n" +
1755 -// " ],\n" + 1755 + " ],\n" +
1756 -// " \"id\": \"000003614\",\n" + 1756 + " \"id\": \"000003614\",\n" +
1757 -// " \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" + 1757 + " \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" +
1758 -// " \"noOfRecurrance\": \"0\",\n" + 1758 + " \"noOfRecurrance\": \"0\",\n" +
1759 -// " \"notificationMessage\": \"None\",\n" + 1759 + " \"notificationMessage\": \"None\",\n" +
1760 -// " \"offerAudienceLevel\": \"msisdn\",\n" + 1760 + " \"offerAudienceLevel\": \"msisdn\",\n" +
1761 -// " \"offerCode1\": \"000003614\",\n" + 1761 + " \"offerCode1\": \"000003614\",\n" +
1762 -// " \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" + 1762 + " \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" +
1763 -// " \"postpayProduct\": \"0.0\",\n" + 1763 + " \"postpayProduct\": \"0.0\",\n" +
1764 -// " \"price\": \"None\",\n" + 1764 + " \"price\": \"None\",\n" +
1765 -// " \"productType\": \"MOBILE ADDON\",\n" + 1765 + " \"productType\": \"MOBILE ADDON\",\n" +
1766 -// " \"provDuration\": \"0.0\",\n" + 1766 + " \"provDuration\": \"0.0\",\n" +
1767 -// " \"score\": \"50\",\n" + 1767 + " \"score\": \"50\",\n" +
1768 -// " \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + 1768 + " \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" +
1769 -// " \"validity\": \"0\",\n" + 1769 + " \"validity\": \"0\",\n" +
1770 -// " \"wave\": \"1\",\n" + 1770 + " \"wave\": \"1\",\n" +
1771 -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + 1771 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1772 -// " \"title\": \"Test6\",\n" + 1772 + " \"title\": \"Test6\",\n" +
1773 -// " \"subtitle\": \"Test6\",\n" + 1773 + " \"subtitle\": \"Test6\",\n" +
1774 -// " \"description\": \"Test6\",\n" + 1774 + " \"description\": \"Test6\",\n" +
1775 -// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + 1775 + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
1776 -// " },\n" + 1776 + " },\n" +
1777 -// " {\n" + 1777 + " {\n" +
1778 -// " \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + 1778 + " \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
1779 -// " \"businessAdditionalId\": \"\",\n" + 1779 + " \"businessAdditionalId\": \"\",\n" +
1780 -// " \"eligibleAssets\": [],\n" + 1780 + " \"eligibleAssets\": [],\n" +
1781 -// " \"id\": \"000003586\",\n" + 1781 + " \"id\": \"000003586\",\n" +
1782 -// " \"loyaltyCampaignId\": \"NA\",\n" + 1782 + " \"loyaltyCampaignId\": \"NA\",\n" +
1783 -// " \"offerAudienceLevel\": \"guid\",\n" + 1783 + " \"offerAudienceLevel\": \"guid\",\n" +
1784 -// " \"offerCode1\": \"000003586\",\n" + 1784 + " \"offerCode1\": \"000003586\",\n" +
1785 -// " \"offerName\": \"CCMS loyalty offer 6\",\n" + 1785 + " \"offerName\": \"CCMS loyalty offer 6\",\n" +
1786 -// " \"productType\": \"GENERIC\",\n" + 1786 + " \"productType\": \"GENERIC\",\n" +
1787 -// " \"score\": \"50\",\n" + 1787 + " \"score\": \"50\",\n" +
1788 -// " \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + 1788 + " \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
1789 -// " \"validity\": \"0\",\n" + 1789 + " \"validity\": \"0\",\n" +
1790 -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + 1790 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
1791 -// " },\n" + 1791 + " },\n" +
1792 -// " {\n" + 1792 + " {\n" +
1793 -// " \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + 1793 + " \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" +
1794 -// " \"businessAdditionalId\": \"\",\n" + 1794 + " \"businessAdditionalId\": \"\",\n" +
1795 -// " \"eligibleAssets\": [],\n" + 1795 + " \"eligibleAssets\": [],\n" +
1796 -// " \"id\": \"000003595\",\n" + 1796 + " \"id\": \"000003595\",\n" +
1797 -// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + 1797 + " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
1798 -// " \"offerAudienceLevel\": \"guid\",\n" + 1798 + " \"offerAudienceLevel\": \"guid\",\n" +
1799 -// " \"offerCode1\": \"000003595\",\n" + 1799 + " \"offerCode1\": \"000003595\",\n" +
1800 -// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + 1800 + " \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
1801 -// " \"productType\": \"GENERIC\",\n" + 1801 + " \"productType\": \"GENERIC\",\n" +
1802 -// " \"score\": \"50\",\n" + 1802 + " \"score\": \"50\",\n" +
1803 -// " \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + 1803 + " \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" +
1804 -// " \"validity\": \"0\",\n" + 1804 + " \"validity\": \"0\",\n" +
1805 -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + 1805 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1806 -// " \"title\": \"Test7\",\n" + 1806 + " \"title\": \"Test7\",\n" +
1807 -// " \"subtitle\": \"Test7\",\n" + 1807 + " \"subtitle\": \"Test7\",\n" +
1808 -// " \"description\": \"Test7\",\n" + 1808 + " \"description\": \"Test7\",\n" +
1809 -// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + 1809 + " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
1810 -// " },\n" + 1810 + " },\n" +
1811 -// " {\n" + 1811 + " {\n" +
1812 -// " \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + 1812 + " \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" +
1813 -// " \"businessAdditionalId\": \"\",\n" + 1813 + " \"businessAdditionalId\": \"\",\n" +
1814 -// " \"eligibleAssets\": [],\n" + 1814 + " \"eligibleAssets\": [],\n" +
1815 -// " \"id\": \"000003595\",\n" + 1815 + " \"id\": \"000003595\",\n" +
1816 -// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + 1816 + " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
1817 -// " \"offerAudienceLevel\": \"guid\",\n" + 1817 + " \"offerAudienceLevel\": \"guid\",\n" +
1818 -// " \"offerCode1\": \"000003595\",\n" + 1818 + " \"offerCode1\": \"000003595\",\n" +
1819 -// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + 1819 + " \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
1820 -// " \"productType\": \"GENERIC\",\n" + 1820 + " \"productType\": \"GENERIC\",\n" +
1821 -// " \"score\": \"50\",\n" + 1821 + " \"score\": \"50\",\n" +
1822 -// " \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + 1822 + " \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" +
1823 -// " \"validity\": \"0\",\n" + 1823 + " \"validity\": \"0\",\n" +
1824 -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + 1824 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1825 -// " \"title\": \"Test8\",\n" + 1825 + " \"title\": \"Test8\",\n" +
1826 -// " \"subtitle\": \"Test8\",\n" + 1826 + " \"subtitle\": \"Test8\",\n" +
1827 -// " \"description\": \"Test8\",\n" + 1827 + " \"description\": \"Test8\",\n" +
1828 -// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + 1828 + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
1829 -// " },\n" + 1829 + " },\n" +
1830 -// " {\n" + 1830 + " {\n" +
1831 -// " \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + 1831 + " \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
1832 -// " \"businessAdditionalId\": \"\",\n" + 1832 + " \"businessAdditionalId\": \"\",\n" +
1833 -// " \"eligibleAssets\": [],\n" + 1833 + " \"eligibleAssets\": [],\n" +
1834 -// " \"id\": \"000003586\",\n" + 1834 + " \"id\": \"000003586\",\n" +
1835 -// " \"loyaltyCampaignId\": \"NA\",\n" + 1835 + " \"loyaltyCampaignId\": \"NA\",\n" +
1836 -// " \"offerAudienceLevel\": \"guid\",\n" + 1836 + " \"offerAudienceLevel\": \"guid\",\n" +
1837 -// " \"offerCode1\": \"000003586\",\n" + 1837 + " \"offerCode1\": \"000003586\",\n" +
1838 -// " \"offerName\": \"CCMS loyalty offer 6\",\n" + 1838 + " \"offerName\": \"CCMS loyalty offer 6\",\n" +
1839 -// " \"productType\": \"GENERIC\",\n" + 1839 + " \"productType\": \"GENERIC\",\n" +
1840 -// " \"score\": \"50\",\n" + 1840 + " \"score\": \"50\",\n" +
1841 -// " \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + 1841 + " \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
1842 -// " \"validity\": \"0\",\n" + 1842 + " \"validity\": \"0\",\n" +
1843 -// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + 1843 + " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
1844 -// " },\n" + 1844 + " },\n" +
1845 -// " {\n" + 1845 + " {\n" +
1846 -// " \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + 1846 + " \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
1847 -// " \"businessAdditionalId\": \"\",\n" + 1847 + " \"businessAdditionalId\": \"\",\n" +
1848 -// " \"eligibleAssets\": [],\n" + 1848 + " \"eligibleAssets\": [],\n" +
1849 -// " \"id\": \"000003586\",\n" + 1849 + " \"id\": \"000003586\",\n" +
1850 -// " \"loyaltyCampaignId\": \"NA\",\n" + 1850 + " \"loyaltyCampaignId\": \"NA\",\n" +
1851 -// " \"offerAudienceLevel\": \"guid\",\n" + 1851 + " \"offerAudienceLevel\": \"guid\",\n" +
1852 -// " \"offerCode1\": \"000003586\",\n" + 1852 + " \"offerCode1\": \"000003586\",\n" +
1853 -// " \"offerName\": \"CCMS loyalty offer 6\",\n" + 1853 + " \"offerName\": \"CCMS loyalty offer 6\",\n" +
1854 -// " \"productType\": \"GENERIC\",\n" + 1854 + " \"productType\": \"GENERIC\",\n" +
1855 -// " \"score\": \"50\",\n" + 1855 + " \"score\": \"50\",\n" +
1856 -// " \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + 1856 + " \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
1857 -// " \"validity\": \"0\",\n" + 1857 + " \"validity\": \"0\",\n" +
1858 -// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + 1858 + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
1859 -// " },\n" + 1859 + " },\n" +
1860 -// " {\n" + 1860 + " {\n" +
1861 -// " \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + 1861 + " \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" +
1862 -// " \"businessAdditionalId\": \"\",\n" + 1862 + " \"businessAdditionalId\": \"\",\n" +
1863 -// " \"eligibleAssets\": [],\n" + 1863 + " \"eligibleAssets\": [],\n" +
1864 -// " \"id\": \"000003595\",\n" + 1864 + " \"id\": \"000003595\",\n" +
1865 -// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + 1865 + " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
1866 -// " \"offerAudienceLevel\": \"guid\",\n" + 1866 + " \"offerAudienceLevel\": \"guid\",\n" +
1867 -// " \"offerCode1\": \"000003595\",\n" + 1867 + " \"offerCode1\": \"000003595\",\n" +
1868 -// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + 1868 + " \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
1869 -// " \"productType\": \"GENERIC\",\n" + 1869 + " \"productType\": \"GENERIC\",\n" +
1870 -// " \"score\": \"50\",\n" + 1870 + " \"score\": \"50\",\n" +
1871 -// " \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + 1871 + " \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" +
1872 -// " \"validity\": \"0\",\n" + 1872 + " \"validity\": \"0\",\n" +
1873 -// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + 1873 + " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
1874 -// " \"title\": \"Test9\",\n" + 1874 + " \"title\": \"Test9\",\n" +
1875 -// " \"subtitle\": \"Test9\",\n" + 1875 + " \"subtitle\": \"Test9\",\n" +
1876 -// " \"description\": \"Test9\",\n" + 1876 + " \"description\": \"Test9\",\n" +
1877 -// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + 1877 + " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
1878 -// " }\n" + 1878 + " }\n" +
1879 -// " ]"); 1879 + " ]");
1880 -// } catch (JSONException e) { 1880 + } catch (JSONException e) {
1881 -// e.printStackTrace(); 1881 + e.printStackTrace();
1882 -// } 1882 + }
1883 -// if (jArray != null && jArray.length() > 0) { 1883 + if (jArray != null && jArray.length() > 0) {
1884 -// for (int i = 0; i < jArray.length(); i++) { 1884 + for (int i = 0; i < jArray.length(); i++) {
1885 -// JSONObject jobj = new JSONObject(); 1885 + JSONObject jobj = new JSONObject();
1886 -// jobj = jArray.optJSONObject(i); 1886 + jobj = jArray.optJSONObject(i);
1887 -// if (jobj != null) { 1887 + if (jobj != null) {
1888 -// LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj); 1888 + LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj);
1889 -// list.add(model); 1889 + list.add(model);
1890 -// } 1890 + }
1891 -// } 1891 + }
1892 -// } 1892 + }
1893 -// WarplyManagerHelper.setCCMSLoyaltyCampaigns(list); 1893 + WarplyManagerHelper.setCCMSLoyaltyCampaigns(list);
1894 1894
1895 receiver.onSuccess(campaignLoyaltyList); //result 1895 receiver.onSuccess(campaignLoyaltyList); //result
1896 } 1896 }
......