Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2022-09-14 18:32:33 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
22acba15a3637f86724b567c8ab1ad8e0f2627cd
22acba15
1 parent
1b42f05f
new keys
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
617 additions
and
615 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/activities/GiftsForYouActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/ShopsActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
warply_android_sdk/src/main/res/layout/activity_loyalty_wallet.xml
warply_android_sdk/src/main/java/ly/warp/sdk/activities/GiftsForYouActivity.java
View file @
22acba1
...
...
@@ -96,9 +96,9 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
}
mergeDatasets
(
mValuesList
,
mSeasonalList
,
mContextualList
mContextualList
,
mValuesList
);
mIvBack
=
findViewById
(
R
.
id
.
iv_list_close
);
...
...
@@ -167,9 +167,9 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
}
mergeDatasets
(
mValuesList
,
mSeasonalList
,
mContextualList
mContextualList
,
mValuesList
);
runOnUiThread
(()
->
{
...
...
@@ -429,21 +429,10 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
}
}
private
void
mergeDatasets
(
ArrayList
<
Campaign
>
campaign
List
,
ArrayList
<
Loyalty
GiftsForYouPackage
>
seasonal
List
,
ArrayList
<
LoyaltyContextualOfferModel
>
ccms
List
)
{
private
void
mergeDatasets
(
ArrayList
<
LoyaltyGiftsForYouPackage
>
seasonal
List
,
ArrayList
<
Loyalty
ContextualOfferModel
>
ccms
List
,
ArrayList
<
Campaign
>
campaign
List
)
{
mData
.
clear
();
if
(
campaignList
!=
null
&&
campaignList
.
size
()
>
0
)
{
Log
.
v
(
"GIFTS_FOR_YOU"
,
String
.
valueOf
(
campaignList
.
size
()));
for
(
Campaign
campaign
:
campaignList
)
{
MergedGifts
data
=
new
MergedGifts
();
data
.
setCampaign
(
campaign
);
data
.
setSeasonalList
(
null
);
data
.
setDataType
(
1
);
mData
.
add
(
data
);
}
}
if
(
seasonalList
!=
null
&&
seasonalList
.
size
()
>
0
)
{
Log
.
v
(
"SEASONAL"
,
String
.
valueOf
(
seasonalList
.
size
()));
for
(
LoyaltyGiftsForYouPackage
seasonal
:
seasonalList
)
{
...
...
@@ -466,6 +455,17 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
mData
.
add
(
data
);
}
}
if
(
campaignList
!=
null
&&
campaignList
.
size
()
>
0
)
{
Log
.
v
(
"GIFTS_FOR_YOU"
,
String
.
valueOf
(
campaignList
.
size
()));
for
(
Campaign
campaign
:
campaignList
)
{
MergedGifts
data
=
new
MergedGifts
();
data
.
setCampaign
(
campaign
);
data
.
setSeasonalList
(
null
);
data
.
setDataType
(
1
);
mData
.
add
(
data
);
}
}
}
private
void
filterItems
()
{
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
View file @
22acba1
...
...
@@ -103,43 +103,43 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener {
mLlEmptyWallet
=
findViewById
(
R
.
id
.
ll_empty_wallet
);
mLlActiveCodesView
=
findViewById
(
R
.
id
.
ll_active_deals_codes_view
);
ArrayList
<
ActiveDFYCouponModel
>
dlist
=
new
ArrayList
<>();
ActiveDFYCouponModel
model
=
new
ActiveDFYCouponModel
();
model
.
setCode
(
"123456789"
);
model
.
setValue
(
"10"
);
model
.
setDate
(
"2022-09-14 20:20"
);
dlist
.
add
(
model
);
model
=
new
ActiveDFYCouponModel
();
model
.
setCode
(
"123456780"
);
model
.
setValue
(
"10"
);
model
.
setDate
(
"2022-09-14 20:20"
);
dlist
.
add
(
model
);
model
=
new
ActiveDFYCouponModel
();
model
.
setCode
(
"123456781"
);
model
.
setValue
(
"10"
);
model
.
setDate
(
"2022-09-14 20:20"
);
dlist
.
add
(
model
);
model
=
new
ActiveDFYCouponModel
();
model
.
setCode
(
"123456782"
);
model
.
setValue
(
"10"
);
model
.
setDate
(
"2022-09-14 20:20"
);
dlist
.
add
(
model
);
model
=
new
ActiveDFYCouponModel
();
model
.
setCode
(
"123456783"
);
model
.
setValue
(
"10"
);
model
.
setDate
(
"2022-09-14 20:20"
);
dlist
.
add
(
model
);
model
=
new
ActiveDFYCouponModel
();
model
.
setCode
(
"123456784"
);
model
.
setValue
(
"10"
);
model
.
setDate
(
"2022-09-14 20:20"
);
dlist
.
add
(
model
);
model
=
new
ActiveDFYCouponModel
();
model
.
setCode
(
"123456785"
);
model
.
setValue
(
"10"
);
model
.
setDate
(
"2022-09-14 20:20"
);
dlist
.
add
(
model
);
WarplyManagerHelper
.
setActiveDFYCoupons
(
dlist
);
//
ArrayList<ActiveDFYCouponModel> dlist = new ArrayList<>();
//
ActiveDFYCouponModel model = new ActiveDFYCouponModel();
//
model.setCode("123456789");
//
model.setValue("10");
//
model.setDate("2022-09-14 20:20");
//
dlist.add(model);
//
model = new ActiveDFYCouponModel();
//
model.setCode("123456780");
//
model.setValue("10");
//
model.setDate("2022-09-14 20:20");
//
dlist.add(model);
//
model = new ActiveDFYCouponModel();
//
model.setCode("123456781");
//
model.setValue("10");
//
model.setDate("2022-09-14 20:20");
//
dlist.add(model);
//
model = new ActiveDFYCouponModel();
//
model.setCode("123456782");
//
model.setValue("10");
//
model.setDate("2022-09-14 20:20");
//
dlist.add(model);
//
model = new ActiveDFYCouponModel();
//
model.setCode("123456783");
//
model.setValue("10");
//
model.setDate("2022-09-14 20:20");
//
dlist.add(model);
//
model = new ActiveDFYCouponModel();
//
model.setCode("123456784");
//
model.setValue("10");
//
model.setDate("2022-09-14 20:20");
//
dlist.add(model);
//
model = new ActiveDFYCouponModel();
//
model.setCode("123456785");
//
model.setValue("10");
//
model.setDate("2022-09-14 20:20");
//
dlist.add(model);
//
WarplyManagerHelper.setActiveDFYCoupons(dlist);
if
(
WarplyManagerHelper
.
getActiveDFYCoupons
()
!=
null
)
{
Collections
.
sort
(
WarplyManagerHelper
.
getActiveDFYCoupons
(),
new
Comparator
<
ActiveDFYCouponModel
>()
{
...
...
@@ -402,7 +402,8 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener {
mTvActiveTitle
.
setText
(
String
.
format
(
getString
(
R
.
string
.
cos_active_deals_plural
),
String
.
valueOf
(
WarplyManagerHelper
.
getActiveDFYCoupons
().
size
())));
mTvActiveCode
.
setVisibility
(
View
.
GONE
);
for
(
ActiveDFYCouponModel
dealsItem
:
WarplyManagerHelper
.
getActiveDFYCoupons
())
{
//TODO fix logic
for
(
ActiveDFYCouponModel
dealsItem
:
WarplyManagerHelper
.
getActiveDFYCoupons
().
subList
(
0
,
4
))
{
LayoutInflater
vi
=
(
LayoutInflater
)
getApplicationContext
().
getSystemService
(
Context
.
LAYOUT_INFLATER_SERVICE
);
LinearLayout
v
=
(
LinearLayout
)
vi
.
inflate
(
R
.
layout
.
item_selectable
,
null
);
TextView
textView
=
(
TextView
)
v
.
findViewById
(
R
.
id
.
tv_code_copy
);
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/ShopsActivity.java
View file @
22acba1
...
...
@@ -203,7 +203,7 @@ public class ShopsActivity extends FragmentActivity implements View.OnClickListe
pinName
.
setText
(
merch
.
getName
());
TextView
pinDays
=
(
TextView
)
bottomSheetDialog
.
findViewById
(
R
.
id
.
tv_pin_days
);
pinDays
.
setText
(
merch
.
getSnippet
());
pinDays
.
setText
(
merch
.
getSnippet
());
//TODO: wrong getter
TextView
pinTel
=
(
TextView
)
bottomSheetDialog
.
findViewById
(
R
.
id
.
tv_pin_tel
);
pinTel
.
setText
(
merch
.
getTelephone
());
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
View file @
22acba1
...
...
@@ -200,7 +200,10 @@ public class WarplyManagerHelper {
mAlertDialogSharing
=
new
AlertDialog
.
Builder
(
context
)
.
setTitle
(
R
.
string
.
cos_dlg_success_title
)
.
setMessage
(
alertTitle
)
.
setPositiveButton
(
R
.
string
.
cos_dlg_positive_button
,
(
dialogPositive
,
whichPositive
)
->
{
.
setNegativeButton
(
R
.
string
.
cos_dlg_negative_button
,
(
dialogPositive
,
whichPositive
)
->
{
rejectSharingDialog
(
context
,
sharingId
);
})
.
setPositiveButton
(
R
.
string
.
cos_dlg_positive_button
,
(
dialogNegative
,
whichNegative
)
->
{
WarplyManager
.
cosmoteRetrieveSharing
(
new
CosmoteRetrieveSharingRequest
()
.
setSharingId
(
sharingId
)
.
setAccept
(
true
),
...
...
@@ -233,9 +236,6 @@ public class WarplyManagerHelper {
}
});
})
.
setNegativeButton
(
R
.
string
.
cos_dlg_negative_button
,
(
dialogNegative
,
whichNegative
)
->
{
rejectSharingDialog
(
context
,
sharingId
);
})
.
show
();
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
View file @
22acba1
...
...
@@ -1469,556 +1469,556 @@ public class WarplyManager {
WarplyManagerHelper
.
setCampaignList
(
mNewCampaignList
);
WarplyManagerHelper
.
setCarouselList
(
campaignCarouselList
);
//
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" +
//
" \"306944333488\",\n" +
//
" \"306932222490\",\n" +
//
" \"306996824010\",\n" +
//
" \"306972713201\",\n" +
//
" \"306942496252\",\n" +
//
" \"306977316716\",\n" +
//
" \"306945433100\",\n" +
//
" \"306977403986\",\n" +
//
" \"306936581495\",\n" +
//
" \"306980689662\",\n" +
//
" \"306970101490\",\n" +
//
" \"306973396329\",\n" +
//
" \"306972577064\",\n" +
//
" \"306974923219\",\n" +
//
" \"306977513761\",\n" +
//
" \"306984220987\",\n" +
//
" \"306979949205\",\n" +
//
" \"306943134127\",\n" +
//
" \"306970437794\",\n" +
//
" \"306932535319\",\n" +
//
" \"306974063133\",\n" +
//
" \"306932520323\",\n" +
//
" \"306978733823\",\n" +
//
" \"306985995420\",\n" +
//
" \"306983879555\",\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\": \"546d.ea1.ffffffffcc4c34b3.c64ed53\",\n" +
//
" \"businessAdditionalId\": \"\",\n" +
//
" \"dataCategory\": \"Data\",\n" +
//
" \"dataValue\": \"1\",\n" +
//
" \"description\": \"5days1000 3744\",\n" +
//
" \"discount\": \"None\",\n" +
//
" \"duration\": \"5\",\n" +
//
" \"eligibleAssets\": [],\n" +
//
" \"giftType\": \"GB\",\n" +
//
" \"giftValue\": \"1\",\n" +
//
" \"id\": \"000003744\",\n" +
//
" \"imageOfferUrl\": \"https://uatatg.cosmote.gr/images/ContexualOffers//testOffer/x3_detailed_default.png\",\n" +
//
" \"imageUrl\": \"https://uatatg.cosmote.gr/images/ContexualOffers//testOffer/x3_store_default.png\",\n" +
//
" \"loyaltyCampaignId\": \"NA\",\n" +
//
" \"minsValue\": \"None\",\n" +
//
" \"noOfRecurrance\": \"5\",\n" +
//
" \"notificationMessage\": \"5days1000 3744\",\n" +
//
" \"offerAudienceLevel\": \"guid\",\n" +
//
" \"offerCode1\": \"000003744\",\n" +
//
" \"offerName\": \"White_Label_5days1000 3744\",\n" +
//
" \"price\": \"0\",\n" +
//
" \"productType\": \"White Label\",\n" +
//
" \"provDuration\": \"1.0\",\n" +
//
" \"score\": \"50\",\n" +
//
" \"sessionId\": \"COSMOTE_APP_BALANCES.6945251078.20220908115231\",\n" +
//
" \"treatmentCode\": \"546d.ea1.ffffffffcc4c34b3.c64ed53\",\n" +
//
" \"validity\": \"0\",\n" +
//
" \"wave\": \"1\",\n" +
//
" \"voiceCategory\": \"None\",\n" +
//
" \"validity\": \"5\",\n" +
//
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
//
" \"title\": \"White_Label_5days1000 3744\",\n" +
//
" \"titleOffer\": \"5days1000 3744\",\n" +
//
" \"termsAndConditions\": \"5days1000 3744\",\n" +
//
" \"subtitle\": \"5days1000 3744\",\n" +
//
" \"description\": \"Test6\",\n" +
//
" \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
//
" },\n" +
//
" {\n" +
//
" \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n" +
//
" \"businessAdditionalId\": \"\",\n" +
//
" \"dataCategory\": \"Data\",\n" +
//
" \"dataValue\": \"233\",\n" +
//
" \"discount\": \"None\",\n" +
//
" \"eligibleAssets\": [\n" +
//
" \"306945218770\",\n" +
//
" \"306944333488\",\n" +
//
" \"306932222490\",\n" +
//
" \"306996824010\",\n" +
//
" \"306972713201\",\n" +
//
" \"306942496252\",\n" +
//
" \"306977316716\",\n" +
//
" \"306945433100\",\n" +
//
" \"306977403986\",\n" +
//
" \"306936581495\",\n" +
//
" \"306980689662\",\n" +
//
" \"306970101490\",\n" +
//
" \"306973396329\",\n" +
//
" \"306972577064\",\n" +
//
" \"306974923219\",\n" +
//
" \"306977513761\",\n" +
//
" \"306984220987\",\n" +
//
" \"306979949205\",\n" +
//
" \"306943134127\",\n" +
//
" \"306970437794\",\n" +
//
" \"306932535319\",\n" +
//
" \"306974063133\",\n" +
//
" \"306932520323\",\n" +
//
" \"306978733823\",\n" +
//
" \"306985995420\",\n" +
//
" \"306983879555\",\n" +
//
" ],\n" +
//
" \"id\": \"000003599\",\n" +
//
" \"loyaltyCampaignId\": \"9a92d445956145f6bbc5cd20cef543b9\",\n" + //c5cc5f4f65624f47a580b720233fa60d
//
" \"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" +
//
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
//
" \"title\": \"Title External\",\n" +
//
" \"subtitle\": \"Subtitle MFY second\",\n" +
//
" \"description\": \"Description Internal\",\n" +
//
" \"message\": \"Message MFY third\",\n" +
//
" \"titleOffer\": \"Title Internal\",\n" +
//
" \"imageOfferUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
//
" \"duration\": \"gia 7 imeres\",\n" +
//
" \"giftType\": \"Internet\",\n" +
//
" \"giftValue\": \"1 GB\",\n" +
//
" \"termsAndConditions\": \"Terms and Conditions Lorem Ipsum Dolores sit amen\",\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" +
//
" \"306944333488\",\n" +
//
" \"306932222490\",\n" +
//
" \"306996824010\",\n" +
//
" \"306972713201\",\n" +
//
" \"306942496252\",\n" +
//
" \"306977316716\",\n" +
//
" \"306945433100\",\n" +
//
" \"306977403986\",\n" +
//
" \"306936581495\",\n" +
//
" \"306980689662\",\n" +
//
" \"306970101490\",\n" +
//
" \"306973396329\",\n" +
//
" \"306972577064\",\n" +
//
" \"306974923219\",\n" +
//
" \"306977513761\",\n" +
//
" \"306984220987\",\n" +
//
" \"306979949205\",\n" +
//
" \"306943134127\",\n" +
//
" \"306970437794\",\n" +
//
" \"306932535319\",\n" +
//
" \"306974063133\",\n" +
//
" \"306932520323\",\n" +
//
" \"306978733823\",\n" +
//
" \"306985995420\",\n" +
//
" \"306983879555\",\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" +
//
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
//
" \"title\": \"Test2\",\n" +
//
" \"subtitle\": \"Test2\",\n" +
//
" \"description\": \"Test2\",\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" +
//
" \"306944333488\",\n" +
//
" \"306932222490\",\n" +
//
" \"306996824010\",\n" +
//
" \"306972713201\",\n" +
//
" \"306942496252\",\n" +
//
" \"306977316716\",\n" +
//
" \"306945433100\",\n" +
//
" \"306977403986\",\n" +
//
" \"306936581495\",\n" +
//
" \"306980689662\",\n" +
//
" \"306970101490\",\n" +
//
" \"306973396329\",\n" +
//
" \"306972577064\",\n" +
//
" \"306974923219\",\n" +
//
" \"306977513761\",\n" +
//
" \"306984220987\",\n" +
//
" \"306979949205\",\n" +
//
" \"306943134127\",\n" +
//
" \"306970437794\",\n" +
//
" \"306932535319\",\n" +
//
" \"306974063133\",\n" +
//
" \"306932520323\",\n" +
//
" \"306978733823\",\n" +
//
" \"306985995420\",\n" +
//
" \"306983879555\",\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" +
//
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
//
" \"title\": \"Test3\",\n" +
//
" \"subtitle\": \"Test3\",\n" +
//
" \"description\": \"Test3\",\n" +
//
" \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" +
//
" },\n" +
//
" {\n" +
//
" \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" +
//
" \"businessAdditionalId\": \"\",\n" +
//
" \"businessService\": \"0.0\",\n" +
//
" \"eligibleAssets\": [\n" +
//
" \"306945218770\",\n" +
//
" \"306944333488\",\n" +
//
" \"306932222490\",\n" +
//
" \"306996824010\",\n" +
//
" \"306972713201\",\n" +
//
" \"306942496252\",\n" +
//
" \"306977316716\",\n" +
//
" \"306945433100\",\n" +
//
" \"306977403986\",\n" +
//
" \"306936581495\",\n" +
//
" \"306980689662\",\n" +
//
" \"306970101490\",\n" +
//
" \"306973396329\",\n" +
//
" \"306972577064\",\n" +
//
" \"306974923219\",\n" +
//
" \"306977513761\",\n" +
//
" \"306984220987\",\n" +
//
" \"306979949205\",\n" +
//
" \"306943134127\",\n" +
//
" \"306970437794\",\n" +
//
" \"306932535319\",\n" +
//
" \"306974063133\",\n" +
//
" \"306932520323\",\n" +
//
" \"306978733823\",\n" +
//
" \"306985995420\",\n" +
//
" \"306983879555\",\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" +
//
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
//
" \"title\": \"Test4\",\n" +
//
" \"subtitle\": \"Test4\",\n" +
//
" \"description\": \"Test4\",\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" +
//
" \"306944333488\",\n" +
//
" \"306932222490\",\n" +
//
" \"306996824010\",\n" +
//
" \"306972713201\",\n" +
//
" \"306942496252\",\n" +
//
" \"306977316716\",\n" +
//
" \"306945433100\",\n" +
//
" \"306977403986\",\n" +
//
" \"306936581495\",\n" +
//
" \"306980689662\",\n" +
//
" \"306970101490\",\n" +
//
" \"306973396329\",\n" +
//
" \"306972577064\",\n" +
//
" \"306974923219\",\n" +
//
" \"306977513761\",\n" +
//
" \"306984220987\",\n" +
//
" \"306979949205\",\n" +
//
" \"306943134127\",\n" +
//
" \"306970437794\",\n" +
//
" \"306932535319\",\n" +
//
" \"306974063133\",\n" +
//
" \"306932520323\",\n" +
//
" \"306978733823\",\n" +
//
" \"306985995420\",\n" +
//
" \"306983879555\",\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" +
//
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
//
" \"title\": \"Test5\",\n" +
//
" \"subtitle\": \"Test5\",\n" +
//
" \"description\": \"Test5\",\n" +
//
" \"zone\": \"COSMOTE_APP_MORE4U\"\n" +
//
" },\n" +
//
" {\n" +
//
" \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" +
//
" \"businessAdditionalId\": \"\",\n" +
//
" \"businessService\": \"0.0\",\n" +
//
" \"eligibleAssets\": [\n" +
//
" \"306945218770\",\n" +
//
" \"306944333488\",\n" +
//
" \"306932222490\",\n" +
//
" \"306996824010\",\n" +
//
" \"306972713201\",\n" +
//
" \"306942496252\",\n" +
//
" \"306977316716\",\n" +
//
" \"306945433100\",\n" +
//
" \"306977403986\",\n" +
//
" \"306936581495\",\n" +
//
" \"306980689662\",\n" +
//
" \"306970101490\",\n" +
//
" \"306973396329\",\n" +
//
" \"306972577064\",\n" +
//
" \"306974923219\",\n" +
//
" \"306977513761\",\n" +
//
" \"306984220987\",\n" +
//
" \"306979949205\",\n" +
//
" \"306943134127\",\n" +
//
" \"306970437794\",\n" +
//
" \"306932535319\",\n" +
//
" \"306974063133\",\n" +
//
" \"306932520323\",\n" +
//
" \"306978733823\",\n" +
//
" \"306985995420\",\n" +
//
" \"306983879555\",\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" +
//
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
//
" \"title\": \"Test6\",\n" +
//
" \"subtitle\": \"Test6\",\n" +
//
" \"description\": \"Test6\",\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" +
//
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
//
" \"title\": \"Test7\",\n" +
//
" \"subtitle\": \"Test7\",\n" +
//
" \"description\": \"Test7\",\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" +
//
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
//
" \"title\": \"Test8\",\n" +
//
" \"subtitle\": \"Test8\",\n" +
//
" \"description\": \"Test8\",\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" +
//
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" +
//
" \"title\": \"Test9\",\n" +
//
" \"subtitle\": \"Test9\",\n" +
//
" \"description\": \"Test9\",\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"
+
" \"306944333488\",\n"
+
" \"306932222490\",\n"
+
" \"306996824010\",\n"
+
" \"306972713201\",\n"
+
" \"306942496252\",\n"
+
" \"306977316716\",\n"
+
" \"306945433100\",\n"
+
" \"306977403986\",\n"
+
" \"306936581495\",\n"
+
" \"306980689662\",\n"
+
" \"306970101490\",\n"
+
" \"306973396329\",\n"
+
" \"306972577064\",\n"
+
" \"306974923219\",\n"
+
" \"306977513761\",\n"
+
" \"306984220987\",\n"
+
" \"306979949205\",\n"
+
" \"306943134127\",\n"
+
" \"306970437794\",\n"
+
" \"306932535319\",\n"
+
" \"306974063133\",\n"
+
" \"306932520323\",\n"
+
" \"306978733823\",\n"
+
" \"306985995420\",\n"
+
" \"306983879555\",\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\": \"546d.ea1.ffffffffcc4c34b3.c64ed53\",\n"
+
" \"businessAdditionalId\": \"\",\n"
+
" \"dataCategory\": \"Data\",\n"
+
" \"dataValue\": \"1\",\n"
+
" \"description\": \"5days1000 3744\",\n"
+
" \"discount\": \"None\",\n"
+
" \"duration\": \"5\",\n"
+
" \"eligibleAssets\": [],\n"
+
" \"giftType\": \"GB\",\n"
+
" \"giftValue\": \"1\",\n"
+
" \"id\": \"000003744\",\n"
+
" \"imageOfferUrl\": \"https://uatatg.cosmote.gr/images/ContexualOffers//testOffer/x3_detailed_default.png\",\n"
+
" \"imageUrl\": \"https://uatatg.cosmote.gr/images/ContexualOffers//testOffer/x3_store_default.png\",\n"
+
" \"loyaltyCampaignId\": \"NA\",\n"
+
" \"minsValue\": \"None\",\n"
+
" \"noOfRecurrance\": \"5\",\n"
+
" \"notificationMessage\": \"5days1000 3744\",\n"
+
" \"offerAudienceLevel\": \"guid\",\n"
+
" \"offerCode1\": \"000003744\",\n"
+
" \"offerName\": \"White_Label_5days1000 3744\",\n"
+
" \"price\": \"0\",\n"
+
" \"productType\": \"White Label\",\n"
+
" \"provDuration\": \"1.0\",\n"
+
" \"score\": \"50\",\n"
+
" \"sessionId\": \"COSMOTE_APP_BALANCES.6945251078.20220908115231\",\n"
+
" \"treatmentCode\": \"546d.ea1.ffffffffcc4c34b3.c64ed53\",\n"
+
" \"validity\": \"0\",\n"
+
" \"wave\": \"1\",\n"
+
" \"voiceCategory\": \"None\",\n"
+
" \"validity\": \"5\",\n"
+
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n"
+
" \"title\": \"White_Label_5days1000 3744\",\n"
+
" \"titleOffer\": \"5days1000 3744\",\n"
+
" \"termsAndConditions\": \"5days1000 3744\",\n"
+
" \"subtitle\": \"5days1000 3744\",\n"
+
" \"description\": \"Test6\",\n"
+
" \"zone\": \"COSMOTE_APP_GIFTS4U\"\n"
+
" },\n"
+
" {\n"
+
" \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n"
+
" \"businessAdditionalId\": \"\",\n"
+
" \"dataCategory\": \"Data\",\n"
+
" \"dataValue\": \"233\",\n"
+
" \"discount\": \"None\",\n"
+
" \"eligibleAssets\": [\n"
+
" \"306945218770\",\n"
+
" \"306944333488\",\n"
+
" \"306932222490\",\n"
+
" \"306996824010\",\n"
+
" \"306972713201\",\n"
+
" \"306942496252\",\n"
+
" \"306977316716\",\n"
+
" \"306945433100\",\n"
+
" \"306977403986\",\n"
+
" \"306936581495\",\n"
+
" \"306980689662\",\n"
+
" \"306970101490\",\n"
+
" \"306973396329\",\n"
+
" \"306972577064\",\n"
+
" \"306974923219\",\n"
+
" \"306977513761\",\n"
+
" \"306984220987\",\n"
+
" \"306979949205\",\n"
+
" \"306943134127\",\n"
+
" \"306970437794\",\n"
+
" \"306932535319\",\n"
+
" \"306974063133\",\n"
+
" \"306932520323\",\n"
+
" \"306978733823\",\n"
+
" \"306985995420\",\n"
+
" \"306983879555\",\n"
+
" ],\n"
+
" \"id\": \"000003599\",\n"
+
" \"loyaltyCampaignId\": \"9a92d445956145f6bbc5cd20cef543b9\",\n"
+
//c5cc5f4f65624f47a580b720233fa60d
" \"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"
+
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n"
+
" \"title\": \"Title External\",\n"
+
" \"subtitle\": \"Subtitle MFY second\",\n"
+
" \"description\": \"Description Internal\",\n"
+
" \"message\": \"Message MFY third\",\n"
+
" \"titleOffer\": \"Title Internal\",\n"
+
" \"imageOfferUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n"
+
" \"duration\": \"gia 7 imeres\",\n"
+
" \"giftType\": \"Internet\",\n"
+
" \"giftValue\": \"1 GB\",\n"
+
" \"termsAndConditions\": \"Terms and Conditions Lorem Ipsum Dolores sit amen\",\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"
+
" \"306944333488\",\n"
+
" \"306932222490\",\n"
+
" \"306996824010\",\n"
+
" \"306972713201\",\n"
+
" \"306942496252\",\n"
+
" \"306977316716\",\n"
+
" \"306945433100\",\n"
+
" \"306977403986\",\n"
+
" \"306936581495\",\n"
+
" \"306980689662\",\n"
+
" \"306970101490\",\n"
+
" \"306973396329\",\n"
+
" \"306972577064\",\n"
+
" \"306974923219\",\n"
+
" \"306977513761\",\n"
+
" \"306984220987\",\n"
+
" \"306979949205\",\n"
+
" \"306943134127\",\n"
+
" \"306970437794\",\n"
+
" \"306932535319\",\n"
+
" \"306974063133\",\n"
+
" \"306932520323\",\n"
+
" \"306978733823\",\n"
+
" \"306985995420\",\n"
+
" \"306983879555\",\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"
+
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n"
+
" \"title\": \"Test2\",\n"
+
" \"subtitle\": \"Test2\",\n"
+
" \"description\": \"Test2\",\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"
+
" \"306944333488\",\n"
+
" \"306932222490\",\n"
+
" \"306996824010\",\n"
+
" \"306972713201\",\n"
+
" \"306942496252\",\n"
+
" \"306977316716\",\n"
+
" \"306945433100\",\n"
+
" \"306977403986\",\n"
+
" \"306936581495\",\n"
+
" \"306980689662\",\n"
+
" \"306970101490\",\n"
+
" \"306973396329\",\n"
+
" \"306972577064\",\n"
+
" \"306974923219\",\n"
+
" \"306977513761\",\n"
+
" \"306984220987\",\n"
+
" \"306979949205\",\n"
+
" \"306943134127\",\n"
+
" \"306970437794\",\n"
+
" \"306932535319\",\n"
+
" \"306974063133\",\n"
+
" \"306932520323\",\n"
+
" \"306978733823\",\n"
+
" \"306985995420\",\n"
+
" \"306983879555\",\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"
+
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n"
+
" \"title\": \"Test3\",\n"
+
" \"subtitle\": \"Test3\",\n"
+
" \"description\": \"Test3\",\n"
+
" \"zone\": \"COSMOTE_APP_GIFTS4U\"\n"
+
" },\n"
+
" {\n"
+
" \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n"
+
" \"businessAdditionalId\": \"\",\n"
+
" \"businessService\": \"0.0\",\n"
+
" \"eligibleAssets\": [\n"
+
" \"306945218770\",\n"
+
" \"306944333488\",\n"
+
" \"306932222490\",\n"
+
" \"306996824010\",\n"
+
" \"306972713201\",\n"
+
" \"306942496252\",\n"
+
" \"306977316716\",\n"
+
" \"306945433100\",\n"
+
" \"306977403986\",\n"
+
" \"306936581495\",\n"
+
" \"306980689662\",\n"
+
" \"306970101490\",\n"
+
" \"306973396329\",\n"
+
" \"306972577064\",\n"
+
" \"306974923219\",\n"
+
" \"306977513761\",\n"
+
" \"306984220987\",\n"
+
" \"306979949205\",\n"
+
" \"306943134127\",\n"
+
" \"306970437794\",\n"
+
" \"306932535319\",\n"
+
" \"306974063133\",\n"
+
" \"306932520323\",\n"
+
" \"306978733823\",\n"
+
" \"306985995420\",\n"
+
" \"306983879555\",\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"
+
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n"
+
" \"title\": \"Test4\",\n"
+
" \"subtitle\": \"Test4\",\n"
+
" \"description\": \"Test4\",\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"
+
" \"306944333488\",\n"
+
" \"306932222490\",\n"
+
" \"306996824010\",\n"
+
" \"306972713201\",\n"
+
" \"306942496252\",\n"
+
" \"306977316716\",\n"
+
" \"306945433100\",\n"
+
" \"306977403986\",\n"
+
" \"306936581495\",\n"
+
" \"306980689662\",\n"
+
" \"306970101490\",\n"
+
" \"306973396329\",\n"
+
" \"306972577064\",\n"
+
" \"306974923219\",\n"
+
" \"306977513761\",\n"
+
" \"306984220987\",\n"
+
" \"306979949205\",\n"
+
" \"306943134127\",\n"
+
" \"306970437794\",\n"
+
" \"306932535319\",\n"
+
" \"306974063133\",\n"
+
" \"306932520323\",\n"
+
" \"306978733823\",\n"
+
" \"306985995420\",\n"
+
" \"306983879555\",\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"
+
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n"
+
" \"title\": \"Test5\",\n"
+
" \"subtitle\": \"Test5\",\n"
+
" \"description\": \"Test5\",\n"
+
" \"zone\": \"COSMOTE_APP_MORE4U\"\n"
+
" },\n"
+
" {\n"
+
" \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n"
+
" \"businessAdditionalId\": \"\",\n"
+
" \"businessService\": \"0.0\",\n"
+
" \"eligibleAssets\": [\n"
+
" \"306945218770\",\n"
+
" \"306944333488\",\n"
+
" \"306932222490\",\n"
+
" \"306996824010\",\n"
+
" \"306972713201\",\n"
+
" \"306942496252\",\n"
+
" \"306977316716\",\n"
+
" \"306945433100\",\n"
+
" \"306977403986\",\n"
+
" \"306936581495\",\n"
+
" \"306980689662\",\n"
+
" \"306970101490\",\n"
+
" \"306973396329\",\n"
+
" \"306972577064\",\n"
+
" \"306974923219\",\n"
+
" \"306977513761\",\n"
+
" \"306984220987\",\n"
+
" \"306979949205\",\n"
+
" \"306943134127\",\n"
+
" \"306970437794\",\n"
+
" \"306932535319\",\n"
+
" \"306974063133\",\n"
+
" \"306932520323\",\n"
+
" \"306978733823\",\n"
+
" \"306985995420\",\n"
+
" \"306983879555\",\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"
+
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n"
+
" \"title\": \"Test6\",\n"
+
" \"subtitle\": \"Test6\",\n"
+
" \"description\": \"Test6\",\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"
+
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n"
+
" \"title\": \"Test7\",\n"
+
" \"subtitle\": \"Test7\",\n"
+
" \"description\": \"Test7\",\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"
+
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n"
+
" \"title\": \"Test8\",\n"
+
" \"subtitle\": \"Test8\",\n"
+
" \"description\": \"Test8\",\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"
+
" \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n"
+
" \"title\": \"Test9\",\n"
+
" \"subtitle\": \"Test9\",\n"
+
" \"description\": \"Test9\",\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
);
receiver
.
onSuccess
(
campaignLoyaltyList
);
//result
}
...
...
warply_android_sdk/src/main/res/layout/activity_loyalty_wallet.xml
View file @
22acba1
...
...
@@ -338,11 +338,12 @@
android:id=
"@+id/ll_active_deals_codes_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:layout_maxHeight=
"60dp"
android:visibility=
"gone"
app:alignContent=
"flex_start"
app:alignItems=
"flex_start"
app:flexWrap=
"wrap"
></com.google.android.flexbox.FlexboxLayout>
app:flexDirection=
"row"
app:justifyContent=
"flex_start"
app:flexWrap=
"wrap"
>
</com.google.android.flexbox.FlexboxLayout>
<TextView
android:id=
"@+id/tv_active_deals_date_text"
...
...
Please
register
or
login
to post a comment