public async Task SetActiveTime(TimeSpan timeFrom, TimeSpan timeTo) { var configuration = await LocalCacheProvider.GetAsync <ITTVConfiguration>(ITTVConfigurationPath) ?? new ITTVConfiguration(); configuration.SetActiveTime(timeFrom, timeTo); await LocalCacheProvider.PutAsync(ITTVConfigurationPath, configuration); await _kinectTvHubHandler.SettingsUpdated(); }
public async Task SetDisplayMessage(string displayMessage) { var configuration = await LocalCacheProvider.GetAsync <ITTVConfiguration>(ITTVConfigurationPath) ?? new ITTVConfiguration(); configuration.SetDisplayMessage(displayMessage); await LocalCacheProvider.PutAsync(ITTVConfigurationPath, configuration); await _kinectTvHubHandler.SettingsUpdated(); }