StudioDto.cs 1.2 KB

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