NIMSDK-AOS  9.16.0
Public 成员函数 | 所有成员列表
com.netease.nimlib.sdk.superteam.SuperTeamService接口 参考

Created by hzsunyj on 2019-05-16. 更多...

Public 成员函数

InvocationFuture< Void > sendMessage (IMMessage msg, boolean resend)
 发送消息。
如果需要更新发送进度,请调用MsgServiceObserve#observeMsgStatus(com.netease.nimlib.sdk.Observer, boolean) 更多...
 
InvocationFuture< Void > replyMessage (IMMessage msg, IMMessage replyMsg, boolean resend)
 回复消息。
如果需要更新发送进度,请调用MsgServiceObserve#observeMsgStatus(com.netease.nimlib.sdk.Observer, boolean) 更多...
 
InvocationFuture< List< String > > addMembers (String teamId, List< String > accounts, String postscript)
 邀请成员 更多...
 
InvocationFuture< Void > removeMember (String teamId, String member)
 移出群成员,只有群主有权限 更多...
 
InvocationFuture< Void > removeMembers (String teamId, List< String > members)
 批量移出群成员,只有群主有权限 更多...
 
InvocationFuture< Void > quitTeam (String teamId)
 退出群 更多...
 
InvocationFuture< List< SessionAckInfo > > clearUnreadCount (List< String > teamIdList)
 将指定最近联系人的未读数清零(标记已读)。
调用该接口后,会触发MsgServiceObserve#observeRecentContact(Observer, boolean) 更多...
 
InvocationFuture< Void > updateTeam (String teamId, TeamFieldEnum field, Serializable value)
 更新群组资料 更多...
 
InvocationFuture< Void > updateTeamFields (String teamId, Map< TeamFieldEnum, Serializable > fields)
 批量更新群组资料,可一次性更新多个字段的值。 更多...
 
InvocationFuture< Void > updateTeamFields (String teamId, Map< TeamFieldEnum, Serializable > fields, AntiSpamConfig antiSpamConfig)
 批量更新群组资料,可一次性更新多个字段的值。 更多...
 
InvocationFuture< List< SuperTeam > > queryTeamList ()
 获取自己加入的群的列表 更多...
 
List< SuperTeamqueryTeamListBlock ()
 获取自己加入的群的列表(同步版本) 更多...
 
InvocationFuture< List< SuperTeam > > queryTeamListById (List< String > tidList)
 根据群id列表批量查询群信息 更多...
 
List< SuperTeamqueryTeamListByIdBlock (List< String > tidList)
 根据群id列表批量查询群信息(同步版本) 更多...
 
InvocationFuture< SuperTeamqueryTeam (String teamId)
 查询群资料,如果本地没有群组资料,则去服务器查询。
如果自己不在这个群中,该接口返回的可能是过期资料,如需最新的,请调用searchTeam(String teamId)接口 更多...
 
SuperTeam queryTeamBlock (String teamId)
 查询群资料(仅查询本地,不会去服务器请求) 如果自己不在这个群中,该接口返回的可能是过期资料,如需最新的,请调用searchTeam(String teamId)接口 更多...
 
InvocationFuture< SuperTeamsearchTeam (String teamId)
 从服务器上查询群资料信息 更多...
 
InvocationFuture< List< SuperTeamMember > > queryMemberList (String teamId)
 获取指定群的成员信息列表. 更多...
 
InvocationFuture< List< SuperTeamMember > > queryMemberListByPage (String teamId, int offset, int limit)
 分页获取指定群的成员信息列表. 更多...
 
InvocationFuture< SuperTeamMemberqueryTeamMember (String teamId, String account)
 查询群成员资料。如果本地群成员资料已过期会去服务器获取最新的。 更多...
 
SuperTeamMember queryTeamMemberBlock (String teamId, String account)
 查询群成员资料。(同步版本) 更多...
 
List< SuperTeamMemberqueryMutedTeamMembers (String teamId)
 查询被禁言群成员列表 该操作,只返回调用SuperTeamService#muteTeamMembers(String, ArrayList, boolean) 禁言的用户。 更多...
 
InvocationFuture< Void > updateMyTeamNick (String teamId, String nick)
 修改自己的群昵称 更多...
 
InvocationFuture< Void > updateMyMemberExtension (String teamId, String extension)
 修改自己的群成员扩展字段(自定义属性,最长32个字符) 更多...
 
