HyphenateSDK  3.6.1
EMChatroom.h
1 
15 #import <Foundation/Foundation.h>
16 
17 #import "EMCommonDefs.h"
18 
26 typedef enum{
27  EMChatroomPermissionTypeNone = -1,
28  EMChatroomPermissionTypeMember = 0,
29  EMChatroomPermissionTypeAdmin,
30  EMChatroomPermissionTypeOwner,
31 }EMChatroomPermissionType;
32 
33 
41 @interface EMChatroom : NSObject
42 
50 @property (nonatomic, copy, readonly) NSString *chatroomId;
51 
59 @property (nonatomic, copy, readonly) NSString *subject;
60 
68 @property (nonatomic, copy, readonly) NSString *description;
69 
79 @property (nonatomic, copy, readonly) NSString *owner;
80 
88 @property (nonatomic, copy, readonly) NSString *announcement;
89 
99 @property (nonatomic, copy, readonly) NSArray *adminList;
100 
108 @property (nonatomic, copy, readonly) NSArray *memberList;
109 
121 @property (nonatomic, strong, readonly) NSArray *blacklist;
122 
134 @property (nonatomic, strong, readonly) NSArray *muteList;
135 
143 @property (nonatomic, readonly) EMChatroomPermissionType permissionType;
144 
152 @property (nonatomic, readonly) NSInteger maxOccupantsCount;
153 
161 @property (nonatomic, readonly) NSInteger occupantsCount;
162 
178 + (instancetype)chatroomWithId:(NSString *)aChatroomId;
179 
180 #pragma mark - EM_DEPRECATED_IOS 3.3.0
181 
189 @property (nonatomic, copy, readonly) NSArray *members EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -memberList");
190 
198 @property (nonatomic, readonly) NSInteger membersCount EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -occupantsCount");
199 
207 @property (nonatomic, readonly) NSInteger maxMembersCount EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -maxOccupantsCount");
208 
209 #pragma mark - EM_DEPRECATED_IOS < 3.2.3
210 
218 @property (nonatomic, copy, readonly) NSArray *occupants __deprecated_msg("Use - members");
219 
235 - (instancetype)init __deprecated_msg("Use +chatroomWithId:");
236 
237 @end
NSString * description
Definition: EMChatroom.h:68
NSArray * blacklist
Definition: EMChatroom.h:121
NSInteger maxOccupantsCount
Definition: EMChatroom.h:152
NSArray *members EM_DEPRECATED_IOS(3_1_0, 3_3_0,"Use -memberList")
NSString * subject
Definition: EMChatroom.h:59
NSArray * adminList
Definition: EMChatroom.h:99
NSString * owner
Definition: EMChatroom.h:79
NSArray * muteList
Definition: EMChatroom.h:134
EMChatroomPermissionType permissionType
Definition: EMChatroom.h:143
Definition: EMChatroom.h:41
NSInteger occupantsCount
Definition: EMChatroom.h:161
"Use +chatroomWithId:" __deprecated_msg()
NSString * chatroomId
Definition: EMChatroom.h:50
NSString * announcement
Definition: EMChatroom.h:88
NSArray * memberList
Definition: EMChatroom.h:108