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