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-05-06 16:14:58 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c9e3b583e98b90af5a2a74bc1a427442a24f5f61
c9e3b583
1 parent
1e81e87b
new version
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
7 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/LoyaltyContextualOfferModel.java
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/PushCampaign.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/constants/WarpConstants.java
warply_android_sdk/build.gradle
View file @
c9e3b58
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4-cosbeta
6
'
PUBLISH_VERSION
=
'4.5.4-cosbeta
7
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/LoyaltyContextualOfferModel.java
View file @
c9e3b58
...
...
@@ -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
;
}
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/PushCampaign.java
View file @
c9e3b58
...
...
@@ -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
()
{
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/constants/WarpConstants.java
View file @
c9e3b58
...
...
@@ -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
...
...
Please
register
or
login
to post a comment