Panagiotis Triantafyllou

new keys

......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.4-cosbeta28i'
PUBLISH_VERSION = '4.5.4-cosbeta29'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -479,299 +479,299 @@ public enum Warply {
public void onSuccess(CampaignList result) {
WarplyManagerHelper.setCampaignList(result);
ArrayList<LoyaltyContextualOfferModel> list = new ArrayList<>();
JSONArray jArray = null;
try {
jArray = new JSONArray("[\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"dataCategory\": \"Data\",\n" +
" \"dataValue\": \"None\",\n" +
" \"discount\": \"None\",\n" +
" \"eligibleAssets\": [\n" +
" \"306945218770\"\n" +
" ],\n" +
" \"id\": \"000003590\",\n" +
" \"loyaltyCampaignId\": \"NA\",\n" +
" \"minsValue\": \"None\",\n" +
" \"noOfRecurrance\": \"None\",\n" +
" \"notificationMessage\": \"None\",\n" +
" \"offerAudienceLevel\": \"msisdn\",\n" +
" \"offerCode1\": \"000003590\",\n" +
" \"offerName\": \"CCMS loyalty white label\",\n" +
" \"price\": \"None\",\n" +
" \"productType\": \"White Label\",\n" +
" \"provDuration\": \"0.0\",\n" +
" \"provStepValueMins\": \"None\",\n" +
" \"score\": \"50\",\n" +
" \"treatmentCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" +
" \"validity\": \"0\",\n" +
" \"voiceCategory\": \"None\",\n" +
" \"wave\": \"1\",\n" +
" \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
" },\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"dataCategory\": \"Data\",\n" +
" \"dataValue\": \"None\",\n" +
" \"discount\": \"None\",\n" +
" \"eligibleAssets\": [\n" +
" \"306945218770\"\n" +
" ],\n" +
" \"id\": \"000003599\",\n" +
" \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
" \"minsValue\": \"None\",\n" +
" \"noOfRecurrance\": \"None\",\n" +
" \"notificationMessage\": \"None\",\n" +
" \"offerAudienceLevel\": \"msisdn\",\n" +
" \"offerCode1\": \"000003599\",\n" +
" \"offerName\": \"CCMS loyalty white label with campaignId\",\n" +
" \"price\": \"None\",\n" +
" \"productType\": \"White Label\",\n" +
" \"provDuration\": \"0.0\",\n" +
" \"provStepValueMins\": \"None\",\n" +
" \"score\": \"50\",\n" +
" \"treatmentCode\": \"51ed.e10.2c006f18.71e96d08\",\n" +
" \"validity\": \"0\",\n" +
" \"voiceCategory\": \"None\",\n" +
" \"wave\": \"1\",\n" +
" \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
" },\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"businessService\": \"0.0\",\n" +
" \"eligibleAssets\": [\n" +
" \"306945218770\"\n" +
" ],\n" +
" \"id\": \"000003588\",\n" +
" \"loyaltyCampaignId\": \"NA\",\n" +
" \"noOfRecurrance\": \"0\",\n" +
" \"notificationMessage\": \"None\",\n" +
" \"offerAudienceLevel\": \"msisdn\",\n" +
" \"offerCode1\": \"000003588\",\n" +
" \"offerName\": \"CCMS loyalty postpay addon\",\n" +
" \"postpayProduct\": \"0.0\",\n" +
" \"price\": \"None\",\n" +
" \"productType\": \"MOBILE ADDON\",\n" +
" \"provDuration\": \"0.0\",\n" +
" \"score\": \"50\",\n" +
" \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" +
" \"validity\": \"0\",\n" +
" \"wave\": \"1\",\n" +
" \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
" },\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"dataCategory\": \"Data\",\n" +
" \"dataValue\": \"None\",\n" +
" \"discount\": \"None\",\n" +
" \"eligibleAssets\": [\n" +
" \"306945218770\"\n" +
" ],\n" +
" \"id\": \"000003608\",\n" +
" \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" +
" \"minsValue\": \"None\",\n" +
" \"noOfRecurrance\": \"None\",\n" +
" \"notificationMessage\": \"None\",\n" +
" \"offerAudienceLevel\": \"msisdn\",\n" +
" \"offerCode1\": \"000003608\",\n" +
" \"offerName\": \"CCMS loyalty gifts4u v1\",\n" +
" \"price\": \"None\",\n" +
" \"productType\": \"White Label\",\n" +
" \"provDuration\": \"0.0\",\n" +
" \"provStepValueMins\": \"None\",\n" +
" \"score\": \"50\",\n" +
" \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" +
" \"validity\": \"0\",\n" +
" \"voiceCategory\": \"None\",\n" +
" \"wave\": \"1\",\n" +
" \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
" },\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"businessService\": \"0.0\",\n" +
" \"eligibleAssets\": [\n" +
" \"306945218770\"\n" +
" ],\n" +
" \"id\": \"000003612\",\n" +
" \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" +
" \"noOfRecurrance\": \"0\",\n" +
" \"notificationMessage\": \"None\",\n" +
" \"offerAudienceLevel\": \"msisdn\",\n" +
" \"offerCode1\": \"000003612\",\n" +
" \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" +
" \"postpayProduct\": \"0.0\",\n" +
" \"price\": \"None\",\n" +
" \"productType\": \"MOBILE ADDON\",\n" +
" \"provDuration\": \"0.0\",\n" +
" \"score\": \"50\",\n" +
" \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" +
" \"validity\": \"0\",\n" +
" \"wave\": \"1\",\n" +
" \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
" },\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"dataCategory\": \"Data\",\n" +
" \"dataValue\": \"None\",\n" +
" \"discount\": \"None\",\n" +
" \"eligibleAssets\": [\n" +
" \"306945218770\"\n" +
" ],\n" +
" \"id\": \"000003610\",\n" +
" \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" +
" \"minsValue\": \"None\",\n" +
" \"noOfRecurrance\": \"None\",\n" +
" \"notificationMessage\": \"None\",\n" +
" \"offerAudienceLevel\": \"msisdn\",\n" +
" \"offerCode1\": \"000003610\",\n" +
" \"offerName\": \"CCMS loyalty more4u v1\",\n" +
" \"price\": \"20\",\n" +
" \"productType\": \"White Label\",\n" +
" \"provDuration\": \"7.0\",\n" +
" \"provStepValueMins\": \"None\",\n" +
" \"score\": \"60\",\n" +
" \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" +
" \"validity\": \"0\",\n" +
" \"voiceCategory\": \"None\",\n" +
" \"wave\": \"1\",\n" +
" \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
" },\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"businessService\": \"0.0\",\n" +
" \"eligibleAssets\": [\n" +
" \"306945218770\"\n" +
" ],\n" +
" \"id\": \"000003614\",\n" +
" \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" +
" \"noOfRecurrance\": \"0\",\n" +
" \"notificationMessage\": \"None\",\n" +
" \"offerAudienceLevel\": \"msisdn\",\n" +
" \"offerCode1\": \"000003614\",\n" +
" \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" +
" \"postpayProduct\": \"0.0\",\n" +
" \"price\": \"None\",\n" +
" \"productType\": \"MOBILE ADDON\",\n" +
" \"provDuration\": \"0.0\",\n" +
" \"score\": \"50\",\n" +
" \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" +
" \"validity\": \"0\",\n" +
" \"wave\": \"1\",\n" +
" \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
" },\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"eligibleAssets\": [],\n" +
" \"id\": \"000003586\",\n" +
" \"loyaltyCampaignId\": \"NA\",\n" +
" \"offerAudienceLevel\": \"guid\",\n" +
" \"offerCode1\": \"000003586\",\n" +
" \"offerName\": \"CCMS loyalty offer 6\",\n" +
" \"productType\": \"GENERIC\",\n" +
" \"score\": \"50\",\n" +
" \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
" \"validity\": \"0\",\n" +
" \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
" },\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"eligibleAssets\": [],\n" +
" \"id\": \"000003595\",\n" +
" \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
" \"offerAudienceLevel\": \"guid\",\n" +
" \"offerCode1\": \"000003595\",\n" +
" \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
" \"productType\": \"GENERIC\",\n" +
" \"score\": \"50\",\n" +
" \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" +
" \"validity\": \"0\",\n" +
" \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
" },\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"eligibleAssets\": [],\n" +
" \"id\": \"000003595\",\n" +
" \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
" \"offerAudienceLevel\": \"guid\",\n" +
" \"offerCode1\": \"000003595\",\n" +
" \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
" \"productType\": \"GENERIC\",\n" +
" \"score\": \"50\",\n" +
" \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" +
" \"validity\": \"0\",\n" +
" \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
" },\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"eligibleAssets\": [],\n" +
" \"id\": \"000003586\",\n" +
" \"loyaltyCampaignId\": \"NA\",\n" +
" \"offerAudienceLevel\": \"guid\",\n" +
" \"offerCode1\": \"000003586\",\n" +
" \"offerName\": \"CCMS loyalty offer 6\",\n" +
" \"productType\": \"GENERIC\",\n" +
" \"score\": \"50\",\n" +
" \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
" \"validity\": \"0\",\n" +
" \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
" },\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"eligibleAssets\": [],\n" +
" \"id\": \"000003586\",\n" +
" \"loyaltyCampaignId\": \"NA\",\n" +
" \"offerAudienceLevel\": \"guid\",\n" +
" \"offerCode1\": \"000003586\",\n" +
" \"offerName\": \"CCMS loyalty offer 6\",\n" +
" \"productType\": \"GENERIC\",\n" +
" \"score\": \"50\",\n" +
" \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
" \"validity\": \"0\",\n" +
" \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
" },\n" +
" {\n" +
" \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" +
" \"businessAdditionalId\": \"\",\n" +
" \"eligibleAssets\": [],\n" +
" \"id\": \"000003595\",\n" +
" \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
" \"offerAudienceLevel\": \"guid\",\n" +
" \"offerCode1\": \"000003595\",\n" +
" \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
" \"productType\": \"GENERIC\",\n" +
" \"score\": \"50\",\n" +
" \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" +
" \"validity\": \"0\",\n" +
" \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
" }\n" +
" ]");
} catch (JSONException e) {
e.printStackTrace();
}
if (jArray != null && jArray.length() > 0) {
for (int i = 0; i < jArray.length(); i++) {
JSONObject jobj = new JSONObject();
jobj = jArray.optJSONObject(i);
if (jobj != null) {
LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj);
list.add(model);
}
}
}
WarplyManagerHelper.setCCMSLoyaltyCampaigns(list);
// ArrayList<LoyaltyContextualOfferModel> list = new ArrayList<>();
// JSONArray jArray = null;
// try {
// jArray = new JSONArray("[\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"dataCategory\": \"Data\",\n" +
// " \"dataValue\": \"None\",\n" +
// " \"discount\": \"None\",\n" +
// " \"eligibleAssets\": [\n" +
// " \"306945218770\"\n" +
// " ],\n" +
// " \"id\": \"000003590\",\n" +
// " \"loyaltyCampaignId\": \"NA\",\n" +
// " \"minsValue\": \"None\",\n" +
// " \"noOfRecurrance\": \"None\",\n" +
// " \"notificationMessage\": \"None\",\n" +
// " \"offerAudienceLevel\": \"msisdn\",\n" +
// " \"offerCode1\": \"000003590\",\n" +
// " \"offerName\": \"CCMS loyalty white label\",\n" +
// " \"price\": \"None\",\n" +
// " \"productType\": \"White Label\",\n" +
// " \"provDuration\": \"0.0\",\n" +
// " \"provStepValueMins\": \"None\",\n" +
// " \"score\": \"50\",\n" +
// " \"treatmentCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" +
// " \"validity\": \"0\",\n" +
// " \"voiceCategory\": \"None\",\n" +
// " \"wave\": \"1\",\n" +
// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
// " },\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"dataCategory\": \"Data\",\n" +
// " \"dataValue\": \"None\",\n" +
// " \"discount\": \"None\",\n" +
// " \"eligibleAssets\": [\n" +
// " \"306945218770\"\n" +
// " ],\n" +
// " \"id\": \"000003599\",\n" +
// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
// " \"minsValue\": \"None\",\n" +
// " \"noOfRecurrance\": \"None\",\n" +
// " \"notificationMessage\": \"None\",\n" +
// " \"offerAudienceLevel\": \"msisdn\",\n" +
// " \"offerCode1\": \"000003599\",\n" +
// " \"offerName\": \"CCMS loyalty white label with campaignId\",\n" +
// " \"price\": \"None\",\n" +
// " \"productType\": \"White Label\",\n" +
// " \"provDuration\": \"0.0\",\n" +
// " \"provStepValueMins\": \"None\",\n" +
// " \"score\": \"50\",\n" +
// " \"treatmentCode\": \"51ed.e10.2c006f18.71e96d08\",\n" +
// " \"validity\": \"0\",\n" +
// " \"voiceCategory\": \"None\",\n" +
// " \"wave\": \"1\",\n" +
// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
// " },\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"businessService\": \"0.0\",\n" +
// " \"eligibleAssets\": [\n" +
// " \"306945218770\"\n" +
// " ],\n" +
// " \"id\": \"000003588\",\n" +
// " \"loyaltyCampaignId\": \"NA\",\n" +
// " \"noOfRecurrance\": \"0\",\n" +
// " \"notificationMessage\": \"None\",\n" +
// " \"offerAudienceLevel\": \"msisdn\",\n" +
// " \"offerCode1\": \"000003588\",\n" +
// " \"offerName\": \"CCMS loyalty postpay addon\",\n" +
// " \"postpayProduct\": \"0.0\",\n" +
// " \"price\": \"None\",\n" +
// " \"productType\": \"MOBILE ADDON\",\n" +
// " \"provDuration\": \"0.0\",\n" +
// " \"score\": \"50\",\n" +
// " \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" +
// " \"validity\": \"0\",\n" +
// " \"wave\": \"1\",\n" +
// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
// " },\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"dataCategory\": \"Data\",\n" +
// " \"dataValue\": \"None\",\n" +
// " \"discount\": \"None\",\n" +
// " \"eligibleAssets\": [\n" +
// " \"306945218770\"\n" +
// " ],\n" +
// " \"id\": \"000003608\",\n" +
// " \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" +
// " \"minsValue\": \"None\",\n" +
// " \"noOfRecurrance\": \"None\",\n" +
// " \"notificationMessage\": \"None\",\n" +
// " \"offerAudienceLevel\": \"msisdn\",\n" +
// " \"offerCode1\": \"000003608\",\n" +
// " \"offerName\": \"CCMS loyalty gifts4u v1\",\n" +
// " \"price\": \"None\",\n" +
// " \"productType\": \"White Label\",\n" +
// " \"provDuration\": \"0.0\",\n" +
// " \"provStepValueMins\": \"None\",\n" +
// " \"score\": \"50\",\n" +
// " \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" +
// " \"validity\": \"0\",\n" +
// " \"voiceCategory\": \"None\",\n" +
// " \"wave\": \"1\",\n" +
// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
// " },\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"businessService\": \"0.0\",\n" +
// " \"eligibleAssets\": [\n" +
// " \"306945218770\"\n" +
// " ],\n" +
// " \"id\": \"000003612\",\n" +
// " \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" +
// " \"noOfRecurrance\": \"0\",\n" +
// " \"notificationMessage\": \"None\",\n" +
// " \"offerAudienceLevel\": \"msisdn\",\n" +
// " \"offerCode1\": \"000003612\",\n" +
// " \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" +
// " \"postpayProduct\": \"0.0\",\n" +
// " \"price\": \"None\",\n" +
// " \"productType\": \"MOBILE ADDON\",\n" +
// " \"provDuration\": \"0.0\",\n" +
// " \"score\": \"50\",\n" +
// " \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" +
// " \"validity\": \"0\",\n" +
// " \"wave\": \"1\",\n" +
// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
// " },\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"dataCategory\": \"Data\",\n" +
// " \"dataValue\": \"None\",\n" +
// " \"discount\": \"None\",\n" +
// " \"eligibleAssets\": [\n" +
// " \"306945218770\"\n" +
// " ],\n" +
// " \"id\": \"000003610\",\n" +
// " \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" +
// " \"minsValue\": \"None\",\n" +
// " \"noOfRecurrance\": \"None\",\n" +
// " \"notificationMessage\": \"None\",\n" +
// " \"offerAudienceLevel\": \"msisdn\",\n" +
// " \"offerCode1\": \"000003610\",\n" +
// " \"offerName\": \"CCMS loyalty more4u v1\",\n" +
// " \"price\": \"20\",\n" +
// " \"productType\": \"White Label\",\n" +
// " \"provDuration\": \"7.0\",\n" +
// " \"provStepValueMins\": \"None\",\n" +
// " \"score\": \"60\",\n" +
// " \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" +
// " \"validity\": \"0\",\n" +
// " \"voiceCategory\": \"None\",\n" +
// " \"wave\": \"1\",\n" +
// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
// " },\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"businessService\": \"0.0\",\n" +
// " \"eligibleAssets\": [\n" +
// " \"306945218770\"\n" +
// " ],\n" +
// " \"id\": \"000003614\",\n" +
// " \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" +
// " \"noOfRecurrance\": \"0\",\n" +
// " \"notificationMessage\": \"None\",\n" +
// " \"offerAudienceLevel\": \"msisdn\",\n" +
// " \"offerCode1\": \"000003614\",\n" +
// " \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" +
// " \"postpayProduct\": \"0.0\",\n" +
// " \"price\": \"None\",\n" +
// " \"productType\": \"MOBILE ADDON\",\n" +
// " \"provDuration\": \"0.0\",\n" +
// " \"score\": \"50\",\n" +
// " \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" +
// " \"validity\": \"0\",\n" +
// " \"wave\": \"1\",\n" +
// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
// " },\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"eligibleAssets\": [],\n" +
// " \"id\": \"000003586\",\n" +
// " \"loyaltyCampaignId\": \"NA\",\n" +
// " \"offerAudienceLevel\": \"guid\",\n" +
// " \"offerCode1\": \"000003586\",\n" +
// " \"offerName\": \"CCMS loyalty offer 6\",\n" +
// " \"productType\": \"GENERIC\",\n" +
// " \"score\": \"50\",\n" +
// " \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
// " \"validity\": \"0\",\n" +
// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
// " },\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"eligibleAssets\": [],\n" +
// " \"id\": \"000003595\",\n" +
// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
// " \"offerAudienceLevel\": \"guid\",\n" +
// " \"offerCode1\": \"000003595\",\n" +
// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
// " \"productType\": \"GENERIC\",\n" +
// " \"score\": \"50\",\n" +
// " \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" +
// " \"validity\": \"0\",\n" +
// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" +
// " },\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"eligibleAssets\": [],\n" +
// " \"id\": \"000003595\",\n" +
// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
// " \"offerAudienceLevel\": \"guid\",\n" +
// " \"offerCode1\": \"000003595\",\n" +
// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
// " \"productType\": \"GENERIC\",\n" +
// " \"score\": \"50\",\n" +
// " \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" +
// " \"validity\": \"0\",\n" +
// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
// " },\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"eligibleAssets\": [],\n" +
// " \"id\": \"000003586\",\n" +
// " \"loyaltyCampaignId\": \"NA\",\n" +
// " \"offerAudienceLevel\": \"guid\",\n" +
// " \"offerCode1\": \"000003586\",\n" +
// " \"offerName\": \"CCMS loyalty offer 6\",\n" +
// " \"productType\": \"GENERIC\",\n" +
// " \"score\": \"50\",\n" +
// " \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
// " \"validity\": \"0\",\n" +
// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
// " },\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"eligibleAssets\": [],\n" +
// " \"id\": \"000003586\",\n" +
// " \"loyaltyCampaignId\": \"NA\",\n" +
// " \"offerAudienceLevel\": \"guid\",\n" +
// " \"offerCode1\": \"000003586\",\n" +
// " \"offerName\": \"CCMS loyalty offer 6\",\n" +
// " \"productType\": \"GENERIC\",\n" +
// " \"score\": \"50\",\n" +
// " \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" +
// " \"validity\": \"0\",\n" +
// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
// " },\n" +
// " {\n" +
// " \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" +
// " \"businessAdditionalId\": \"\",\n" +
// " \"eligibleAssets\": [],\n" +
// " \"id\": \"000003595\",\n" +
// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" +
// " \"offerAudienceLevel\": \"guid\",\n" +
// " \"offerCode1\": \"000003595\",\n" +
// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" +
// " \"productType\": \"GENERIC\",\n" +
// " \"score\": \"50\",\n" +
// " \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" +
// " \"validity\": \"0\",\n" +
// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
// " }\n" +
// " ]");
// } catch (JSONException e) {
// e.printStackTrace();
// }
// if (jArray != null && jArray.length() > 0) {
// for (int i = 0; i < jArray.length(); i++) {
// JSONObject jobj = new JSONObject();
// jobj = jArray.optJSONObject(i);
// if (jobj != null) {
// LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj);
// list.add(model);
// }
// }
// }
// WarplyManagerHelper.setCCMSLoyaltyCampaigns(list);
if (result.size() >= 0) {
objectSerializer.serialize(result, File.separator + requestSignature);
warplyPreferences.saveInboxLastCachedTimeStamp(requestSignature, System.currentTimeMillis());
......
......@@ -37,6 +37,10 @@ public class LoyaltyContextualOfferModel {
private String wave;
private String validity;
private String offerAudienceLevel;
private String imageUrl;
private String title;
private String subtitle;
private String description;
public LoyaltyContextualOfferModel() {
......@@ -67,6 +71,10 @@ public class LoyaltyContextualOfferModel {
this.wave = "";
this.validity = "";
this.offerAudienceLevel = "";
this.imageUrl = "";
this.title = "";
this.subtitle = "";
this.description = "";
}
public LoyaltyContextualOfferModel(JSONObject jobj) {
......@@ -325,4 +333,36 @@ public class LoyaltyContextualOfferModel {
public void setOfferAudienceLevel(String offerAudienceLevel) {
this.offerAudienceLevel = offerAudienceLevel;
}
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSubtitle() {
return subtitle;
}
public void setSubtitle(String subtitle) {
this.subtitle = subtitle;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
......