mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-08 16:58:50 +01:00
updated ffmpeg. cleaned up some unused api properties
This commit is contained in:
@@ -154,20 +154,6 @@ namespace MediaBrowser.Model.Dto
|
||||
[ProtoMember(25)]
|
||||
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>
|
||||
@@ -391,26 +377,6 @@ namespace MediaBrowser.Model.Dto
|
||||
return Type.Equals(type, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
/// <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>
|
||||
@@ -467,6 +433,26 @@ namespace MediaBrowser.Model.Dto
|
||||
[ProtoMember(69)]
|
||||
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>
|
||||
@@ -597,12 +583,26 @@ 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
|
||||
{
|
||||
get { return string.Equals(Type, "Person", StringComparison.OrdinalIgnoreCase); }
|
||||
}
|
||||
|
||||
/// <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>
|
||||
|
||||
Reference in New Issue
Block a user