StudioDto.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.ComponentModel;
  3. using System.Runtime.Serialization;
  4. namespace MediaBrowser.Model.Dto
  5. {
  6. /// <summary>
  7. /// Class StudioDto
  8. /// </summary>
  9. public class StudioDto
  10. {
  11. /// <summary>
  12. /// Gets or sets the name.
  13. /// </summary>
  14. /// <value>The name.</value>
  15. public string Name { get; set; }
  16. /// <summary>
  17. /// Gets or sets the primary image tag.
  18. /// </summary>
  19. /// <value>The primary image tag.</value>
  20. public Guid? PrimaryImageTag { get; set; }
  21. /// <summary>
  22. /// Gets a value indicating whether this instance has primary image.
  23. /// </summary>
  24. /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
  25. [IgnoreDataMember]
  26. public bool HasPrimaryImage
  27. {
  28. get
  29. {
  30. return PrimaryImageTag.HasValue;
  31. }
  32. }
  33. /// <summary>
  34. /// Occurs when [property changed].
  35. /// </summary>
  36. public event PropertyChangedEventHandler PropertyChanged;
  37. }
  38. }