//
//  ApplicationConfiguration.h
//  Mingle
//
//  Created by Nookaraju Maddila on 12/8/16.
//  Copyright © 2016 Infor Global Solutions Inc, Alpharetta, USA. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BackendServers.h"
#import "MDMConfiguration.h"

#define NOTIFICATION_CONFIGURATION_INITIALISED @"NOTIFCATION_ConfigurationInitialised"

@interface ApplicationConfiguration : NSObject

@property (strong) MDMConfiguration *mdmConfiguration;
@property (strong) BackendServers *servers;
@property (strong) BackendServer *defaultServer;
@property (nonatomic,assign) BOOL firstTime;

@property (nonatomic,strong) NSUserDefaults *groupDefaults;

+(ApplicationConfiguration *)instance;
-(void)saveConfiguration;

-(void)updateBackendServersList;
-(BOOL) hasValidDefaultServer;
-(BOOL) saveServerInfo:(NSDictionary *)dictServerInfo;
-(void) makeDefaultServer:(BackendServer *)defaultServer;
-(void) updateServerName:(BackendServer *)server;
-(void) updateDefaultServer;
-(void) addOldVersionConfigurationServers;
@end
