added new params for missing/unaired

This commit is contained in:
Luke Pulverenti
2013-10-26 18:01:21 -04:00
parent a4a3800de5
commit 976523afa9
14 changed files with 204 additions and 138 deletions

View File

@@ -56,8 +56,9 @@ namespace MediaBrowser.Model.Configuration
public bool IsDisabled { get; set; }
public bool DisplayVirtualEpisodes { get; set; }
public bool DisplayMissingEpisodes { get; set; }
public bool DisplayUnairedEpisodes { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="UserConfiguration" /> class.
/// </summary>
@@ -65,7 +66,6 @@ namespace MediaBrowser.Model.Configuration
{
IsAdministrator = true;
BlockNotRated = false;
DisplayVirtualEpisodes = true;
}
}
}

View File

@@ -36,6 +36,8 @@ namespace MediaBrowser.Model.Entities
/// </summary>
TmdbCollection,
MusicBrainzReleaseGroup,
Zap2It
Zap2It,
NesBox,
NesBoxRom
}
}

View File

@@ -241,16 +241,25 @@ namespace MediaBrowser.Model.Querying
/// </summary>
/// <value>The location types.</value>
public LocationType[] LocationTypes { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is missing episode.
/// </summary>
/// <value><c>null</c> if [is missing episode] contains no value, <c>true</c> if [is missing episode]; otherwise, <c>false</c>.</value>
public bool? IsMissing { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is unaired episode.
/// </summary>
/// <value><c>null</c> if [is unaired episode] contains no value, <c>true</c> if [is unaired episode]; otherwise, <c>false</c>.</value>
public bool? IsUnaired { get; set; }
/// <summary>
/// Gets or sets the exclude location types.
/// </summary>
/// <value>The exclude location types.</value>
public LocationType[] ExcludeLocationTypes { get; set; }
public bool? HasPremiereDate { get; set; }
public DateTime? MinPremiereDate { get; set; }
public DateTime? MaxPremiereDate { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ItemQuery" /> class.
/// </summary>

View File

@@ -1,6 +1,4 @@
using MediaBrowser.Model.Entities;
using System;

namespace MediaBrowser.Model.Querying
{
public class NextUpQuery
@@ -11,6 +9,12 @@ namespace MediaBrowser.Model.Querying
/// <value>The user id.</value>
public string UserId { get; set; }
/// <summary>
/// Gets or sets the series id.
/// </summary>
/// <value>The series id.</value>
public string SeriesId { get; set; }
/// <summary>
/// Skips over a given number of items within the results. Use for paging.
/// </summary>
@@ -28,20 +32,5 @@ namespace MediaBrowser.Model.Querying
/// </summary>
/// <value>The fields.</value>
public ItemFields[] Fields { get; set; }
/// <summary>
/// Gets or sets the exclude location types.
/// </summary>
/// <value>The exclude location types.</value>
public LocationType[] ExcludeLocationTypes { get; set; }
public bool? HasPremiereDate { get; set; }
public DateTime? MinPremiereDate { get; set; }
public DateTime? MaxPremiereDate { get; set; }
public NextUpQuery()
{
ExcludeLocationTypes = new LocationType[] { };
}
}
}