Fix warnings MediaBrowser.Model

This commit is contained in:
Bond_009
2020-02-04 01:49:27 +01:00
parent 176e850973
commit f47ad85011
290 changed files with 1132 additions and 290 deletions

View File

@@ -1,3 +1,6 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
namespace MediaBrowser.Model.Querying
{
public class AllThemeMediaResult

View File

@@ -1,3 +1,8 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
using System;
namespace MediaBrowser.Model.Querying
{
public class EpisodeQuery
@@ -7,46 +12,55 @@ namespace MediaBrowser.Model.Querying
/// </summary>
/// <value>The user identifier.</value>
public string UserId { get; set; }
/// <summary>
/// Gets or sets the season identifier.
/// </summary>
/// <value>The season identifier.</value>
public string SeasonId { get; set; }
/// <summary>
/// Gets or sets the series identifier.
/// </summary>
/// <value>The series identifier.</value>
public string SeriesId { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is missing.
/// </summary>
/// <value><c>null</c> if [is missing] contains no value, <c>true</c> if [is missing]; otherwise, <c>false</c>.</value>
public bool? IsMissing { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is virtual unaired.
/// </summary>
/// <value><c>null</c> if [is virtual unaired] contains no value, <c>true</c> if [is virtual unaired]; otherwise, <c>false</c>.</value>
public bool? IsVirtualUnaired { get; set; }
/// <summary>
/// Gets or sets the season number.
/// </summary>
/// <value>The season number.</value>
public int? SeasonNumber { get; set; }
/// <summary>
/// Gets or sets the fields.
/// </summary>
/// <value>The fields.</value>
public ItemFields[] Fields { get; set; }
/// <summary>
/// Gets or sets the start index.
/// </summary>
/// <value>The start index.</value>
public int? StartIndex { get; set; }
/// <summary>
/// Gets or sets the limit.
/// </summary>
/// <value>The limit.</value>
public int? Limit { get; set; }
/// <summary>
/// Gets or sets the start item identifier.
/// </summary>
@@ -55,7 +69,7 @@ namespace MediaBrowser.Model.Querying
public EpisodeQuery()
{
Fields = new ItemFields[] { };
Fields = Array.Empty<ItemFields>();
}
}
}

View File

@@ -1,7 +1,7 @@
namespace MediaBrowser.Model.Querying
{
/// <summary>
/// Class ItemCountsQuery
/// Class ItemCountsQuery.
/// </summary>
public class ItemCountsQuery
{

View File

@@ -1,7 +1,10 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
namespace MediaBrowser.Model.Querying
{
/// <summary>
/// Used to control the data that gets attached to DtoBaseItems
/// Used to control the data that gets attached to DtoBaseItems.
/// </summary>
public enum ItemFields
{

View File

@@ -1,44 +1,52 @@
namespace MediaBrowser.Model.Querying
{
/// <summary>
/// Enum ItemFilter
/// Enum ItemFilter.
/// </summary>
public enum ItemFilter
{
/// <summary>
/// The item is a folder
/// The item is a folder.
/// </summary>
IsFolder = 1,
/// <summary>
/// The item is not folder
/// The item is not folder.
/// </summary>
IsNotFolder = 2,
/// <summary>
/// The item is unplayed
/// The item is unplayed.
/// </summary>
IsUnplayed = 3,
/// <summary>
/// The item is played
/// The item is played.
/// </summary>
IsPlayed = 4,
/// <summary>
/// The item is a favorite
/// The item is a favorite.
/// </summary>
IsFavorite = 5,
/// <summary>
/// The item is resumable
/// The item is resumable.
/// </summary>
IsResumable = 7,
/// <summary>
/// The likes
/// The likes.
/// </summary>
Likes = 8,
/// <summary>
/// The dislikes
/// The dislikes.
/// </summary>
Dislikes = 9,
/// <summary>
/// The is favorite or likes
/// The is favorite or likes.
/// </summary>
IsFavoriteOrLikes = 10
}

View File

@@ -1,3 +1,6 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
namespace MediaBrowser.Model.Querying
{
/// <summary>

View File

@@ -1,3 +1,6 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
using System;
using MediaBrowser.Model.Entities;

View File

@@ -1,3 +1,8 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
using System;
namespace MediaBrowser.Model.Querying
{
public class MovieRecommendationQuery
@@ -7,21 +12,25 @@ namespace MediaBrowser.Model.Querying
/// </summary>
/// <value>The user identifier.</value>
public string UserId { get; set; }
/// <summary>
/// Gets or sets the parent identifier.
/// </summary>
/// <value>The parent identifier.</value>
public string ParentId { get; set; }
/// <summary>
/// Gets or sets the item limit.
/// </summary>
/// <value>The item limit.</value>
public int ItemLimit { get; set; }
/// <summary>
/// Gets or sets the category limit.
/// </summary>
/// <value>The category limit.</value>
public int CategoryLimit { get; set; }
/// <summary>
/// Gets or sets the fields.
/// </summary>
@@ -32,7 +41,7 @@ namespace MediaBrowser.Model.Querying
{
ItemLimit = 10;
CategoryLimit = 6;
Fields = new ItemFields[] { };
Fields = Array.Empty<ItemFields>();
}
}
}

View File

@@ -1,3 +1,6 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
using System;
using MediaBrowser.Model.Entities;
@@ -40,16 +43,19 @@ namespace MediaBrowser.Model.Querying
/// </summary>
/// <value>The fields.</value>
public ItemFields[] Fields { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [enable images].
/// </summary>
/// <value><c>null</c> if [enable images] contains no value, <c>true</c> if [enable images]; otherwise, <c>false</c>.</value>
public bool? EnableImages { get; set; }
/// <summary>
/// Gets or sets the image type limit.
/// </summary>
/// <value>The image type limit.</value>
public int? ImageTypeLimit { get; set; }
/// <summary>
/// Gets or sets the enable image types.
/// </summary>
@@ -60,7 +66,7 @@ namespace MediaBrowser.Model.Querying
public NextUpQuery()
{
EnableImageTypes = new ImageType[] { };
EnableImageTypes = Array.Empty<ImageType>();
EnableTotalRecordCount = true;
}
}

View File

@@ -1,3 +1,6 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
using System;
using MediaBrowser.Model.Dto;

View File

@@ -1,3 +1,6 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
using System;
using System.Collections.Generic;

View File

@@ -1,13 +0,0 @@
namespace MediaBrowser.Model.Querying
{
/// <summary>
/// Class SessionQuery
/// </summary>
public class SessionQuery
{
/// <summary>
/// Filter by sessions that are allowed to be controlled by a given user
/// </summary>
public string ControllableByUserId { get; set; }
}
}

View File

@@ -1,29 +0,0 @@
namespace MediaBrowser.Model.Querying
{
public class SimilarItemsQuery
{
/// <summary>
/// The user to localize search results for
/// </summary>
/// <value>The user id.</value>
public string UserId { get; set; }
/// <summary>
/// Gets or sets the id.
/// </summary>
/// <value>The id.</value>
public string Id { get; set; }
/// <summary>
/// The maximum number of items to return
/// </summary>
/// <value>The limit.</value>
public int? Limit { get; set; }
/// <summary>
/// Fields to return within the items, in addition to basic information
/// </summary>
/// <value>The fields.</value>
public ItemFields[] Fields { get; set; }
}
}

View File

@@ -1,3 +1,6 @@
#pragma warning disable CS1591
#pragma warning disable SA1600
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Model.Querying

View File

@@ -1,8 +0,0 @@
namespace MediaBrowser.Model.Querying
{
public class UserQuery
{
public bool? IsHidden { get; set; }
public bool? IsDisabled { get; set; }
}
}