summaryrefslogtreecommitdiff
path: root/Juick/AppDelegate.h
blob: 1cc86505fbd25318a32faeee1ec3fca88baccd95 (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
38
39
40
41
//
//  AppDelegate.h
//  Juick
//
//  Created by Vitaly Takmazov on 26.10.13.
//  Copyright (c) 2013 com.juick. All rights reserved.
//

@import UIKit;
#import "ThreadViewController.h"
#import "User.h"
#import "API.h"
#import "JuickNavigationController.h"

extern NSString * const UserUpdatedNotificationName;

@interface AppDelegate : UIResponder <UIApplicationDelegate, UNUserNotificationCenterDelegate, JuickAuthorizationDelegate>

@property (strong, nonatomic) UIWindow *window;

-(void) registerForRemoteNotifications;

-(void) cleanupPushedData;

+(AppDelegate *) shared;

-(void) presentThread:(UIViewController *)vc;
-(void) presentEditor:(UIViewController *)vc;
-(void) presentLoginView:(UIViewController *)vc;

@property (strong, nonatomic) NSNumber *pushedThread;
@property (strong, nonatomic) NSString *pushedUname;
@property (strong, nonatomic) NSNumber *pushedReplyId;

@property (strong, nonatomic) API *api;

@property (strong, nonatomic) NSDateFormatter *sharedDateFormatter;

@property (strong, nonatomic) JuickNavigationController *navigator;

@end