IMSDK
即时通信 IM 提供全球接入、单聊、群聊、消息推送、资料关系链托管、帐号鉴权等全方位解决方案,并提供完备的 App 接入、后台管理接口。
TIMUserProfile

详细描述

用户资料

构造函数

(void) - encodeWithCoder:
 
(id) - initWithCoder:
 

属性

NSString * identifier
 
NSString * nickname
 
TIMFriendAllowType allowType
 
NSString * faceURL
 
NSData * selfSignature
 
TIMGender gender
 
uint32_t birthday
 
NSData * location
 
uint32_t language
 
uint32_t level
 
uint32_t role
 
NSDictionary * customInfo
 

函数文档

◆ encodeWithCoder:

- (void) encodeWithCoder: (NSCoder *)  encoder

读取实例变量,并把这些数据写到 coder 中去,序列化数据

◆ initWithCoder:

- (id) initWithCoder: (NSCoder *)  decoder

从 coder 中读取数据,保存到相应的变量中,即反序列化数据

属性说明

◆ identifier

- (NSString*) identifier
readwritenonatomicstrong

用户 identifier

◆ nickname

- (NSString*) nickname
readwritenonatomicstrong

用户昵称

◆ allowType

- (TIMFriendAllowType) allowType
readwritenonatomicassign

好友验证方式

◆ faceURL

- (NSString*) faceURL
readwritenonatomicstrong

用户头像

◆ selfSignature

- (NSData*) selfSignature
readwritenonatomicstrong

用户签名

◆ gender

- (TIMGender) gender
readwritenonatomicassign

用户性别

◆ birthday

- (uint32_t) birthday
readwritenonatomicassign

用户生日

◆ location

- (NSData*) location
readwritenonatomicstrong

用户区域

◆ language

- (uint32_t) language
readwritenonatomicassign

用户语言

◆ level

- (uint32_t) level
readwritenonatomicassign

等级

◆ role

- (uint32_t) role
readwritenonatomicassign

角色

◆ customInfo

- (NSDictionary*) customInfo
readwritenonatomicstrong

自定义字段集合,key是NSString类型,value是NSData类型或者NSNumber类型 key值按照后台配置的字符串传入,不包括 TIMProfileTypeKey_Custom_Prefix 前缀