/// <summary> /// ユーザーをフォローする /// </summary> private async void Follow() { var text = this.Name + "(@" + this.ScreenName + ")"; if (this.IsProtected) { text += "にフォローリクエストを送信しますか?"; } else { text += "をフォローしますか?"; } if (!Properties.Settings.Default.IsConfirmOfFollow || await this.Confirm(text) == MessageDialogResult.Affirmative) { var user = await AccountTokens.CreateFriendshipAsync(this.TimelineModel.TokenSuffix, this.Id); if (user != null) { if (this.IsProtected) { CommonMethods.Notify(this.Name + "(@" + this.ScreenName + ")にフォローリクエストを送信しました", MainWindow.NotificationType.Success); } else { CommonMethods.Notify(this.Name + "(@" + this.ScreenName + ")をフォローしました", MainWindow.NotificationType.Success); } this.LoadRelationship(user); } else { CommonMethods.Notify(this.Name + "(@" + this.ScreenName + ")のフォローが正常に完了しませんでした", MainWindow.NotificationType.Error); } } }