Exemplo n.º 1
0
        public async Task LoadEpisodes()
        {
            string data_ = await _client.GetStringAsync(BuildUri());

            _last_request_result = Models.Episodes.FromJson(data_);

            var dispatcher_ = Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher;
            await dispatcher_.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal,
                                       () =>
            {
                _last_request_result.Data.ForEach(t => this.Add(t));
            }
                                       );
        }
Exemplo n.º 2
0
 public static string ToJson(this Episodes self) => JsonConvert.SerializeObject(self, Converter.Settings);