ChapterInfoDto.cs 1.0 KB

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