Advertisement
ElfenSky

tinyProject_MainPage.xaml.cs

Aug 19th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.21 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Xamarin.Forms;
  7. //custom
  8. using tinyapp.Model;
  9. using System.Diagnostics;
  10.  
  11. namespace tinyapp
  12. {
  13.     public partial class MainPage : ContentPage
  14.     {
  15.         public MainPage()
  16.         {
  17.             InitializeComponent();
  18.             Debug.WriteLine("xamarin:::   " + "InitializeComponent finished");
  19.  
  20.             TestGettersAsync();
  21.             Debug.WriteLine("xamarin:::   " + "TestGettersAsync finished");
  22.         }
  23.  
  24.         public static async void TestGettersAsync()
  25.         {
  26.             //String json = await TVDBManager.GetSearchResults();
  27.             //String test = await TVDBManager.GetSearchResultsV2();
  28.             //Debug.WriteLine("xamarin:::   " + test);
  29.  
  30.             List<Serie> models = await TVDBManager.GetSearchResultsV2();
  31.             foreach (var model in models)
  32.             {
  33.                 Debug.WriteLine("xamarin:::   " + "TestGetters():::   NetPrice: " + model.data);
  34.                 //Debug.WriteLine("xamarin:::   " + "TestGetters():::   PriceStr: " + model.id);
  35.                 Debug.WriteLine("xamarin:::   ");
  36.             }
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement