public interface SuperTeamService
Modifier and Type | Method and Description |
---|---|
InvocationFuture<java.lang.Void> |
acceptInvite(java.lang.String teamId,
java.lang.String inviter)
Join a group by accepting an invitation
|
InvocationFuture<java.util.List<SuperTeamMember>> |
addManagers(java.lang.String teamId,
java.util.List<java.lang.String> accounts)
The group owner assign administrators
Only the group owner has the permissions |
InvocationFuture<java.util.List<java.lang.String>> |
addMembers(java.lang.String teamId,
java.util.List<java.lang.String> accounts,
java.lang.String postscript)
Add a group member
|
InvocationFuture<SuperTeam> |
applyJoinTeam(java.lang.String tid,
java.lang.String postscript)
Request joining a group
|
InvocationFuture<java.util.List<SessionAckInfo>> |
clearUnreadCount(java.util.List<java.lang.String> teamIdList)
Set the unread count of specified recent contact to 0 (tag read).
|
InvocationFuture<java.lang.Void> |
declineInvite(java.lang.String teamId,
java.lang.String inviter,
java.lang.String reason)
Decline an invite request
|
InvocationFuture<java.lang.Void> |
muteAllTeamMember(java.lang.String teamId,
boolean mute)
Mute or unmute a group.
|
InvocationFuture<java.lang.Void> |
muteTeam(java.lang.String teamId,
TeamMessageNotifyTypeEnum notifyType)
Set message type of a specified group.
|
InvocationFuture<java.lang.Void> |
muteTeamMembers(java.lang.String teamId,
java.util.ArrayList<java.lang.String> accountList,
boolean mute)
Mute and unmute
|
InvocationFuture<java.lang.Void> |
passApply(java.lang.String teamId,
java.lang.String account)
Accept join requests
Only the group owner and administrators have the permissions |
InvocationFuture<java.util.List<SuperTeamMember>> |
queryMemberList(java.lang.String teamId)
Get a list of specified group members
This operation may only read cached data from the local database or synchronize new data from the server. |
InvocationFuture<java.util.List<SuperTeamMember>> |
queryMemberListByPage(java.lang.String teamId,
int offset,
int limit)
Get a list of specified group members on paginated pages
This operation may only read cached data from the local database or synchronize new data from the server. |
java.util.List<SuperTeamMember> |
queryMutedTeamMembers(java.lang.String teamId)
Query the list of muted group members
The operation returns members muted by calling
muteTeamMembers(String, ArrayList, boolean) . |
InvocationFuture<SuperTeam> |
queryTeam(java.lang.String teamId)
Query the group profile.
|
SuperTeam |
queryTeamBlock(java.lang.String teamId)
Query the group profile on local storage, not from the server
If the current user does not belong to the group, the interface returns expired data.
|
InvocationFuture<java.util.List<SuperTeam>> |
queryTeamList()
Get the list of groups the current user has joined
|
java.util.List<SuperTeam> |
queryTeamListBlock()
Get the list of groups the current user has joined (sync)
|
InvocationFuture<java.util.List<SuperTeam>> |
queryTeamListById(java.util.List<java.lang.String> tidList)
Query groups based groups IDs
|
java.util.List<SuperTeam> |
queryTeamListByIdBlock(java.util.List<java.lang.String> tidList)
Query groups based groups IDs (sync)
|
InvocationFuture<SuperTeamMember> |
queryTeamMember(java.lang.String teamId,
java.lang.String account)
Get the profile of a group member.
|
SuperTeamMember |
queryTeamMemberBlock(java.lang.String teamId,
java.lang.String account)
Get the profile of a group member.
|
InvocationFuture<java.lang.Void> |
quitTeam(java.lang.String teamId)
Leave a group
|
InvocationFuture<java.lang.Void> |
rejectApply(java.lang.String teamId,
java.lang.String account,
java.lang.String reason)
Reject join requests
Only administrators have the permissions |
InvocationFuture<java.util.List<SuperTeamMember>> |
removeManagers(java.lang.String teamId,
java.util.List<java.lang.String> managers)
The group owner revokes the administrator privilege
Only the group owner has the permissions |
InvocationFuture<java.lang.Void> |
removeMember(java.lang.String teamId,
java.lang.String member)
Remove a group member.
|
InvocationFuture<java.lang.Void> |
removeMembers(java.lang.String teamId,
java.util.List<java.lang.String> members)
Remove multiple group members.
|
InvocationFuture<java.lang.Void> |
replyMessage(IMMessage msg,
IMMessage replyMsg,
boolean resend)
Reply a message.
|
InvocationFuture<java.lang.Void> |
revokeMessage(IMMessage message)
Recall a messages.
|
InvocationFuture<java.lang.Void> |
revokeMessage(IMMessage message,
java.lang.String customApnsText,
java.util.Map<java.lang.String,java.lang.Object> pushPayload)
Recall a message and set third party push notifications, including the iOS platform.
|
InvocationFuture<java.lang.Void> |
revokeMessage(IMMessage message,
java.lang.String customApnsText,
java.util.Map<java.lang.String,java.lang.Object> pushPayload,
boolean shouldNotifyBeCount)
Recall a message and set third party push notifications, including the iOS platform.
|
InvocationFuture<java.lang.Void> |
revokeMessage(IMMessage message,
java.lang.String customApnsText,
java.util.Map<java.lang.String,java.lang.Object> pushPayload,
boolean shouldNotifyBeCount,
java.lang.String postscript)
Recall a message and set third party push notifications, including the iOS platform.
|
InvocationFuture<SuperTeam> |
searchTeam(java.lang.String teamId)
Query group profiles from servers
|
InvocationFuture<java.util.List<java.lang.String>> |
searchTeamIdByName(java.lang.String name)
Search group IDs using a group name
|
InvocationFuture<java.util.List<SuperTeam>> |
searchTeamsByKeyword(java.lang.String keyword)
Search all groups using keywords.
|
InvocationFuture<java.lang.Void> |
sendAckSession(java.lang.String teamId,
long timestamp)
Mark a session ACK
|
InvocationFuture<java.lang.Void> |
sendMessage(IMMessage msg,
boolean resend)
Sending a message.
|
InvocationFuture<java.util.List<SuperTeamMember>> |
transferTeam(java.lang.String tid,
java.lang.String account,
boolean quit)
The group owner transfer the ownership of a group to a member.
|
InvocationFuture<java.lang.Void> |
updateMemberNick(java.lang.String teamId,
java.lang.String account,
java.lang.String nick)
Group administrators edit the nickname of a member
Only administrators have the permissions |
InvocationFuture<java.lang.Void> |
updateMyMemberExtension(java.lang.String teamId,
java.lang.String extension)
Edit the extension field in the group profile of the current user (user defined attribute contains up to 32 characters)
|
InvocationFuture<java.lang.Void> |
updateMyTeamNick(java.lang.String teamId,
java.lang.String nick)
Edit the nickname of the current user
|
InvocationFuture<java.lang.Void> |
updateTeam(java.lang.String teamId,
TeamFieldEnum field,
java.io.Serializable value)
Update the group profile
|
InvocationFuture<java.lang.Void> |
updateTeamFields(java.lang.String teamId,
java.util.Map<TeamFieldEnum,java.io.Serializable> fields)
Update multiple fields of the group profile.
|
InvocationFuture<java.lang.Void> |
updateTeamFields(java.lang.String teamId,
java.util.Map<TeamFieldEnum,java.io.Serializable> fields,
AntiSpamConfig antiSpamConfig)
Update multiple fields of the group profile.
|
InvocationFuture<java.lang.Void> sendMessage(IMMessage msg, boolean resend)
MsgServiceObserve.observeMsgStatus(Observer, boolean)
msg
- Message body constructed by MessageBuilder
resend
- To resend the message if failed, set the value to true. Otherwise, set the value to false.InvocationFuture<java.lang.Void> replyMessage(IMMessage msg, IMMessage replyMsg, boolean resend)
MsgServiceObserve.observeMsgStatus(Observer, boolean)
msg
- Message body constructed by MessageBuilder
replyMsg
- The message to be replied.resend
- To resend the message if failed, set the value to true. Otherwise, set the value to false.InvocationFuture<java.util.List<java.lang.String>> addMembers(java.lang.String teamId, java.util.List<java.lang.String> accounts, java.lang.String postscript)
teamId
- group IDaccounts
- The list of accounts to join a grouppostscript
- Additional message. The length of the message cannot exceed 5000 characters.InvocationFuture<java.lang.Void> removeMember(java.lang.String teamId, java.lang.String member)
teamId
- group IDmember
- account of a member to be removedInvocationFuture<java.lang.Void> removeMembers(java.lang.String teamId, java.util.List<java.lang.String> members)
teamId
- group IDmembers
- list of accounts to be removedInvocationFuture<java.lang.Void> quitTeam(java.lang.String teamId)
teamId
- group IDInvocationFuture<java.util.List<SessionAckInfo>> clearUnreadCount(java.util.List<java.lang.String> teamIdList)
MsgServiceObserve.observeRecentContact(Observer, boolean)
InvocationFuture<java.lang.Void> updateTeam(java.lang.String teamId, TeamFieldEnum field, java.io.Serializable value)
teamId
- group IDfield
- field to be updatgedvalue
- new value of a field
The value data type must be consistent with the defined fieldType.InvocationFuture<java.lang.Void> updateTeamFields(java.lang.String teamId, java.util.Map<TeamFieldEnum,java.io.Serializable> fields)
teamId
- group IDfields
- new values of fields to be updated. The value data type must be consistent with the defined fieldType.InvocationFuture<java.lang.Void> updateTeamFields(java.lang.String teamId, java.util.Map<TeamFieldEnum,java.io.Serializable> fields, AntiSpamConfig antiSpamConfig)
teamId
- group IDfields
- new values of fields to be updated. The value data type must be consistent with the defined fieldType.antiSpamConfig
- Anti-spam configurationInvocationFuture<java.util.List<SuperTeam>> queryTeamList()
java.util.List<SuperTeam> queryTeamListBlock()
InvocationFuture<java.util.List<SuperTeam>> queryTeamListById(java.util.List<java.lang.String> tidList)
tidList
- List of group IDsjava.util.List<SuperTeam> queryTeamListByIdBlock(java.util.List<java.lang.String> tidList)
tidList
- List of group IDsInvocationFuture<SuperTeam> queryTeam(java.lang.String teamId)
searchTeam(String teamId)
.teamId
- group IDSuperTeam queryTeamBlock(java.lang.String teamId)
searchTeam(String teamId)
.teamId
- group IDInvocationFuture<SuperTeam> searchTeam(java.lang.String teamId)
teamId
- InvocationFuture<java.util.List<SuperTeamMember>> queryMemberList(java.lang.String teamId)
teamId
- group IDInvocationFuture<java.util.List<SuperTeamMember>> queryMemberListByPage(java.lang.String teamId, int offset, int limit)
teamId
- group IDoffset
- offsetlimit
- limit of returned members. Up to 200 members can be loaded.InvocationFuture<SuperTeamMember> queryTeamMember(java.lang.String teamId, java.lang.String account)
teamId
- group IDaccount
- account of a group memberSuperTeamMember queryTeamMemberBlock(java.lang.String teamId, java.lang.String account)
teamId
- group IDaccount
- account of a group memberjava.util.List<SuperTeamMember> queryMutedTeamMembers(java.lang.String teamId)
muteTeamMembers(String, ArrayList, boolean)
.teamId
- group IDInvocationFuture<java.lang.Void> updateMyTeamNick(java.lang.String teamId, java.lang.String nick)
teamId
- group IDnick
- new nicknameInvocationFuture<java.lang.Void> updateMyMemberExtension(java.lang.String teamId, java.lang.String extension)
teamId
- group IDextension
- extension field (user defined)InvocationFuture<java.lang.Void> muteTeam(java.lang.String teamId, TeamMessageNotifyTypeEnum notifyType)
TeamMessageNotifyTypeEnum
teamId
- group IDnotifyType
- notification type enumerationInvocationFuture<java.lang.Void> revokeMessage(IMMessage message)
MsgService#revokeMessageEx(IMMessage, String, Map)
message
- The message to be recalled.InvocationFuture<java.lang.Void> revokeMessage(IMMessage message, java.lang.String customApnsText, java.util.Map<java.lang.String,java.lang.Object> pushPayload)
NIMClient.toggleRevokeMessageNotification(boolean on)
message
- The message to be recalled.customApnsText
- Custom push text. If the parameter is not specified, no push notifications will be sent.pushPayload
- Custom push payload in JSON with a maximum of 2048 characters.InvocationFuture<java.lang.Void> revokeMessage(IMMessage message, java.lang.String customApnsText, java.util.Map<java.lang.String,java.lang.Object> pushPayload, boolean shouldNotifyBeCount)
NIMClient.toggleRevokeMessageNotification(boolean on)
message
- The message to be recalled.customApnsText
- Custom push text. If the parameter is not specified, no push notifications will be sent.pushPayload
- Custom push payload in JSON with a maximum of 2048 characters.shouldNotifyBeCount
- Specify whether to update the unread count when a message is recalled.InvocationFuture<java.lang.Void> revokeMessage(IMMessage message, java.lang.String customApnsText, java.util.Map<java.lang.String,java.lang.Object> pushPayload, boolean shouldNotifyBeCount, java.lang.String postscript)
NIMClient.toggleRevokeMessageNotification(boolean on)
message
- The message to be recalled.customApnsText
- Custom push text. If the parameter is not specified, no push notifications will be sent.pushPayload
- Custom push payload in JSON with a maximum of 2048 characters.shouldNotifyBeCount
- Specify whether to update the unread count when a message is recalled.postscript
- Additional messageInvocationFuture<java.util.List<SuperTeam>> searchTeamsByKeyword(java.lang.String keyword)
InvocationFuture<SuperTeam> applyJoinTeam(java.lang.String tid, java.lang.String postscript)
tid
- the ID of a group to be joinedpostscript
- Additional message. The length of the message cannot exceed 5000 characters.InvocationFuture<java.lang.Void> passApply(java.lang.String teamId, java.lang.String account)
teamId
- group IDaccount
- ID of accounts that sent the join requestInvocationFuture<java.lang.Void> rejectApply(java.lang.String teamId, java.lang.String account, java.lang.String reason)
teamId
- group IDaccount
- ID of accounts that sent the join requestreason
- reason for declining a join request. The length of the reason cannot exceed 5000 characters.InvocationFuture<java.lang.Void> acceptInvite(java.lang.String teamId, java.lang.String inviter)
teamId
- group IDinviter
- account of an inviterInvocationFuture<java.lang.Void> declineInvite(java.lang.String teamId, java.lang.String inviter, java.lang.String reason)
teamId
- group IDinviter
- account of an inviterreason
- reason for declining a join request. The length of the reason cannot exceed 5000 characters.InvocationFuture<java.lang.Void> sendAckSession(java.lang.String teamId, long timestamp)
teamId
- group IDtimestamp
- timestamp of the last ACK message in the session in milliseconds.InvocationFuture<java.util.List<SuperTeamMember>> addManagers(java.lang.String teamId, java.util.List<java.lang.String> accounts)
teamId
- group IDaccounts
- list of members to be assigned the administrator privilegeInvocationFuture<java.util.List<SuperTeamMember>> removeManagers(java.lang.String teamId, java.util.List<java.lang.String> managers)
teamId
- group IDmanagers
- list of administrators to be revoked the administrator privilege.InvocationFuture<java.lang.Void> muteAllTeamMember(java.lang.String teamId, boolean mute)
teamId
- group IDmute
- true: mute; false: unmuteInvocationFuture<java.lang.Void> muteTeamMembers(java.lang.String teamId, java.util.ArrayList<java.lang.String> accountList, boolean mute)
teamId
- group IDaccount
- list of muted or ummuted accountsmute
- true: mute; false: unmuteInvocationFuture<java.lang.Void> updateMemberNick(java.lang.String teamId, java.lang.String account, java.lang.String nick)
teamId
- group IDaccount
- account of a member whose nickname is editednick
- new nicknameInvocationFuture<java.util.List<SuperTeamMember>> transferTeam(java.lang.String tid, java.lang.String account, boolean quit)
tid
- group IDaccount
- account of the new group ownerquit
- specify whether to leave the group after the transferInvocationFuture<java.util.List<java.lang.String>> searchTeamIdByName(java.lang.String name)
name
- group name