InvocationFuture< Void > muteTeam (String teamId, TeamMessageNotifyTypeEnum notifyType)
 设置指定群消息通知类型,查看com.netease.nimlib.sdk.team.constant.TeamMessageNotifyTypeEnum 更多...
 
InvocationFuture< Void > revokeMessage (IMMessage message)
 消息撤回 ,默认没有第三方推送(包括IOS平台的推送),参考SuperTeamService#revokeMessage(IMMessage, String, Map) 更多...
 
InvocationFuture< Void > revokeMessage (IMMessage message, String customApnsText, Map< String, Object > pushPayload)
 消息撤回 , 并设置相应的第三方推送配置(包括IOS平台的推送),如果想要关闭App内的返回消息提醒,参考NIMClient#toggleRevokeMessageNotification(boolean on) 更多...
 
InvocationFuture< Void > revokeMessage (IMMessage message, String customApnsText, Map< String, Object > pushPayload, boolean shouldNotifyBeCount)
 消息撤回 , 并设置相应的第三方推送配置(包括IOS平台的推送),如果想要关闭App内的返回消息提醒,参考NIMClient#toggleRevokeMessageNotification(boolean on) 更多...
 
InvocationFuture< Void > revokeMessage (IMMessage message, String customApnsText, Map< String, Object > pushPayload, boolean shouldNotifyBeCount, String postscript)
 消息撤回 , 并设置相应的第三方推送配置(包括IOS平台的推送),如果想要关闭App内的返回消息提醒,参考NIMClient#toggleRevokeMessageNotification(boolean on) 更多...
 
InvocationFuture< List< SuperTeam > > searchTeamsByKeyword (String keyword)
 搜索与关键字匹配的所有群 更多...
 
InvocationFuture< SuperTeamapplyJoinTeam (String tid, String postscript)
 用户申请加入群。 更多...
 
InvocationFuture< Void > passApply (String teamId, String account)
 通过用户的入群申请
仅群主和管理员拥有者有此权限 更多...
 
InvocationFuture< Void > rejectApply (String teamId, String account, String reason)
 拒绝用户的入群申请
仅管理员和拥有者有此权限 更多...
 
InvocationFuture< Void > acceptInvite (String teamId, String inviter)
 接受别人的入群邀请 更多...
 
InvocationFuture< Void > declineInvite (String teamId, String inviter, String reason)
 拒绝别人的入群邀请通知 更多...
 
InvocationFuture< Void > sendAckSession (String teamId, long timestamp)
 标记会话ACK 更多...
 
InvocationFuture< List< SuperTeamMember > > addManagers (String teamId, List< String > accounts)
 拥有者添加管理员
仅拥有者有此权限 更多...
 
InvocationFuture< List< SuperTeamMember > > removeManagers (String teamId, List< String > managers)
 拥有者撤销管理员权限
仅拥有者有此权限 更多...
 
InvocationFuture< Void > muteAllTeamMember (String teamId, boolean mute)
 对整个群禁言、解除禁言,对普通成员生效,只有群组、管理员有权限 更多...
 
InvocationFuture< Void > muteTeamMembers (String teamId, ArrayList< String > accountList, boolean mute)
 禁言、解除禁言 更多...
 
InvocationFuture< Void > updateMemberNick (String teamId, String account, String nick)
 群组管理员修改群内其他成员的群昵称。
仅群管理员和拥有者有此权限 更多...
 
InvocationFuture< List< SuperTeamMember > > transferTeam (String tid, String account, boolean quit)
 拥有者将群的拥有者权限转给另外一个人,转移后,另外一个人成为拥有者。
原拥有者变成普通成员。若参数quit为true,原拥有者直接退出该群。 更多...
 
InvocationFuture< List< String > > searchTeamIdByName (String name)
 通过群名称反查群组ID 更多...
 
InvocationFuture< NIMSuperTeamMemberSearchResultgetTeamMemberList (String teamId, NIMTeamMemberRoleTypeSearchOption option)
 查询群成员列表 更多...
 
InvocationFuture< Void > addTeamMembersFollow (String teamId, List< String > accountIds)
 添加特别关注群成员列表 更多...
 
InvocationFuture< Void > removeTeamMembersFollow (String teamId, List< String > accountIds)
 移除特别关注群成员列表 更多...
 

