NIM Unity SDK  V2.4.2
命名空间 | | 枚举 | 函数
NIM.Team 命名空间参考

class  TeamAPI
 
class  NIMTeamInfo
 群组信息 更多...
 
class  NIMTeamMemberInfo
 群成员信息 更多...
 
class  NIMTeamEvent
 
class  NIMTeamEventData
 
class  NIMTeamEventArgs
 
class  TeamNativeMethods
 

枚举

enum class  NIMTeamType { kNIMTeamTypeNormal = 0 , kNIMTeamTypeAdvanced = 1 }
 群类型 更多...
 
enum class  NIMTeamUserType {
  kNIMTeamUserTypeNomal = 0 , kNIMTeamUserTypeCreator = 1 , kNIMTeamUserTypeManager = 2 , kNIMTeamUserTypeApply = 3 ,
  kNIMTeamUserTypeLocalWaitAccept = 100
}
 群成员类型 更多...
 
enum class  NIMTeamJoinMode { kNIMTeamJoinModeNoAuth = 0 , kNIMTeamJoinModeNeedAuth = 1 , kNIMTeamJoinModeRejectAll = 2 }
 群允许加入类型 更多...
 
enum class  NIMTeamBeInviteMode { kNIMTeamBeInviteModeNeedAgree = 0 , kNIMTeamBeInviteModeNotNeedAgree = 1 }
 被邀请人同意方式 更多...
 
enum class  NIMTeamInviteMode { kNIMTeamInviteModeManager = 0 , kNIMTeamInviteModeEveryone = 1 }
 谁可以邀请他人入群 更多...
 
enum class  NIMTeamUpdateInfoMode { kNIMTeamUpdateInfoModeManager = 0 , kNIMTeamUpdateInfoModeEveryone = 1 }
 谁可以修改群资料 更多...
 
enum class  NIMTeamUpdateCustomMode { kNIMTeamUpdateCustomModeManager = 0 , kNIMTeamUpdateCustomModeEveryone = 1 }
 谁可以更新群自定义属性 更多...
 
enum class  NIMTeamBitsConfigMask { kNIMTeamBitsConfigMaskMuteNotify = 1 << 0 }
 
enum class  NIMTeamMuteType { kNIMTeamMuteTypeNone = 0 , kNIMTeamMuteTypeNomalMute = 1 , kNIMTeamMuteTypeAllMute = 3 }
 群组禁言类型 更多...
 
enum class  NIMNotificationType {
  kNIMNotificationIdTeamInvite = 0 , kNIMNotificationIdTeamKick = 1 , kNIMNotificationIdTeamLeave = 2 , kNIMNotificationIdTeamUpdate = 3 ,
  kNIMNotificationIdTeamDismiss = 4 , kNIMNotificationIdTeamApplyPass = 5 , kNIMNotificationIdTeamOwnerTransfer = 6 , kNIMNotificationIdTeamAddManager = 7 ,
  kNIMNotificationIdTeamRemoveManager = 8 , kNIMNotificationIdTeamInviteAccept = 9 , kNIMNotificationIdTeamMuteMember = 10 , kNIMNotificationIdNetcallMiss = 101 ,
  kNIMNotificationIdNetcallBill = 102 , kNIMNotificationIdTeamSyncCreate = 1000 , kNIMNotificationIdTeamMemberChanged = 1001 , kNIMNotificationIdTeamSyncUpdateMemberProperty = 1002 ,
  kNIMNotificationIdLocalCreateTeam = 2000 , kNIMNotificationIdLocalApplyTeam = 2001 , kNIMNotificationIdLocalRejectApply = 2002 , kNIMNotificationIdLocalRejectInvite = 2003 ,
  kNIMNotificationIdLocalUpdateMemberProperty = 2004 , kNIMNotificationIdLocalUpdateOtherNick = 2005 , kNIMNotificationIdLocalGetTeamInfo = 2006 , kNIMNotificationIdLocalGetTeamList = 2007 ,
  kNIMNotificationIdLocalMuteMember = 2008 , kNIMNotificationIdLocalMute = 2009 , kNIMNotificationIdLocalGetTeamMsgUnreadCount = 2010 , kNIMNotificationIdLocalGetTeamMsgUnreadList = 2011 ,
  kNIMNotificationIdLocalNetcallReject = 3103 , kNIMNotificationIdLocalNetcallNoResponse = 3104
}
 群通知类型 更多...
 

函数

delegate void TeamChangedNotificationDelegate (NIMTeamEventData data)
 
delegate void QueryMyTeamsResultDelegate (int count, string[] accountIdList)
 
delegate void QueryMyTeamsInfoResultDelegate (NIMTeamInfo[] infoList)
 
delegate void QueryTeamMembersInfoResultDelegate (string tid, int memberCount, bool includeUserInfo, NIMTeamMemberInfo[] infoList)
 
delegate void QuerySingleMemberResultDelegate (NIMTeamMemberInfo info)
 
delegate void QueryCachedTeamInfoResultDelegate (string tid, NIMTeamInfo info)
 
delegate void QueryTeamMutedListDelegate (ResponseCode res, int count, string tid, NIMTeamMemberInfo[] members)
 
delegate void QueryMyInfoInEachTeamDelegate (List< NIMTeamMemberInfo > infoList)
 

枚举类型说明

◆ NIMTeamType

enum NIM.Team.NIMTeamType
strong

群类型

枚举值
kNIMTeamTypeNormal 

普通群

