NIM C# SDK  6.3.0
NIM.Team.TeamAPI Class Reference

Static Public Member Functions

static void RegisterCallbacks ()
 
static void CreateTeam (NIMTeamInfo teamInfo, string[] idList, string postscript, TeamChangedNotificationDelegate action)
 创建群 More...
 
static void Invite (string tid, string[] idList, string postscript, TeamChangedNotificationDelegate action)
 邀请好友入群 More...
 
static void InviteEx (string tid, string[]idList, string postscript, string attachment, TeamChangedNotificationDelegate action)
 邀请好友入群 More...
 
static void KickMemberOutFromTeam (string tid, string[] idList, TeamChangedNotificationDelegate action)
 将用户踢下线 More...
 
static void LeaveTeam (string tid, TeamChangedNotificationDelegate action)
 离开群 More...
 
static void DismissTeam (string tid, TeamChangedNotificationDelegate action)
 解散群组 More...
 
static void UpdateTeamInfo (string tid, NIMTeamInfo info, TeamChangedNotificationDelegate action)
 更新群信息 More...
 
static void ApplyForJoiningTeam (string tid, string reason, TeamChangedNotificationDelegate action)
 申请入群 More...
 
static void AgreeJoinTeamApplication (string tid, string uid, TeamChangedNotificationDelegate action)
 同意入群申请 More...
 
static void RejectJoinTeamApplication (string tid, string uid, string reason, TeamChangedNotificationDelegate action)
 拒绝入群申请 More...
 
static void AddTeamManagers (string tid, string[] managerIdArray, TeamChangedNotificationDelegate action)
 添加群管理员 More...
 
static void RemoveTeamManagers (string tid, string[] managerIdArray, TeamChangedNotificationDelegate action)
 删除群管理员 More...
 
static void TransferTeamAdmin (string tid, string newOwnerId, bool leaveTeam, TeamChangedNotificationDelegate action)
 移交群主 More...
 
static void UpdateMyTeamProperty (NIMTeamMemberInfo info, TeamChangedNotificationDelegate action)
 更新自己的群属性 More...
 
static void UpdateMemberNickName (NIMTeamMemberInfo info, TeamChangedNotificationDelegate action)
 修改其他成员的群昵称 More...
 
static void AcceptTeamInvitation (string tid, string invitor, TeamChangedNotificationDelegate action)
 接受入群邀请 More...
 
static void RejectTeamInvitation (string tid, string invitor, string reason, TeamChangedNotificationDelegate action)
 拒绝入群邀请 More...
 
static void QueryAllMyTeams (QueryMyTeamsResultDelegate action)
 查询自己的群 More...
 
static void QueryMyValidTeamsInfo (QueryMyTeamsInfoResultDelegate action)
 查询所有有效群信息 More...
 
static void QueryAllMyTeamsInfo (QueryMyTeamsInfoResultDelegate action)
 查询所有群信息,包含无效的群 More...
 
static void QueryTeamMembersInfo (string tid, QueryTeamMembersInfoResultDelegate action)
 查询群成员信息 More...
 
static void QueryTeamMembersInfo (string tid, bool includeMemberInfo, bool includeInvalidMember, QueryTeamMembersInfoResultDelegate action)
 查询群成员信息 More...
 
static void QuerySingleMemberInfo (string tid, string uid, QuerySingleMemberResultDelegate action)
 查询(单个)群成员信息 More...
 
static NIMTeamMemberInfo QuerySingleMemberInfo (string tid, string uid)
 查询(单个)群成员信息(同步版本,堵塞NIM内部线程,谨慎使用) More...
 
static void QueryCachedTeamInfo (string tid, QueryCachedTeamInfoResultDelegate action)
 查询本地缓存的群信息 More...
 
static void QueryTeamInfoOnline (string tid, TeamChangedNotificationDelegate action)
 在线查询群信息 More...
 
static void SetMemberMuted (string tid, string memberId, bool muted, TeamChangedNotificationDelegate action)
 
static NIMTeamInfo QueryCachedTeamInfo (string tid)
 本地查询群信息(同步版本,堵塞NIM内部线程,谨慎使用) More...
 
static void QueryMutedListOnlineAsync (string tid, QueryTeamMutedListDelegate cb)
 获取群禁言成员列表 More...
 
static void QueryMyInfoInEachTeam (QueryMyInfoInEachTeamDelegate cb)
 在自己加的所有群里,查找自己在每个群里的成员信息 More...
 
static void MuteTeam (string tid, bool value, TeamChangedNotificationDelegate cb)
 对群禁言/解除禁言 More...
 
static void MsgAckRead (string tid, List< NIMIMMessage > msgs, TeamChangedNotificationDelegate cb)
 发送群消息已读回执 More...
 
