Showing
14 changed files
with
601 additions
and
11 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-cosbeta9' | 5 | + PUBLISH_VERSION = '4.5.4-cosbeta10' |
| 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
| 7 | } | 7 | } |
| 8 | 8 | ... | ... |
| 1 | +package ly.warp.sdk.activities; | ||
| 2 | + | ||
| 3 | +import android.app.Activity; | ||
| 4 | +import android.os.Bundle; | ||
| 5 | +import android.view.View; | ||
| 6 | +import android.widget.ImageView; | ||
| 7 | + | ||
| 8 | +import ly.warp.sdk.R; | ||
| 9 | + | ||
| 10 | + | ||
| 11 | +public class LoyaltyAnalysisActivity extends Activity implements View.OnClickListener { | ||
| 12 | + | ||
| 13 | + // =========================================================== | ||
| 14 | + // Constants | ||
| 15 | + // =========================================================== | ||
| 16 | + | ||
| 17 | + // =========================================================== | ||
| 18 | + // Fields | ||
| 19 | + // =========================================================== | ||
| 20 | + | ||
| 21 | + private ImageView mIvBack; | ||
| 22 | + | ||
| 23 | + // =========================================================== | ||
| 24 | + // Methods for/from SuperClass/Interfaces | ||
| 25 | + // =========================================================== | ||
| 26 | + | ||
| 27 | + @Override | ||
| 28 | + public void onCreate(Bundle savedInstanceState) { | ||
| 29 | + super.onCreate(savedInstanceState); | ||
| 30 | + setContentView(R.layout.activity_loyalty_analysis); | ||
| 31 | + | ||
| 32 | + mIvBack = findViewById(R.id.iv_loyalty_analysis_close); | ||
| 33 | + | ||
| 34 | + initViews(); | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + @Override | ||
| 38 | + public void onResume() { | ||
| 39 | + super.onResume(); | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + @Override | ||
| 43 | + public void onClick(View view) { | ||
| 44 | + if (view.getId() == R.id.iv_loyalty_analysis_close) { | ||
| 45 | + onBackPressed(); | ||
| 46 | + } | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + // =========================================================== | ||
| 50 | + // Methods | ||
| 51 | + // =========================================================== | ||
| 52 | + | ||
| 53 | + private void initViews() { | ||
| 54 | + mIvBack.setOnClickListener(this); | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + // =========================================================== | ||
| 58 | + // Inner and Anonymous Classes | ||
| 59 | + // =========================================================== | ||
| 60 | + | ||
| 61 | +} |
| 1 | +package ly.warp.sdk.io.models; | ||
| 2 | + | ||
| 3 | +import java.util.ArrayList; | ||
| 4 | + | ||
| 5 | +/** | ||
| 6 | + * Created by Panagiotis Triantafyllou on 08/Ιουν/2022. | ||
| 7 | + */ | ||
| 8 | + | ||
| 9 | +public class CustomerStateModel { | ||
| 10 | + private boolean nonTelco = false; | ||
| 11 | + private boolean acceptedConsent = false; | ||
| 12 | + | ||
| 13 | + public CustomerStateModel() { | ||
| 14 | + this.nonTelco = false; | ||
| 15 | + this.acceptedConsent = false; | ||
| 16 | + } | ||
| 17 | + | ||
| 18 | + public boolean isNonTelco() { | ||
| 19 | + return nonTelco; | ||
| 20 | + } | ||
| 21 | + | ||
| 22 | + public void setNonTelco(boolean nonTelco) { | ||
| 23 | + this.nonTelco = nonTelco; | ||
| 24 | + } | ||
| 25 | + | ||
| 26 | + public boolean isAcceptedConsent() { | ||
| 27 | + return acceptedConsent; | ||
| 28 | + } | ||
| 29 | + | ||
| 30 | + public void setAcceptedConsent(boolean acceptedConsent) { | ||
| 31 | + this.acceptedConsent = acceptedConsent; | ||
| 32 | + } | ||
| 33 | +} |
| ... | @@ -12,6 +12,21 @@ public class LoyaltyContextualOfferModel { | ... | @@ -12,6 +12,21 @@ public class LoyaltyContextualOfferModel { |
| 12 | private String id; | 12 | private String id; |
| 13 | private String businessAdditionalId; | 13 | private String businessAdditionalId; |
| 14 | private String treatmentCode; | 14 | private String treatmentCode; |
| 15 | + private String offerName; | ||
| 16 | + private String productType; | ||
| 17 | + private String provDuration; | ||
| 18 | + private String noOfRecurrance; | ||
| 19 | + private String price; | ||
| 20 | + private String discount; | ||
| 21 | + private String voiceCategory; | ||
| 22 | + private String dataCategory; | ||
| 23 | + private String minsValue; | ||
| 24 | + private String dataValue; | ||
| 25 | + private String provStepValueMins; | ||
| 26 | + private String postpayProduct; | ||
| 27 | + private String notificationMessage; | ||
| 28 | + private String loyaltyCampaignId; | ||
| 29 | + | ||
| 15 | 30 | ||
| 16 | public LoyaltyContextualOfferModel() { | 31 | public LoyaltyContextualOfferModel() { |
| 17 | this.sessionId = ""; | 32 | this.sessionId = ""; |
| ... | @@ -19,37 +34,171 @@ public class LoyaltyContextualOfferModel { | ... | @@ -19,37 +34,171 @@ public class LoyaltyContextualOfferModel { |
| 19 | this.id = ""; | 34 | this.id = ""; |
| 20 | this.businessAdditionalId = ""; | 35 | this.businessAdditionalId = ""; |
| 21 | this.treatmentCode = ""; | 36 | this.treatmentCode = ""; |
| 37 | + this.offerName = ""; | ||
| 38 | + this.productType = ""; | ||
| 39 | + this.provDuration = ""; | ||
| 40 | + this.noOfRecurrance = ""; | ||
| 41 | + this.price = ""; | ||
| 42 | + this.discount = ""; | ||
| 43 | + this.voiceCategory = ""; | ||
| 44 | + this.dataCategory = ""; | ||
| 45 | + this.minsValue = ""; | ||
| 46 | + this.dataValue = ""; | ||
| 47 | + this.provStepValueMins = ""; | ||
| 48 | + this.postpayProduct = ""; | ||
| 49 | + this.notificationMessage = ""; | ||
| 50 | + this.loyaltyCampaignId = ""; | ||
| 22 | } | 51 | } |
| 23 | 52 | ||
| 24 | public String getSessionId() { | 53 | public String getSessionId() { |
| 25 | return sessionId; | 54 | return sessionId; |
| 26 | } | 55 | } |
| 27 | 56 | ||
| 28 | - public ArrayList<String> getEligibleAssets() { | ||
| 29 | - return eligibleAssets; | ||
| 30 | - } | ||
| 31 | - | ||
| 32 | - public String getId() { | ||
| 33 | - return id; | ||
| 34 | - } | ||
| 35 | - | ||
| 36 | public void setSessionId(String sessionId) { | 57 | public void setSessionId(String sessionId) { |
| 37 | this.sessionId = sessionId; | 58 | this.sessionId = sessionId; |
| 38 | } | 59 | } |
| 39 | 60 | ||
| 61 | + public ArrayList<String> getEligibleAssets() { | ||
| 62 | + return eligibleAssets; | ||
| 63 | + } | ||
| 64 | + | ||
| 40 | public void setEligibleAssets(ArrayList<String> eligibleAssets) { | 65 | public void setEligibleAssets(ArrayList<String> eligibleAssets) { |
| 41 | this.eligibleAssets = eligibleAssets; | 66 | this.eligibleAssets = eligibleAssets; |
| 42 | } | 67 | } |
| 43 | 68 | ||
| 69 | + public String getId() { | ||
| 70 | + return id; | ||
| 71 | + } | ||
| 72 | + | ||
| 44 | public void setId(String id) { | 73 | public void setId(String id) { |
| 45 | this.id = id; | 74 | this.id = id; |
| 46 | } | 75 | } |
| 47 | 76 | ||
| 77 | + public String getBusinessAdditionalId() { | ||
| 78 | + return businessAdditionalId; | ||
| 79 | + } | ||
| 80 | + | ||
| 48 | public void setBusinessAdditionalId(String businessAdditionalId) { | 81 | public void setBusinessAdditionalId(String businessAdditionalId) { |
| 49 | this.businessAdditionalId = businessAdditionalId; | 82 | this.businessAdditionalId = businessAdditionalId; |
| 50 | } | 83 | } |
| 51 | 84 | ||
| 85 | + public String getTreatmentCode() { | ||
| 86 | + return treatmentCode; | ||
| 87 | + } | ||
| 88 | + | ||
| 52 | public void setTreatmentCode(String treatmentCode) { | 89 | public void setTreatmentCode(String treatmentCode) { |
| 53 | this.treatmentCode = treatmentCode; | 90 | this.treatmentCode = treatmentCode; |
| 54 | } | 91 | } |
| 92 | + | ||
| 93 | + public String getOfferName() { | ||
| 94 | + return offerName; | ||
| 95 | + } | ||
| 96 | + | ||
| 97 | + public void setOfferName(String offerName) { | ||
| 98 | + this.offerName = offerName; | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | + public String getProductType() { | ||
| 102 | + return productType; | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + public void setProductType(String productType) { | ||
| 106 | + this.productType = productType; | ||
| 107 | + } | ||
| 108 | + | ||
| 109 | + public String getProvDuration() { | ||
| 110 | + return provDuration; | ||
| 111 | + } | ||
| 112 | + | ||
| 113 | + public void setProvDuration(String provDuration) { | ||
| 114 | + this.provDuration = provDuration; | ||
| 115 | + } | ||
| 116 | + | ||
| 117 | + public String getNoOfRecurrance() { | ||
| 118 | + return noOfRecurrance; | ||
| 119 | + } | ||
| 120 | + | ||
| 121 | + public void setNoOfRecurrance(String noOfRecurrance) { | ||
| 122 | + this.noOfRecurrance = noOfRecurrance; | ||
| 123 | + } | ||
| 124 | + | ||
| 125 | + public String getPrice() { | ||
| 126 | + return price; | ||
| 127 | + } | ||
| 128 | + | ||
| 129 | + public void setPrice(String price) { | ||
| 130 | + this.price = price; | ||
| 131 | + } | ||
| 132 | + | ||
| 133 | + public String getDiscount() { | ||
| 134 | + return discount; | ||
| 135 | + } | ||
| 136 | + | ||
| 137 | + public void setDiscount(String discount) { | ||
| 138 | + this.discount = discount; | ||
| 139 | + } | ||
| 140 | + | ||
| 141 | + public String getVoiceCategory() { | ||
| 142 | + return voiceCategory; | ||
| 143 | + } | ||
| 144 | + | ||
| 145 | + public void setVoiceCategory(String voiceCategory) { | ||
| 146 | + this.voiceCategory = voiceCategory; | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + public String getDataCategory() { | ||
| 150 | + return dataCategory; | ||
| 151 | + } | ||
| 152 | + | ||
| 153 | + public void setDataCategory(String dataCategory) { | ||
| 154 | + this.dataCategory = dataCategory; | ||
| 155 | + } | ||
| 156 | + | ||
| 157 | + public String getMinsValue() { | ||
| 158 | + return minsValue; | ||
| 159 | + } | ||
| 160 | + | ||
| 161 | + public void setMinsValue(String minsValue) { | ||
| 162 | + this.minsValue = minsValue; | ||
| 163 | + } | ||
| 164 | + | ||
| 165 | + public String getDataValue() { | ||
| 166 | + return dataValue; | ||
| 167 | + } | ||
| 168 | + | ||
| 169 | + public void setDataValue(String dataValue) { | ||
| 170 | + this.dataValue = dataValue; | ||
| 171 | + } | ||
| 172 | + | ||
| 173 | + public String getProvStepValueMins() { | ||
| 174 | + return provStepValueMins; | ||
| 175 | + } | ||
| 176 | + | ||
| 177 | + public void setProvStepValueMins(String provStepValueMins) { | ||
| 178 | + this.provStepValueMins = provStepValueMins; | ||
| 179 | + } | ||
| 180 | + | ||
| 181 | + public String getPostpayProduct() { | ||
| 182 | + return postpayProduct; | ||
| 183 | + } | ||
| 184 | + | ||
| 185 | + public void setPostpayProduct(String postpayProduct) { | ||
| 186 | + this.postpayProduct = postpayProduct; | ||
| 187 | + } | ||
| 188 | + | ||
| 189 | + public String getNotificationMessage() { | ||
| 190 | + return notificationMessage; | ||
| 191 | + } | ||
| 192 | + | ||
| 193 | + public void setNotificationMessage(String notificationMessage) { | ||
| 194 | + this.notificationMessage = notificationMessage; | ||
| 195 | + } | ||
| 196 | + | ||
| 197 | + public String getLoyaltyCampaignId() { | ||
| 198 | + return loyaltyCampaignId; | ||
| 199 | + } | ||
| 200 | + | ||
| 201 | + public void setLoyaltyCampaignId(String loyaltyCampaignId) { | ||
| 202 | + this.loyaltyCampaignId = loyaltyCampaignId; | ||
| 203 | + } | ||
| 55 | } | 204 | } | ... | ... |
| 1 | +/* | ||
| 2 | + * Copyright 2010-2013 Warply Ltd. All rights reserved. | ||
| 3 | + * | ||
| 4 | + * Redistribution and use in source and binary forms, without modification, are | ||
| 5 | + * permitted provided that the following conditions are met: | ||
| 6 | + * | ||
| 7 | + * 1. Redistributions of source code must retain the above copyright notice, | ||
| 8 | + * this list of conditions and the following disclaimer. | ||
| 9 | + * | ||
| 10 | + * 2. Redistributions in binary form must reproduce the above copyright notice, | ||
| 11 | + * this list of conditions and the following disclaimer in the documentation | ||
| 12 | + * and/or other materials provided with the distribution. | ||
| 13 | + * | ||
| 14 | + * THIS SOFTWARE IS PROVIDED BY THE WARPLY LTD ``AS IS'' AND ANY EXPRESS OR | ||
| 15 | + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
| 16 | + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
| 17 | + * EVENT SHALL WARPLY LTD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| 18 | + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| 19 | + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, | ||
| 20 | + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 21 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
| 22 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
| 23 | + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 24 | + */ | ||
| 25 | + | ||
| 26 | +package ly.warp.sdk.io.models; | ||
| 27 | + | ||
| 28 | +import java.util.HashMap; | ||
| 29 | + | ||
| 30 | +/** | ||
| 31 | + * Created by Panagiotis Triantafyllou on 08-June-22. | ||
| 32 | + */ | ||
| 33 | + | ||
| 34 | +public class LoyaltySDKDeeplinkEventModel { | ||
| 35 | + private String deeplinkUrl; | ||
| 36 | + private HashMap<String, String> parameters; | ||
| 37 | + | ||
| 38 | + public LoyaltySDKDeeplinkEventModel() { | ||
| 39 | + this.deeplinkUrl = ""; | ||
| 40 | + this.parameters = new HashMap(); | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + public String getDeeplinkUrl() { | ||
| 44 | + return deeplinkUrl; | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + public void setDeeplinkUrl(String eventName) { | ||
| 48 | + this.deeplinkUrl = eventName; | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + public HashMap<String, String> getParameters() { | ||
| 52 | + return parameters; | ||
| 53 | + } | ||
| 54 | + | ||
| 55 | + public void setParameter(String key, String value) { | ||
| 56 | + this.parameters.put(key, value); | ||
| 57 | + } | ||
| 58 | +} |
| 1 | +/* | ||
| 2 | + * Copyright 2010-2013 Warply Ltd. All rights reserved. | ||
| 3 | + * | ||
| 4 | + * Redistribution and use in source and binary forms, without modification, are | ||
| 5 | + * permitted provided that the following conditions are met: | ||
| 6 | + * | ||
| 7 | + * 1. Redistributions of source code must retain the above copyright notice, | ||
| 8 | + * this list of conditions and the following disclaimer. | ||
| 9 | + * | ||
| 10 | + * 2. Redistributions in binary form must reproduce the above copyright notice, | ||
| 11 | + * this list of conditions and the following disclaimer in the documentation | ||
| 12 | + * and/or other materials provided with the distribution. | ||
| 13 | + * | ||
| 14 | + * THIS SOFTWARE IS PROVIDED BY THE WARPLY LTD ``AS IS'' AND ANY EXPRESS OR | ||
| 15 | + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
| 16 | + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
| 17 | + * EVENT SHALL WARPLY LTD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| 18 | + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| 19 | + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, | ||
| 20 | + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 21 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
| 22 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
| 23 | + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 24 | + */ | ||
| 25 | + | ||
| 26 | +package ly.warp.sdk.io.models; | ||
| 27 | + | ||
| 28 | +/** | ||
| 29 | + * Created by Panagiotis Triantafyllou on 10-June-22. | ||
| 30 | + */ | ||
| 31 | + | ||
| 32 | +public class WarplyCCMSEnabledModel { | ||
| 33 | + | ||
| 34 | + private boolean isActivated = false; | ||
| 35 | + | ||
| 36 | + | ||
| 37 | + public WarplyCCMSEnabledModel() { | ||
| 38 | + this.isActivated = false; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + public boolean isActivated() { | ||
| 42 | + return isActivated; | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + public void setActivated(boolean activated) { | ||
| 46 | + isActivated = activated; | ||
| 47 | + } | ||
| 48 | +} |
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/WarplyDealsAnalysisEventModel.java
0 → 100644
| 1 | +/* | ||
| 2 | + * Copyright 2010-2013 Warply Ltd. All rights reserved. | ||
| 3 | + * | ||
| 4 | + * Redistribution and use in source and binary forms, without modification, are | ||
| 5 | + * permitted provided that the following conditions are met: | ||
| 6 | + * | ||
| 7 | + * 1. Redistributions of source code must retain the above copyright notice, | ||
| 8 | + * this list of conditions and the following disclaimer. | ||
| 9 | + * | ||
| 10 | + * 2. Redistributions in binary form must reproduce the above copyright notice, | ||
| 11 | + * this list of conditions and the following disclaimer in the documentation | ||
| 12 | + * and/or other materials provided with the distribution. | ||
| 13 | + * | ||
| 14 | + * THIS SOFTWARE IS PROVIDED BY THE WARPLY LTD ``AS IS'' AND ANY EXPRESS OR | ||
| 15 | + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
| 16 | + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
| 17 | + * EVENT SHALL WARPLY LTD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| 18 | + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| 19 | + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, | ||
| 20 | + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 21 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
| 22 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
| 23 | + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 24 | + */ | ||
| 25 | + | ||
| 26 | +package ly.warp.sdk.io.models; | ||
| 27 | + | ||
| 28 | +/** | ||
| 29 | + * Created by Panagiotis Triantafyllou on 10-June-22. | ||
| 30 | + */ | ||
| 31 | + | ||
| 32 | +public class WarplyDealsAnalysisEventModel { | ||
| 33 | + | ||
| 34 | + private boolean isPressed = false; | ||
| 35 | + | ||
| 36 | + | ||
| 37 | + public WarplyDealsAnalysisEventModel() { | ||
| 38 | + this.isPressed = false; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + public boolean isPressed() { | ||
| 42 | + return isPressed; | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + public void setPressed(boolean pressed) { | ||
| 46 | + isPressed = pressed; | ||
| 47 | + } | ||
| 48 | +} |
| 1 | +/* | ||
| 2 | + * Copyright 2010-2013 Warply Ltd. All rights reserved. | ||
| 3 | + * | ||
| 4 | + * Redistribution and use in source and binary forms, without modification, are | ||
| 5 | + * permitted provided that the following conditions are met: | ||
| 6 | + * | ||
| 7 | + * 1. Redistributions of source code must retain the above copyright notice, | ||
| 8 | + * this list of conditions and the following disclaimer. | ||
| 9 | + * | ||
| 10 | + * 2. Redistributions in binary form must reproduce the above copyright notice, | ||
| 11 | + * this list of conditions and the following disclaimer in the documentation | ||
| 12 | + * and/or other materials provided with the distribution. | ||
| 13 | + * | ||
| 14 | + * THIS SOFTWARE IS PROVIDED BY THE WARPLY LTD ``AS IS'' AND ANY EXPRESS OR | ||
| 15 | + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
| 16 | + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
| 17 | + * EVENT SHALL WARPLY LTD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| 18 | + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| 19 | + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, | ||
| 20 | + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 21 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
| 22 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
| 23 | + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 24 | + */ | ||
| 25 | + | ||
| 26 | +package ly.warp.sdk.io.models; | ||
| 27 | + | ||
| 28 | +/** | ||
| 29 | + * Created by Panagiotis Triantafyllou on 10-June-22. | ||
| 30 | + */ | ||
| 31 | + | ||
| 32 | +public class WarplyPacingCardEventModel { | ||
| 33 | + | ||
| 34 | + private boolean isVisible = false; | ||
| 35 | + | ||
| 36 | + | ||
| 37 | + public WarplyPacingCardEventModel() { | ||
| 38 | + this.isVisible = false; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + public boolean isVisible() { | ||
| 42 | + return isVisible; | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + public void setVisible(boolean visible) { | ||
| 46 | + isVisible = visible; | ||
| 47 | + } | ||
| 48 | +} |
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/WarplyPacingCardServiceEnabledModel.java
0 → 100644
| 1 | +/* | ||
| 2 | + * Copyright 2010-2013 Warply Ltd. All rights reserved. | ||
| 3 | + * | ||
| 4 | + * Redistribution and use in source and binary forms, without modification, are | ||
| 5 | + * permitted provided that the following conditions are met: | ||
| 6 | + * | ||
| 7 | + * 1. Redistributions of source code must retain the above copyright notice, | ||
| 8 | + * this list of conditions and the following disclaimer. | ||
| 9 | + * | ||
| 10 | + * 2. Redistributions in binary form must reproduce the above copyright notice, | ||
| 11 | + * this list of conditions and the following disclaimer in the documentation | ||
| 12 | + * and/or other materials provided with the distribution. | ||
| 13 | + * | ||
| 14 | + * THIS SOFTWARE IS PROVIDED BY THE WARPLY LTD ``AS IS'' AND ANY EXPRESS OR | ||
| 15 | + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
| 16 | + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
| 17 | + * EVENT SHALL WARPLY LTD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| 18 | + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| 19 | + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, | ||
| 20 | + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 21 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
| 22 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
| 23 | + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 24 | + */ | ||
| 25 | + | ||
| 26 | +package ly.warp.sdk.io.models; | ||
| 27 | + | ||
| 28 | +/** | ||
| 29 | + * Created by Panagiotis Triantafyllou on 10-June-22. | ||
| 30 | + */ | ||
| 31 | + | ||
| 32 | +public class WarplyPacingCardServiceEnabledModel { | ||
| 33 | + | ||
| 34 | + private boolean isEnabled = false; | ||
| 35 | + | ||
| 36 | + | ||
| 37 | + public WarplyPacingCardServiceEnabledModel() { | ||
| 38 | + this.isEnabled = false; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + public boolean isEnabled() { | ||
| 42 | + return isEnabled; | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + public void setEnabled(boolean enabled) { | ||
| 46 | + isEnabled = enabled; | ||
| 47 | + } | ||
| 48 | +} |
| ... | @@ -35,6 +35,7 @@ import ly.warp.sdk.io.models.CampaignList; | ... | @@ -35,6 +35,7 @@ import ly.warp.sdk.io.models.CampaignList; |
| 35 | import ly.warp.sdk.io.models.Consumer; | 35 | import ly.warp.sdk.io.models.Consumer; |
| 36 | import ly.warp.sdk.io.models.CouponList; | 36 | import ly.warp.sdk.io.models.CouponList; |
| 37 | import ly.warp.sdk.io.models.CouponsetsList; | 37 | import ly.warp.sdk.io.models.CouponsetsList; |
| 38 | +import ly.warp.sdk.io.models.CustomerStateModel; | ||
| 38 | import ly.warp.sdk.io.models.LoyaltyContextualOfferModel; | 39 | import ly.warp.sdk.io.models.LoyaltyContextualOfferModel; |
| 39 | 40 | ||
| 40 | /** | 41 | /** |
| ... | @@ -64,6 +65,9 @@ public class WarplyManagerHelper { | ... | @@ -64,6 +65,9 @@ public class WarplyManagerHelper { |
| 64 | // Methods | 65 | // Methods |
| 65 | // =========================================================== | 66 | // =========================================================== |
| 66 | 67 | ||
| 68 | + /** | ||
| 69 | + * Open Warply campaign | ||
| 70 | + */ | ||
| 67 | public static String constructCampaignUrl(Campaign item) { | 71 | public static String constructCampaignUrl(Campaign item) { |
| 68 | item.setNew(false); | 72 | item.setNew(false); |
| 69 | String url = item.getIndexUrl() | 73 | String url = item.getIndexUrl() |
| ... | @@ -84,6 +88,9 @@ public class WarplyManagerHelper { | ... | @@ -84,6 +88,9 @@ public class WarplyManagerHelper { |
| 84 | return url; | 88 | return url; |
| 85 | } | 89 | } |
| 86 | 90 | ||
| 91 | + /** | ||
| 92 | + * Open CCMS campaign | ||
| 93 | + */ | ||
| 87 | public static String constructCcmsUrl(LoyaltyContextualOfferModel item) { | 94 | public static String constructCcmsUrl(LoyaltyContextualOfferModel item) { |
| 88 | return /*url*/ ""; | 95 | return /*url*/ ""; |
| 89 | } | 96 | } |
| ... | @@ -97,6 +104,23 @@ public class WarplyManagerHelper { | ... | @@ -97,6 +104,23 @@ public class WarplyManagerHelper { |
| 97 | // return mergedList; | 104 | // return mergedList; |
| 98 | // } | 105 | // } |
| 99 | 106 | ||
| 107 | + /** | ||
| 108 | + * Open Questionnaire | ||
| 109 | + */ | ||
| 110 | + public static void openQuestionnaire() { | ||
| 111 | + | ||
| 112 | + } | ||
| 113 | + | ||
| 114 | + /** | ||
| 115 | + * Save if customer is nonTelco and if he/she has accepted the consents | ||
| 116 | + */ | ||
| 117 | + public static void loadCustomerState(CustomerStateModel customerState) { | ||
| 118 | + //TODO: write code to save the parameter | ||
| 119 | + } | ||
| 120 | + | ||
| 121 | + /** | ||
| 122 | + * Get user badge tag | ||
| 123 | + */ | ||
| 100 | public static String getUserTag() { | 124 | public static String getUserTag() { |
| 101 | return "traveller"; //TODO: change in production with actual code | 125 | return "traveller"; //TODO: change in production with actual code |
| 102 | } | 126 | } |
| ... | @@ -105,14 +129,23 @@ public class WarplyManagerHelper { | ... | @@ -105,14 +129,23 @@ public class WarplyManagerHelper { |
| 105 | 129 | ||
| 106 | } | 130 | } |
| 107 | 131 | ||
| 132 | + /** | ||
| 133 | + * Set the List with active D4Y coupons | ||
| 134 | + */ | ||
| 108 | public static void setActiveDFYCoupons(ArrayList<String> codes) { | 135 | public static void setActiveDFYCoupons(ArrayList<String> codes) { |
| 109 | 136 | ||
| 110 | } | 137 | } |
| 111 | 138 | ||
| 139 | + /** | ||
| 140 | + * Get the List with active D4Y coupons | ||
| 141 | + */ | ||
| 112 | public static ArrayList<String> getActiveDFYCoupons() { | 142 | public static ArrayList<String> getActiveDFYCoupons() { |
| 113 | return new ArrayList<>(); | 143 | return new ArrayList<>(); |
| 114 | } | 144 | } |
| 115 | 145 | ||
| 146 | + /** | ||
| 147 | + * Set the List with CCMS Campaigns | ||
| 148 | + */ | ||
| 116 | public static void setCCMSLoyaltyCampaigns(ArrayList<LoyaltyContextualOfferModel> list) { | 149 | public static void setCCMSLoyaltyCampaigns(ArrayList<LoyaltyContextualOfferModel> list) { |
| 117 | 150 | ||
| 118 | } | 151 | } | ... | ... |
| ... | @@ -5,7 +5,10 @@ import java.util.HashMap; | ... | @@ -5,7 +5,10 @@ import java.util.HashMap; |
| 5 | import ly.warp.sdk.io.models.LoyaltyContextualOfferModel; | 5 | import ly.warp.sdk.io.models.LoyaltyContextualOfferModel; |
| 6 | import ly.warp.sdk.io.models.LoyaltyGiftsForYouOfferClickEvent; | 6 | import ly.warp.sdk.io.models.LoyaltyGiftsForYouOfferClickEvent; |
| 7 | import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel; | 7 | import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel; |
| 8 | -import ly.warp.sdk.io.request.WarplyEditAddressRequest; | 8 | +import ly.warp.sdk.io.models.WarplyCCMSEnabledModel; |
| 9 | +import ly.warp.sdk.io.models.WarplyDealsAnalysisEventModel; | ||
| 10 | +import ly.warp.sdk.io.models.WarplyPacingCardEventModel; | ||
| 11 | +import ly.warp.sdk.io.models.WarplyPacingCardServiceEnabledModel; | ||
| 9 | 12 | ||
| 10 | /** | 13 | /** |
| 11 | * Created by Panagiotis Triantafyllou on 26/Απρ/2022. | 14 | * Created by Panagiotis Triantafyllou on 26/Απρ/2022. |
| ... | @@ -15,6 +18,10 @@ public class WarplyEventBusManager { | ... | @@ -15,6 +18,10 @@ public class WarplyEventBusManager { |
| 15 | private LoyaltySDKFirebaseEventModel fireEvent; | 18 | private LoyaltySDKFirebaseEventModel fireEvent; |
| 16 | private LoyaltyContextualOfferModel ccms; | 19 | private LoyaltyContextualOfferModel ccms; |
| 17 | protected HashMap<String, Object> mWarplyEventBusManager = new HashMap(); | 20 | protected HashMap<String, Object> mWarplyEventBusManager = new HashMap(); |
| 21 | + private WarplyPacingCardEventModel pacingCard; | ||
| 22 | + private WarplyPacingCardServiceEnabledModel pacingService; | ||
| 23 | + private WarplyDealsAnalysisEventModel dealsAnalysis; | ||
| 24 | + private WarplyCCMSEnabledModel ccmsActivated; | ||
| 18 | 25 | ||
| 19 | public WarplyEventBusManager() { | 26 | public WarplyEventBusManager() { |
| 20 | 27 | ||
| ... | @@ -28,6 +35,22 @@ public class WarplyEventBusManager { | ... | @@ -28,6 +35,22 @@ public class WarplyEventBusManager { |
| 28 | this.fireEvent = fireEvent; | 35 | this.fireEvent = fireEvent; |
| 29 | } | 36 | } |
| 30 | 37 | ||
| 38 | + public WarplyEventBusManager(WarplyPacingCardEventModel pacingCard) { | ||
| 39 | + this.pacingCard = pacingCard; | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + public WarplyEventBusManager(WarplyPacingCardServiceEnabledModel pacingService) { | ||
| 43 | + this.pacingService = pacingService; | ||
| 44 | + } | ||
| 45 | + | ||
| 46 | + public WarplyEventBusManager(WarplyDealsAnalysisEventModel dealsAnalysis) { | ||
| 47 | + this.dealsAnalysis = dealsAnalysis; | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + public WarplyEventBusManager(WarplyCCMSEnabledModel ccmsActivated) { | ||
| 51 | + this.ccmsActivated = ccmsActivated; | ||
| 52 | + } | ||
| 53 | + | ||
| 31 | public WarplyEventBusManager(LoyaltyContextualOfferModel ccms) { | 54 | public WarplyEventBusManager(LoyaltyContextualOfferModel ccms) { |
| 32 | this.ccms = ccms; | 55 | this.ccms = ccms; |
| 33 | } | 56 | } | ... | ... |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| 4 | + android:id="@+id/cl_bill_payment" | ||
| 5 | + android:layout_width="match_parent" | ||
| 6 | + android:layout_height="match_parent"> | ||
| 7 | + | ||
| 8 | + <androidx.constraintlayout.widget.ConstraintLayout | ||
| 9 | + android:id="@+id/cl_bill_header" | ||
| 10 | + android:layout_width="match_parent" | ||
| 11 | + android:layout_height="80dp" | ||
| 12 | + app:layout_constraintTop_toTopOf="parent" | ||
| 13 | + android:background="@android:color/white"> | ||
| 14 | + | ||
| 15 | + <ImageView | ||
| 16 | + android:id="@+id/iv_loyalty_analysis_close" | ||
| 17 | + android:layout_width="21dp" | ||
| 18 | + android:layout_height="20dp" | ||
| 19 | + android:layout_marginStart="24dp" | ||
| 20 | + android:layout_marginTop="4dp" | ||
| 21 | + android:src="@drawable/ic_back" | ||
| 22 | + app:layout_constraintStart_toStartOf="parent" | ||
| 23 | + app:layout_constraintTop_toTopOf="parent" | ||
| 24 | + app:layout_constraintBottom_toBottomOf="parent"/> | ||
| 25 | + | ||
| 26 | + <TextView | ||
| 27 | + android:id="@+id/textView3" | ||
| 28 | + android:layout_width="206dp" | ||
| 29 | + android:layout_height="32dp" | ||
| 30 | + android:gravity="center" | ||
| 31 | + android:text="@string/cos_loyalty_analysis" | ||
| 32 | + android:textColor="@color/grey" | ||
| 33 | + android:textSize="17sp" | ||
| 34 | + android:textStyle="bold" | ||
| 35 | + app:layout_constraintBottom_toBottomOf="parent" | ||
| 36 | + app:layout_constraintEnd_toEndOf="parent" | ||
| 37 | + app:layout_constraintStart_toStartOf="parent" | ||
| 38 | + app:layout_constraintTop_toTopOf="parent" /> | ||
| 39 | + </androidx.constraintlayout.widget.ConstraintLayout> | ||
| 40 | +</RelativeLayout> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -23,7 +23,7 @@ | ... | @@ -23,7 +23,7 @@ |
| 23 | <TextView | 23 | <TextView |
| 24 | android:layout_width="wrap_content" | 24 | android:layout_width="wrap_content" |
| 25 | android:layout_height="wrap_content" | 25 | android:layout_height="wrap_content" |
| 26 | - android:text="Steps" | 26 | + android:text="Steps for Good" |
| 27 | android:textColor="@color/grey" | 27 | android:textColor="@color/grey" |
| 28 | android:textSize="17sp" | 28 | android:textSize="17sp" |
| 29 | android:textStyle="bold" | 29 | android:textStyle="bold" | ... | ... |
| ... | @@ -72,6 +72,7 @@ | ... | @@ -72,6 +72,7 @@ |
| 72 | <string name="cos_gifts_banner_title">Δώρα:</string> | 72 | <string name="cos_gifts_banner_title">Δώρα:</string> |
| 73 | <string name="cos_see_more">Δες περισσότερα</string> | 73 | <string name="cos_see_more">Δες περισσότερα</string> |
| 74 | <string name="cos_active_gifts_title">Ενεργά δώρα</string> | 74 | <string name="cos_active_gifts_title">Ενεργά δώρα</string> |
| 75 | + <string name="cos_loyalty_analysis">Ανάλυση συναλλαγών</string> | ||
| 75 | 76 | ||
| 76 | <string-array name="coupons_array"> | 77 | <string-array name="coupons_array"> |
| 77 | <item>Κουπόνια</item> | 78 | <item>Κουπόνια</item> | ... | ... |
-
Please register or login to post a comment