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-04-20 17:57:11 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
21322a1fee02926e16d80aba2ef3da468a6b34bb
21322a1f
1 parent
a8127d29
minor additions
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
175 additions
and
1 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/utils/WarplyManagerHelper.java
warply_android_sdk/build.gradle
View file @
21322a1
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4-cos
3
'
PUBLISH_VERSION
=
'4.5.4-cos
beta4
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/LoyaltyContextualOfferModel.java
0 → 100644
View file @
21322a1
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
;
}
}
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
View file @
21322a1
...
...
@@ -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
;
}
...
...
Please
register
or
login
to post a comment