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-08-30 18:56:56 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5adb508c213e7ae1fb1a30003283685c5be183bd
5adb508c
1 parent
592641d6
uat fixes and changes
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
832 additions
and
550 deletions
app/src/main/java/warp/ly/android_sdk/activities/SplashActivity.java
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponsetInfoActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/TelcoActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
warply_android_sdk/src/main/java/ly/warp/sdk/views/adapters/MergedGiftsAdapter.java
warply_android_sdk/src/main/res/drawable/shape_line_gradient.xml
warply_android_sdk/src/main/res/drawable/shape_round_border_gradient.xml
warply_android_sdk/src/main/res/drawable/shape_round_border_gradient2.xml
warply_android_sdk/src/main/res/layout/activity_telco.xml
warply_android_sdk/src/main/res/values/colors.xml
warply_android_sdk/src/main/res/values/strings.xml
app/src/main/java/warp/ly/android_sdk/activities/SplashActivity.java
View file @
5adb508
...
...
@@ -36,7 +36,7 @@ public class SplashActivity extends BaseActivity {
public
void
onWarplyReady
()
{
if
(!
WarplyDBHelper
.
getInstance
(
SplashActivity
.
this
).
isTableNotEmpty
(
"auth"
))
{
WarplyManager
.
getCosmoteUser
(
new
WarplyCosmoteUserRequest
()
.
setGuid
(
"
6012049139
"
),
//6012049321, 6012049322, 6012049323
.
setGuid
(
"
7000001406
"
),
//6012049321, 6012049322, 6012049323
mLoginReceiver
);
}
else
{
startNextActivity
();
...
...
warply_android_sdk/build.gradle
View file @
5adb508
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4-cosbeta
49
'
PUBLISH_VERSION
=
'4.5.4-cosbeta
50
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponsetInfoActivity.java
View file @
5adb508
...
...
@@ -35,6 +35,7 @@ import ly.warp.sdk.io.request.WarplyRedeemCouponRequest;
import
ly.warp.sdk.io.request.WarplyUserCouponsRequest
;
import
ly.warp.sdk.services.EventCampaignService
;
import
ly.warp.sdk.services.EventService
;
import
ly.warp.sdk.utils.WarpJSONParser
;
import
ly.warp.sdk.utils.WarplyManagerHelper
;
import
ly.warp.sdk.utils.managers.WarplyManager
;
...
...
@@ -59,6 +60,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
private
AlertDialog
mAlertDialogCouponset
;
private
Campaign
mLoyalty
;
private
LoyaltyContextualOfferModel
mCcms
=
null
;
private
AlertDialog
mAlertDialogNonTelco
;
// ===========================================================
// Methods for/from SuperClass/Interfaces
...
...
@@ -156,6 +158,15 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
// ===========================================================
private
void
initViews
()
{
if
(
WarplyManagerHelper
.
getConsumerInternal
()
!=
null
)
{
JSONObject
profMetadata
=
WarpJSONParser
.
getJSONFromString
(
WarplyManagerHelper
.
getConsumerInternal
().
getProfileMetadata
());
if
(
profMetadata
!=
null
)
{
if
(
profMetadata
.
has
(
"nonTelco"
)
&&
profMetadata
.
optBoolean
(
"nonTelco"
))
{
nonTelcoDialog
();
}
}
}
mTvCouponsetTitle
.
setText
(
mCouponset
.
getName
());
mTvCouponsetSubtitle
.
setText
(
Html
.
fromHtml
(
mCouponset
.
getDescription
()));
mLlTerms
.
setOnClickListener
(
this
);
...
...
@@ -251,6 +262,16 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
}
}
private
void
nonTelcoDialog
()
{
mAlertDialogNonTelco
=
new
AlertDialog
.
Builder
(
this
)
.
setTitle
(
R
.
string
.
cos_dlg_non_telco
)
.
setPositiveButton
(
R
.
string
.
cos_dlg_positive_button2
,
(
dialogPositive
,
whichPositive
)
->
{
dialogPositive
.
dismiss
();
onBackPressed
();
})
.
show
();
}
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
View file @
5adb508
...
...
@@ -12,6 +12,7 @@ import android.widget.ImageView;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
androidx.appcompat.app.AlertDialog
;
import
androidx.constraintlayout.widget.ConstraintLayout
;
import
androidx.recyclerview.widget.LinearLayoutManager
;
import
androidx.recyclerview.widget.RecyclerView
;
...
...
@@ -20,6 +21,7 @@ import com.bumptech.glide.Glide;
import
com.bumptech.glide.load.engine.DiskCacheStrategy
;
import
org.greenrobot.eventbus.EventBus
;
import
org.json.JSONObject
;
import
java.io.Serializable
;
import
java.util.Collections
;
...
...
@@ -32,6 +34,7 @@ import ly.warp.sdk.R;
import
ly.warp.sdk.io.models.ActiveDFYCouponEventModel
;
import
ly.warp.sdk.io.models.ActiveDFYCouponModel
;
import
ly.warp.sdk.io.models.WarplyDealsAnalysisEventModel
;
import
ly.warp.sdk.utils.WarpJSONParser
;
import
ly.warp.sdk.utils.WarpUtils
;
import
ly.warp.sdk.utils.WarplyManagerHelper
;
import
ly.warp.sdk.utils.managers.WarplyEventBusManager
;
...
...
@@ -58,6 +61,7 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener {
private
float
couponDfyValue
=
0.0f
;
private
RecyclerView
mRecyclerCoupons
;
private
ActiveCouponAdapter
mAdapterCoupons
;
private
AlertDialog
mAlertDialogNonTelco
;
// ===========================================================
// Methods for/from SuperClass/Interfaces
...
...
@@ -170,6 +174,15 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener {
// ===========================================================
private
void
initViews
()
{
if
(
WarplyManagerHelper
.
getConsumerInternal
()
!=
null
)
{
JSONObject
profMetadata
=
WarpJSONParser
.
getJSONFromString
(
WarplyManagerHelper
.
getConsumerInternal
().
getProfileMetadata
());
if
(
profMetadata
!=
null
)
{
if
(
profMetadata
.
has
(
"nonTelco"
)
&&
profMetadata
.
optBoolean
(
"nonTelco"
))
{
nonTelcoDialog
();
}
}
}
if
(
WarplyManagerHelper
.
getCouponList
()
!=
null
&&
WarplyManagerHelper
.
getCouponList
().
size
()
>
0
)
{
mAdapterCoupons
=
new
ActiveCouponAdapter
(
this
,
WarplyManagerHelper
.
getCouponList
());
mRecyclerCoupons
.
setAdapter
(
mAdapterCoupons
);
...
...
@@ -307,6 +320,16 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener {
mClDealsView
.
setOnClickListener
(
this
);
}
private
void
nonTelcoDialog
()
{
mAlertDialogNonTelco
=
new
AlertDialog
.
Builder
(
this
)
.
setTitle
(
R
.
string
.
cos_dlg_non_telco
)
.
setPositiveButton
(
R
.
string
.
cos_dlg_positive_button2
,
(
dialogPositive
,
whichPositive
)
->
{
dialogPositive
.
dismiss
();
onBackPressed
();
})
.
show
();
}
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/TelcoActivity.java
View file @
5adb508
...
...
@@ -13,6 +13,7 @@ import android.widget.LinearLayout;
import
android.widget.TextView
;
import
androidx.appcompat.app.AlertDialog
;
import
androidx.core.content.ContextCompat
;
import
com.bumptech.glide.Glide
;
import
com.bumptech.glide.load.engine.DiskCacheStrategy
;
...
...
@@ -22,15 +23,14 @@ import org.json.JSONArray;
import
org.json.JSONException
;
import
org.json.JSONObject
;
import
io.github.inflationx.viewpump.ViewPumpContextWrapper
;
import
ly.warp.sdk.R
;
import
ly.warp.sdk.io.callbacks.CallbackReceiver
;
import
ly.warp.sdk.io.models.Campaign
;
import
ly.warp.sdk.io.models.Consumer
;
import
ly.warp.sdk.io.models.LoyaltyContextualOfferModel
;
import
ly.warp.sdk.io.request.CosmotePostEventRequest
;
import
ly.warp.sdk.io.request.CosmoteSubmitOrderRequest
;
import
ly.warp.sdk.io.request.WarplyConsumerRequest
;
import
ly.warp.sdk.utils.WarpUtils
;
import
ly.warp.sdk.utils.managers.WarplyManager
;
...
...
@@ -47,13 +47,16 @@ public class TelcoActivity extends Activity implements View.OnClickListener {
// ===========================================================
private
ImageView
mIvBack
,
mIvCampaignPhoto
;
private
TextView
mTvCampaignTitle
,
mTvCampaignSubtitle
;
private
TextView
mTvCampaignTitle
,
mTvTelcoGiftValue
,
mTvTelcoGiftType
,
mTvTelcoHeaderTitle
,
mTvTelcoGiftDuration
,
mTvSeeMoreValue
;
private
LoyaltyContextualOfferModel
mCCMS
=
new
LoyaltyContextualOfferModel
();
private
Campaign
mLoyalty
=
new
Campaign
();
private
LinearLayout
mLlActivateOffer
;
private
Consumer
mConsumer
;
private
String
mSender
=
""
;
private
AlertDialog
mAlertDialogAskActivate
,
mAlertDialogErrorActivating
,
mAlertDialogSuccessActivating
;
private
LinearLayout
mLlSeeMore
;
private
boolean
mIsSeeMoreShown
=
false
;
// ===========================================================
// Methods for/from SuperClass/Interfaces
...
...
@@ -70,8 +73,13 @@ public class TelcoActivity extends Activity implements View.OnClickListener {
mIvBack
=
findViewById
(
R
.
id
.
iv_telco_back
);
mTvCampaignTitle
=
findViewById
(
R
.
id
.
textView13
);
mIvCampaignPhoto
=
findViewById
(
R
.
id
.
imageView6
);
mTvCampaignSubtitle
=
findViewById
(
R
.
id
.
textView14
);
mLlActivateOffer
=
findViewById
(
R
.
id
.
ll_activate_button
);
mTvTelcoGiftValue
=
findViewById
(
R
.
id
.
tv_telco_gift_value
);
mTvTelcoGiftType
=
findViewById
(
R
.
id
.
tv_telco_gift_type
);
mTvTelcoHeaderTitle
=
findViewById
(
R
.
id
.
tv_telco_header_title
);
mTvTelcoGiftDuration
=
findViewById
(
R
.
id
.
tv_telco_gift_duration
);
mLlSeeMore
=
findViewById
(
R
.
id
.
ll_see_more
);
mTvSeeMoreValue
=
findViewById
(
R
.
id
.
tv_see_more_value
);
initViews
();
}
...
...
@@ -97,18 +105,41 @@ public class TelcoActivity extends Activity implements View.OnClickListener {
}
if
(
view
.
getId
()
==
R
.
id
.
ll_activate_button
)
{
showActivationDialog
();
return
;
}
if
(
view
.
getId
()
==
R
.
id
.
ll_see_more
)
{
if
(
mIsSeeMoreShown
)
{
mTvSeeMoreValue
.
setVisibility
(
View
.
GONE
);
ImageView
seeMoreButtonArrow
=
mLlSeeMore
.
findViewById
(
R
.
id
.
iv_see_more_arrow
);
seeMoreButtonArrow
.
setImageDrawable
(
ContextCompat
.
getDrawable
(
this
,
R
.
drawable
.
ic_arrow_down_dark
));
mIsSeeMoreShown
=
false
;
}
else
{
mTvSeeMoreValue
.
setVisibility
(
View
.
VISIBLE
);
ImageView
seeMoreButtonArrow
=
mLlSeeMore
.
findViewById
(
R
.
id
.
iv_see_more_arrow
);
seeMoreButtonArrow
.
setImageDrawable
(
ContextCompat
.
getDrawable
(
this
,
R
.
drawable
.
ic_arrow_up_dark
));
mIsSeeMoreShown
=
true
;
}
}
}
@Override
protected
void
attachBaseContext
(
Context
newBase
)
{
super
.
attachBaseContext
(
ViewPumpContextWrapper
.
wrap
(
newBase
));
}
// ===========================================================
// Methods
// ===========================================================
private
void
initViews
()
{
mTvCampaignTitle
.
setText
(
mCCMS
.
getTitle
());
mTvCampaignSubtitle
.
setText
(
mCCMS
.
getSubtitle
());
if
(!
TextUtils
.
isEmpty
(
mCCMS
.
getImageUrl
()))
{
mTvTelcoHeaderTitle
.
setText
(
mCCMS
.
getTitleOffer
());
mTvCampaignTitle
.
setText
(
mCCMS
.
getDescription
());
mTvTelcoGiftValue
.
setText
(
mCCMS
.
getGiftValue
());
mTvTelcoGiftType
.
setText
(
mCCMS
.
getGiftType
());
mTvTelcoGiftDuration
.
setText
(
mCCMS
.
getDuration
());
mTvSeeMoreValue
.
setText
(
mCCMS
.
getTermsAndConditions
());
if
(!
TextUtils
.
isEmpty
(
mCCMS
.
getImageOfferUrl
()))
{
Glide
.
with
(
this
)
// .setDefaultRequestOptions(
// RequestOptions
...
...
@@ -124,6 +155,7 @@ public class TelcoActivity extends Activity implements View.OnClickListener {
}
mIvBack
.
setOnClickListener
(
this
);
mLlActivateOffer
.
setOnClickListener
(
this
);
mLlSeeMore
.
setOnClickListener
(
this
);
}
private
void
showActivationDialog
()
{
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
View file @
5adb508
...
...
@@ -1437,510 +1437,517 @@ public class WarplyManager {
}
WarplyManagerHelper
.
setCampaignList
(
mNewCampaignList
);
// 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\": \"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\": \"Test1\",\n" +
// " \"subtitle\": \"Test1\",\n" +
// " \"description\": \"Test1\",\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\": \"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/java/ly/warp/sdk/views/adapters/MergedGiftsAdapter.java
View file @
5adb508
package
ly
.
warp
.
sdk
.
views
.
adapters
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.text.TextUtils
;
import
android.view.LayoutInflater
;
import
android.view.View
;
...
...
@@ -15,6 +16,9 @@ import com.bumptech.glide.load.engine.DiskCacheStrategy;
import
com.bumptech.glide.load.resource.bitmap.CenterCrop
;
import
com.bumptech.glide.load.resource.bitmap.RoundedCorners
;
import
org.json.JSONObject
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.concurrent.TimeUnit
;
...
...
@@ -22,7 +26,12 @@ import java.util.concurrent.TimeUnit;
import
io.reactivex.Observable
;
import
io.reactivex.subjects.PublishSubject
;
import
ly.warp.sdk.R
;
import
ly.warp.sdk.activities.GiftsForYouActivity
;
import
ly.warp.sdk.activities.TelcoActivity
;
import
ly.warp.sdk.io.models.LoyaltyContextualOfferModel
;
import
ly.warp.sdk.io.models.MergedGifts
;
import
ly.warp.sdk.utils.WarpJSONParser
;
import
ly.warp.sdk.utils.WarplyManagerHelper
;
public
class
MergedGiftsAdapter
extends
RecyclerView
.
Adapter
<
MergedGiftsAdapter
.
MergedGiftsViewHolder
>
{
...
...
@@ -78,6 +87,33 @@ public class MergedGiftsAdapter extends RecyclerView.Adapter<MergedGiftsAdapter.
public
void
onBindViewHolder
(
final
MergedGiftsViewHolder
holder
,
int
position
)
{
MergedGifts
mergedgiftsItem
=
mMergedGifts
.
get
(
position
);
if
(
mergedgiftsItem
!=
null
&&
mergedgiftsItem
.
getDataType
()
==
1
)
{
JSONObject
extraFields
=
WarpJSONParser
.
getJSONFromString
(
mergedgiftsItem
.
getCampaign
().
getExtraFields
());
if
(
extraFields
!=
null
)
{
if
(
extraFields
.
has
(
"type"
)
&&
extraFields
.
optString
(
"type"
).
equals
(
"telco"
))
{
for
(
LoyaltyContextualOfferModel
ccms
:
WarplyManagerHelper
.
getCCMSLoyaltyCampaigns
())
{
if
(
ccms
.
getLoyaltyCampaignId
().
equals
(
mergedgiftsItem
.
getCampaign
().
getSessionUUID
()))
{
if
(!
TextUtils
.
isEmpty
(
ccms
.
getImageUrl
()))
{
Glide
.
with
(
mContext
)
.
load
(
ccms
.
getImageUrl
())
.
transform
(
new
CenterCrop
(),
new
RoundedCorners
(
4
))
.
diskCacheStrategy
(
DiskCacheStrategy
.
DATA
)
.
into
(
holder
.
ivMergedGiftsLogo
);
}
else
{
Glide
.
with
(
mContext
)
.
load
(
R
.
drawable
.
ic_cosmote_logo_horizontal_grey
)
.
into
(
holder
.
ivMergedGiftsLogo
);
}
holder
.
tvMergedGiftsTitle
.
setText
(
ccms
.
getTitle
());
holder
.
itemView
.
setOnClickListener
(
v
->
onClickSubject
.
onNext
(
mergedgiftsItem
));
return
;
}
}
return
;
}
}
if
(!
TextUtils
.
isEmpty
(
mergedgiftsItem
.
getCampaign
().
getLogoUrl
()))
{
Glide
.
with
(
mContext
)
.
load
(
mergedgiftsItem
.
getCampaign
().
getLogoUrl
())
...
...
warply_android_sdk/src/main/res/drawable/shape_line_gradient.xml
0 → 100644
View file @
5adb508
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<gradient
android:angle=
"180"
android:endColor=
"@color/cos_blue5"
android:startColor=
"@color/cos_green"
/>
</shape>
\ No newline at end of file
warply_android_sdk/src/main/res/drawable/shape_round_border_gradient.xml
0 → 100644
View file @
5adb508
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item>
<shape
android:shape=
"oval"
>
<padding
android:bottom=
"1dp"
android:left=
"1dp"
android:right=
"1dp"
android:top=
"1dp"
/>
<gradient
android:angle=
"180"
android:endColor=
"@color/cos_blue4"
android:startColor=
"@color/cos_green10"
/>
</shape>
</item>
<item>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"oval"
>
<solid
android:color=
"@android:color/white"
/>
</shape>
</item>
</layer-list>
\ No newline at end of file
warply_android_sdk/src/main/res/drawable/shape_round_border_gradient2.xml
0 → 100644
View file @
5adb508
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item>
<shape
android:shape=
"rectangle"
>
<padding
android:bottom=
"2dp"
android:left=
"2dp"
android:right=
"2dp"
android:top=
"2dp"
/>
<gradient
android:angle=
"180"
android:endColor=
"@color/cos_blue5"
android:startColor=
"@color/cos_green"
/>
<corners
android:radius=
"1000dp"
/>
</shape>
</item>
<item>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<solid
android:color=
"@android:color/white"
/>
<corners
android:radius=
"1000dp"
/>
</shape>
</item>
</layer-list>
\ No newline at end of file
warply_android_sdk/src/main/res/layout/activity_telco.xml
View file @
5adb508
...
...
@@ -16,40 +16,43 @@
android:layout_width=
"20dp"
android:layout_height=
"20dp"
android:layout_marginStart=
"16dp"
android:src=
"@drawable/ic_
back
"
android:src=
"@drawable/ic_
close
"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/tv_telco_header_title"
fontPath=
"fonts/pf_square_sans_pro_medium.ttf"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/grey"
android:textSize=
"17sp"
android:textStyle=
"bold"
android:textColor=
"@color/cos_dark_blue"
android:textSize=
"16sp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"1 GB Internet"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:
fillViewport=
"true
"
android:
layout_below=
"@+id/cl_loyalty_wallet_header
"
>
android:
layout_below=
"@+id/cl_loyalty_wallet_header
"
android:
fillViewport=
"true
"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@android:color/white"
>
<
androidx.constraintlayout.widget.Constraint
Layout
<
Relative
Layout
android:id=
"@+id/cl_loyalty_info_view_inner"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/shape_cos_loyalty_white"
android:paddingBottom=
"48dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
...
...
@@ -58,68 +61,163 @@
android:id=
"@+id/imageView6"
android:layout_width=
"match_parent"
android:layout_height=
"224dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"4dp"
android:scaleType=
"centerCrop"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:siShape=
"@drawable/shape_top_left_rounded"
tools:src=
"@drawable/carousel_banner"
/>
<LinearLayout
android:id=
"@+id/ll_telco_gift_view"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/imageView6"
android:layout_marginHorizontal=
"24dp"
android:layout_marginTop=
"16dp"
android:gravity=
"center"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/textView13"
android:id=
"@+id/tv_telco_gift_value"
fontPath=
"fonts/pf_square_sans_pro_medium.ttf"
android:layout_width=
"64dp"
android:layout_height=
"64dp"
android:background=
"@drawable/shape_round_border_gradient"
android:gravity=
"center"
android:textColor=
"@color/cos_skyblue2"
android:textSize=
"17sp"
tools:text=
"1\nGB"
/>
<TextView
android:id=
"@+id/tv_telco_gift_type"
fontPath=
"fonts/pf_square_sans_pro_regular.ttf"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"8dp"
android:textColor=
"@color/grey"
android:textSize=
"15sp"
tools:text=
"Internet"
/>
</LinearLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/cl_telco_duration_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"32dp"
android:layout_below=
"@+id/ll_telco_gift_view"
android:layout_marginTop=
"24dp"
>
<View
android:id=
"@+id/cl_telco_duration_view_inner"
android:layout_width=
"match_parent"
android:layout_height=
"2dp"
android:background=
"@drawable/shape_line_gradient"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
android:id=
"@+id/tv_telco_gift_duration"
fontPath=
"fonts/pf_square_sans_pro_regular.ttf"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_round_border_gradient2"
android:gravity=
"center"
android:paddingHorizontal=
"32dp"
android:textColor=
"#415564"
android:textSize=
"18sp"
android:textStyle=
"bold"
android:paddingHorizontal=
"12dp"
android:paddingVertical=
"5dp"
android:textColor=
"@color/grey"
android:textSize=
"16sp"
app:layout_constraintBottom_toBottomOf=
"@+id/cl_telco_duration_view_inner"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintHorizontal_bias=
"0.509"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/imageView6"
tools:text=
"Πάρε δωρεάν μηνιαία πακέτα με πάνες στα supermarket Σκλαβενίτης!"
/>
app:layout_constraintTop_toTopOf=
"@+id/cl_telco_duration_view_inner"
tools:text=
"gia 8 imeres"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id=
"@+id/textView14"
android:id=
"@+id/textView13"
fontPath=
"fonts/pf_square_sans_pro_regular.ttf"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"16dp"
android:layout_below=
"@+id/cl_telco_duration_view"
android:layout_marginTop=
"24dp"
android:gravity=
"center"
android:paddingHorizontal=
"32dp"
android:textColor=
"#415564"
android:textSize=
"16sp"
tools:text=
"test test"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/textView13"
/>
android:textSize=
"17sp"
tools:text=
"Πάρε δωρεάν μηνιαία πακέτα με πάνες στα supermarket Σκλαβενίτης!"
/>
<LinearLayout
android:id=
"@+id/ll_activate_button"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"32dp"
android:layout_below=
"@+id/textView13"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"44dp"
android:background=
"@drawable/selector_button_green"
android:gravity=
"center"
android:orientation=
"horizontal"
android:paddingHorizontal=
"16dp"
android:paddingVertical=
"8dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
>
android:paddingHorizontal=
"36dp"
android:paddingVertical=
"8dp"
>
<TextView
fontPath=
"fonts/pf_square_sans_pro_medium.ttf"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:text=
"@string/cos_dlg_positive_button"
android:textColor=
"@color/white"
android:textFontWeight=
"600"
android:textSize=
"17dp"
/>
android:textSize=
"16dp"
/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<RelativeLayout
android:id=
"@+id/rl_see_more"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/ll_activate_button"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"22dp"
android:gravity=
"center"
>
<LinearLayout
android:id=
"@+id/ll_see_more"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:gravity=
"center"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tv_see_more"
fontPath=
"fonts/pf_square_sans_pro_regular.ttf"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"@string/cos_see_more2"
android:textColor=
"@color/grey"
android:textSize=
"16sp"
/>
<ImageView
android:id=
"@+id/iv_see_more_arrow"
android:layout_width=
"14dp"
android:layout_height=
"14dp"
android:layout_marginStart=
"6dp"
android:src=
"@drawable/ic_down_dark"
/>
</LinearLayout>
<TextView
android:id=
"@+id/tv_see_more_value"
fontPath=
"fonts/pf_square_sans_pro_regular.ttf"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/ll_see_more"
android:layout_marginHorizontal=
"32dp"
android:layout_marginTop=
"16dp"
android:textColor=
"@color/grey"
android:textSize=
"14sp"
android:visibility=
"gone"
tools:text=
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "
/>
</RelativeLayout>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</RelativeLayout>
...
...
warply_android_sdk/src/main/res/values/colors.xml
View file @
5adb508
...
...
@@ -56,4 +56,8 @@
<color
name=
"cos_cyan4"
>
#2EAFB9
</color>
<color
name=
"cos_dark_grey"
>
#394A5B
</color>
<color
name=
"cos_white_tr"
>
#9CFFFFFF
</color>
<color
name=
"cos_skyblue2"
>
#22A9B5
</color>
<color
name=
"cos_blue4"
>
#07A2D1
</color>
<color
name=
"cos_green10"
>
#73CA34
</color>
<color
name=
"cos_blue5"
>
#0D81B8
</color>
</resources>
\ No newline at end of file
...
...
warply_android_sdk/src/main/res/values/strings.xml
View file @
5adb508
...
...
@@ -126,6 +126,8 @@
<string
name=
"cos_wrong_number_dlg"
>
Το κινητό που καταχώρησες δεν είναι COSMOTE. Παρακαλούμε καταχώρησε το COSMOTE τηλέφωνο του φίλου σου.
</string>
<string
name=
"cos_dlg_error_expired"
>
Το δώρο έχει λήξει
</string>
<string
name=
"cos_dlg_error_used"
>
Το δώρο έχει ήδη χρησιμοποιηθεί
</string>
<string
name=
"cos_see_more2"
>
Δες Περισσότερα
</string>
<string
name=
"cos_dlg_non_telco"
>
Παρακαλούμε πολύ πρόσθεσε τις συνδέσεις σου στην COSMOTE για να έχεις πρόσβαση στα προνόμια του νέου Loyalty προγράμματος της COSMOTE!
</string>
<string-array
name=
"coupons_array"
>
<item>
Κουπόνια
</item>
...
...
Please
register
or
login
to post a comment