public class GroupClient extends BaseClient
_baseUrl, _gson, _httpClient| Constructor and Description |
|---|
GroupClient(java.lang.String appkey,
java.lang.String masterSecret)
Create a Group Client with default parameters.
|
GroupClient(java.lang.String appkey,
java.lang.String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy)
Create a Group Client with a proxy.
|
GroupClient(java.lang.String appkey,
java.lang.String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy,
JMessageConfig config)
Create a Group Client by custom config.
|
| Modifier and Type | Method and Description |
|---|---|
cn.jiguang.common.resp.ResponseWrapper |
addOrRemoveMembers(long gid,
Members add,
Members remove) |
cn.jiguang.common.resp.ResponseWrapper |
changeGroupAdmin(long gid,
java.lang.String appKey,
java.lang.String username) |
CreateGroupResult |
createGroup(GroupPayload payload) |
cn.jiguang.common.resp.ResponseWrapper |
deleteGroup(long gid) |
GroupInfoResult |
getGroupInfo(long gid) |
GroupListResult |
getGroupListByAppkey(int start,
int count) |
MemberListResult |
getGroupMembers(long gid) |
cn.jiguang.common.resp.ResponseWrapper |
updateGroupInfo(long gid,
java.lang.String groupName,
java.lang.String groupDesc,
java.lang.String avatar) |
setHttpClientpublic GroupClient(java.lang.String appkey,
java.lang.String masterSecret)
appkey - The key of one application on JPush.masterSecret - API access secret of the appKey.public GroupClient(java.lang.String appkey,
java.lang.String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy)
appkey - The key of one application on JPush.masterSecret - API access secret of the appKey.proxy - The proxy, if there is no proxy, should be null.public GroupClient(java.lang.String appkey,
java.lang.String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy,
JMessageConfig config)
appkey - The key of one application on JPush.masterSecret - API access secret of the appKey.proxy - The proxy, if there is no proxy, should be null.config - The client configuration. Can use JMessageConfig.getInstance() as default.public GroupInfoResult getGroupInfo(long gid) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic MemberListResult getGroupMembers(long gid) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic GroupListResult getGroupListByAppkey(int start, int count) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic CreateGroupResult createGroup(GroupPayload payload) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.ResponseWrapper addOrRemoveMembers(long gid,
Members add,
Members remove)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.ResponseWrapper deleteGroup(long gid)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.ResponseWrapper updateGroupInfo(long gid,
java.lang.String groupName,
java.lang.String groupDesc,
java.lang.String avatar)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.ResponseWrapper changeGroupAdmin(long gid,
java.lang.String appKey,
java.lang.String username)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionCopyright © 2018. All Rights Reserved.