ChapterInfoDto.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.ComponentModel;
  3. using System.Runtime.Serialization;
  4. namespace MediaBrowser.Model.Dto
  5. {
  6. /// <summary>
  7. /// Class ChapterInfo
  8. /// </summary>
  9. public class ChapterInfoDto : INotifyPropertyChanged
  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 Guid? 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.HasValue; }
  34. }
  35. public event PropertyChangedEventHandler PropertyChanged;
  36. }
  37. }