예제 #1
0
        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();
        }
예제 #2
0
        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();
        }