Panagiotis Triantafyllou

new version

......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.4-cosbeta6'
PUBLISH_VERSION = '4.5.4-cosbeta7'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -10,6 +10,16 @@ public class LoyaltyContextualOfferModel {
private String sessionId; //Needed for Interest/Accept/Reject
private ArrayList<String> eligibleAssets; //Array of the eligible assets for this offer
private String id;
private String businessAdditionalId;
private String treatmentCode;
public LoyaltyContextualOfferModel() {
this.sessionId = "";
this.eligibleAssets = new ArrayList<String>();
this.id = "";
this.businessAdditionalId = "";
this.treatmentCode = "";
}
public String getSessionId() {
return sessionId;
......@@ -22,4 +32,24 @@ public class LoyaltyContextualOfferModel {
public String getId() {
return id;
}
public void setSessionId(String sessionId) {
this.sessionId = sessionId;
}
public void setEligibleAssets(ArrayList<String> eligibleAssets) {
this.eligibleAssets = eligibleAssets;
}
public void setId(String id) {
this.id = id;
}
public void setBusinessAdditionalId(String businessAdditionalId) {
this.businessAdditionalId = businessAdditionalId;
}
public void setTreatmentCode(String treatmentCode) {
this.treatmentCode = treatmentCode;
}
}
......
......@@ -184,11 +184,11 @@ public class PushCampaign {
}
public String getImageUrl() {
if(!TextUtils.isEmpty(getLargeIconUrl())){
return getLargeIconUrl();
}else{
return WarplyProperty.getBaseUrl(Warply.getWarplyContext()) + WarpConstants.BASE_REMOTE_PAGE_URL + "logo/" + getSessionUUID();
}
// if(!TextUtils.isEmpty(getLargeIconUrl())){
return getLargeIconUrl();
// }else{
// return WarplyProperty.getBaseUrl(Warply.getWarplyContext()) + WarpConstants.BASE_REMOTE_PAGE_URL + "logo/" + getSessionUUID();
// }
}
public String getSessionUUID() {
......
......@@ -30,7 +30,7 @@ public class WarpConstants {
/**
* The version of the SDK installed in the device
*/
public static final String SDK_VERSION = "4.5.4";
public static final String SDK_VERSION = "4.5.4.2";
/**
* The URL of the server where it should ping
......