Beispiel #1
0
        public async void LoadTweets()
        {
            Tweets.Clear();
            var getTweets = new UserTweetsGet();
            BindableCollection<Tweet> responce = await getTweets.Execute(20, true, await _repository.GetUserInfo());

            Tweets.AddRange(responce);
        }
Beispiel #2
0
        public static async void LoadTweets()
        {
            try
            {
                var getTweets = new UserTweetsGet();

                BindableCollection<Tweet> responce = await getTweets.Execute(2, false, CurrentUserInfo);

                foreach (Tweet item in responce)
                {
                    Debug.WriteLine(item.Text);
                }
            }
            catch (Exception e)
            {
                Debug.WriteLine(String.Format("ERROR in LoadFriends: {0}", e));
            }
        }