EaseConversationModel.h 1.2 KB

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