using Crowdin.Plugin.Server_API.Helpers; namespace Plugin.Server_API.Helpers { public class UpdateOptionsHelper { public static readonly UpdateOption[] Options = { new UpdateOption { ApiKey = "clear_translations_and_approvals", Description = "Clear translations and approvals", }, new UpdateOption { ApiKey = "keep_translations", Description = "Keep translations", }, new UpdateOption { ApiKey = "keep_translations_and_approvals", Description = "Keep translations and approvals", } }; public static string GetCurrentOptionApiKey() { int index = SettingsHelper.GetUpdateOptionIndex(); return Options[index].ApiKey; } public class UpdateOption { public string ApiKey { get; set; } public string Description { get; set; } } } }