详细描述

Created by hzsunyj on 2019-05-16.

在文件 SuperTeamService.java25 行定义.

成员函数说明

◆ acceptInvite()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.acceptInvite ( String  teamId,
String  inviter 
)

接受别人的入群邀请

参数
teamId群ID
inviter邀请我的用户帐号
返回
InvocationFuture 可以设置回调函数

◆ addManagers()

InvocationFuture<List<SuperTeamMember> > com.netease.nimlib.sdk.superteam.SuperTeamService.addManagers ( String  teamId,
List< String >  accounts 
)

拥有者添加管理员
仅拥有者有此权限

参数
teamId群ID
accounts待提升为管理员的用户帐号列表
返回
InvocationFuture 可以设置回调函数,如果成功,参数为新增的群管理员列表

◆ addMembers()

InvocationFuture<List<String> > com.netease.nimlib.sdk.superteam.SuperTeamService.addMembers ( String  teamId,
List< String >  accounts,
String  postscript 
)

邀请成员

参数
teamId群组ID
accounts待加入的群成员帐号列表
postscript附言,长度不得超过5000
返回
InvocationFuture 可以设置回调函数,监听操作结果

◆ addTeamMembersFollow()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.addTeamMembersFollow ( String  teamId,
List< String >  accountIds 
)

添加特别关注群成员列表

参数
teamId群组ID
accountIds账号列表
返回
InvocationFuture 可以设置回调函数

◆ applyJoinTeam()

InvocationFuture<SuperTeam> com.netease.nimlib.sdk.superteam.SuperTeamService.applyJoinTeam ( String  tid,
String  postscript 
)

用户申请加入群。

参数
tid申请加入的群ID
postscript附言,长度不得超过5000
返回
InvocationFuture 可以设置回调函数,如果成功,参数为群资料

◆ clearUnreadCount()

InvocationFuture<List<SessionAckInfo> > com.netease.nimlib.sdk.superteam.SuperTeamService.clearUnreadCount ( List< String >  teamIdList)

将指定最近联系人的未读数清零(标记已读)。
调用该接口后,会触发MsgServiceObserve#observeRecentContact(Observer, boolean)

◆ declineInvite()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.declineInvite ( String  teamId,
String  inviter,
String  reason 
)

拒绝别人的入群邀请通知

参数
teamId群ID
inviter邀请我的用户帐号
reason拒绝理由,长度不得超过5000
返回
InvocationFuture 可以设置回调函数

◆ getTeamMemberList()

InvocationFuture<NIMSuperTeamMemberSearchResult> com.netease.nimlib.sdk.superteam.SuperTeamService.getTeamMemberList ( String  teamId,
NIMTeamMemberRoleTypeSearchOption  option 
)

查询群成员列表

参数
teamId群组ID
option查询选项
返回

◆ muteAllTeamMember()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.muteAllTeamMember ( String  teamId,
boolean  mute 
)

对整个群禁言、解除禁言,对普通成员生效,只有群组、管理员有权限

参数
teamId群组 ID
mutetrue表示禁言,false表示解除禁言
返回
InvocationFuture 可以设置回调函数,监听操作结果

◆ muteTeam()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.muteTeam ( String  teamId,
TeamMessageNotifyTypeEnum  notifyType 
)

设置指定群消息通知类型,查看com.netease.nimlib.sdk.team.constant.TeamMessageNotifyTypeEnum

参数
teamId群组ID
notifyType通知类型枚举
返回
InvocationFuture 可以设置回调函数,监听操作结果

◆ muteTeamMembers()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.muteTeamMembers ( String  teamId,
ArrayList< String >  accountList,
boolean  mute 
)

禁言、解除禁言

参数
teamId群组ID
accountList被禁言、被解除禁言的账号列表
mutetrue表示禁言,false表示解除禁言
返回
InvocationFuture 可以设置回调函数,监听操作结果

◆ passApply()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.passApply ( String  teamId,
String  account 
)

通过用户的入群申请
仅群主和管理员拥有者有此权限

参数
teamId群ID
account申请入群的用户ID
返回
InvocationFuture 可以设置回调函数

◆ queryMemberList()

InvocationFuture<List<SuperTeamMember> > com.netease.nimlib.sdk.superteam.SuperTeamService.queryMemberList ( String  teamId)

