Showing
3 changed files
with
175 additions
and
1 deletions
... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' | ... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' |
2 | 2 | ||
3 | ext { | 3 | ext { |
4 | PUBLISH_GROUP_ID = 'ly.warp' | 4 | PUBLISH_GROUP_ID = 'ly.warp' |
5 | - PUBLISH_VERSION = '4.5.4-cos3' | 5 | + PUBLISH_VERSION = '4.5.4-cosbeta4' |
6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
7 | } | 7 | } |
8 | 8 | ... | ... |
1 | +package ly.warp.sdk.io.models; | ||
2 | + | ||
3 | +import java.util.ArrayList; | ||
4 | + | ||
5 | +/** | ||
6 | + * Created by Panagiotis Triantafyllou on 20/Απρ/2022. | ||
7 | + */ | ||
8 | + | ||
9 | +public class LoyaltyContextualOfferModel { | ||
10 | + private String sessionId; //Needed for Interest/Accept/Reject | ||
11 | + private String interactionPoint; | ||
12 | + private String offerCode; //Offer Id. Needed for Interest/Accept/Reject | ||
13 | + private String treatmentCode; //Needed for Interest/Accept/Reject | ||
14 | + private ArrayList<String> eligibleAssets; //Array of the eligible assets for this offer | ||
15 | + private String title; //title for tile and detail view | ||
16 | + private String description; //detail view description | ||
17 | + private String shortDescription; //tile description | ||
18 | + private String price; // offer price | ||
19 | + private String discount; // offer discount | ||
20 | + private String termsAndConditions; | ||
21 | + private String offerType; //neo, inform | ||
22 | + private String offerType1; //sms, data, voice | ||
23 | + private String offerType2; //sms, data, voice, pre2post | ||
24 | + private String offerType3; //sms, data, voice | ||
25 | + private String imageUrl; //Tile image | ||
26 | + private String squareImageUrl; //Home contextual image | ||
27 | + private String bigImageUrl; //Detail view image | ||
28 | + private String tapOverType; //REDIRECT_TO_EXTERNAL,REDIRECT_TO_INTERNAL,DETAILED_PAGE | ||
29 | + private String tapOverUrl; //for surveys | ||
30 | + private String balancesDuration; //package duration for data,sms,voice | ||
31 | + //denotes data gift | ||
32 | + private String balancesDataType; | ||
33 | + private String balancesDataValue; | ||
34 | + //denotes voice gift | ||
35 | + private String balancesVoiceType; | ||
36 | + private String balancesVoiceValue; | ||
37 | + //denotes sms gift | ||
38 | + private String balancesSmsType; | ||
39 | + private String balancesSmsValue; | ||
40 | + private boolean surveyFlag; //If true the offer is survey | ||
41 | + private String carouselPriority; //Carousel Position | ||
42 | + private String acceptButtonText; //button wording | ||
43 | + | ||
44 | + public String getSessionId() { | ||
45 | + return sessionId; | ||
46 | + } | ||
47 | + | ||
48 | + public String getInteractionPoint() { | ||
49 | + return interactionPoint; | ||
50 | + } | ||
51 | + | ||
52 | + public String getOfferCode() { | ||
53 | + return offerCode; | ||
54 | + } | ||
55 | + | ||
56 | + public String getTreatmentCode() { | ||
57 | + return treatmentCode; | ||
58 | + } | ||
59 | + | ||
60 | + public ArrayList<String> getEligibleAssets() { | ||
61 | + return eligibleAssets; | ||
62 | + } | ||
63 | + | ||
64 | + public String getTitle() { | ||
65 | + return title; | ||
66 | + } | ||
67 | + | ||
68 | + public String getDescription() { | ||
69 | + return description; | ||
70 | + } | ||
71 | + | ||
72 | + public String getShortDescription() { | ||
73 | + return shortDescription; | ||
74 | + } | ||
75 | + | ||
76 | + public String getPrice() { | ||
77 | + return price; | ||
78 | + } | ||
79 | + | ||
80 | + public String getDiscount() { | ||
81 | + return discount; | ||
82 | + } | ||
83 | + | ||
84 | + public String getTermsAndConditions() { | ||
85 | + return termsAndConditions; | ||
86 | + } | ||
87 | + | ||
88 | + public String getOfferType() { | ||
89 | + return offerType; | ||
90 | + } | ||
91 | + | ||
92 | + public String getOfferType1() { | ||
93 | + return offerType1; | ||
94 | + } | ||
95 | + | ||
96 | + public String getOfferType2() { | ||
97 | + return offerType2; | ||
98 | + } | ||
99 | + | ||
100 | + public String getOfferType3() { | ||
101 | + return offerType3; | ||
102 | + } | ||
103 | + | ||
104 | + public String getImageUrl() { | ||
105 | + return imageUrl; | ||
106 | + } | ||
107 | + | ||
108 | + public String getSquareImageUrl() { | ||
109 | + return squareImageUrl; | ||
110 | + } | ||
111 | + | ||
112 | + public String getBigImageUrl() { | ||
113 | + return bigImageUrl; | ||
114 | + } | ||
115 | + | ||
116 | + public String getTapOverType() { | ||
117 | + return tapOverType; | ||
118 | + } | ||
119 | + | ||
120 | + public String getTapOverUrl() { | ||
121 | + return tapOverUrl; | ||
122 | + } | ||
123 | + | ||
124 | + public String getBalancesDuration() { | ||
125 | + return balancesDuration; | ||
126 | + } | ||
127 | + | ||
128 | + public String getBalancesDataType() { | ||
129 | + return balancesDataType; | ||
130 | + } | ||
131 | + | ||
132 | + public String getBalancesDataValue() { | ||
133 | + return balancesDataValue; | ||
134 | + } | ||
135 | + | ||
136 | + public String getBalancesVoiceType() { | ||
137 | + return balancesVoiceType; | ||
138 | + } | ||
139 | + | ||
140 | + public String getBalancesVoiceValue() { | ||
141 | + return balancesVoiceValue; | ||
142 | + } | ||
143 | + | ||
144 | + public String getBalancesSmsType() { | ||
145 | + return balancesSmsType; | ||
146 | + } | ||
147 | + | ||
148 | + public String getBalancesSmsValue() { | ||
149 | + return balancesSmsValue; | ||
150 | + } | ||
151 | + | ||
152 | + public boolean isSurveyFlag() { | ||
153 | + return surveyFlag; | ||
154 | + } | ||
155 | + | ||
156 | + public String getCarouselPriority() { | ||
157 | + return carouselPriority; | ||
158 | + } | ||
159 | + | ||
160 | + public String getAcceptButtonText() { | ||
161 | + return acceptButtonText; | ||
162 | + } | ||
163 | +} |
... | @@ -25,6 +25,7 @@ | ... | @@ -25,6 +25,7 @@ |
25 | 25 | ||
26 | package ly.warp.sdk.utils; | 26 | package ly.warp.sdk.utils; |
27 | 27 | ||
28 | +import java.util.ArrayList; | ||
28 | import java.util.HashMap; | 29 | import java.util.HashMap; |
29 | 30 | ||
30 | import ly.warp.sdk.Warply; | 31 | import ly.warp.sdk.Warply; |
... | @@ -34,6 +35,7 @@ import ly.warp.sdk.io.models.CampaignList; | ... | @@ -34,6 +35,7 @@ import ly.warp.sdk.io.models.CampaignList; |
34 | import ly.warp.sdk.io.models.Consumer; | 35 | import ly.warp.sdk.io.models.Consumer; |
35 | import ly.warp.sdk.io.models.CouponList; | 36 | import ly.warp.sdk.io.models.CouponList; |
36 | import ly.warp.sdk.io.models.CouponsetsList; | 37 | import ly.warp.sdk.io.models.CouponsetsList; |
38 | +import ly.warp.sdk.io.models.LoyaltyContextualOfferModel; | ||
37 | 39 | ||
38 | /** | 40 | /** |
39 | * Created by Panagiotis Triantafyllou on 18-Apr-22. | 41 | * Created by Panagiotis Triantafyllou on 18-Apr-22. |
... | @@ -65,6 +67,15 @@ public class WarplyManagerHelper { | ... | @@ -65,6 +67,15 @@ public class WarplyManagerHelper { |
65 | return url; | 67 | return url; |
66 | } | 68 | } |
67 | 69 | ||
70 | +// public static CampaignList mergeCCMS(ArrayList<LoyaltyContextualOfferModel> ccmslist, CampaignList clist) { | ||
71 | +// CampaignList mergedList = clist; | ||
72 | +// for (LoyaltyContextualOfferModel element : ccmslist) { | ||
73 | +// | ||
74 | +// } | ||
75 | +// | ||
76 | +// return mergedList; | ||
77 | +// } | ||
78 | + | ||
68 | public static Consumer getConsumer() { | 79 | public static Consumer getConsumer() { |
69 | return mConsumer; | 80 | return mConsumer; |
70 | } | 81 | } | ... | ... |
-
Please register or login to post a comment