summaryrefslogtreecommitdiff
path: root/Juick/Model
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-20 19:47:03 +0300
committerGravatar Vitaly Takmazov2018-11-20 19:47:03 +0300
commitcdd96215dfdac2518a77faa709ca3b588f593968 (patch)
tree029b908f6e6199d79a1c44bf79852daf29c3b5d4 /Juick/Model
parentcc947fdabe44537aed0576209c5fc580824a7175 (diff)
Avatar API
Diffstat (limited to 'Juick/Model')
-rw-r--r--Juick/Model/Chat.h1
-rw-r--r--Juick/Model/User.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Juick/Model/Chat.h b/Juick/Model/Chat.h
index a472389..1e80bdf 100644
--- a/Juick/Model/Chat.h
+++ b/Juick/Model/Chat.h
@@ -13,6 +13,7 @@
@property NSNumber *uid;
@property NSString *uname;
+@property NSString *avatar;
@property NSNumber *unreadCount;
@property NSDate *lastMessageTimestamp;
@property NSString *lastMessageText;
diff --git a/Juick/Model/User.h b/Juick/Model/User.h
index 2710e4a..8120dec 100644
--- a/Juick/Model/User.h
+++ b/Juick/Model/User.h
@@ -11,6 +11,7 @@
@interface User : NSObject
@property (nonatomic, strong) NSString *uname;
@property (nonatomic, strong) NSString *uid;
+@property (nonatomic, strong) NSString *avatar;
+ (void) get:(NSString *)name callback:(void(^)(User *))callback;