public class CrossAppClient extends BaseClient
_baseUrl, _gson, _httpClient| Constructor and Description |
|---|
CrossAppClient(java.lang.String appkey,
java.lang.String masterSecret) |
CrossAppClient(java.lang.String appKey,
java.lang.String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy) |
CrossAppClient(java.lang.String appKey,
java.lang.String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy,
JMessageConfig config)
Create a JMessage Base Client
|
| Modifier and Type | Method and Description |
|---|---|
cn.jiguang.common.resp.ResponseWrapper |
addCrossBlacklist(java.lang.String username,
CrossBlacklist[] blacklists)
Add blacklist whose users belong to another app to a given user.
|
cn.jiguang.common.resp.ResponseWrapper |
addCrossFriends(java.lang.String username,
CrossFriendPayload payload)
Add users from cross app.
|
cn.jiguang.common.resp.ResponseWrapper |
addOrRemoveCrossGroupMembers(long gid,
CrossGroup[] groups)
Add or remove group members from a given group id.
|
cn.jiguang.common.resp.ResponseWrapper |
deleteCrossBlacklist(java.lang.String username,
CrossBlacklist[] blacklists)
Delete blacklist whose users belong to another app from a given user.
|
cn.jiguang.common.resp.ResponseWrapper |
deleteCrossFriends(java.lang.String username,
CrossFriendPayload payload)
Delete cross app friends
|
UserInfoResult[] |
getCrossBlacklist(java.lang.String username)
Get all user's info(contains appkey) of user's cross app blacklist
|
MemberListResult |
getCrossGroupMembers(long gid)
Get members' info from cross group
|
cn.jiguang.common.resp.ResponseWrapper |
setCrossNoDisturb(java.lang.String username,
CrossNoDisturb[] array)
Set cross app no disturb
https://docs.jiguang.cn/jmessage/server/rest_api_im/#api_1
|
setHttpClientpublic CrossAppClient(java.lang.String appkey,
java.lang.String masterSecret)
public CrossAppClient(java.lang.String appKey,
java.lang.String masterSecret,
cn.jiguang.common.connection.HttpProxy proxy)
public CrossAppClient(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 cn.jiguang.common.resp.ResponseWrapper addOrRemoveCrossGroupMembers(long gid,
CrossGroup[] groups)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
gid - Necessary, target group id.groups - Necessarycn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic MemberListResult getCrossGroupMembers(long gid) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
gid - Necessary, target group idcn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic cn.jiguang.common.resp.ResponseWrapper addCrossBlacklist(java.lang.String username,
CrossBlacklist[] blacklists)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
username - The owner of the blacklistblacklists - CrossBlacklist arraycn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic cn.jiguang.common.resp.ResponseWrapper deleteCrossBlacklist(java.lang.String username,
CrossBlacklist[] blacklists)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
username - The owner of the blacklistblacklists - CrossBlacklist arraycn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic UserInfoResult[] getCrossBlacklist(java.lang.String username) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
username - Necessary, the owner of blacklistcn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic cn.jiguang.common.resp.ResponseWrapper setCrossNoDisturb(java.lang.String username,
CrossNoDisturb[] array)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
username - Necessaryarray - CrossNoDisturb arraycn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic cn.jiguang.common.resp.ResponseWrapper addCrossFriends(java.lang.String username,
CrossFriendPayload payload)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
username - Necessarypayload - CrossFriendPayloadcn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionpublic cn.jiguang.common.resp.ResponseWrapper deleteCrossFriends(java.lang.String username,
CrossFriendPayload payload)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
username - Necessarypayload - CrossFriendPayloadcn.jiguang.common.resp.APIConnectionException - connect exceptioncn.jiguang.common.resp.APIRequestException - request exceptionCopyright © 2019. All Rights Reserved.