EaseUserModel.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /************************************************************
  2. * * Hyphenate CONFIDENTIAL
  3. * __________________
  4. * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
  5. *
  6. * NOTICE: All information contained herein is, and remains
  7. * the property of Hyphenate Inc.
  8. * Dissemination of this information or reproduction of this material
  9. * is strictly forbidden unless prior written permission is obtained
  10. * from Hyphenate Inc.
  11. */
  12. #import <Foundation/Foundation.h>
  13. #import "IUserModel.h"
  14. /** @brief 环信用户模型对象 */
  15. @interface EaseUserModel : NSObject<IUserModel>
  16. /** @brief 好友环信id(用户环信id) */
  17. @property (strong, nonatomic, readonly) NSString *buddy;
  18. /** @brief 用户昵称 */
  19. @property (strong, nonatomic) NSString *nickname;
  20. /** @brief 用户头像url */
  21. @property (strong, nonatomic) NSString *avatarURLPath;
  22. /** @brief 用户头像 */
  23. @property (strong, nonatomic) UIImage *avatarImage;
  24. /*!
  25. @method
  26. @brief 初始化用户模型
  27. @param buddy 好友环信id(用户环信id)
  28. @return 用户模型
  29. */
  30. - (instancetype)initWithBuddy:(NSString *)buddy;
  31. @end