/// <summary> /// Initializes a new instance of the <see cref="PersonalInformation" /> class. /// </summary> /// <param name="settingsManager">The settings manager.</param> /// <param name="settings">The settings.</param> public PersonalInformation(SettingsManager settingsManager, BackpackPlannerSettings settings) { _settingsManager = settingsManager; _settings = settings; }
/// <summary> /// Initializes a new instance of the <see cref="BackpackPlannerSettings" /> class. /// </summary> /// <param name="settingsManager">The settings manager.</param> public BackpackPlannerSettings(SettingsManager settingsManager) { _settingsManager = settingsManager; MetaSettings = new MetaSettings(_settingsManager); }
/// <summary> /// Initializes a new instance of the <see cref="BackpackPlannerState" /> class. /// </summary> /// <param name="platformHockeyAppManager">The platform HockeyApp manager.</param> /// <param name="platformSettingsManager">The platform settings manager.</param> /// <param name="platformPlayServicesManager">The platform google play services manager.</param> /// <param name="platformDatabaseSyncManager">The platform database sync manager.</param> /// <param name="sqlitePlatform">The SQLite platform.</param> public BackpackPlannerState(IHockeyAppManager platformHockeyAppManager, SettingsManager platformSettingsManager, PlayServicesManager platformPlayServicesManager, DatabaseSyncManager platformDatabaseSyncManager, ISQLitePlatform sqlitePlatform) { if(null == platformHockeyAppManager) { throw new ArgumentNullException(nameof(platformHockeyAppManager)); } if(null == platformSettingsManager) { throw new ArgumentNullException(nameof(platformSettingsManager)); } if(null == platformPlayServicesManager) { throw new ArgumentNullException(nameof(platformPlayServicesManager)); } if(null == platformDatabaseSyncManager) { throw new ArgumentNullException(nameof(platformDatabaseSyncManager)); } if(null == sqlitePlatform) { throw new ArgumentNullException(nameof(sqlitePlatform)); } PlatformHockeyAppManager = platformHockeyAppManager; PlatformSettingsManager = platformSettingsManager; Settings = new BackpackPlannerSettings(PlatformSettingsManager); DatabaseState.SQLitePlatform = sqlitePlatform; PlatformPlayServicesManager = platformPlayServicesManager; PlatformDatabaseSyncManager = platformDatabaseSyncManager; PersonalInformation = new PersonalInformation(PlatformSettingsManager, Settings); }
/// <summary> /// Initializes a new instance of the <see cref="MetaSettings" /> class. /// </summary> /// <param name="settingsManager">The settings manager.</param> public MetaSettings(SettingsManager settingsManager) { _settingsManager = settingsManager; }