单军华
2018-07-11 7b02207537d35bfa1714bf8beafc921f717d100a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/************************************************************
 *  * Hyphenate CONFIDENTIAL
 * __________________
 * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
 *
 * NOTICE: All information contained herein is, and remains
 * the property of Hyphenate Inc.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Hyphenate Inc.
 */
 
 
#import <UIKit/UIKit.h>
 
#import "IConversationModel.h"
#import "IModelCell.h"
#import "EaseImageView.h"
 
/** @brief cell的最小高度 */
static CGFloat EaseConversationCellMinHeight = 60;
 
/** @brief 会话列表自定义UITableViewCell */
 
@interface EaseConversationCell : UITableViewCell<IModelCell>
 
/** @brief 头像(用户、群组、聊天室) */
@property (strong, nonatomic) EaseImageView *avatarView;
 
/** @brief 最近一条消息的信息 */
@property (strong, nonatomic) UILabel *detailLabel;
 
/** @brief 时间 */
@property (strong, nonatomic) UILabel *timeLabel;
 
/** @brief 会话标题 */
@property (strong, nonatomic) UILabel *titleLabel;
 
/** @brief 会话对象 */
@property (strong, nonatomic) id<IConversationModel> model;
 
/** @brief 是否显示头像,默认为YES */
@property (nonatomic) BOOL showAvatar;
 
/** @brief title的字体 */
@property (nonatomic) UIFont *titleLabelFont UI_APPEARANCE_SELECTOR;
 
/** @brief title文字颜色 */
@property (nonatomic) UIColor *titleLabelColor UI_APPEARANCE_SELECTOR;
 
/** @brief 最近一条消息字体 */
@property (nonatomic) UIFont *detailLabelFont UI_APPEARANCE_SELECTOR;
 
/** @brief 最近一条消息文字颜色 */
@property (nonatomic) UIColor *detailLabelColor UI_APPEARANCE_SELECTOR;
 
/** @brief 时间文字字体 */
@property (nonatomic) UIFont *timeLabelFont UI_APPEARANCE_SELECTOR;
 
/** @brief 时间文字颜色 */
@property (nonatomic) UIColor *timeLabelColor UI_APPEARANCE_SELECTOR;
 
@end