2022-06-19 23:07:59 -05:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace server.Models
|
|
|
|
|
{
|
|
|
|
|
public class EpisodeFilter
|
|
|
|
|
{
|
2022-06-21 14:07:56 -05:00
|
|
|
/// <summary>
|
|
|
|
|
/// Use to filter episodes by season number.
|
|
|
|
|
/// </summary>
|
2022-06-19 23:07:59 -05:00
|
|
|
public int? Season { get; set; } = null;
|
2022-06-21 14:07:56 -05:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Use to filter episodes by those who have an air date on or after this value.
|
|
|
|
|
/// </summary>
|
2022-06-21 11:50:54 -05:00
|
|
|
public DateTime? StartDate { get; set; } = null;
|
2022-06-21 14:07:56 -05:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Use to filter episodes by those who have an air date on or before this value.
|
|
|
|
|
/// </summary>
|
2022-06-21 11:50:54 -05:00
|
|
|
public DateTime? EndDate { get; set; } = null;
|
2022-06-21 14:07:56 -05:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Use to filter episodes by episode title.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? Title { get; set; } = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Use to filter episodes by those whose summary contains this value.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? SummaryKeyword { get; set; } = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Use to filter episodes by director's name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? DirectedBy { get; set; } = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Use to filter episodes by writer's name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? WrittenBy { get; set; } = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Use to filter episodes by those who have millions of us viewers equal to or more than this value.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double? ViewersRangeStart { get; set; } = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Use to filter episodes by those who have millions of us viewers equal to or less than this value.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double? ViewersRangeEnd { get; set; } = null;
|
2022-06-19 23:07:59 -05:00
|
|
|
}
|
|
|
|
|
}
|