public override void UnfollowArtist() { IsHighlighted = false; if (SpotifyCacheService.IsArtistFollowed(_newReleaseItem.Artist)) { SpotifyCacheService.UnfollowArtist(_newReleaseItem.Artist); } }
public override void FollowArtist() { IsHighlighted = true; if (!SpotifyCacheService.IsArtistFollowed(_newReleaseItem.Artist)) { SpotifyCacheService.FollowArtist(_newReleaseItem.Artist); } }
public override void FollowArtist() { IsHighlighted = true; if (!SpotifyCacheService.IsArtistFollowed(ArtistViewModel.Artist)) { SpotifyCacheService.FollowArtist(ArtistViewModel.Artist); } }
public override void UnfollowArtist() { IsHighlighted = false; if (SpotifyCacheService.IsArtistFollowed(ArtistViewModel.Artist)) { SpotifyCacheService.UnfollowArtist(ArtistViewModel.Artist); } }
public ArtistNetworkNodeViewModel( ArtistViewModel viewModel, AtlasHierarchy hierarchy, IHierarchyNode hierarchyNode, IPlaylistView playlist) : base(viewModel.Name) { ArtistViewModel = viewModel; Debug.Assert(hierarchyNode is ArtistHierarchyNode); _hierarchyNode = (ArtistHierarchyNode)hierarchyNode; _hierarchy = hierarchy; _playlist = playlist; _numTracks = GetArtistTrackCount(); IsHighlighted = SpotifyCacheService.IsArtistFollowed(ArtistViewModel.Artist); }