blob: 5c85b1e740a82b845b9149a9d017c0b37f516706 (
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
31
32
33
34
35
36
|
//
// Message.h
// Juick
//
// Created by Vitaly Takmazov on 29.10.13.
// Copyright (c) 2013 com.juick. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "User.h"
#import "Attachment.h"
#import "Entity.h"
NS_ASSUME_NONNULL_BEGIN
@interface Message : NSObject
@property NSNumber * _Nonnull mid;
@property NSNumber * _Nullable rid;
@property User *user;
@property NSString * _Nullable text;
@property NSArray<NSString *> *tags;
@property NSArray<Entity *> *entities;
@property NSString *timestamp;
@property NSString *attach;
@property NSString *repliesBy;
@property NSNumber *repliesCount;
@property Attachment * _Nullable attachment;
@property BOOL service;
@property BOOL unread;
+(Message *) fromJSON:(NSDictionary *)jsonData;
@end
NS_ASSUME_NONNULL_END
|