add change DOIPConfig

This commit is contained in:
CaiHQ 2023-05-27 16:30:12 +08:00
parent ad411e5e6c
commit e7315e7d12

View File

@ -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);