mirror of
https://gitee.com/BDWare/sdk-java
synced 2025-01-09 17:34:19 +00:00
add change DOIPConfig
This commit is contained in:
parent
ad411e5e6c
commit
e7315e7d12
@ -269,6 +269,20 @@ public class SmartContractClient extends SmartContractHandler {
|
||||
sendMsg(str);
|
||||
}
|
||||
|
||||
public static class DOIPConfig {
|
||||
public String doipAddress;
|
||||
public String lhsAddress;
|
||||
public String repoDoid;
|
||||
public String repoName;
|
||||
}
|
||||
|
||||
public void setDOIPConfig(DOIPConfig config) {
|
||||
JsonObject param = new JsonObject();
|
||||
param.addProperty("action", "changeDOIPConfig");
|
||||
param.addProperty("data", new Gson().toJson(config));
|
||||
sendMsg(param.toString());
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
String str = "{\"action\":\"changeNodeName\",\"data\":\"" + name + "\"}";
|
||||
sendMsg(str);
|
||||
|
Loading…
Reference in New Issue
Block a user