public MyProfilePageViewModel(INavigation navigation)
        {
            _client = TwitterClient.GetInstance();
            if (navigation != null)
                _navigation = navigation;

            _currentUser = _client.GetUserInfo();
            Uri imageUri = new Uri(_currentUser.ProfileImageUrl);
            _userImage = ImageSource.FromUri(imageUri);
            _folowersCollection = new ObservableCollection<IUser>(_currentUser.GetFollowers());
            _friednsCollection = new ObservableCollection<IUser>(_currentUser.GetFriends());

            foreach (IUser folower in Folowers)
            {
                String str = folower.ProfileImageUrlHttps;
            }

            foreach (IUser friend in Friends)
            {
                String str = friend.ProfileImageUrlHttps;
            }
        }
Beispiel #2
0
 /// <summary>
 /// Gets instance of TwitterCientClass via singleton
 /// </summary>
 /// <returns></returns>
 public static TwitterClient GetInstance()
 {
     if (_instance == null)
         _instance = new TwitterClient();
     return _instance;
 }