Panagiotis Triantafyllou

minor additions

......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.4-cos3'
PUBLISH_VERSION = '4.5.4-cosbeta4'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
package ly.warp.sdk.io.models;
import java.util.ArrayList;
/**
* Created by Panagiotis Triantafyllou on 20/Απρ/2022.
*/
public class LoyaltyContextualOfferModel {
private String sessionId; //Needed for Interest/Accept/Reject
private String interactionPoint;
private String offerCode; //Offer Id. Needed for Interest/Accept/Reject
private String treatmentCode; //Needed for Interest/Accept/Reject
private ArrayList<String> eligibleAssets; //Array of the eligible assets for this offer
private String title; //title for tile and detail view
private String description; //detail view description
private String shortDescription; //tile description
private String price; // offer price
private String discount; // offer discount
private String termsAndConditions;
private String offerType; //neo, inform
private String offerType1; //sms, data, voice
private String offerType2; //sms, data, voice, pre2post
private String offerType3; //sms, data, voice
private String imageUrl; //Tile image
private String squareImageUrl; //Home contextual image
private String bigImageUrl; //Detail view image
private String tapOverType; //REDIRECT_TO_EXTERNAL,REDIRECT_TO_INTERNAL,DETAILED_PAGE
private String tapOverUrl; //for surveys
private String balancesDuration; //package duration for data,sms,voice
//denotes data gift
private String balancesDataType;
private String balancesDataValue;
//denotes voice gift
private String balancesVoiceType;
private String balancesVoiceValue;
//denotes sms gift
private String balancesSmsType;
private String balancesSmsValue;
private boolean surveyFlag; //If true the offer is survey
private String carouselPriority; //Carousel Position
private String acceptButtonText; //button wording
public String getSessionId() {
return sessionId;
}
public String getInteractionPoint() {
return interactionPoint;
}
public String getOfferCode() {
return offerCode;
}
public String getTreatmentCode() {
return treatmentCode;
}
public ArrayList<String> getEligibleAssets() {
return eligibleAssets;
}
public String getTitle() {
return title;
}
public String getDescription() {
return description;
}
public String getShortDescription() {
return shortDescription;
}
public String getPrice() {
return price;
}
public String getDiscount() {
return discount;
}
public String getTermsAndConditions() {
return termsAndConditions;
}
public String getOfferType() {
return offerType;
}
public String getOfferType1() {
return offerType1;
}
public String getOfferType2() {
return offerType2;
}
public String getOfferType3() {
return offerType3;
}
public String getImageUrl() {
return imageUrl;
}
public String getSquareImageUrl() {
return squareImageUrl;
}
public String getBigImageUrl() {
return bigImageUrl;
}
public String getTapOverType() {
return tapOverType;
}
public String getTapOverUrl() {
return tapOverUrl;
}
public String getBalancesDuration() {
return balancesDuration;
}
public String getBalancesDataType() {
return balancesDataType;
}
public String getBalancesDataValue() {
return balancesDataValue;
}
public String getBalancesVoiceType() {
return balancesVoiceType;
}
public String getBalancesVoiceValue() {
return balancesVoiceValue;
}
public String getBalancesSmsType() {
return balancesSmsType;
}
public String getBalancesSmsValue() {
return balancesSmsValue;
}
public boolean isSurveyFlag() {
return surveyFlag;
}
public String getCarouselPriority() {
return carouselPriority;
}
public String getAcceptButtonText() {
return acceptButtonText;
}
}
......@@ -25,6 +25,7 @@
package ly.warp.sdk.utils;
import java.util.ArrayList;
import java.util.HashMap;
import ly.warp.sdk.Warply;
......@@ -34,6 +35,7 @@ import ly.warp.sdk.io.models.CampaignList;
import ly.warp.sdk.io.models.Consumer;
import ly.warp.sdk.io.models.CouponList;
import ly.warp.sdk.io.models.CouponsetsList;
import ly.warp.sdk.io.models.LoyaltyContextualOfferModel;
/**
* Created by Panagiotis Triantafyllou on 18-Apr-22.
......@@ -65,6 +67,15 @@ public class WarplyManagerHelper {
return url;
}
// public static CampaignList mergeCCMS(ArrayList<LoyaltyContextualOfferModel> ccmslist, CampaignList clist) {
// CampaignList mergedList = clist;
// for (LoyaltyContextualOfferModel element : ccmslist) {
//
// }
//
// return mergedList;
// }
public static Consumer getConsumer() {
return mConsumer;
}
......