static void QueryMsgUnreadList (string tid, NIMIMMessage msg, TeamChangedNotificationDelegate cb)
 获取群消息未读成员列表 More...
 

Static Public Attributes

static EventHandler< NIMTeamEventArgsTeamEventNotificationHandler
 群通知事件,注册该事件监听群信息变更 More...
 

Member Function Documentation

◆ AcceptTeamInvitation()

static void NIM.Team.TeamAPI.AcceptTeamInvitation ( string  tid,
string  invitor,
TeamChangedNotificationDelegate  action 
)
static

接受入群邀请

Parameters
tid
invitor
action

◆ AddTeamManagers()

static void NIM.Team.TeamAPI.AddTeamManagers ( string  tid,
string []  managerIdArray,
TeamChangedNotificationDelegate  action 
)
static

添加群管理员

Parameters
tid
managerIdArray
action

◆ AgreeJoinTeamApplication()

static void NIM.Team.TeamAPI.AgreeJoinTeamApplication ( string  tid,
string  uid,
TeamChangedNotificationDelegate  action 
)
static

同意入群申请

Parameters
tid
uid
action

◆ ApplyForJoiningTeam()

static void NIM.Team.TeamAPI.ApplyForJoiningTeam ( string  tid,
string  reason,
TeamChangedNotificationDelegate  action 
)
static

申请入群

Parameters
tid
reason
action

◆ CreateTeam()

static void NIM.Team.TeamAPI.CreateTeam ( NIMTeamInfo  teamInfo,
string []  idList,
string  postscript,
TeamChangedNotificationDelegate  action 
)
static

创建群

Parameters
teamInfo群组信息
idList成员id列表(不包括自己)
postscript附言
action

◆ DismissTeam()

static void NIM.Team.TeamAPI.DismissTeam ( string  tid,
TeamChangedNotificationDelegate  action 
)
static

解散群组

Parameters
tid群id
action操作结果回调函数

◆ Invite()

static void NIM.Team.TeamAPI.Invite ( string  tid,
string []  idList,
string  postscript,
TeamChangedNotificationDelegate  action 
)
static

邀请好友入群

Parameters
tid群id
idList被邀请人员id列表
postscript邀请附言
action操作结果回调

◆ InviteEx()

static void NIM.Team.TeamAPI.InviteEx ( string  tid,
string []  idList,
string  postscript,
string  attachment,
TeamChangedNotificationDelegate  action 
)
static

邀请好友入群

Parameters
tid群组id
idList被邀请人员id列表
postscript邀请附言
attachment用户可自定义的补充邀请信息
action操作结果回调

◆ KickMemberOutFromTeam()

static void NIM.Team.TeamAPI.KickMemberOutFromTeam ( string  tid,
string []  idList,
TeamChangedNotificationDelegate  action 
)
static

将用户踢下线

Parameters
tid群id
idList被踢用户id 列表
action

◆ LeaveTeam()

static void NIM.Team.TeamAPI.LeaveTeam ( string  tid,
TeamChangedNotificationDelegate  action 
)
static

离开群

Parameters
tid群id
action操作结果回调函数

◆ MsgAckRead()

static void NIM.Team.TeamAPI.MsgAckRead ( string  tid,
List< NIMIMMessage msgs,
TeamChangedNotificationDelegate  cb 
)
static

发送群消息已读回执

Parameters
tid
msgs
cb

◆ MuteTeam()

static void NIM.Team.TeamAPI.MuteTeam ( string  tid,
bool  value,
TeamChangedNotificationDelegate  cb 
)
static

对群禁言/解除禁言

Parameters
tid群组ID
value禁言(true)或解除禁言(false)
cb操作结果回调

◆ QueryAllMyTeams()

static void NIM.Team.TeamAPI.QueryAllMyTeams ( QueryMyTeamsResultDelegate  action)
static

查询自己的群

Parameters
action

◆ QueryAllMyTeamsInfo()

static void NIM.Team.TeamAPI.QueryAllMyTeamsInfo ( QueryMyTeamsInfoResultDelegate  action)
static

查询所有群信息,包含无效的群

Parameters
action

◆ QueryCachedTeamInfo() [1/2]

static void NIM.Team.TeamAPI.QueryCachedTeamInfo ( string  tid,
QueryCachedTeamInfoResultDelegate  action 
)
static

查询本地缓存的群信息

Parameters
tid
action

◆ QueryCachedTeamInfo() [2/2]

static NIMTeamInfo NIM.Team.TeamAPI.QueryCachedTeamInfo ( string  tid)
static

本地查询群信息(同步版本,堵塞NIM内部线程,谨慎使用)

Parameters
tid
Returns

◆ QueryMsgUnreadList()

static void NIM.Team.TeamAPI.QueryMsgUnreadList ( string  tid,
NIMIMMessage  msg,
TeamChangedNotificationDelegate  cb 
)
static

获取群消息未读成员列表

