Example #1
0
        public override void UnfollowArtist()
        {
            IsHighlighted = false;

            if (SpotifyCacheService.IsArtistFollowed(_newReleaseItem.Artist))
            {
                SpotifyCacheService.UnfollowArtist(_newReleaseItem.Artist);
            }
        }
Example #2
0
        public override void FollowArtist()
        {
            IsHighlighted = true;

            if (!SpotifyCacheService.IsArtistFollowed(_newReleaseItem.Artist))
            {
                SpotifyCacheService.FollowArtist(_newReleaseItem.Artist);
            }
        }
Example #3
0
        public override void FollowArtist()
        {
            IsHighlighted = true;

            if (!SpotifyCacheService.IsArtistFollowed(ArtistViewModel.Artist))
            {
                SpotifyCacheService.FollowArtist(ArtistViewModel.Artist);
            }
        }
Example #4
0
        public override void UnfollowArtist()
        {
            IsHighlighted = false;

            if (SpotifyCacheService.IsArtistFollowed(ArtistViewModel.Artist))
            {
                SpotifyCacheService.UnfollowArtist(ArtistViewModel.Artist);
            }
        }
Example #5
0
        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);
        }