using System.Configuration; using Kreta.Core.Configuratiaton.Interface; namespace Kreta.Core.Configuratiaton { public class FirebaseConfiguration : ConfigurationSection, IFirebaseConfiguration { [ConfigurationProperty(nameof(ApiKey), IsRequired = true)] public string ApiKey => (string)base[nameof(ApiKey)]; [ConfigurationProperty(nameof(AuthDomain), IsRequired = true)] public string AuthDomain => (string)base[nameof(AuthDomain)]; [ConfigurationProperty(nameof(DatabaseURL), IsRequired = true)] public string DatabaseURL => (string)base[nameof(DatabaseURL)]; [ConfigurationProperty(nameof(ProjectId), IsRequired = true)] public string ProjectId => (string)base[nameof(ProjectId)]; [ConfigurationProperty(nameof(StorageBucket), IsRequired = true)] public string StorageBucket => (string)base[nameof(StorageBucket)]; [ConfigurationProperty(nameof(MessagingSenderId), IsRequired = true)] public string MessagingSenderId => (string)base[nameof(MessagingSenderId)]; [ConfigurationProperty(nameof(AppId), IsRequired = true)] public string AppId => (string)base[nameof(AppId)]; [ConfigurationProperty(nameof(MeasurementId), IsRequired = false)] public string MeasurementId => (string)base[nameof(MeasurementId)]; } }