NIMSDK-iOS
载入中...
搜索中...
未找到
NIMChatroomMember.h
浏览该文件的文档.
1//
2// NIMChatroomMember.h
3// NIMLib
4//
5// Created by Netease.
6// Copyright © 2016年 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
13/**
14 * 聊天室用户类型
15 */
16typedef NS_ENUM(NSInteger, NIMChatroomMemberType) {
17 /**
18 * 普通游客
19 */
21 /**
22 * 受限用户
23 */
25 /**
26 * 普通用户
27 */
29 /**
30 * 创建者
31 */
33 /**
34 * 管理员
35 */
37 /**
38 * 匿名游客
39 */
41};
42
43/**
44 * 聊天室用户
45 */
46@interface NIMChatroomMember : NSObject
47
48/**
49 * 用户ID
50 */
51@property (nullable,nonatomic,copy) NSString *userId;
52
53/**
54 * 聊天室内的昵称字段,由用户进聊天室时提交。
55 */
56@property (nullable,nonatomic,copy) NSString *roomNickname;
57
58/**
59 * 聊天室内的头像字段,由用户进聊天室时提交。
60 */
61@property (nullable,nonatomic,copy) NSString *roomAvatar;
62
63/**
64 * 用户在聊天室内的头像缩略图
65 * @discussion 仅适用于使用云信上传服务进行上传的资源,否则无效。
66 */
67
68@property (nullable,nonatomic,copy,readonly) NSString *roomAvatarThumbnail;
69
70/**
71 * 聊天室内预留给开发者的扩展字段,由用户进聊天室时提交。
72 */
73@property (nullable,nonatomic,copy) NSString *roomExt;
74
75/**
76 * 用户类型
77 */
78@property (nonatomic,assign) NIMChatroomMemberType type;
79
80/**
81 * 是否被禁言
82 */
83@property (nonatomic,assign) BOOL isMuted;
84
85/**
86 * 是否被临时禁言
87 * @discussion 临时禁言和禁言属性无相关性
88 */
89@property (nonatomic,assign) BOOL isTempMuted;
90
91/**
92 * 临时禁言剩余时长
93 */
94@property (nonatomic,assign) unsigned long long tempMuteDuration;
95
96/**
97 * 是否被拉黑
98 */
99@property (nonatomic,assign) BOOL isInBlackList;
100
101/**
102 * 是否在线, 仅特殊成员才可能离线, 对游客用户而言只能是在线
103 */
104@property (nonatomic,assign) BOOL isOnline;
105
106/**
107 * 进入聊天室的时间点
108 */
109@property (nonatomic,assign) NSTimeInterval enterTimeInterval;
110
111/**
112 * 聊天室成员的tags
113 */
114@property (nullable,nonatomic,copy) NSString *tags;
115
116/**
117 * 聊天室成员的notifyTargetTags
118 */
119@property (nullable,nonatomic,copy) NSString *notifyTargetTags;
120
121@end
122
123NS_ASSUME_NONNULL_END
NIMChatroomMemberType
Definition: NIMChatroomMember.h:16
@ NIMChatroomMemberTypeLimit
Definition: NIMChatroomMember.h:24
@ NIMChatroomMemberTypeManager
Definition: NIMChatroomMember.h:36
@ NIMChatroomMemberTypeGuest
Definition: NIMChatroomMember.h:20
@ NIMChatroomMemberTypeNormal
Definition: NIMChatroomMember.h:28
@ NIMChatroomMemberTypeAnonymousGuest
Definition: NIMChatroomMember.h:40
@ NIMChatroomMemberTypeCreator
Definition: NIMChatroomMember.h:32
Definition: NIMChatroomMember.h:47
BOOL isTempMuted
Definition: NIMChatroomMember.h:89
NSString * roomExt
Definition: NIMChatroomMember.h:73
unsigned long long tempMuteDuration
Definition: NIMChatroomMember.h:94
NIMChatroomMemberType type
Definition: NIMChatroomMember.h:78
BOOL isOnline
Definition: NIMChatroomMember.h:104
BOOL isInBlackList
Definition: NIMChatroomMember.h:99
BOOL isMuted
Definition: NIMChatroomMember.h:83
NSTimeInterval enterTimeInterval
Definition: NIMChatroomMember.h:109
NSString * userId
Definition: NIMChatroomMember.h:51
NSString * roomAvatarThumbnail
Definition: NIMChatroomMember.h:68
NSString * roomAvatar
Definition: NIMChatroomMember.h:61
NSString * roomNickname
Definition: NIMChatroomMember.h:56
NSString * notifyTargetTags
Definition: NIMChatroomMember.h:119
NSString * tags
Definition: NIMChatroomMember.h:114