Skip to content

Commit b5544c0

Browse files
committed
fix LISTSTREAMITEMS and PUBLISH
1 parent 113eff0 commit b5544c0

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package multichain.object;
2+
3+
/**
4+
* @author mengl
5+
*/
6+
public class MultichainStreamItemJsonValueObject {
7+
private Object json;
8+
9+
public MultichainStreamItemJsonValueObject(Object json) {
10+
this.json = json;
11+
}
12+
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package multichain.object;
2+
3+
/**
4+
* @author mengl
5+
*/
6+
public class MultichainStreamItemTextValueObject {
7+
private String text;
8+
9+
public MultichainStreamItemTextValueObject(String text) {
10+
this.text = text;
11+
}
12+
13+
}

src/main/java/multichain/object/StreamKeyItem.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class StreamKeyItem {
1919
List<String> keys;
2020
Boolean offchain;
2121
Boolean available;
22-
String data = null;
22+
Object data=null;
2323
Long confirmations = null;
2424
String blockhash = null;
2525
Long blockindex = null;
@@ -75,14 +75,14 @@ public void setKey(String key) {
7575
/**
7676
* @return the data
7777
*/
78-
public String getData() {
78+
public Object getData() {
7979
return data;
8080
}
8181

8282
/**
8383
* @param data the data to set
8484
*/
85-
public void setData(String data) {
85+
public void setData(Object data) {
8686
this.data = data;
8787
}
8888

0 commit comments

Comments
 (0)