ChapterInfoDto.cs 1.2 KB

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