Skip to content
Permalink
5242d29cff
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
25 lines (17 sloc) 563 Bytes
namespace app.ViewModels;
//partial class in order to be able to use source generators
public partial class LoginViewModel : ViewModel {
private readonly ISpotifyService spotifyService;
public LoginViewModel(ISpotifyService spotifyService) {
this.spotifyService = spotifyService;
}
[ObservableProperty]
private bool showLogin;
[RelayCommand]
private void OpenLogin() {
ShowLogin = true;
}
public async Task HandleAuthCode(string authCode) {
await spotifyService.Initialize(authCode);
}
}