ChapterInfoDto.cs 1.3 KB

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