using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.Serialization;
using MediaBrowser.Model.Extensions;
namespace MediaBrowser.Model.Dto
{
    /// 
    /// Class ChapterInfo
    /// 
    [DebuggerDisplay("Name = {Name}")]
    public class ChapterInfoDto : IHasPropertyChangedEvent
    {
        /// 
        /// Gets or sets the start position ticks.
        /// 
        /// The start position ticks.
        public long StartPositionTicks { get; set; }
        /// 
        /// Gets or sets the name.
        /// 
        /// The name.
        public string Name { get; set; }
        /// 
        /// Gets or sets the image tag.
        /// 
        /// The image tag.
        public string 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 != null; }
        }
        public event PropertyChangedEventHandler PropertyChanged;
    }
}