Parameters
tid
msg
cb

◆ QueryMutedListOnlineAsync()

static void NIM.Team.TeamAPI.QueryMutedListOnlineAsync ( string  tid,
QueryTeamMutedListDelegate  cb 
)
static

获取群禁言成员列表

Parameters
tid群组id
cb回调函数

◆ QueryMyInfoInEachTeam()

static void NIM.Team.TeamAPI.QueryMyInfoInEachTeam ( QueryMyInfoInEachTeamDelegate  cb)
static

在自己加的所有群里,查找自己在每个群里的成员信息

Parameters
cb

◆ QueryMyValidTeamsInfo()

static void NIM.Team.TeamAPI.QueryMyValidTeamsInfo ( QueryMyTeamsInfoResultDelegate  action)
static

查询所有有效群信息

Parameters
action

◆ QuerySingleMemberInfo() [1/2]

static void NIM.Team.TeamAPI.QuerySingleMemberInfo ( string  tid,
string  uid,
QuerySingleMemberResultDelegate  action 
)
static

查询(单个)群成员信息

Parameters
tid
uid
action

◆ QuerySingleMemberInfo() [2/2]

static NIMTeamMemberInfo NIM.Team.TeamAPI.QuerySingleMemberInfo ( string  tid,
string  uid 
)
static

查询(单个)群成员信息(同步版本,堵塞NIM内部线程,谨慎使用)

Parameters
tid
uid
Returns

◆ QueryTeamInfoOnline()

static void NIM.Team.TeamAPI.QueryTeamInfoOnline ( string  tid,
TeamChangedNotificationDelegate  action 
)
static

在线查询群信息

Parameters
tid
action

◆ QueryTeamMembersInfo() [1/2]

static void NIM.Team.TeamAPI.QueryTeamMembersInfo ( string  tid,
QueryTeamMembersInfoResultDelegate  action 
)
static

查询群成员信息

Parameters
tid群ID
action

◆ QueryTeamMembersInfo() [2/2]

static void NIM.Team.TeamAPI.QueryTeamMembersInfo ( string  tid,
bool  includeMemberInfo,
bool  includeInvalidMember,
QueryTeamMembersInfoResultDelegate  action 
)
static

查询群成员信息

Parameters
tid群ID
includeMemberInfo是否查询成员详细信息
includeInvalidMember是否包含无效成员
action

◆ RegisterCallbacks()

static void NIM.Team.TeamAPI.RegisterCallbacks ( )
static

◆ RejectJoinTeamApplication()

static void NIM.Team.TeamAPI.RejectJoinTeamApplication ( string  tid,
string  uid,
string  reason,
TeamChangedNotificationDelegate  action 
)
static

拒绝入群申请

Parameters
tid
uid
reason
action

◆ RejectTeamInvitation()

static void NIM.Team.TeamAPI.RejectTeamInvitation ( string  tid,
string  invitor,
string  reason,
TeamChangedNotificationDelegate  action 
)
static

拒绝入群邀请

Parameters
tid
invitor
reason
action

◆ RemoveTeamManagers()

static void NIM.Team.TeamAPI.RemoveTeamManagers ( string  tid,
string []  managerIdArray,
TeamChangedNotificationDelegate  action 
)
static

删除群管理员

Parameters
tid
managerIdArray
action

◆ SetMemberMuted()

static void NIM.Team.TeamAPI.SetMemberMuted ( string  tid,
string  memberId,
bool  muted,
TeamChangedNotificationDelegate  action 
)
static

◆ TransferTeamAdmin()

static void NIM.Team.TeamAPI.TransferTeamAdmin ( string  tid,
string  newOwnerId,
bool  leaveTeam,
TeamChangedNotificationDelegate  action 
)
static

移交群主

Parameters
tid
newOwnerId
leaveTeam是否在移交后退出群
action

◆ UpdateMemberNickName()

static void NIM.Team.TeamAPI.UpdateMemberNickName ( NIMTeamMemberInfo  info,
TeamChangedNotificationDelegate  action 
)
static

修改其他成员的群昵称

Parameters
info
action

◆ UpdateMyTeamProperty()

static void NIM.Team.TeamAPI.UpdateMyTeamProperty ( NIMTeamMemberInfo  info,
TeamChangedNotificationDelegate  action 
)
static

更新自己的群属性

Parameters
info
action

◆ UpdateTeamInfo()

static void NIM.Team.TeamAPI.UpdateTeamInfo ( string  tid,
NIMTeamInfo  info,
TeamChangedNotificationDelegate  action 
)
static

更新群信息

Parameters
tid
info
action

Member Data Documentation

◆ TeamEventNotificationHandler

EventHandler<NIMTeamEventArgs> NIM.Team.TeamAPI.TeamEventNotificationHandler
static

群通知事件,注册该事件监听群信息变更