summaryrefslogtreecommitdiff
path: root/Juick/Views/MessageCell.h
blob: 684a6209682b148ea66514310a1f39ed6bfb3a9a (plain) (blame)
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
//
//  MessageCell.h
//  Juick
//
//  Created by Vitaly Takmazov on 03/12/2017.
//  Copyright © 2017 com.juick. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Message.h"

@protocol MessageCellDelegate
-(void) avatarClicked:(NSString *)uname;
@end

@interface MessageCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *avatar;

@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *timestamp;
@property (weak, nonatomic) IBOutlet UITextView *text;
@property (weak, nonatomic) IBOutlet UIImageView *attach;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *attachmentHeight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *attachmentWidth;
@property (weak, nonatomic) IBOutlet UILabel *summary;

@property (nonatomic, strong) id<MessageCellDelegate> delegate;

- (void) configureWithMessage:(Message *)msg;
@end