获取指定群的成员信息列表.


该操作有可能只是从本地数据库读取缓存数据,也有可能会从服务器同步新的数据, 因此耗时可能会比较长。

参数
teamId群ID
返回
InvocationFuture 可以设置回调函数,如果成功,参数为群的成员信息列表

◆ queryMemberListByPage()

InvocationFuture<List<SuperTeamMember> > com.netease.nimlib.sdk.superteam.SuperTeamService.queryMemberListByPage ( String  teamId,
int  offset,
int  limit 
)

分页获取指定群的成员信息列表.


该操作有可能只是从本地数据库读取缓存数据,也有可能会从服务器同步新的数据, 因此耗时可能会比较长。

参数
teamId群ID
offset偏移位置
limit获取条数,每次最多200
返回
InvocationFuture 可以设置回调函数,如果成功,参数为群的成员信息列表

◆ queryMutedTeamMembers()

List<SuperTeamMember> com.netease.nimlib.sdk.superteam.SuperTeamService.queryMutedTeamMembers ( String  teamId)

查询被禁言群成员列表 该操作,只返回调用SuperTeamService#muteTeamMembers(String, ArrayList, boolean) 禁言的用户。

参数
teamId群ID
返回
群成员信息列表

◆ queryTeam()

InvocationFuture<SuperTeam> com.netease.nimlib.sdk.superteam.SuperTeamService.queryTeam ( String  teamId)

查询群资料,如果本地没有群组资料,则去服务器查询。
如果自己不在这个群中,该接口返回的可能是过期资料,如需最新的,请调用searchTeam(String teamId)接口

参数
teamId群ID
返回
InvocationFuture 可以设置回调函数,如果成功,参数为群资料

◆ queryTeamBlock()

SuperTeam com.netease.nimlib.sdk.superteam.SuperTeamService.queryTeamBlock ( String  teamId)

查询群资料(仅查询本地,不会去服务器请求) 如果自己不在这个群中,该接口返回的可能是过期资料,如需最新的,请调用searchTeam(String teamId)接口

参数
teamId群ID
返回
群资料

◆ queryTeamList()

InvocationFuture<List<SuperTeam> > com.netease.nimlib.sdk.superteam.SuperTeamService.queryTeamList ( )

获取自己加入的群的列表

返回
InvocationFuture 可以设置回调函数,如果成功,参数为自己加入的群的列表

◆ queryTeamListBlock()

List<SuperTeam> com.netease.nimlib.sdk.superteam.SuperTeamService.queryTeamListBlock ( )

获取自己加入的群的列表(同步版本)

返回
自己加入的群的列表

◆ queryTeamListById()

InvocationFuture<List<SuperTeam> > com.netease.nimlib.sdk.superteam.SuperTeamService.queryTeamListById ( List< String >  tidList)

根据群id列表批量查询群信息

参数
tidList群id列表
返回
可以设置回调函数,如果成功,参数为查询的群信息列表

◆ queryTeamListByIdBlock()

List<SuperTeam> com.netease.nimlib.sdk.superteam.SuperTeamService.queryTeamListByIdBlock ( List< String >  tidList)

根据群id列表批量查询群信息(同步版本)

参数
tidList群id列表
返回
查询的群信息列表

◆ queryTeamMember()

InvocationFuture<SuperTeamMember> com.netease.nimlib.sdk.superteam.SuperTeamService.queryTeamMember ( String  teamId,
String  account 
)

查询群成员资料。如果本地群成员资料已过期会去服务器获取最新的。

参数
teamId群ID
account群成员帐号
返回
InvocationFuture 可以设置回调函数,如果成功,参数为该群成员信息

◆ queryTeamMemberBlock()

SuperTeamMember com.netease.nimlib.sdk.superteam.SuperTeamService.queryTeamMemberBlock ( String  teamId,
String  account 
)

查询群成员资料。(同步版本)

参数
teamId群ID
account群成员帐号
返回
群成员信息

◆ quitTeam()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.quitTeam ( String  teamId)

退出群

参数
teamId群ID
返回
InvocationFuture 可以设置回调函数,监听操作结果

◆ rejectApply()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.rejectApply ( String  teamId,
String  account,
String  reason 
)

拒绝用户的入群申请
仅管理员和拥有者有此权限

