From 650fd803616d0e782d02b965c49fa06be65cea79 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 30 Dec 2020 08:57:15 +0300 Subject: Fetch external users --- Juick/Model/User.h | 1 + Juick/Model/User.m | 1 + 2 files changed, 2 insertions(+) (limited to 'Juick/Model') diff --git a/Juick/Model/User.h b/Juick/Model/User.h index 4bbf332..cb63ebc 100644 --- a/Juick/Model/User.h +++ b/Juick/Model/User.h @@ -13,6 +13,7 @@ @property (nonatomic, strong) NSString *uid; @property (nonatomic, strong) NSString *avatar; @property (nonatomic, strong) NSString *token; +@property (nonatomic, strong) NSString *uri; @property (nonatomic) NSInteger unreadCount; + (User *) fromJSON:(NSDictionary *)jsonData; diff --git a/Juick/Model/User.m b/Juick/Model/User.m index f9b2990..ee3cce8 100644 --- a/Juick/Model/User.m +++ b/Juick/Model/User.m @@ -16,6 +16,7 @@ user.uname = jsonData[@"uname"]; user.avatar = jsonData[@"avatar"]; user.token = jsonData[@"hash"]; + user.uri = jsonData[@"uri"]; user.unreadCount = [jsonData[@"messagesCount"] integerValue]; return user; } -- cgit v1.2.3