kNIMTeamTypeAdvanced 

高级群

◆ NIMTeamUserType

群成员类型

枚举值
kNIMTeamUserTypeNomal 

普通成员

kNIMTeamUserTypeCreator 

创建者

kNIMTeamUserTypeManager 

管理员

kNIMTeamUserTypeApply 

申请加入用户

kNIMTeamUserTypeLocalWaitAccept 

本地记录等待正在入群的用户

◆ NIMTeamJoinMode

群允许加入类型

枚举值
kNIMTeamJoinModeNoAuth 

不用验证

kNIMTeamJoinModeNeedAuth 

需要验证

kNIMTeamJoinModeRejectAll 

拒绝所有人入群

◆ NIMTeamBeInviteMode

被邀请人同意方式

枚举值
kNIMTeamBeInviteModeNeedAgree 

需要同意

kNIMTeamBeInviteModeNotNeedAgree 

不需要同意

◆ NIMTeamInviteMode

谁可以邀请他人入群

枚举值
kNIMTeamInviteModeManager 

管理员

kNIMTeamInviteModeEveryone 

所有人

◆ NIMTeamUpdateInfoMode

谁可以修改群资料

枚举值
kNIMTeamUpdateInfoModeManager 

管理员

kNIMTeamUpdateInfoModeEveryone 

所有人

◆ NIMTeamUpdateCustomMode

谁可以更新群自定义属性

枚举值
kNIMTeamUpdateCustomModeManager 

管理员

kNIMTeamUpdateCustomModeEveryone 

所有人

◆ NIMTeamMuteType

群组禁言类型

枚举值
kNIMTeamMuteTypeNone 

不禁言

kNIMTeamMuteTypeNomalMute 

普通成员禁言

kNIMTeamMuteTypeAllMute 

全部禁言

◆ NIMNotificationType

群通知类型

枚举值
kNIMNotificationIdTeamInvite 

普通群拉人,{"ids":["a1", "a2"]}

kNIMNotificationIdTeamKick 

普通群踢人,{"ids":["a1", "a2"]}

kNIMNotificationIdTeamLeave 

退出群,{"id" : "a1"}

kNIMNotificationIdTeamUpdate 

team_info更新,{"team_info":team_info}

kNIMNotificationIdTeamDismiss 

群解散,{}

kNIMNotificationIdTeamApplyPass 

高级群申请加入成功,{"id":"a1"}

kNIMNotificationIdTeamOwnerTransfer 

高级群移交群主,{"id":"a1", "leave" : bool}

kNIMNotificationIdTeamAddManager 

增加管理员,{"ids":["a1","a2"]}

kNIMNotificationIdTeamRemoveManager 

删除管理员,{"ids":["a1","a2"]}

kNIMNotificationIdTeamInviteAccept 

高级群接受邀请进群,{"id":"a1"}

kNIMNotificationIdTeamMuteMember 

禁言/解禁群成员,{"user_namecards":["namecard1", "namecard2"],"team_info":team_info,"id":"a1","mute":1-禁言,0-解禁}

kNIMNotificationIdNetcallMiss 

未接电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],"time":1430995380471}

kNIMNotificationIdNetcallBill 

话单,{"calltype":2,"channel":6146077129466446197,"duration":8,"ids":["id1","id2"],"time":1430995117398}

kNIMNotificationIdTeamSyncCreate 

创建群 {"team_info" : team_info}

kNIMNotificationIdTeamMemberChanged 

群成员变更{"team_member" : team_member_info} //群组成员信息(不包括自己)

kNIMNotificationIdTeamSyncUpdateMemberProperty 

同步通知:修改群属性(可能是自己的或别人的){"team_member" : team_member_info} //目前只需kNIMTeamUserKeyNick和kNIMTeamUserKeyBits

kNIMNotificationIdLocalCreateTeam 

本地操作创建群 {"ids" : ["a1", "a2"]}

kNIMNotificationIdLocalApplyTeam 

本地操作申请加入群 {}

kNIMNotificationIdLocalRejectApply 

本地操作拒绝申请 {"id":"a1"}

kNIMNotificationIdLocalRejectInvite 

本地操作拒绝邀请 {"id":"a1"}

kNIMNotificationIdLocalUpdateMemberProperty 

本地操作更新tlist {"team_member" : team_member_info},目前只需kNIMTeamUserKeyNick和kNIMTeamUserKeyBits

kNIMNotificationIdLocalUpdateOtherNick 

本地操作更新他人nickname {}

kNIMNotificationIdLocalGetTeamInfo 

本地操作获取群信息 {"team_info":team_info}

kNIMNotificationIdLocalGetTeamList 

本地操作获取群成员信息结束

kNIMNotificationIdLocalMuteMember 

本地操作对群成员禁言 {"id":"a1", "mute":1-禁言,0-解禁}

kNIMNotificationIdLocalMute 

本地操作对群禁言 {}

kNIMNotificationIdLocalGetTeamMsgUnreadCount 

获取群消息未读数 {[{"client_msg_id":"", "count":int, "read_accid":"当前已读成员的accid"},...]}

kNIMNotificationIdLocalGetTeamMsgUnreadList 

获取群消息未读列表 {"client_msg_id":"", "read":["id1",...], "unread":["id2",...]}*

kNIMNotificationIdLocalNetcallReject 

拒绝电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],"time":1430995380471}

kNIMNotificationIdLocalNetcallNoResponse 

无应答,未接通电话,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],"time":1430995380471}