예제 #1
0
        private async Task GetChannels()
        {
            var channels = await _channels.Get();

            if (channels == null)
            {
                return;
            }
            ChannelList            = new ObservableCollection <ChannelModel>(channels);
            _currentState.Channels = channels;
        }
예제 #2
0
        private async Task GetChannel()
        {
            var ch = await _apiChannels.Get();

            ch.ForEach(c => Channels.Add(c.Name));
        }