Artist.cs 955 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System.Runtime.Serialization;
  2. using MediaBrowser.Model.Dto;
  3. using System;
  4. using System.Collections.Generic;
  5. namespace MediaBrowser.Controller.Entities.Audio
  6. {
  7. /// <summary>
  8. /// Class Artist
  9. /// </summary>
  10. public class Artist : BaseItem, IItemByName, IHasMusicGenres
  11. {
  12. public Artist()
  13. {
  14. ItemCounts = new ItemByNameCounts();
  15. UserItemCounts = new Dictionary<Guid, ItemByNameCounts>();
  16. }
  17. public string LastFmImageUrl { get; set; }
  18. /// <summary>
  19. /// Gets the user data key.
  20. /// </summary>
  21. /// <returns>System.String.</returns>
  22. public override string GetUserDataKey()
  23. {
  24. return "Artist-" + Name;
  25. }
  26. [IgnoreDataMember]
  27. public ItemByNameCounts ItemCounts { get; set; }
  28. [IgnoreDataMember]
  29. public Dictionary<Guid, ItemByNameCounts> UserItemCounts { get; set; }
  30. }
  31. }