参数
teamId群ID
account申请入群的用户ID
reason拒绝理由,长度不得超过5000
返回
InvocationFuture 可以设置回调函数

◆ removeManagers()

InvocationFuture<List<SuperTeamMember> > com.netease.nimlib.sdk.superteam.SuperTeamService.removeManagers ( String  teamId,
List< String >  managers 
)

拥有者撤销管理员权限
仅拥有者有此权限

参数
teamId群ID
managers待撤销的管理员的帐号列表
返回
InvocationFuture 可以设置回调函数,如果成功,参数为被撤销的群成员列表(权限已被降为Normal)。

◆ removeMember()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.removeMember ( String  teamId,
String  member 
)

移出群成员,只有群主有权限

参数
teamId群ID
member被踢出的成员帐号
返回
InvocationFuture 可以设置回调函数,监听操作结果

◆ removeMembers()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.removeMembers ( String  teamId,
List< String >  members 
)

批量移出群成员,只有群主有权限

参数
teamId群ID
members被踢出的成员帐号列表
返回
InvocationFuture 可以设置回调函数,监听操作结果

◆ removeTeamMembersFollow()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.removeTeamMembersFollow ( String  teamId,
List< String >  accountIds 
)

移除特别关注群成员列表

参数
teamId群组ID
accountIds账号列表
返回
InvocationFuture 可以设置回调函数

◆ replyMessage()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.replyMessage ( IMMessage  msg,
IMMessage  replyMsg,
boolean  resend 
)

回复消息。
如果需要更新发送进度,请调用MsgServiceObserve#observeMsgStatus(com.netease.nimlib.sdk.Observer, boolean)

参数
msg带发送的消息体,由MessageBuilder构造
replyMsg被回复的消息
resend如果是发送失败后重发,标记为true,否则填false
返回
InvocationFuture 可以设置回调函数。消息发送完成后才会调用,如果出错,会有具体的错误代码。

◆ revokeMessage() [1/4]

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.revokeMessage ( IMMessage  message)

消息撤回 ,默认没有第三方推送(包括IOS平台的推送),参考SuperTeamService#revokeMessage(IMMessage, String, Map)

参数
message待撤回的消息
返回
InvocationFuture 可设置回调函数,监听发送结果。

◆ revokeMessage() [2/4]

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.revokeMessage ( IMMessage  message,
String  customApnsText,
Map< String, Object >  pushPayload 
)

消息撤回 , 并设置相应的第三方推送配置(包括IOS平台的推送),如果想要关闭App内的返回消息提醒,参考NIMClient#toggleRevokeMessageNotification(boolean on)

参数
message待撤回的消息
customApnsText第三方透传消息推送文本,不填则不推送
pushPayload第三方自定义的推送属性,限制json,长度2048
返回
InvocationFuture 可设置回调函数,监听发送结果。

◆ revokeMessage() [3/4]

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.revokeMessage ( IMMessage  message,
String  customApnsText,
Map< String, Object >  pushPayload,
boolean  shouldNotifyBeCount 
)

消息撤回 , 并设置相应的第三方推送配置(包括IOS平台的推送),如果想要关闭App内的返回消息提醒,参考NIMClient#toggleRevokeMessageNotification(boolean on)

参数
message待撤回的消息
customApnsText第三方透传消息推送文本,不填则不推送
pushPayload第三方自定义的推送属性,限制json,长度2048
shouldNotifyBeCount撤回通知是否更新未读数
返回
InvocationFuture 可设置回调函数,监听发送结果。

◆ revokeMessage() [4/4]

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.revokeMessage ( IMMessage  message,
String  customApnsText,
Map< String, Object >  pushPayload,
boolean  shouldNotifyBeCount,
String  postscript 
)

消息撤回 , 并设置相应的第三方推送配置(包括IOS平台的推送),如果想要关闭App内的返回消息提醒,参考NIMClient#toggleRevokeMessageNotification(boolean on)

参数
message待撤回的消息
customApnsText第三方透传消息推送文本,不填则不推送
pushPayload第三方自定义的推送属性,限制json,长度2048
shouldNotifyBeCount撤回通知是否更新未读数
postscript附言
返回
InvocationFuture 可设置回调函数,监听发送结果。

◆ searchTeam()

InvocationFuture<SuperTeam> com.netease.nimlib.sdk.superteam.SuperTeamService.searchTeam ( String  teamId)

