同步专业版server sdk
This commit is contained in:
@@ -21,6 +21,7 @@ public interface APIPath {
|
|||||||
String Get_Domain = "/admin/domain/get";
|
String Get_Domain = "/admin/domain/get";
|
||||||
String Destroy_Domain = "/admin/domain/destroy";
|
String Destroy_Domain = "/admin/domain/destroy";
|
||||||
String List_Domain = "/admin/domain/list";
|
String List_Domain = "/admin/domain/list";
|
||||||
|
String Ping_Domain = "/admin/domain/ping";
|
||||||
|
|
||||||
String Create_User = "/admin/user/create";
|
String Create_User = "/admin/user/create";
|
||||||
String Update_User = "/admin/user/update";
|
String Update_User = "/admin/user/update";
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Wildfire Chat package.
|
||||||
|
* (c) Heavyrain2012 <[email protected]>
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package cn.wildfirechat.pojos.mesh;
|
||||||
|
|
||||||
|
|
||||||
|
public class PojoDomainPingRequest {
|
||||||
|
public String domainId;
|
||||||
|
}
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Wildfire Chat package.
|
||||||
|
* (c) Heavyrain2012 <[email protected]>
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package cn.wildfirechat.pojos.mesh;
|
||||||
|
|
||||||
|
|
||||||
|
public class PojoDomainPingResponse {
|
||||||
|
public boolean success;
|
||||||
|
public String errorMessage;
|
||||||
|
public String myDomainName;
|
||||||
|
}
|
||||||
@@ -227,4 +227,10 @@ public class MeshAdmin {
|
|||||||
return AdminHttpUtils.httpJsonPost(path, event, Void.class);
|
return AdminHttpUtils.httpJsonPost(path, event, Void.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static IMResult<PojoDomainPingResponse> pingDomain(String domainId) throws Exception {
|
||||||
|
String path = APIPath.Ping_Domain;
|
||||||
|
PojoDomainPingRequest request = new PojoDomainPingRequest();
|
||||||
|
request.domainId = domainId;
|
||||||
|
return AdminHttpUtils.httpJsonPost(path, request, PojoDomainPingResponse.class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user