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-25 15:19:46 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1b732ef884cf2d680b5842d0f6f737e079308782
1b732ef8
1 parent
38a98cb4
new models, new version
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
1 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/LoyaltySDKFirebaseEventModel.java
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/WarplyPacingModel.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyEventBusManager.java
warply_android_sdk/build.gradle
View file @
1b732ef
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4-cosbeta
7
'
PUBLISH_VERSION
=
'4.5.4-cosbeta
8
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/LoyaltySDKFirebaseEventModel.java
0 → 100644
View file @
1b732ef
/*
* Copyright 2010-2013 Warply Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE WARPLY LTD ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL WARPLY LTD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package
ly
.
warp
.
sdk
.
io
.
models
;
import
java.util.HashMap
;
/**
* Created by Panagiotis Triantafyllou on 25-May-22.
*/
public
class
LoyaltySDKFirebaseEventModel
{
private
String
eventName
;
private
HashMap
<
String
,
String
>
parameters
;
public
LoyaltySDKFirebaseEventModel
()
{
this
.
eventName
=
""
;
this
.
parameters
=
new
HashMap
();
}
public
String
getEventName
()
{
return
eventName
;
}
public
void
setEventName
(
String
eventName
)
{
this
.
eventName
=
eventName
;
}
public
HashMap
<
String
,
String
>
getParameters
()
{
return
parameters
;
}
public
void
setParameter
(
String
key
,
String
value
)
{
this
.
parameters
.
put
(
key
,
value
);
}
}
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/WarplyPacingModel.java
0 → 100644
View file @
1b732ef
This diff is collapsed. Click to expand it.
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
View file @
1b732ef
...
...
@@ -84,6 +84,10 @@ public class WarplyManagerHelper {
return
url
;
}
public
static
String
constructCcmsUrl
(
LoyaltyContextualOfferModel
item
)
{
return
/*url*/
""
;
}
// public static CampaignList mergeCCMS(ArrayList<LoyaltyContextualOfferModel> ccmslist, CampaignList clist) {
// CampaignList mergedList = clist;
// for (LoyaltyContextualOfferModel element : ccmslist) {
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyEventBusManager.java
View file @
1b732ef
package
ly
.
warp
.
sdk
.
utils
.
managers
;
import
ly.warp.sdk.io.models.LoyaltyContextualOfferModel
;
import
ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel
;
/**
* Created by Panagiotis Triantafyllou on 26/Απρ/2022.
*/
public
class
WarplyEventBusManager
{
private
String
eventName
;
private
LoyaltySDKFirebaseEventModel
fireEvent
;
private
LoyaltyContextualOfferModel
ccms
;
public
WarplyEventBusManager
(
String
eventName
)
{
this
.
eventName
=
eventName
;
}
public
WarplyEventBusManager
(
LoyaltySDKFirebaseEventModel
fireEvent
)
{
this
.
fireEvent
=
fireEvent
;
}
public
WarplyEventBusManager
(
LoyaltyContextualOfferModel
ccms
)
{
this
.
ccms
=
ccms
;
}
}
...
...
Please
register
or
login
to post a comment