EaseConversationCell.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 "IConversationModel.h"
  14. #import "IModelCell.h"
  15. #import "EaseImageView.h"
  16. /** @brief cell的最小高度 */
  17. static CGFloat EaseConversationCellMinHeight = 60;
  18. /** @brief 会话列表自定义UITableViewCell */
  19. @interface EaseConversationCell : UITableViewCell<IModelCell>
  20. /** @brief 头像(用户、群组、聊天室) */
  21. @property (strong, nonatomic) EaseImageView *avatarView;
  22. /** @brief 最近一条消息的信息 */
  23. @property (strong, nonatomic) UILabel *detailLabel;
  24. /** @brief 时间 */
  25. @property (strong, nonatomic) UILabel *timeLabel;
  26. /** @brief 会话标题 */
  27. @property (strong, nonatomic) UILabel *titleLabel;
  28. /** @brief 会话对象 */
  29. @property (strong, nonatomic) id<IConversationModel> model;
  30. /** @brief 是否显示头像,默认为YES */
  31. @property (nonatomic) BOOL showAvatar;
  32. /** @brief title的字体 */
  33. @property (nonatomic) UIFont *titleLabelFont UI_APPEARANCE_SELECTOR;
  34. /** @brief title文字颜色 */
  35. @property (nonatomic) UIColor *titleLabelColor UI_APPEARANCE_SELECTOR;
  36. /** @brief 最近一条消息字体 */
  37. @property (nonatomic) UIFont *detailLabelFont UI_APPEARANCE_SELECTOR;
  38. /** @brief 最近一条消息文字颜色 */
  39. @property (nonatomic) UIColor *detailLabelColor UI_APPEARANCE_SELECTOR;
  40. /** @brief 时间文字字体 */
  41. @property (nonatomic) UIFont *timeLabelFont UI_APPEARANCE_SELECTOR;
  42. /** @brief 时间文字颜色 */
  43. @property (nonatomic) UIColor *timeLabelColor UI_APPEARANCE_SELECTOR;
  44. @end