public List<OMLMetadataOption> GetOptions() { List<OMLMetadataOption> options = new List<OMLMetadataOption>(); OMLMetadataOption apikey = null; OMLMetadataOption sharedsecret = null; if (API_KEY == DEFAULT_API_KEY) { apikey = new OMLMetadataOption("API Key", API_KEY_HIDDEN_TEXT, null, false); } else { apikey = new OMLMetadataOption("API Key", API_KEY, null, false); } if (SHARED_SECRET == DEFAULT_SHARED_SECRET) { sharedsecret = new OMLMetadataOption("Shared Secret", SHARED_SECRET_HIDDEN_TEXT, null, false); } else { sharedsecret = new OMLMetadataOption("Shared Secret", SHARED_SECRET, null, false); } options.Add(apikey); options.Add(sharedsecret); return options; }
public List<OMLMetadataOption> GetOptions() { List<OMLMetadataOption> options = new List<OMLMetadataOption>(); // API Key option OMLMetadataOption apikey = null; if (API_KEY == DEFAULT_API_KEY) { apikey = new OMLMetadataOption("API Key", API_KEY_HIDDEN_TEXT, null, false); } else { apikey = new OMLMetadataOption("API Key", API_KEY, null, false); } options.Add(apikey); // Fan Art enabled option Dictionary<string,string> YesNo = new Dictionary<string,string>(); YesNo["Yes"] = "Yes"; YesNo["No"] = "No"; OMLMetadataOption fanart = null; if (FanartEnabled) { fanart = new OMLMetadataOption("Fanart Enabled", "Yes", YesNo, true); } else { fanart = new OMLMetadataOption("Fanart Enabled", "No", YesNo, true); } options.Add(fanart); return options; }