IConversationModel.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. @class EMConversation;
  15. /** @brief 环信会话模型协议 */
  16. @protocol IConversationModel <NSObject>
  17. /** @brief 会话对象 */
  18. @property (strong, nonatomic, readonly) EMConversation *conversation;
  19. /** @brief 会话的标题(主要用户UI显示) */
  20. @property (strong, nonatomic) NSString *title;
  21. /** @brief conversationId的头像url */
  22. @property (strong, nonatomic) NSString *avatarURLPath;
  23. /** @brief conversationId的头像 */
  24. @property (strong, nonatomic) UIImage *avatarImage;
  25. /*!
  26. @method
  27. @brief 初始化会话对象模型
  28. @param conversation 会话对象
  29. @return 会话对象模型
  30. */
  31. - (instancetype)initWithConversation:(EMConversation *)conversation;
  32. @end