NIM C# SDK  6.3.0
NIM.Team Namespace Reference

Namespaces

namespace  Delegate
 

Classes

class  NIMTeamEvent
 
class  NIMTeamEventArgs
 
class  NIMTeamEventData
 
class  NIMTeamEventDataObject
 
class  NIMTeamEventDataObjects
 
class  NIMTeamInfo
 群组信息 More...
 
class  NIMTeamMemberInfo
 群成员信息 More...
 
class  TeamAPI
 
class  TeamNativeMethods
 

Enumerations

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

Functions

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)
 

Enumeration Type Documentation

◆ NIMNotificationType

群通知类型

Enumerator
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}

kNIMNotificationIdLocalNetcallCanceled 

未接通前主叫方挂断,{"calltype":1,"channel":6146078138783760761,"from":"id1","ids":["id1","id2"],"time":1430995380471}

◆ NIMTeamBeInviteMode

被邀请人同意方式

Enumerator
kNIMTeamBeInviteModeNeedAgree 

需要同意

kNIMTeamBeInviteModeNotNeedAgree 

不需要同意

◆ NIMTeamBitsConfigMask

Enumerator
kNIMTeamBitsConfigMaskMuteNotify 

◆ NIMTeamInviteMode

谁可以邀请他人入群

Enumerator
kNIMTeamInviteModeManager 

管理员

kNIMTeamInviteModeEveryone 

所有人

◆ NIMTeamJoinMode

群允许加入类型

Enumerator
kNIMTeamJoinModeNoAuth 

不用验证

kNIMTeamJoinModeNeedAuth 

需要验证

kNIMTeamJoinModeRejectAll 

拒绝所有人入群

◆ NIMTeamMuteType

群组禁言类型

Enumerator
kNIMTeamMuteTypeNone 

不禁言

kNIMTeamMuteTypeNomalMute 

普通成员禁言

kNIMTeamMuteTypeAllMute 

全部禁言

◆ NIMTeamType

enum NIM.Team.NIMTeamType
strong

群类型

Enumerator
kNIMTeamTypeNormal 

普通群

kNIMTeamTypeAdvanced 

高级群

◆ NIMTeamUpdateCustomMode

谁可以更新群自定义属性

Enumerator
kNIMTeamUpdateCustomModeManager 

管理员

kNIMTeamUpdateCustomModeEveryone 

所有人

◆ NIMTeamUpdateInfoMode

谁可以修改群资料

Enumerator
kNIMTeamUpdateInfoModeManager 

管理员

kNIMTeamUpdateInfoModeEveryone 

所有人

◆ NIMTeamUserType

群成员类型

Enumerator
kNIMTeamUserTypeNomal 

普通成员

kNIMTeamUserTypeCreator 

创建者

kNIMTeamUserTypeManager 

管理员

kNIMTeamUserTypeApply 

申请加入用户

kNIMTeamUserTypeLocalWaitAccept 

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

Function Documentation

◆ QueryCachedTeamInfoResultDelegate()

delegate void NIM.Team.QueryCachedTeamInfoResultDelegate ( string  tid,
NIMTeamInfo  info 
)

◆ QueryMyInfoInEachTeamDelegate()

delegate void NIM.Team.QueryMyInfoInEachTeamDelegate ( List< NIMTeamMemberInfo infoList)

◆ QueryMyTeamsInfoResultDelegate()

delegate void NIM.Team.QueryMyTeamsInfoResultDelegate ( NIMTeamInfo []  infoList)

◆ QueryMyTeamsResultDelegate()

delegate void NIM.Team.QueryMyTeamsResultDelegate ( int  count,
string []  accountIdList 
)

◆ QuerySingleMemberResultDelegate()

delegate void NIM.Team.QuerySingleMemberResultDelegate ( NIMTeamMemberInfo  info)

◆ QueryTeamMembersInfoResultDelegate()

delegate void NIM.Team.QueryTeamMembersInfoResultDelegate ( string  tid,
int  memberCount,
bool  includeUserInfo,
NIMTeamMemberInfo []  infoList 
)

◆ QueryTeamMutedListDelegate()

delegate void NIM.Team.QueryTeamMutedListDelegate ( ResponseCode  res,
int  count,
string  tid,
NIMTeamMemberInfo []  members 
)

◆ TeamChangedNotificationDelegate()

delegate void NIM.Team.TeamChangedNotificationDelegate ( NIMTeamEventData  data)