summaryrefslogtreecommitdiff
path: root/Juick/Model/Message.h
blob: 33d99112c88ae16ab8b3b55678394050c9f91201 (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
//
//  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"

@interface Message : NSObject

@property NSNumber *mid;
@property NSNumber *rid;
@property User *user;
@property NSString *text;
@property NSArray<NSString *> *tags;
@property NSArray<Entity *> *entities;
@property NSString *timestamp;
@property NSString *attach;
@property NSString *repliesBy;
@property NSNumber *repliesCount;
@property Attachment *attachment;
@property BOOL service;
@property BOOL unread;

+(Message *) fromJSON:(NSDictionary *)jsonData;

@end