HyphenateSDK  3.6.1
EMGroup.h
1 
15 #import <Foundation/Foundation.h>
16 
17 #import "EMCommonDefs.h"
18 #import "EMGroupOptions.h"
19 
27 typedef enum{
28  EMGroupPermissionTypeNone = -1,
29  EMGroupPermissionTypeMember = 0,
30  EMGroupPermissionTypeAdmin,
31  EMGroupPermissionTypeOwner,
32 }EMGroupPermissionType;
33 
41 @interface EMGroup : NSObject
42 
50 @property (nonatomic, copy, readonly) NSString *groupId;
51 
59 @property (nonatomic, copy, readonly) NSString *subject;
60 
68 @property (nonatomic, copy, readonly) NSString *description;
69 
77 @property (nonatomic, copy, readonly) NSString *announcement;
78 
86 @property (nonatomic, strong, readonly) EMGroupOptions *setting;
87 
99 @property (nonatomic, copy, readonly) NSString *owner;
100 
110 @property (nonatomic, copy, readonly) NSArray *adminList;
111 
119 @property (nonatomic, copy, readonly) NSArray *memberList;
120 
132 @property (nonatomic, strong, readonly) NSArray *blacklist;
133 
145 @property (nonatomic, strong, readonly) NSArray *muteList;
146 
154 @property (nonatomic, strong, readonly) NSArray *sharedFileList;
155 
163 @property (nonatomic, readonly) BOOL isPushNotificationEnabled;
164 
172 @property (nonatomic, readonly) BOOL isPublic;
173 
181 @property (nonatomic, readonly) BOOL isBlocked;
182 
190 @property (nonatomic, readonly) EMGroupPermissionType permissionType;
191 
199 @property (nonatomic, strong, readonly) NSArray *occupants;
200 
208 @property (nonatomic, readonly) NSInteger occupantsCount;
209 
225 + (instancetype)groupWithId:(NSString *)aGroupId;
226 
227 #pragma mark - EM_DEPRECATED_IOS 3.3.0
228 
236 @property (nonatomic, copy, readonly) NSArray *members EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -memberList");
237 
249 @property (nonatomic, strong, readonly) NSArray *blackList EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -blacklist");
250 
258 @property (nonatomic, readonly) NSInteger membersCount EM_DEPRECATED_IOS(3_1_0, 3_3_0, "Use -occupantsCount");
259 
260 #pragma mark - EM_DEPRECATED_IOS < 3.2.3
261 
277 - (instancetype)init __deprecated_msg("Use +groupWithId:");
278 
279 
291 @property (nonatomic, strong, readonly) NSArray *bans __deprecated_msg("Use - blackList");
292 
293 @end
NSArray *members EM_DEPRECATED_IOS(3_1_0, 3_3_0,"Use -memberList")
NSArray * occupants
Definition: EMGroup.h:199
BOOL isPublic
Definition: EMGroup.h:172
NSArray * sharedFileList
Definition: EMGroup.h:154
Definition: EMGroupOptions.h:41
"Use +groupWithId:" __deprecated_msg()
NSString * description
Definition: EMGroup.h:68
NSInteger occupantsCount
Definition: EMGroup.h:208
NSString * subject
Definition: EMGroup.h:59
NSString * groupId
Definition: EMGroup.h:50
NSString * announcement
Definition: EMGroup.h:77
NSArray * memberList
Definition: EMGroup.h:119
NSArray * blacklist
Definition: EMGroup.h:132
Definition: EMGroup.h:41
BOOL isPushNotificationEnabled
Definition: EMGroup.h:163
NSArray * muteList
Definition: EMGroup.h:145
EMGroupPermissionType permissionType
Definition: EMGroup.h:190
NSString * owner
Definition: EMGroup.h:99
BOOL isBlocked
Definition: EMGroup.h:181
EMGroupOptions * setting
Definition: EMGroup.h:86
NSArray * adminList
Definition: EMGroup.h:110