HyphenateChatSDK 4.12.0
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
134@property (nonatomic, strong, readonly) NSDictionary<NSString *, NSNumber*> * _Nullable muteMembers;
135
147@property (nonatomic, strong, readonly) NSArray<NSString *> * _Nullable whitelist;
148
156@property (nonatomic, readonly) EMChatroomPermissionType permissionType;
157
165@property (nonatomic, readonly) NSInteger maxOccupantsCount;
166
180@property (nonatomic, readonly) NSInteger occupantsCount;
181
191@property (nonatomic, readonly) BOOL isMuteAllMembers;
192
202@property (nonatomic,readonly) NSInteger createTimestamp;
203
219@property (nonatomic,readonly) BOOL isInWhitelist;
220
240@property (nonatomic,readonly) NSInteger muteExpireTimestamp;
241
257+ (instancetype _Nullable)chatroomWithId:(NSString * _Nonnull )aChatroomId;
258
270@property (nonatomic, strong, readonly) NSArray<NSString *> * _Nullable muteList __deprecated_msg("Use muteMembers instead");
271
272@end
Definition: EMChatroom.h:42
NSInteger maxOccupantsCount
Definition: EMChatroom.h:165
NSArray< NSString * > *_Nullable blacklist
Definition: EMChatroom.h:121
NSArray< NSString * > *_Nullable adminList
Definition: EMChatroom.h:99
NSString *_Nullable subject
Definition: EMChatroom.h:59
NSString *_Nullable description
Definition: EMChatroom.h:68
BOOL isMuteAllMembers
Definition: EMChatroom.h:191
NSInteger occupantsCount
Definition: EMChatroom.h:180
NSString *_Nullable owner
Definition: EMChatroom.h:79
NSDictionary< NSString *, NSNumber * > *_Nullable muteMembers
Definition: EMChatroom.h:134
EMChatroomPermissionType permissionType
Definition: EMChatroom.h:156
BOOL isInWhitelist
Definition: EMChatroom.h:219
NSString *_Nullable chatroomId
Definition: EMChatroom.h:50
NSArray< NSString * > *_Nullable memberList
Definition: EMChatroom.h:108
NSInteger createTimestamp
Definition: EMChatroom.h:202
NSArray< NSString * > *_Nullable muteList __deprecated_msg("Use muteMembers instead")
NSString *_Nullable announcement
Definition: EMChatroom.h:88
NSArray< NSString * > *_Nullable whitelist
Definition: EMChatroom.h:147
NSInteger muteExpireTimestamp
Definition: EMChatroom.h:240