From cf97b1cd43a91725e0419a953815287fde0bf70f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 17 Sep 2020 00:46:27 +0300 Subject: SwiftUI WIP --- Juick/Model/Message.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Juick/Model/Message.h') diff --git a/Juick/Model/Message.h b/Juick/Model/Message.h index 33d9911..5c85b1e 100644 --- a/Juick/Model/Message.h +++ b/Juick/Model/Message.h @@ -11,22 +11,26 @@ #import "Attachment.h" #import "Entity.h" +NS_ASSUME_NONNULL_BEGIN + @interface Message : NSObject -@property NSNumber *mid; -@property NSNumber *rid; +@property NSNumber * _Nonnull mid; +@property NSNumber * _Nullable rid; @property User *user; -@property NSString *text; +@property NSString * _Nullable text; @property NSArray *tags; @property NSArray *entities; @property NSString *timestamp; @property NSString *attach; @property NSString *repliesBy; @property NSNumber *repliesCount; -@property Attachment *attachment; +@property Attachment * _Nullable attachment; @property BOOL service; @property BOOL unread; +(Message *) fromJSON:(NSDictionary *)jsonData; @end + +NS_ASSUME_NONNULL_END -- cgit v1.2.3