IMAUser.h 882 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // IMAUser.h
  3. // TIMAdapter
  4. //
  5. // Created by AlexiChen on 16/1/29.
  6. // Copyright © 2016年 AlexiChen. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface IMAUser : NSObject<IMAUserShowAble, IMAContactItemShowAble>
  10. {
  11. @protected
  12. NSString *_userId; // app对应的帐号
  13. NSString *_icon; // 头像
  14. NSString *_remark; // 名称
  15. NSString *_nickName; // 备注名
  16. }
  17. @property (nonatomic, copy) NSString *userId;
  18. @property (nonatomic, copy) NSString *icon;
  19. @property (nonatomic, copy) NSString *nickName;
  20. @property (nonatomic, copy) NSString *remark;
  21. @property (nonatomic, assign) BOOL isSelected; // for 好友选择界面
  22. - (instancetype)initWith:(NSString *)userid;
  23. - (instancetype)initWithUserInfo:(TIMUserProfile *)userprofile;
  24. - (BOOL)isC2CType;
  25. - (BOOL)isGroupType;
  26. - (BOOL)isSystemType;
  27. @end