Showing
4 changed files
with
69 additions
and
1 deletions
... | @@ -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-cosbeta97' | 5 | + PUBLISH_VERSION = '4.5.4-cosbeta98' |
6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
7 | } | 7 | } |
8 | 8 | ... | ... |
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/LoyaltySDKDynatraceEventModel.java
0 → 100644
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 21-Oct-22. | ||
32 | + */ | ||
33 | + | ||
34 | +public class LoyaltySDKDynatraceEventModel { | ||
35 | + private String eventName; | ||
36 | + private HashMap<String, String> parameters; | ||
37 | + | ||
38 | + public LoyaltySDKDynatraceEventModel() { | ||
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 | +} |
... | @@ -10,6 +10,7 @@ import ly.warp.sdk.io.models.HealthEventModel; | ... | @@ -10,6 +10,7 @@ import ly.warp.sdk.io.models.HealthEventModel; |
10 | import ly.warp.sdk.io.models.LoyaltyContextualOfferModel; | 10 | import ly.warp.sdk.io.models.LoyaltyContextualOfferModel; |
11 | import ly.warp.sdk.io.models.LoyaltyEventModel; | 11 | import ly.warp.sdk.io.models.LoyaltyEventModel; |
12 | import ly.warp.sdk.io.models.LoyaltyGiftsForYouOfferClickEvent; | 12 | import ly.warp.sdk.io.models.LoyaltyGiftsForYouOfferClickEvent; |
13 | +import ly.warp.sdk.io.models.LoyaltySDKDynatraceEventModel; | ||
13 | import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel; | 14 | import ly.warp.sdk.io.models.LoyaltySDKFirebaseEventModel; |
14 | import ly.warp.sdk.io.models.QuestionnaireEventModel; | 15 | import ly.warp.sdk.io.models.QuestionnaireEventModel; |
15 | import ly.warp.sdk.io.models.WarplyCCMSEnabledModel; | 16 | import ly.warp.sdk.io.models.WarplyCCMSEnabledModel; |
... | @@ -25,6 +26,7 @@ import ly.warp.sdk.io.models.WarplyPacingEventModel; | ... | @@ -25,6 +26,7 @@ import ly.warp.sdk.io.models.WarplyPacingEventModel; |
25 | public class WarplyEventBusManager { | 26 | public class WarplyEventBusManager { |
26 | private String eventName; | 27 | private String eventName; |
27 | private LoyaltySDKFirebaseEventModel fireEvent; | 28 | private LoyaltySDKFirebaseEventModel fireEvent; |
29 | + private LoyaltySDKDynatraceEventModel dynatraceEvent; | ||
28 | private LoyaltyContextualOfferModel ccms; | 30 | private LoyaltyContextualOfferModel ccms; |
29 | protected HashMap<String, Object> mWarplyEventBusManager = new HashMap(); | 31 | protected HashMap<String, Object> mWarplyEventBusManager = new HashMap(); |
30 | private WarplyPacingEventModel pacing; | 32 | private WarplyPacingEventModel pacing; |
... | @@ -90,6 +92,10 @@ public class WarplyEventBusManager { | ... | @@ -90,6 +92,10 @@ public class WarplyEventBusManager { |
90 | this.fireEvent = fireEvent; | 92 | this.fireEvent = fireEvent; |
91 | } | 93 | } |
92 | 94 | ||
95 | + public WarplyEventBusManager(LoyaltySDKDynatraceEventModel dynatraceEvent) { | ||
96 | + this.dynatraceEvent = dynatraceEvent; | ||
97 | + } | ||
98 | + | ||
93 | public WarplyEventBusManager(WarplyPacingEventModel pacing) { | 99 | public WarplyEventBusManager(WarplyPacingEventModel pacing) { |
94 | this.pacing = pacing; | 100 | this.pacing = pacing; |
95 | } | 101 | } |
... | @@ -144,6 +150,10 @@ public class WarplyEventBusManager { | ... | @@ -144,6 +150,10 @@ public class WarplyEventBusManager { |
144 | return fireEvent; | 150 | return fireEvent; |
145 | } | 151 | } |
146 | 152 | ||
153 | + public LoyaltySDKDynatraceEventModel getDynaEvent() { | ||
154 | + return dynatraceEvent; | ||
155 | + } | ||
156 | + | ||
147 | public LoyaltyContextualOfferModel getCcms() { | 157 | public LoyaltyContextualOfferModel getCcms() { |
148 | return ccms; | 158 | return ccms; |
149 | } | 159 | } | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment