public async void GetQuoteOfTheDay()
        {
            Quote RandomQuote = await TronaldManager.GetQuoteOfTheDay();

            lblDate.Text  = RandomQuote.appeared_at.ToString("dd/MM/yyyy");
            lblQuote.Text = RandomQuote.value;
            lblTag.Text   = RandomQuote.tags[0];
        }
Example #2
0
        public async void GetTags()
        {
            OverviewTag TagObject = await TronaldManager.GetTagsAsync();

            List <string> Tags = new List <string>();

            foreach (string tag in TagObject._embedded)
            {
                Tags.Add(tag);
            }

            lvwTags.ItemsSource = Tags;
        }
Example #3
0
        public async void GetQuotesByTag(string pTag)
        {
            Quotes listquotes = await TronaldManager.GetQuotesByTag(pTag);

            if (listquotes.count > 0)
            {
                lvwQuotes.ItemsSource = listquotes._embedded.quotes;
            }
            else
            {
                await Navigation.PushAsync(new ErrorPage());
            }
        }