CNLiveChatUserInfo.h
890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// CNLiveChatUserInfo.h
// CNLiveChatManager
//
// Created by cnliveJunBo on 17/3/1.
// Copyright © 2017年 cnlive. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CNLiveChatUserInfo : NSObject
/*!
用户ID(一旦以一个用户ID连接到服务器,就不能再修改用户ID了,如果修改也会被忽略)
*/
@property(nonatomic, copy, readonly) NSString *userId;
/*!
用户名称
*/
@property(nonatomic, copy) NSString *name;
/*!
用户头像的URL
*/
@property(nonatomic, copy) NSString *portraitUri;
/*!
用户信息的初始化方法,
@param userId 用户ID
@param username 用户名称
@param portrait 用户头像的URL
@return 用户信息对象
*/
- (instancetype)initWithUserId:(NSString *)userId
name:(NSString *)username
portrait:(NSString *)portrait;
@end