//
//  LoginInfo.h
//  Car
//
//  Created by Javen on 2016/12/23.
//  Copyright © 2016年 上海勾芒信息科技. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "car_objc_json_client.h"
#import "WWSideslipViewController.h"
#import "MainViewController.h"
#define kGlobal [GlobalInstance shareInstance]
#define kUser kGlobal.loginResult.user

@interface GlobalInstance : NSObject
{
  NSString *_userName;
  NSString *_userPsw;
  BOOL _isNoFirst;
}


/**
 登录时返回的数据
 */
@property (strong, nonatomic) LoginResult *loginResult;

/**
 全局可访问的侧边栏vc
 */
@property (strong, nonatomic) WWSideslipViewController *sideSlipVC;
@property (strong, nonatomic) UINavigationController *mainNaVC;
@property (strong, nonatomic) MainViewController *mainVC;


+ (instancetype)shareInstance;

- (void)setUserName:(NSString *)userName;

- (void)setUserPsw:(NSString *)userPsw;

- (NSString *)userName;

- (NSString *)userPsw;

- (void)setIsNoFirst:(BOOL)isNoFirst;

- (BOOL)isNoFirst;
@end
