123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- //
- // EMUserInfo.h
- // libHyphenateSDK.a
- //
- // Created by lixiaoming on 2021/3/17.
- // Copyright © 2021 easemob.com. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- /**
- * \~chinese
- * 用户属性枚举类型。
- *
- *
- * \~english
- * The user information type.
- */
- typedef NS_ENUM(NSInteger, EMUserInfoType) {
- EMUserInfoTypeNickName = 0, /** \~chinese 用户昵称。 *\~english The user nickname. */
- EMUserInfoTypeAvatarURL, /** \~chinese 用户头像地址。 *\~english The user avatar address.*/
- EMUserInfoTypePhone, /** \~chinese 用户联系方式。 *\~english The user contact. */
- EMUserInfoTypeMail, /** \~chinese 用户邮箱地址。 *\~english The user email address. */
- EMUserInfoTypeGender, /** \~chinese 用户性别。 *\~english The user gender. */
- EMUserInfoTypeSign, /** \~chinese 用户签名。 *\~english The user signature. */
- EMUserInfoTypeBirth, /** \~chinese 用户生日。 *\~english The user birthday. */
- EMUserInfoTypeExt = 100, /** \~chinese 扩展字段。 *\~english The extension field. */
- };
- /**
- * \~chinese
- * 用户属性信息。
- *
- * \~english
- * The userInfo class.
- */
- @interface EMUserInfo : NSObject<NSCopying>
- /**
- * \~chinese 用户 ID。
- *
- * \~english The user ID.
- */
- @property (nonatomic,copy) NSString * _Nullable userId;
- /**
- * \~chinese 用户昵称。
- *
- * \~english The user's nickname.
- */
- @property (nonatomic,copy) NSString * _Nullable nickname;
- /**
- * \~chinese 用户头像地址。
- *
- * \~english The user's avatar file uri.
- */
- @property (nonatomic,copy) NSString * _Nullable avatarUrl;
- /**
- * \~chinese 用户邮箱地址。
- *
- * \~english The user's mail address.
- */
- @property (nonatomic,copy) NSString * _Nullable mail;
- /**
- * \~chinese 用户联系方式。
- *
- * \~english The user's phone number.
- */
- @property (nonatomic,copy) NSString * _Nullable phone;
- /**
- * \~chinese 用户性别,0 为未设置。SDK 没有取值限制,你可以自己定义取值,例如指定 1:男;2:女。
- *
- * \~english The user's gender. If you didn't set, the default value is 0. For example you can set 1 for male and 2 for female.
- */
- @property (nonatomic) NSInteger gender;
- /**
- * \~chinese 用户签名。
- *
- * \~english The user's personal status.
- */
- @property (nonatomic,copy) NSString* _Nullable sign;
- /**
- * \~chinese 用户生日。
- *
- * \~english The user's birth date.
- */
- @property (nonatomic,copy) NSString* _Nullable birth;
- /**
- * \~chinese 扩展字段。
- *
- * \~english The extention information.
- */
- @property (nonatomic,copy) NSString * _Nullable ext;
- #pragma mark - EM_DEPRECATED_IOS 3.8.8
- /**
- * \~chinese 用户昵称。
- *
- * \~english The user's nickname.
- */
- @property (nonatomic,copy) NSString *nickName
- __deprecated_msg("Use nickname instead");
- @end
|