using ProtoBuf; using System; using System.ComponentModel; using System.Runtime.Serialization; namespace MediaBrowser.Model.Dto { /// /// Class ChapterInfo /// [ProtoContract] public class ChapterInfoDto : INotifyPropertyChanged { /// /// Gets or sets the start position ticks. /// /// The start position ticks. [ProtoMember(1)] public long StartPositionTicks { get; set; } /// /// Gets or sets the name. /// /// The name. [ProtoMember(2)] public string Name { get; set; } /// /// Gets or sets the image tag. /// /// The image tag. [ProtoMember(3)] public Guid? ImageTag { get; set; } /// /// Gets a value indicating whether this instance has image. /// /// true if this instance has image; otherwise, false. [IgnoreDataMember] public bool HasImage { get { return ImageTag.HasValue; } } public event PropertyChangedEventHandler PropertyChanged; } }