Skip to content

Commit 113eff0

Browse files
committed
add restrict parameter for AssetParams and getRestrict from listassets
1 parent 7d2b17e commit 113eff0

File tree

2 files changed

+39
-4
lines changed

2 files changed

+39
-4
lines changed

src/main/java/multichain/object/BalanceAsset.java

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class BalanceAsset {
2121
Double units = null;
2222
Boolean open = null;
2323
Map<String, String> details = null;
24+
Map<String, String> restrict = null;
2425
Double qty = null;
2526
Long raw = null;
2627
Double issueqty = null;
@@ -36,9 +37,26 @@ public class BalanceAsset {
3637
@Override
3738
public String toString() {
3839
return "BalanceAsset [name=" + name + ", issuetxid=" + issuetxid + ", assetref=" + assetref
39-
+ ", multiple=" + multiple + ", units=" + units + ", open=" + open + ", details=" + details
40-
+ ", qty=" + qty + ", raw=" + raw + ", issueqty=" + issueqty + ", issueraw=" + issueraw
41-
+ ", subscribed=" + subscribed + "]";
40+
+ ", multiple=" + multiple + ", units=" + units + ", open=" + open + ", details=" + details
41+
+ ", restrict=" + restrict
42+
+ ", qty=" + qty + ", raw=" + raw + ", issueqty=" + issueqty + ", issueraw=" + issueraw
43+
+ ", subscribed=" + subscribed + "]";
44+
}
45+
46+
/**
47+
* get restrict
48+
* @return
49+
*/
50+
public Map<String, String> getRestrict() {
51+
return restrict;
52+
}
53+
54+
/**
55+
* set restrict
56+
* @param restrict
57+
*/
58+
public void setRestrict(Map<String, String> restrict) {
59+
this.restrict = restrict;
4260
}
4361

4462
/**

src/main/java/multichain/object/queryobjects/AssetParams.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,32 @@
1414
public class AssetParams {
1515
String name;
1616
boolean open;
17+
String restrict;
1718

1819
/**
1920
* @param name
2021
* @param open
2122
*/
22-
public AssetParams(String name, boolean open) {
23+
public AssetParams(String name, boolean open, String restrict) {
2324
super();
2425
this.name = name;
2526
this.open = open;
27+
this.restrict = restrict;
28+
}
29+
30+
/**
31+
* @return the restrict
32+
*/
33+
public String getRestrict() {
34+
return restrict;
35+
}
36+
37+
/**
38+
* set the restrict
39+
* @param restrict
40+
*/
41+
public void setRestrict(String restrict) {
42+
this.restrict = restrict;
2643
}
2744

2845
/**

0 commit comments

Comments
 (0)