-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathRNIterableInternal.java
More file actions
38 lines (27 loc) · 1.24 KB
/
Copy pathRNIterableInternal.java
File metadata and controls
38 lines (27 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.iterable.iterableapi;
import androidx.annotation.Nullable;
import org.json.JSONObject;
public class RNIterableInternal {
private static String TAG = "RNIterableInternal";
public static String getEmail() {
return IterableApi.getInstance().getEmail();
}
public static String getUserId() {
return IterableApi.getInstance().getUserId();
}
public static JSONObject getInAppMessageJson(IterableInAppMessage message) {
return message.toJSONObject();
}
public static JSONObject getEmbeddedMessageJson(IterableEmbeddedMessage message) {
return IterableEmbeddedMessage.Companion.toJSONObject(message);
}
public static IterableInAppMessage getMessageById(String messageId) {
return IterableApi.getInstance().getInAppManager().getMessageById(messageId);
}
public static void trackPushOpenWithCampaignId(Integer campaignId, Integer templateId, String messageId, @Nullable JSONObject dataFields) {
IterableApi.getInstance().trackPushOpen(campaignId, templateId, messageId, dataFields);
}
public static void setAttributionInfo(IterableAttributionInfo attributionInfo) {
IterableApi.getInstance().setAttributionInfo(attributionInfo);
}
}