summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/MessagesViewController.h
blob: d3e3f077a0d3e026c87264314e4fdc70f9e0d9e1 (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
37
//
//  MessagesViewController.h
//  Juick
//
//  Created by Vitaly Takmazov on 26.10.13.
//  Copyright (c) 2013 com.juick. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Message.h"
@import SafariServices;

@protocol MessageCellDelegate;

extern NSString* const messageCellIdentifier;

@protocol MessagesDelegate
-(void) loadMore;
@end

@interface MessagesViewController : UITableViewController<MessageCellDelegate, SFSafariViewControllerDelegate>
@property(nonatomic, strong) NSString *path;
@property(nonatomic, strong) NSDictionary *params;
@property(nonatomic, assign) BOOL shouldScrollToUnreadOnRefresh;
@property(nonatomic, assign) BOOL shouldAllowToSelectText;
@property(nonatomic) NSNumber * firstUnread;
-(void) refreshData;
-(void) refreshControlActivated;

-(void) viewThreadForMessage:(Message *)msg mid:(NSNumber *)mid scrollTo:(NSNumber *)rid;

@property(nonatomic, strong) NSMutableArray *messages;
@property(nonatomic, assign) Boolean dataLoading;
@property(nonatomic, weak) id<MessagesDelegate> messagesDelegate;
@end