从服务器上查询群资料信息

参数
teamId
返回

◆ searchTeamIdByName()

InvocationFuture<List<String> > com.netease.nimlib.sdk.superteam.SuperTeamService.searchTeamIdByName ( String  name)

通过群名称反查群组ID

参数
name群组名称
返回
群ID列表

◆ searchTeamsByKeyword()

InvocationFuture<List<SuperTeam> > com.netease.nimlib.sdk.superteam.SuperTeamService.searchTeamsByKeyword ( String  keyword)

搜索与关键字匹配的所有群

返回
群集合

◆ sendAckSession()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.sendAckSession ( String  teamId,
long  timestamp 
)

标记会话ACK

参数
teamId群ID
timestamp会话最后一条ACK消息的时间戳,单位毫秒
返回
InvocationFuture 可以设置回调函数

◆ sendMessage()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.sendMessage ( IMMessage  msg,
boolean  resend 
)

发送消息。
如果需要更新发送进度,请调用MsgServiceObserve#observeMsgStatus(com.netease.nimlib.sdk.Observer, boolean)

参数
msg带发送的消息体,由MessageBuilder构造
resend如果是发送失败后重发,标记为true,否则填false
返回
InvocationFuture 可以设置回调函数。消息发送完成后才会调用,如果出错,会有具体的错误代码。

◆ transferTeam()

InvocationFuture<List<SuperTeamMember> > com.netease.nimlib.sdk.superteam.SuperTeamService.transferTeam ( String  tid,
String  account,
boolean  quit 
)

拥有者将群的拥有者权限转给另外一个人,转移后,另外一个人成为拥有者。
原拥有者变成普通成员。若参数quit为true,原拥有者直接退出该群。

参数
tid群ID
account新任拥有者的用户帐号
quit转移时是否要同时退出该群
返回
InvocationFuture 可以设置回调函数,如果成功,视参数quit值:
quit为false:参数仅包含原拥有者和当前拥有者的(即操作者和account),权限已被更新。
quit为true: 参数为空。

◆ updateMemberNick()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.updateMemberNick ( String  teamId,
String  account,
String  nick 
)

群组管理员修改群内其他成员的群昵称。
仅群管理员和拥有者有此权限

参数
teamId所在群组ID
account要修改的群成员帐号
nick新的群昵称
返回
InvocationFuture 可以设置回调函数,监听操作结果

◆ updateMyMemberExtension()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.updateMyMemberExtension ( String  teamId,
String  extension 
)

修改自己的群成员扩展字段(自定义属性,最长32个字符)

参数
teamId所在群组ID
extension扩展字段(自定义属性)
返回
InvocationFuture 可以设置回调函数,监听操作结果

◆ updateMyTeamNick()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.updateMyTeamNick ( String  teamId,
String  nick 
)

修改自己的群昵称

参数
teamId所在群组ID
nick新的群昵称
返回
InvocationFuture 可以设置回调函数,监听操作结果

◆ updateTeam()

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.updateTeam ( String  teamId,
TeamFieldEnum  field,
Serializable  value 
)

更新群组资料

参数
teamId群ID
field待更新的域
value待更新的域的新值 该值类型必须和field中定义的fieldType一致
返回
InvocationFuture 可以设置回调函数,监听操作结果

◆ updateTeamFields() [1/2]

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.updateTeamFields ( String  teamId,
Map< TeamFieldEnum, Serializable >  fields 
)

批量更新群组资料,可一次性更新多个字段的值。

参数
teamId群ID
fields待更新的所有字段的新的资料,其中值类型必须和field中定义的fieldType一致
返回
InvocationFuture 可以设置回调函数,监听操作结果

◆ updateTeamFields() [2/2]

InvocationFuture<Void> com.netease.nimlib.sdk.superteam.SuperTeamService.updateTeamFields ( String  teamId,
Map< TeamFieldEnum, Serializable >  fields,
AntiSpamConfig  antiSpamConfig 
)

批量更新群组资料,可一次性更新多个字段的值。

参数
teamId群ID
fields待更新的所有字段的新的资料,其中值类型必须和field中定义的fieldType一致
antiSpamConfig反垃圾相关配置参数
返回
InvocationFuture 可以设置回调函数,监听操作结果

该接口的文档由以下文件生成: