diff options
Diffstat (limited to 'MediaBrowser.Model/DTO/BaseItemDto.cs')
| -rw-r--r-- | MediaBrowser.Model/DTO/BaseItemDto.cs | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/MediaBrowser.Model/DTO/BaseItemDto.cs b/MediaBrowser.Model/DTO/BaseItemDto.cs index b1d3f83c2..e3034f58e 100644 --- a/MediaBrowser.Model/DTO/BaseItemDto.cs +++ b/MediaBrowser.Model/DTO/BaseItemDto.cs @@ -155,20 +155,6 @@ namespace MediaBrowser.Model.Dto public bool IsFolder { get; set; } /// <summary> - /// If the item is a Folder this will determine if it's the Root or not - /// </summary> - /// <value><c>null</c> if [is root] contains no value, <c>true</c> if [is root]; otherwise, <c>false</c>.</value> - [ProtoMember(26)] - public bool? IsRoot { get; set; } - - /// <summary> - /// If the item is a Folder this will determine if it's a VF or not - /// </summary> - /// <value><c>null</c> if [is virtual folder] contains no value, <c>true</c> if [is virtual folder]; otherwise, <c>false</c>.</value> - [ProtoMember(27)] - public bool? IsVirtualFolder { get; set; } - - /// <summary> /// Gets or sets the parent id. /// </summary> /// <value>The parent id.</value> @@ -392,26 +378,6 @@ namespace MediaBrowser.Model.Dto } /// <summary> - /// Gets a value indicating whether this instance can resume. - /// </summary> - /// <value><c>true</c> if this instance can resume; otherwise, <c>false</c>.</value> - [IgnoreDataMember] - public bool CanResume - { - get { return UserData != null && UserData.PlaybackPositionTicks > 0; } - } - - /// <summary> - /// Gets the resume position ticks. - /// </summary> - /// <value>The resume position ticks.</value> - [IgnoreDataMember] - public long ResumePositionTicks - { - get { return UserData == null ? 0 : UserData.PlaybackPositionTicks; } - } - - /// <summary> /// Gets or sets the image tags. /// </summary> /// <value>The image tags.</value> @@ -468,6 +434,26 @@ namespace MediaBrowser.Model.Dto public string MediaType { get; set; } /// <summary> + /// Gets a value indicating whether this instance can resume. + /// </summary> + /// <value><c>true</c> if this instance can resume; otherwise, <c>false</c>.</value> + [IgnoreDataMember] + public bool CanResume + { + get { return UserData != null && UserData.PlaybackPositionTicks > 0; } + } + + /// <summary> + /// Gets the resume position ticks. + /// </summary> + /// <value>The resume position ticks.</value> + [IgnoreDataMember] + public long ResumePositionTicks + { + get { return UserData == null ? 0 : UserData.PlaybackPositionTicks; } + } + + /// <summary> /// Gets the backdrop count. /// </summary> /// <value>The backdrop count.</value> @@ -597,6 +583,10 @@ namespace MediaBrowser.Model.Dto get { return string.Equals(MediaType, Entities.MediaType.Game, StringComparison.OrdinalIgnoreCase); } } + /// <summary> + /// Gets a value indicating whether this instance is person. + /// </summary> + /// <value><c>true</c> if this instance is person; otherwise, <c>false</c>.</value> [IgnoreDataMember] public bool IsPerson { @@ -604,6 +594,16 @@ namespace MediaBrowser.Model.Dto } /// <summary> + /// Gets a value indicating whether this instance is root. + /// </summary> + /// <value><c>true</c> if this instance is root; otherwise, <c>false</c>.</value> + [IgnoreDataMember] + public bool IsRoot + { + get { return string.Equals(Type, "AggregateFolder", StringComparison.OrdinalIgnoreCase); } + } + + /// <summary> /// Occurs when [property changed]. /// </summary> public event PropertyChangedEventHandler PropertyChanged; |
