Panagiotis Triantafyllou

new models, new version

...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library' ...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
2 2
3 ext { 3 ext {
4 PUBLISH_GROUP_ID = 'ly.warp' 4 PUBLISH_GROUP_ID = 'ly.warp'
5 - PUBLISH_VERSION = '4.5.4-cosbeta7' 5 + PUBLISH_VERSION = '4.5.4-cosbeta8'
6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk' 6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
7 } 7 }
8 8
......
1 +/*
2 + * Copyright 2010-2013 Warply Ltd. All rights reserved.
3 + *
4 + * Redistribution and use in source and binary forms, without modification, are
5 + * permitted provided that the following conditions are met:
6 + *
7 + * 1. Redistributions of source code must retain the above copyright notice,
8 + * this list of conditions and the following disclaimer.
9 + *
10 + * 2. Redistributions in binary form must reproduce the above copyright notice,
11 + * this list of conditions and the following disclaimer in the documentation
12 + * and/or other materials provided with the distribution.
13 + *
14 + * THIS SOFTWARE IS PROVIDED BY THE WARPLY LTD ``AS IS'' AND ANY EXPRESS OR
15 + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16 + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
17 + * EVENT SHALL WARPLY LTD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
18 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
19 + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
20 + * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
21 + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22 + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
23 + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 + */
25 +
26 +package ly.warp.sdk.io.models;
27 +
28 +import java.util.HashMap;
29 +
30 +/**
31 + * Created by Panagiotis Triantafyllou on 25-May-22.
32 + */
33 +
34 +public class LoyaltySDKFirebaseEventModel {
35 + private String eventName;
36 + private HashMap<String, String> parameters;
37 +
38 + public LoyaltySDKFirebaseEventModel() {
39 + this.eventName = "";
40 + this.parameters = new HashMap();
41 + }
42 +
43 + public String getEventName() {
44 + return eventName;
45 + }
46 +
47 + public void setEventName(String eventName) {
48 + this.eventName = eventName;
49 + }
50 +
51 + public HashMap<String, String> getParameters() {
52 + return parameters;
53 + }
54 +
55 + public void setParameter(String key, String value) {
56 + this.parameters.put(key, value);
57 + }
58 +}
...@@ -84,6 +84,10 @@ public class WarplyManagerHelper { ...@@ -84,6 +84,10 @@ public class WarplyManagerHelper {
84 return url; 84 return url;
85 } 85 }
86 86
87 + public static String constructCcmsUrl(LoyaltyContextualOfferModel item) {
88 + return /*url*/ "";
89 + }
90 +
87 // public static CampaignList mergeCCMS(ArrayList<LoyaltyContextualOfferModel> ccmslist, CampaignList clist) { 91 // public static CampaignList mergeCCMS(ArrayList<LoyaltyContextualOfferModel> ccmslist, CampaignList clist) {
88 // CampaignList mergedList = clist; 92 // CampaignList mergedList = clist;
89 // for (LoyaltyContextualOfferModel element : ccmslist) { 93 // for (LoyaltyContextualOfferModel element : ccmslist) {
......
1 package ly.warp.sdk.utils.managers; 1 package ly.warp.sdk.utils.managers;
2 2
3 +import ly.warp.sdk.io.models.LoyaltyContextualOfferModel;
4 +import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel;
5 +
3 /** 6 /**
4 * Created by Panagiotis Triantafyllou on 26/Απρ/2022. 7 * Created by Panagiotis Triantafyllou on 26/Απρ/2022.
5 */ 8 */
6 public class WarplyEventBusManager { 9 public class WarplyEventBusManager {
7 private String eventName; 10 private String eventName;
11 + private LoyaltySDKFirebaseEventModel fireEvent;
12 + private LoyaltyContextualOfferModel ccms;
8 13
9 public WarplyEventBusManager(String eventName) { 14 public WarplyEventBusManager(String eventName) {
10 this.eventName = eventName; 15 this.eventName = eventName;
11 } 16 }
17 +
18 + public WarplyEventBusManager(LoyaltySDKFirebaseEventModel fireEvent) {
19 + this.fireEvent = fireEvent;
20 + }
21 +
22 + public WarplyEventBusManager(LoyaltyContextualOfferModel ccms) {
23 + this.ccms = ccms;
24 + }
12 } 25 }
......