public UserPageViewModel(INavigationService navigationService, TwitterClient twitterClient) { this.NavigationService = navigationService; this.TwitterClient = twitterClient; this.Users = this.TwitterClient.Followers.ToReadOnlyReactiveCollection().AddTo(this.Disposable); this.UserTweetItems = this.TwitterClient.UserTweetItems.ToReadOnlyReactiveCollection().AddTo(this.Disposable); }
public TweetDetailsPageViewModel(INavigationService navigationService, TwitterClient twitterClient) { this.NavigationService = navigationService; this.TwitterClient = twitterClient; this.TweetModel.Value = this.TwitterClient.TweetItems.First(t => t.TweetModel.Value.IsSelected) .TweetModel.Value; this.SetRetweetButtonForegroundAndText(); this.SetImagesPageVisibility(); }
/// <summary> /// Constructor /// </summary> /// <param name="iNavigationService"></param> /// <param name="s"></param> /// <param name="twitterClient"></param> public TweetItemViewModel(INavigationService iNavigationService, Status s, TwitterClient twitterClient) { this._iNavigationService = iNavigationService; this._tweetClient = twitterClient; this._tweetModel.Value = new TweetModel(s); this.Brush.Value = this.SetBorderBrushColor(); this.TweetVisibility.Value = this.GetVisibility(); this.ProtectedVisibility.Value = this.GetProtectedVisibility(); this.SetPictureVisibility(); this.SetRetweetForegroundAndText(); this.SetFavoriteForeground(); this.SetReplyToTweetText(); }
/// <summary> /// コンストラクタ /// </summary> /// <param name="iNavigationService"></param> /// <param name="twitterClient"></param> public TweetCreatePageViewModel(INavigationService iNavigationService, TwitterClient twitterClient) { this.NavigationService = iNavigationService; this._twitterClient = twitterClient; this.FriendScreenNames = this._twitterClient.FriendScreenNames.ToReadOnlyReactiveCollection(); this.FilteredFriendScreenNames = this._twitterClient.FilteredFriendScreenNames.ToReadOnlyReactiveCollection(); this._twitterClient.SetFriendScreenNames(); this.SelectedPictures = this._pictureModel.PictureFilePaths.ToReadOnlyReactiveCollection(); this.TweetText.Value = this._twitterClient.ReplyToStatus != null ? $"@{this._twitterClient.ReplyToStatus.User.ScreenName} " : ""; }
public MainPageViewModel(INavigationService navigationService, TwitterClient twitterClient) { this._twitterClient = twitterClient; this.NavigationService = navigationService; this.Width.Value = Window.Current.Bounds.Width; this.GetMyProfile(); this.Timelines = this._twitterClient.Timelines.ToReadOnlyReactiveCollection(); this.TweetItems = this._twitterClient.TweetItems.ToReadOnlyReactiveCollection(); this.MentionItems = this._twitterClient.MentionItems.ToReadOnlyReactiveCollection(); this._twitterClient.InitTimelines(this.NavigationService); this._twitterClient.InitMentions(this.NavigationService); this.StartStreaming(); this.ho(); }
public HashtagTweetsPageViewModel(INavigationService navigationService, TwitterClient twitterClient) { this.NavigationService = navigationService; this.TwitterClient = twitterClient; }