Beispiel #1
0
        public MusicContentPaneViewModel(IGrooveClient grooveClient, GrooveApiErrorViewModel errorViewModel)
        {
            _grooveClient   = grooveClient;
            _errorViewModel = errorViewModel;

            Tracks    = new ObservableCollection <Track>();
            Albums    = new ObservableCollection <Album>();
            Artists   = new ObservableCollection <Artist>();
            Playlists = new ObservableCollection <Playlist>();
        }
        public UserProfileViewModel(
            WindowsUniversalUserAccountManager accountManager,
            IGrooveClient grooveClient,
            GrooveApiErrorViewModel errorViewModel)
        {
            _accountManager = accountManager;
            _grooveClient   = grooveClient;
            _errorViewModel = errorViewModel;

            _accountManager.UserSignInChange += (manager, userIsSignedIn) => UserSignInUpdateAsync(userIsSignedIn);
        }
Beispiel #3
0
 public PlayerViewModel(IGrooveClient grooveClient, GrooveApiErrorViewModel errorViewModel)
 {
     _grooveClient   = grooveClient;
     _errorViewModel = errorViewModel;
 }