//
//  MDMConfiguration.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"

#define NOTIFICATION_MDM_SERVERS_LIST_CHANGED @"MDM_ServersListChanged"

// The Managed app configuration dictionary pushed down from an MDM server are stored in this key.
static NSString * const kAppleMDMConfigurationKey = @"com.apple.configuration.managed";
static NSString * const kAppMDMConfigurationKey = @"com.infor.IDM.configuration.managed";

@interface MDMConfiguration : NSObject

// Managed properties
@property (nonatomic, strong) BackendServers *managedServers;
@property (nonatomic,readonly) BOOL allowCustomServersList;
@property (nonatomic,readonly) BOOL didDeletedDefaultServer;
@property (nonatomic,readonly) BOOL didChangedDefaultServerInfo;
@property (nonatomic,readonly) BOOL didServerDataUpdated;

// class properties
@property (nonatomic) BOOL dontShowAlerts;

-(BOOL) checkServerWasRemovedServerByMDM;
-(BOOL) checkIsThereAnyUpdateFromMDM;
-(void)mdmCallback;
-(void)readNewMDMValues;
-(void)updateWithNotifications;
@end
