IUserModel.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 <UIKit/UIKit.h>
  13. #import <Foundation/Foundation.h>
  14. /** @brief 环信用户模型协议 */
  15. @class EMBuddy;
  16. @protocol IUserModel <NSObject>
  17. /** @brief 好友环信id(用户环信id) */
  18. @property (strong, nonatomic, readonly) NSString *buddy;
  19. /** @brief 用户昵称 */
  20. @property (strong, nonatomic) NSString *nickname;
  21. /** @brief 用户头像url */
  22. @property (strong, nonatomic) NSString *avatarURLPath;
  23. /** @brief 用户头像 */
  24. @property (strong, nonatomic) UIImage *avatarImage;
  25. /*!
  26. @method
  27. @brief 初始化用户模型
  28. @param buddy 好友环信id(用户环信id)
  29. @return 用户模型
  30. */
  31. - (instancetype)initWithBuddy:(NSString *)buddy;
  32. @end