Skip to content

Commit 1109f75

Browse files
committed
🎨 Code review
1 parent f9fa47c commit 1109f75

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import java.util.Date;
2525
import java.util.List;
2626
import java.util.Map;
27-
import java.util.Set;
2827
import java.util.TimeZone;
2928
import java.util.regex.Matcher;
3029
import java.util.regex.Pattern;
@@ -88,24 +87,12 @@ public String getPayloadData(String key) {
8887
}
8988

9089
/**
91-
* Retrieves all of the payload as a single JSON Object
92-
* @return JSONObject
90+
* Retrieves all of the payload as a single Bundle Object
91+
* @return Bundle
9392
*/
9493

95-
public JSONObject getPayloadData() {
96-
JSONObject json = new JSONObject();
97-
if (_payloadData == null) {
98-
return json;
99-
}
100-
Set<String> keys = _payloadData.keySet();
101-
try {
102-
for (String key : keys) {
103-
json.put(key, _payloadData.get(key));
104-
}
105-
} catch(JSONException e) {
106-
e.printStackTrace();
107-
}
108-
return json;
94+
public Bundle getPayloadData() {
95+
return _payloadData;
10996
}
11097

11198
/**

0 commit comments

Comments
 (0)