text: //
  //  ALUserDefaultsHandler.h
  //  ChatApp
  //
  //  Created by shaik riyaz on 12/08/15.
  //  Copyright (c) 2015 AppLogic. All rights reserved.
  //
  
  static NSString *const AL_APPLICATION_KEY = @"com.applozic.userdefault.APPLICATION_KEY";
  static NSString *const AL_EMAIL_VERIFIED = @"com.applozic.userdefault.EMAIL_VERIFIED";
  static NSString *const AL_DISPLAY_NAME = @"com.applozic.userdefault.DISPLAY_NAME";
  static NSString *const AL_DEVICE_KEY_STRING = @"com.applozic.userdefault.DEVICE_KEY_STRING";
  static NSString *const AL_USER_KEY_STRING = @"com.applozic.userdefault.USER_KEY_STRING";
  static NSString *const AL_EMAIL_ID = @"com.applozic.userdefault.EMAIL_ID";
  static NSString *const AL_USER_ID = @"com.applozic.userdefault.USER_ID";
  static NSString *const AL_APN_DEVICE_TOKEN = @"com.applozic.userdefault.APN_DEVICE_TOKEN";
  static NSString *const AL_GOOGLE_MAP_API_KEY = @"com.applozic.userdefault.GOOGLE_MAP_API_KEY";
  static NSString *const AL_LAST_SYNC_TIME = @"com.applozic.userdefault.LAST_SYNC_TIME";
  static NSString *const AL_CONVERSATION_DB_SYNCED = @"com.applozic.userdefault.CONVERSATION_DB_SYNCED";
  static NSString *const AL_LOGOUT_BUTTON_VISIBLITY = @"com.applozic.userdefault.LOGOUT_BUTTON_VISIBLITY";
  static NSString *const AL_BOTTOM_TAB_BAR_VISIBLITY = @"com.applozic.userdefault.BOTTOM_TAB_BAR_VISIBLITY";
  static NSString *const AL_BACK_BTN_VISIBILITY_ON_CON_LIST = @"com.applozic.userdefault.BACK_BTN_VISIBILITY_ON_CON_LIST";
  static NSString *const AL_CONVERSATION_CONTACT_IMAGE_VISIBILITY = @"com.applozic.userdefault.CONVERSATION_CONTACT_IMAGE_VISIBILITY";
  static NSString *const AL_MSG_LIST_CALL_SUFIX = @"com.applozic.userdefault.MSG_CALL_MADE:";
  static NSString *const AL_PROCESSED_NOTIFICATION_IDS  = @"com.applozic.userdefault.PROCESSED_NOTIFICATION_IDS";
  static NSString *const AL_LAST_SEEN_SYNC_TIME = @"com.applozic.userdefault.LAST_SEEN_SYNC_TIME";
  static NSString *const AL_SHOW_LOAD_ERLIER_MESSAGE = @"com.applozic.userdefault.SHOW_LOAD_ERLIER_MESSAGE:";
  static NSString *const AL_LAST_SYNC_CHANNEL_TIME = @"com.applozic.userdefault.LAST_SYNC_CHANNEL_TIME";
  static NSString *const AL_USER_BLOCK_LAST_TIMESTAMP = @"com.applozic.userdefault.USER_BLOCK_LAST_TIMESTAMP";
  static NSString *const AL_APP_MODULE_NAME_ID = @"com.applozic.userdefault.APP_MODULE_NAME_ID";
  static NSString *const AL_CONTACT_VIEW_LOADED = @"com.applozic.userdefault.CONTACT_VIEW_LOADED";
  static NSString *const AL_USER_INFO_API_CALLED_SUFFIX = @"com.applozic.userdefault.USER_INFO_API_CALLED:";
  static NSString *const APPLOZIC_BASE_URL = @"APPLOZIC_BASE_URL";
  static NSString *const APPLOZIC_MQTT_URL = @"APPLOZIC_MQTT_URL";
  static NSString *const APPLOZIC_FILE_URL = @"APPLOZIC_FILE_URL";
  static NSString *const APPLOZIC_MQTT_PORT = @"APPLOZIC_MQTT_PORT";
  static NSString *const AL_USER_TYPE_ID = @"com.applozic.userdefault.USER_TYPE_ID";
  static NSString *const AL_MESSSAGE_LIST_LAST_TIME = @"com.applozic.userdefault.MESSSAGE_LIST_LAST_TIME";
  static NSString *const AL_ALL_CONVERSATION_FETCHED = @"com.applozic.userdefault.ALL_CONVERSATION_FETCHED";
  static NSString *const AL_CONVERSATION_FETCH_PAGE_SIZE = @"com.applozic.userdefault.CONVERSATION_FETCH_PAGE_SIZE";
  static NSString *const AL_NOTIFICATION_MODE = @"com.applozic.userdefault.NOTIFICATION_MODE";
  static NSString *const AL_USER_PASSWORD = @"com.applozic.userdefault.USER_PASSWORD";
  static NSString *const AL_USER_AUTHENTICATION_TYPE_ID = @"com.applozic.userdefault.USER_AUTHENTICATION_TYPE_ID";
  static NSString *const AL_UNREAD_COUNT_TYPE = @"com.applozic.userdefault.UNREAD_COUNT_TYPE";
  static NSString *const AL_MSG_SYN_CALL = @"com.applozic.userdefault.MSG_SYN_CALL";
  static NSString *const AL_DEBUG_LOG_FLAG = @"com.applozic.userdefault.DEBUG_LOG_FLAG";
  static NSString *const AL_LOGIN_USER_CONTACT = @"com.applozic.userdefault.LOGIN_USER_CONTACT";
  static NSString *const AL_LOGIN_USER_PROFILE_IMAGE = @"com.applozic.userdefault.LOGIN_USER_PROFILE_IMAGE";
  static NSString *const AL_LOGIN_USER_PROFILE_IMAGE_SERVER = @"com.applozic.userdefault.LOGIN_USER_PROFILE_IMAGE_SERVER";
  static NSString *const AL_LOGGEDIN_USER_STATUS = @"com.applozic.userdefault.LOGGEDIN_USER_STATUS";
  static NSString *const AL_LOGIN_USER_SUBSCRIBED_MQTT = @"com.applozic.userdefault.LOGIN_USER_SUBSCRIBED_MQTT";
  static NSString *const AL_USER_ENCRYPTION_KEY = @"com.applozic.userdefault.USER_ENCRYPTION_KEY";
  static NSString *const AL_USER_PRICING_PACKAGE = @"com.applozic.userdefault.USER_PRICING_PACKAGE";
  static NSString *const AL_DEVICE_ENCRYPTION_ENABLE = @"com.applozic.userdefault.DEVICE_ENCRYPTION_ENABLE";
  static NSString *const AL_NOTIFICATION_SOUND_FILE_NAME = @"com.applozic.userdefault.NOTIFICATION_SOUND_FILE_NAME";
  static NSString *const AL_CONTACT_SERVER_CALL_IS_DONE = @"com.applozic.userdefault.AL_CONTACT_SERVER_CALL_IS_DONE";
  static NSString *const AL_CONTACT_SCROLLING_DONE = @"com.applozic.userdefault.AL_CONTACT_SCROLLING_DONE";
  static NSString *const AL_KEY_PREFIX = @"com.applozic.userdefault";
  static NSString *const AL_GROUP_FILTER_LAST_SYNC_TIME = @"com.applozic.GROUP_FILTER_LAST_SYNC_TIME";
  static NSString *const AL_USER_ROLE_TYPE = @"com.applozic.userdefault.AL_USER_ROLE_TYPE";
  static NSString *const AL_USER_PUSH_NOTIFICATION_FORMATE = @"com.applozic.userdefault.AL_USER_PUSH_NOTIFICATION_FORMATE";
  static NSString *const AL_USER_MQTT_ENCRYPTION_KEY = @"com.applozic.userdefault.USER_MQTT_ENCRYPTION_KEY";
  static NSString *const AL_LAST_SYNC_TIME_FOR_META_DATA = @"com.applozic.userdefault.LAST_SYNC_TIME_FOR_META_DATA";
  static NSString *const AL_NOTIFICATION_TITLE_KEY = @"NOTIFICATION_TITLE";
  static NSString *const AL_DISABLE_USER_CHAT = @"DISABLE_CHAT_WITH_USER";
  static NSString *const AL_USER_DISPLAY_NAME_API_CALLED_SUFFIX = @"com.applozic.userdefault.AL_USER_DISPLAY_NAME_API_CALLED:";
  static NSString *const AL_STORE = @"AL_STORE";
  static NSString *const AL_STORE_USER_PASSWORD = @"AL_USER_PASSW";
  static NSString *const AL_AUTHENTICATION_TOKEN = @"AL_AUTHENTICATION_TOKEN";
  static NSString *const AL_AUTHENTICATION_TOKEN_CREATED_TIME = @"com.applozic.userdefault.AUTHENTICATION_TOKEN_CREATED_TIME";
  static NSString *const AL_AUTHENTICATION_TOKEN_VALID_UPTO_MINS = @"com.applozic.userdefault.AUTHENTICATION_TOKEN_VALID_UPTO_MINS";
  static NSString *const AL_INITIAL_MESSAGE_LIST_CALL = @"com.applozic.userdefault.AL_INITIAL_MESSAGE_LIST_CALL";
  static NSString *const AL_LOGGED_IN_USER_DEACTIVATED = @"com.applozic.userdefault.AL_LOGGED_IN_USER_DEACTIVATED";
  static NSString *const AL_CHANNEL_LIST_LAST_GENERATED_TIME = @"com.applozic.userdefault.AL_CHANNEL_LIST_LAST_GENERATED_TIME";
  
  
  #import <Foundation/Foundation.h>
  #import "ALApplozicSettings.h"
  
  @interface ALUserDefaultsHandler : NSObject
  
  +(void) setConversationContactImageVisibility: (BOOL) visibility;
  
  +(BOOL) isConversationContactImageVisible;
  
  +(void) setBottomTabBarHidden: (BOOL) visibleStatus;
  
  +(BOOL) isBottomTabBarHidden;
  
  +(void)setNavigationRightButtonHidden:(BOOL)flagValue;
  +(BOOL)isNavigationRightButtonHidden;
  
  +(void) setBackButtonHidden: (BOOL)flagValue;
  
  +(BOOL) isBackButtonHidden;
  
  +(BOOL) isLoggedIn;
  
  +(void) clearAll;
  
  +(NSString *) getApplicationKey;
  
  +(void) setApplicationKey: (NSString*) applicationKey;
  
  +(void) setEmailVerified: (BOOL) value;
  
  +(void) setApnDeviceToken: (NSString*) apnDeviceToken;
  
  +(NSString *) getApnDeviceToken;
  
  +(void) setBoolForKey_isConversationDbSynced:(BOOL) value;
  
  +(BOOL) getBoolForKey_isConversationDbSynced;
  
  +(void) setDeviceKeyString:(NSString*)deviceKeyString;
  
  +(void) setUserKeyString:(NSString*)userKeyString;
  
  +(void) setDisplayName:(NSString*)displayName;
  
  +(void) setEmailId:(NSString*)emailId;
  
  +(NSString *)getEmailId;
  
  +(NSString *) getDeviceKeyString;
  
  +(void) setUserId: (NSString *) userId;
  
  +(NSString*)getUserId;
  
  +(void) setLastSyncTime: (NSNumber *) lastSyncTime;
  
  +(void)setServerCallDoneForMSGList:(BOOL) value forContactId:(NSString*)constactId;
  
  +(BOOL)isServerCallDoneForMSGList:(NSString *) contactId;
  
  +(void) setProcessedNotificationIds:(NSMutableArray*) arrayWithIds;
  
  +(NSMutableArray*) getProcessedNotificationIds;
  
  +(BOOL)isNotificationProcessd:(NSString*)withNotificationId;
  
  +(NSNumber *) getLastSeenSyncTime;
  
  +(void) setLastSeenSyncTime :(NSNumber*) lastSeenTime;
  
  +(void) setShowLoadEarlierOption : (BOOL) value forContactId:(NSString*)constactId;
  
  +(BOOL)isShowLoadEarlierOption :(NSString*)constactId;
  
  +(void)setLastSyncChannelTime:(NSNumber *)lastSyncChannelTime;
  
  +(NSNumber *)getLastSyncChannelTime;
  
  +(NSNumber *)getLastSyncTime;
  
  +(NSString *)getUserKeyString;
  
  +(NSString *)getDisplayName;
  
  +(void)setUserBlockLastTimeStamp:(NSNumber *)lastTimeStamp;
  
  +(NSNumber *)getUserBlockLastTimeStamp;
  
  //+(NSString *)getNotificationTitle;
  //+(void)setNotificationTitle:(NSString *)notificationTitle;
  
  +(NSString *)getPassword;
  +(void )setPassword:(NSString *)password;
  
  +(void)setAppModuleName:(NSString*)appModuleName;
  +(NSString*)getAppModuleName;
  
  +(BOOL) getContactViewLoaded;
  +(void) setContactViewLoadStatus:(BOOL)status;
  
  +(void)setServerCallDoneForUserInfo:(BOOL)value ForContact:(NSString*)contactId;
  +(BOOL)isServerCallDoneForUserInfoForContact:(NSString*)contactId;
  
  +(void)setBASEURL:(NSString *)baseURL;
  +(NSString *)getBASEURL;
  
  +(void)setMQTTURL:(NSString *)mqttURL;
  +(NSString *)getMQTTURL;
  
  +(void)setFILEURL:(NSString *)fileURL;
  +(NSString *)getFILEURL;
  
  +(void)setMQTTPort:(NSString *)portNumber;
  +(NSString *)getMQTTPort;
  
  +(void)setUserTypeId:(short)type;
  +(short)getUserTypeId;
  
  +(NSNumber *)getLastMessageListTime;
  +(void)setLastMessageListTime:(NSNumber *)lastTime;
  
  +(BOOL)getFlagForAllConversationFetched;
  +(void)setFlagForAllConversationFetched:(BOOL)flag;
  
  +(NSInteger)getFetchConversationPageSize;
  +(void)setFetchConversationPageSize:(NSInteger)limit;
  
  +(short)getNotificationMode;
  +(void)setNotificationMode:(short)mode;
  
  +(short)getUserAuthenticationTypeId;
  +(void)setUserAuthenticationTypeId:(short)type;
  
  +(short)getUnreadCountType;
  +(void)setUnreadCountType:(short)mode;
  
  +(BOOL)isMsgSyncRequired;
  +(void)setMsgSyncRequired:(BOOL)flag;
  
  +(BOOL)isDebugLogsRequire;
  +(void)setDebugLogsRequire:(BOOL)flag;
  
  +(BOOL)getLoginUserConatactVisibility;
  +(void)setLoginUserConatactVisibility:(BOOL)flag;
  
  // LOGIN USER PROFILE IMAGE LINK
  +(NSString *)getProfileImageLink;
  +(void)setProfileImageLink:(NSString *)imageLink;
  
  +(NSString *)getProfileImageLinkFromServer;
  +(void)setProfileImageLinkFromServer:(NSString *)imageLink;
  
  +(NSString *)getLoggedInUserStatus;
  +(void)setLoggedInUserStatus:(NSString *)status;
  
  +(BOOL)isUserLoggedInUserSubscribedMQTT;
  +(void)setLoggedInUserSubscribedMQTT:(BOOL)flag;
  
  +(NSString *)getEncryptionKey;
  +(void)setEncryptionKey:(NSString *)encrptionKey;
  
  +(short)getUserPricingPackage;
  +(void)setUserPricingPackage:(short)pricingPackage;
  
  +(BOOL)getEnableEncryption;
  +(void)setEnableEncryption:(BOOL)flag;
  
  +(void) setGoogleMapAPIKey:(NSString *)googleMapAPIKey;
  +(NSString *) getGoogleMapAPIKey;
  
  +(NSString *) getNotificationSoundFileName;
  +(void) setNotificationSoundFileName:(NSString *) notificationSoundFileName;
  
  +(BOOL)isContactServerCallIsDone;
  +(void)setContactServerCallIsDone:(BOOL)flag;
  
  +(BOOL)isContactScrollingIsInProgress;
  +(void)setContactScrollingIsInProgress:(BOOL)flag;
  
  +(void) setLastGroupFilterSyncTime: (NSNumber *) lastSyncTime;
  +(NSNumber *)getLastGroupFilterSyncTIme;
  
  +(void)setUserRoleType:(short)type;
  +(short)getUserRoleType;
  
  +(void)setPushNotificationFormat:(short)type;
  +(short)getPushNotificationFormat;
  +(void)setUserEncryption:(NSString*)encryptionKey;
  +(NSString*)getUserEncryptionKey;
  
  +(void)setLastSyncTimeForMetaData :( NSNumber *) metaDataLastSyncTime;
  +(NSNumber *)getLastSyncTimeForMetaData;
  
  +(void)disableChat: (BOOL) disable;
  +(BOOL)isChatDisabled;
  
  +(void)setAuthToken:(NSString*)authToken;
  +(NSString*)getAuthToken;
  
  +(void)setAuthTokenCreatedAtTime:(NSNumber *) createdAtTime;
  +(NSNumber *)getAuthTokenCreatedAtTime;
  +(void)setAuthTokenValidUptoInMins:(NSNumber *) validUptoInMins;
  +(NSNumber *)getAuthTokenValidUptoMins;
  
  +(void)setInitialMessageListCallDone:(BOOL)flag;
  +(BOOL)isInitialMessageListCallDone;
  
  + (void)deactivateLoggedInUser:(BOOL)deactivate;
  + (BOOL)isLoggedInUserDeactivated;
  
  +(void)setChannelListLastSyncGeneratedTime:(NSNumber *)lastSyncGeneratedTime;
  +(NSNumber *)getChannelListLastSyncGeneratedTime;
  
  @end
  