summaryrefslogtreecommitdiff
path: root/Juick/Views/ConversationCell.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/Views/ConversationCell.m')
-rw-r--r--Juick/Views/ConversationCell.m26
1 files changed, 26 insertions, 0 deletions
diff --git a/Juick/Views/ConversationCell.m b/Juick/Views/ConversationCell.m
new file mode 100644
index 0000000..750ab45
--- /dev/null
+++ b/Juick/Views/ConversationCell.m
@@ -0,0 +1,26 @@
+//
+// ConversationCell.m
+// Juick
+//
+// Created by Vitaly Takmazov on 04/03/2018.
+// Copyright © 2018 com.juick. All rights reserved.
+//
+
+#import "ConversationCell.h"
+@import YYWebImage;
+
+@implementation ConversationCell
+
+- (void)awakeFromNib {
+ [super awakeFromNib];
+ // Initialization code
+}
+
+-(void) configureWithChat:(Chat *)chat {
+ self.chatName.text = chat.uname;
+ self.lastMessage.text = @"";
+ self.unreadMarker.text = @"";
+ [self.avatar yy_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/a/%d.png", [chat.uid intValue]]] options:YYWebImageOptionProgressiveBlur|YYWebImageOptionSetImageWithFadeAnimation];
+}
+
+@end