Ejemplo n.º 1
0
 public void AddNewReleasesToHierarchy(IReadOnlyCollection <NewReleaseItem> newReleases, AtlasViewOptions options)
 {
     if (_hierarchy == null)
     {
         _hierarchy = new NewReleaseAtlasHierarchy(SpotifyClientService.Client, newReleases, options);
     }
     else
     {
         foreach (NewReleaseItem newReleaseItem in newReleases)
         {
             _hierarchy.AddRootNode(newReleaseItem);
         }
     }
 }
Ejemplo n.º 2
0
 public void AddArtistsToHierarchy(IReadOnlyCollection <Artist> targetArtists, AtlasViewOptions options)
 {
     if (_hierarchy == null)
     {
         _hierarchy = new ArtistAtlasHierarchy(SpotifyClientService.Client, targetArtists, options);
     }
     else
     {
         foreach (Artist artist in targetArtists)
         {
             _hierarchy.AddRootNode(artist);
         }
     }
 }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
 public ArtistHierarchyNode(ArtistViewModel artistViewModel, AtlasHierarchy hierarchy, IHierarchyNode parent, int level)
     : base(hierarchy, parent, level)
 {
     ArtistViewModel = artistViewModel;
 }
Ejemplo n.º 5
0
 public NewReleaseHierarchyNode(NewReleaseItem newReleaseItem, AtlasHierarchy hierarchy)
     : base(hierarchy, null, 0)
 {
     NewReleaseItem = newReleaseItem;
 }
Ejemplo n.º 6
0
 public void CreateNewReleaseHierarchy(IReadOnlyCollection <NewReleaseItem> newReleases, AtlasViewOptions options)
 {
     _viewMode  = AtlasViewMode.NewReleasesView;
     _hierarchy = new NewReleaseAtlasHierarchy(SpotifyClientService.Client, newReleases, options);
 }
Ejemplo n.º 7
0
 public void CreateFollowedArtistHierarchy(IReadOnlyCollection <Artist> targetArtists, AtlasViewOptions options)
 {
     _viewMode  = AtlasViewMode.FollowedArtistView;
     _hierarchy = new ArtistAtlasHierarchy(SpotifyClientService.Client, targetArtists, options);
 }