//
//  AppSession.h
//  InforMobile
//
//  Created by Nookaraju Maddila on 7/14/17.
//  Copyright © 2017 Infor Global Solutions. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AppDefinitions.h"

@class Reachability;

@interface AppSession : NSObject
@property (nonatomic, strong) Reachability *reachability;
@property (nonatomic) BOOL networkAvailable;
@property (nonatomic, strong) NSString *access_token;


+ (AppSession *)sharedInstance;
- (BOOL)isNetwokReachable;
- (BOOL)isSessionValid;

- (void)loginDoneEvent:(NSDictionary *)urlParams;
- (void)oAuthAccessTokenUpdate:(NSDictionary *)urlParams;
- (void) logout;
-(void) syncCurrentLoginSession;

@end
