HyphenateChatSDK 3.9.9.1
EMChatroom.h
1
15#import <Foundation/Foundation.h>
16
17#import "EMCommonDefs.h"
18
26typedef NS_ENUM(NSInteger, EMChatroomPermissionType) {
27 EMChatroomPermissionTypeNone = -1,
28 EMChatroomPermissionTypeMember = 0,
29 EMChatroomPermissionTypeAdmin,
30 EMChatroomPermissionTypeOwner,
31};
32
33
41@interface EMChatroom : NSObject
42
50@property (nonatomic, copy, readonly) NSString * _Nullable chatroomId;
51
59@property (nonatomic, copy, readonly) NSString * _Nullable subject;
60
68@property (nonatomic, copy, readonly) NSString * _Nullable description;
69
79@property (nonatomic, copy, readonly) NSString * _Nullable owner;
80
88@property (nonatomic, copy, readonly) NSString * _Nullable announcement;
89
99@property (nonatomic, copy, readonly) NSArray<NSString *> * _Nullable adminList;
100
108@property (nonatomic, copy, readonly) NSArray<NSString *> * _Nullable memberList;
109
121@property (nonatomic, strong, readonly) NSArray<NSString *> * _Nullable blacklist;
122
123
135@property (nonatomic, strong, readonly) NSArray<NSString *> * _Nullable muteList;
136
148@property (nonatomic, strong, readonly) NSArray<NSString *> * _Nullable whitelist;
149
157@property (nonatomic, readonly) EMChatroomPermissionType permissionType;
158
166@property (nonatomic, readonly) NSInteger maxOccupantsCount;
167
175@property (nonatomic, readonly) NSInteger occupantsCount;
176
184@property (nonatomic, readonly) BOOL isMuteAllMembers;
200+ (instancetype _Nullable)chatroomWithId:(NSString * _Nonnull )aChatroomId;
201
202#pragma mark - EM_DEPRECATED_IOS 3.8.8
203
215@property (nonatomic, strong, readonly) NSArray *whiteList __deprecated_msg("Use whitelist instead");
216
217#pragma mark - EM_DEPRECATED_IOS 3.3.0
218
226@property (nonatomic, copy, readonly) NSArray *members EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -memberList instead");
227
235@property (nonatomic, readonly) NSInteger membersCount EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -occupantsCount instead");
236
244@property (nonatomic, readonly) NSInteger maxMembersCount EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -maxOccupantsCount instead");
245
246#pragma mark - EM_DEPRECATED_IOS < 3.2.3
247
255@property (nonatomic, copy, readonly) NSArray *occupants __deprecated_msg("Use -members instead");
256
272- (instancetype)init __deprecated_msg("Use +chatroomWithId: instead");
273
274@end
Definition: EMChatroom.h:42
NSArray *whiteList __deprecated_msg("Use whitelist instead")
NSInteger maxOccupantsCount
Definition: EMChatroom.h:166
NSArray< NSString * > *_Nullable blacklist
Definition: EMChatroom.h:121
NSArray< NSString * > *_Nullable adminList
Definition: EMChatroom.h:99
NSArray< NSString * > *_Nullable muteList
Definition: EMChatroom.h:135
NSString *_Nullable subject
Definition: EMChatroom.h:59
NSString *_Nullable description
Definition: EMChatroom.h:68
BOOL isMuteAllMembers
Definition: EMChatroom.h:184
NSInteger occupantsCount
Definition: EMChatroom.h:175
NSInteger membersCount EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -occupantsCount instead")
NSString *_Nullable owner
Definition: EMChatroom.h:79
"Use +chatroomWithId: instead" __deprecated_msg()
NSArray *members EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -memberList instead")
EMChatroomPermissionType permissionType
Definition: EMChatroom.h:157
NSString *_Nullable chatroomId
Definition: EMChatroom.h:50
NSArray< NSString * > *_Nullable memberList
Definition: EMChatroom.h:108
NSInteger maxMembersCount EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -maxOccupantsCount instead")
NSArray *occupants __deprecated_msg("Use -members instead")
NSString *_Nullable announcement
Definition: EMChatroom.h:88
NSArray< NSString * > *_Nullable whitelist
Definition: EMChatroom.h:148