UserModel.m 730 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // UserModel.m
  3. // BuguLive
  4. //
  5. // Created by fanwe2014 on 16/5/30.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #import "UserModel.h"
  9. @implementation UserModel
  10. + (NSDictionary *)mj_replacedKeyFromPropertyName{
  11. return @{
  12. @"Id" : @"id",
  13. };
  14. }
  15. // 两个用户是否相同,可通过比较imUserId来判断
  16. // 用户IMSDK的identigier
  17. - (NSString *)imUserId{
  18. return self.user_id;
  19. }
  20. // 用户昵称
  21. - (NSString *)imUserName{
  22. return self.nick_name;
  23. }
  24. // 用户头像地址
  25. - (NSString *)imUserIconUrl{
  26. return self.head_image;
  27. }
  28. //-(NSMutableDictionary *)video{
  29. // if (!_video) {
  30. // self.video = [NSMutableDictionary new];
  31. // }
  32. // return _video;
  33. //}
  34. @end