HyphenateChatSDK 3.9.9.1
EMCircleChannel.h
1//
2// EMCircleChannel.h
3// HyphenateChat
4//
5// Created by 冯钊 on 2022/6/16.
6// Copyright © 2022 easemob.com. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
14typedef NS_ENUM(NSUInteger, EMCircleChannelType) {
15 EMCircleChannelTypePublic = 0, /* \~chinese 公开频道。 */
16 EMCircleChannelTypePrivate, /* \~chinese 私密频道。 */
17};
22typedef NS_ENUM(NSUInteger, EMCircleChannelMode) {
23 EMCircleChannelModeChat = 0, /* \~chinese 文字频道。 */
24 EMCircleChannelModeVoice, /* \~chinese 语聊频道。 */
25};
26
27NS_ASSUME_NONNULL_BEGIN
28
29@interface EMCircleChannel : NSObject
30
31- (instancetype)init NS_UNAVAILABLE;
32+ (instancetype)new NS_UNAVAILABLE;
33
34- (instancetype)initWithServerId:(NSString *)serverId channelId:(NSString *)channelId name:(NSString *)name;
39@property (nonatomic, assign) EMCircleChannelMode mode;
44@property (nonatomic, copy) NSString *serverId;
45
50@property (nonatomic, copy) NSString *categoryId;
51
56@property (nonatomic, copy) NSString *channelId;
61@property (nonatomic, copy) NSString *name;
66@property (nonatomic, copy, nullable) NSString *desc;
71@property (nonatomic, copy, nullable) NSString *ext;
78@property (nonatomic, assign) BOOL isDefault;
83@property (nonatomic, assign) EMCircleChannelType type;
90@property (nonatomic, assign) int32_t maxUsers;
91
92@end
93
94NS_ASSUME_NONNULL_END
Definition: EMCircleChannel.h:30
NSString * ext
Definition: EMCircleChannel.h:71
int32_t maxUsers
Definition: EMCircleChannel.h:90
EMCircleChannelType type
Definition: EMCircleChannel.h:83
NSString * serverId
Definition: EMCircleChannel.h:44
NSString * channelId
Definition: EMCircleChannel.h:56
EMCircleChannelMode mode
Definition: EMCircleChannel.h:39
BOOL isDefault
Definition: EMCircleChannel.h:78
NSString * desc
Definition: EMCircleChannel.h:66
NSString * name
Definition: EMCircleChannel.h:61
NSString * categoryId
Definition: EMCircleChannel.h:50