Skip to content

Commit

Permalink
個人用アクセストークン保存ロジック実装 silane#7
Browse files Browse the repository at this point in the history
  • Loading branch information
noriokun4649 committed Feb 18, 2021
1 parent e31e2bb commit 7d3ad53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TVTComment/ViewModels/SettingsWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class SettingsWindowViewModel : BindableBase
public ICommand EnterTwitter { get; }
public ICommand AnnictOAuthOpenCommand { get; }
public ICommand AnnictOAuthCertificationCommand { get; }
public ICommand AnnictAccessTokenApplyCommand { get; }

public InteractionRequest<Notification> AlertRequest { get; } = new InteractionRequest<Notification>();

Expand Down Expand Up @@ -172,6 +173,11 @@ public SettingsWindowViewModel(Model.TVTComment model)
SyncTwitterStatus();
});

AnnictAccessTokenApplyCommand = new DelegateCommand(() => {
twitter.SetAnnictToken(AnnictAccessToken.Value);
SyncAnnictStatus();
});

AnnictOAuthOpenCommand = new DelegateCommand(() => {
try
{
Expand Down

0 comments on commit 7d3ad53

Please sign in to comment.