ChapterInfoDto.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.Diagnostics;
  2. using System.Runtime.Serialization;
  3. namespace MediaBrowser.Model.Dto
  4. {
  5. /// <summary>
  6. /// Class ChapterInfo
  7. /// </summary>
  8. [DebuggerDisplay("Name = {Name}")]
  9. public class ChapterInfoDto
  10. {
  11. /// <summary>
  12. /// Gets or sets the start position ticks.
  13. /// </summary>
  14. /// <value>The start position ticks.</value>
  15. public long StartPositionTicks { get; set; }
  16. /// <summary>
  17. /// Gets or sets the name.
  18. /// </summary>
  19. /// <value>The name.</value>
  20. public string Name { get; set; }
  21. /// <summary>
  22. /// Gets or sets the image tag.
  23. /// </summary>
  24. /// <value>The image tag.</value>
  25. public string ImageTag { get; set; }
  26. /// <summary>
  27. /// Gets a value indicating whether this instance has image.
  28. /// </summary>
  29. /// <value><c>true</c> if this instance has image; otherwise, <c>false</c>.</value>
  30. [IgnoreDataMember]
  31. public bool HasImage
  32. {
  33. get { return ImageTag != null; }
  34. }
  35. }
  36. }