public PluginConfiguration() { lineup = new Headend() { Name = "", Id = "" }; username = ""; hashPassword = ""; zipCode = ""; headends = new List <Headend>(); TunerDefaultConfigurationsFields = TunerHostConfig.BuildDefaultForTunerHostsBuilders(); }
public LiveTvService(IHttpClient httpClient, IJsonSerializer jsonSerializer, ILogManager logManager, IXmlSerializer xmlSerializer, IApplicationPaths appPaths) { _logger = logManager.GetLogger(Name); _httpClient = httpClient; _jsonSerializer = jsonSerializer; FirstRun = true; streams = new Dictionary <int, MediaSourceInfo>(); _xmlSerializer = xmlSerializer; _appPaths = appPaths; _logger.Info("Directory is: " + DataPath); timers = new List <SingleTimer>(); RefreshConfigData(CancellationToken.None); Plugin.Instance.Configuration.TunerDefaultConfigurationsFields = TunerHostConfig.BuildDefaultForTunerHostsBuilders(); Plugin.Instance.ConfigurationUpdated += (sender, args) => RefreshConfigData(CancellationToken.None); }