NIMSDK-iOS
载入中...
搜索中...
未找到
NIMTeam.h
浏览该文件的文档.
1//
2// NIMTeam.h
3// NIMLib
4//
5// Created by Netease.
6// Copyright (c) 2015 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "NIMTeamDefs.h"
11
12
13NS_ASSUME_NONNULL_BEGIN
14
15/**
16 * 群组信息
17 */
18@interface NIMTeam : NSObject
19/**
20 * 群ID
21 */
22@property (nullable,nonatomic,copy,readonly) NSString *teamId;
23
24/**
25 * 群名称
26 */
27@property (nullable,nonatomic,copy) NSString *teamName;
28
29/**
30 * 群头像
31 */
32@property (nullable,nonatomic,copy) NSString *avatarUrl;
33
34/**
35 * 群缩略头像
36 * @discussion 仅适用于使用云信上传服务进行上传的资源,否则无效。
37 */
38@property (nullable,nonatomic,copy) NSString *thumbAvatarUrl;
39
40/**
41 * 群类型
42 */
43@property (nonatomic,assign,readonly) NIMTeamType type;
44
45/**
46 * 群拥有者ID
47 * @discussion 普通群拥有者就是群创建者,但是高级群可以进行拥有信息的转让
48 */
49@property (nullable,nonatomic,copy,readonly) NSString *owner;
50
51/**
52 * 群介绍
53 */
54@property (nullable,nonatomic,copy) NSString *intro;
55
56/**
57 * 群公告
58 */
59@property (nullable,nonatomic,copy) NSString *announcement;
60
61/**
62 * 群成员人数
63 * @discussion 这个值表示是上次登录后同步下来群成员数据,并不实时变化,必要时需要调用fetchTeamInfo:completion:进行刷新
64 */
65@property (nonatomic,assign,readonly) NSInteger memberNumber;
66
67/**
68 * 群等级
69 * @discussion 目前群人数主要是限制群人数上限
70 */
71@property (nonatomic,assign,readonly) NSInteger level;
72
73/**
74 * 群创建时间
75 */
76@property (nonatomic,assign,readonly) NSTimeInterval createTime;
77
78/**
79 * 群验证方式
80 * @discussion 只有高级群有效
81 */
82@property (nonatomic,assign) NIMTeamJoinMode joinMode;
83
84/**
85 * 群邀请权限
86 * @discussion 只有高级群,超大群有效
87 */
88@property (nonatomic,assign) NIMTeamInviteMode inviteMode;
89
90/**
91 * 被邀请模式
92 * @discussion 只有高级群,超大群有效
93 */
94@property (nonatomic,assign) NIMTeamBeInviteMode beInviteMode;
95
96/**
97 * 修改群信息权限
98 * @discussion 只有高级群有效
99 */
100@property (nonatomic,assign) NIMTeamUpdateInfoMode updateInfoMode;
101
102/**
103 * 修改群客户端自定义字段权限
104 * @discussion 只有高级群有效
105 */
107
108
109/**
110 * 群服务端自定义信息
111 * @discussion 应用方可以自行拓展这个字段做个性化配置,客户端不可以修改这个字段
112 */
113@property (nullable,nonatomic,copy,readonly) NSString *serverCustomInfo;
114
115
116/**
117 * 群客户端自定义信息
118 * @discussion 应用方可以自行拓展这个字段做个性化配置,客户端可以修改这个字段
119 */
120@property (nullable,nonatomic,copy,readonly) NSString *clientCustomInfo;
121
122
123/**
124 * 群消息通知状态
125 * @discussion 这个设置影响群消息的 APNS 推送
126 */
127@property (nonatomic,assign,readonly) NIMTeamNotifyState notifyStateForNewMsg;
128
129
130/**
131 * 群组是否正在全员禁言
132 * @discussion 只有高级群、超大群有效
133 */
134- (BOOL)inAllMuteMode;
135
136/**
137 * 群全体禁言模式
138 * @discussion 只有高级群、超大群有效
139 */
140@property (nonatomic,assign,readonly) NIMTeamAllMuteMode allMuteMode;
141
142@end
143
144NS_ASSUME_NONNULL_END
145
146
NIMTeamBeInviteMode
Definition: NIMTeamDefs.h:72
NIMTeamAllMuteMode
Definition: NIMTeamDefs.h:179
NIMTeamNotifyState
Definition: NIMTeamDefs.h:160
NIMTeamType
Definition: NIMTeamDefs.h:19
NIMTeamUpdateClientCustomMode
Definition: NIMTeamDefs.h:102
NIMTeamJoinMode
Definition: NIMTeamDefs.h:37
NIMTeamInviteMode
Definition: NIMTeamDefs.h:55
NIMTeamUpdateInfoMode
Definition: NIMTeamDefs.h:87
Definition: NIMTeam.h:19
NSString * serverCustomInfo
Definition: NIMTeam.h:113
NSString * thumbAvatarUrl
Definition: NIMTeam.h:38
NIMTeamInviteMode inviteMode
Definition: NIMTeam.h:88
NSString * clientCustomInfo
Definition: NIMTeam.h:120
NIMTeamType type
Definition: NIMTeam.h:43
NIMTeamBeInviteMode beInviteMode
Definition: NIMTeam.h:94
NSString * avatarUrl
Definition: NIMTeam.h:32
NSInteger level
Definition: NIMTeam.h:71
NIMTeamJoinMode joinMode
Definition: NIMTeam.h:82
NSString * announcement
Definition: NIMTeam.h:59
NIMTeamUpdateClientCustomMode updateClientCustomMode
Definition: NIMTeam.h:106
NSTimeInterval createTime
Definition: NIMTeam.h:76
NSString * teamId
Definition: NIMTeam.h:22
NIMTeamAllMuteMode allMuteMode
Definition: NIMTeam.h:140
NSString * intro
Definition: NIMTeam.h:54
NSString * teamName
Definition: NIMTeam.h:27
NSInteger memberNumber
Definition: NIMTeam.h:65
NSString * owner
Definition: NIMTeam.h:49
NIMTeamUpdateInfoMode updateInfoMode
Definition: NIMTeam.h:100
NIMTeamNotifyState notifyStateForNewMsg
Definition: NIMTeam.h:127
BOOL inAllMuteMode()