aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/LiveTvDtos
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Api/Models/LiveTvDtos')
-rw-r--r--Jellyfin.Api/Models/LiveTvDtos/ChannelMappingOptionsDto.cs42
-rw-r--r--Jellyfin.Api/Models/LiveTvDtos/GetProgramsDto.cs335
-rw-r--r--Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs39
3 files changed, 206 insertions, 210 deletions
diff --git a/Jellyfin.Api/Models/LiveTvDtos/ChannelMappingOptionsDto.cs b/Jellyfin.Api/Models/LiveTvDtos/ChannelMappingOptionsDto.cs
index e293c461c..cbc3548b1 100644
--- a/Jellyfin.Api/Models/LiveTvDtos/ChannelMappingOptionsDto.cs
+++ b/Jellyfin.Api/Models/LiveTvDtos/ChannelMappingOptionsDto.cs
@@ -1,34 +1,32 @@
using System;
using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
using MediaBrowser.Controller.LiveTv;
using MediaBrowser.Model.Dto;
-namespace Jellyfin.Api.Models.LiveTvDtos
+namespace Jellyfin.Api.Models.LiveTvDtos;
+
+/// <summary>
+/// Channel mapping options dto.
+/// </summary>
+public class ChannelMappingOptionsDto
{
/// <summary>
- /// Channel mapping options dto.
+ /// Gets or sets list of tuner channels.
/// </summary>
- public class ChannelMappingOptionsDto
- {
- /// <summary>
- /// Gets or sets list of tuner channels.
- /// </summary>
- required public IReadOnlyList<TunerChannelMapping> TunerChannels { get; set; }
+ public required IReadOnlyList<TunerChannelMapping> TunerChannels { get; set; }
- /// <summary>
- /// Gets or sets list of provider channels.
- /// </summary>
- required public IReadOnlyList<NameIdPair> ProviderChannels { get; set; }
+ /// <summary>
+ /// Gets or sets list of provider channels.
+ /// </summary>
+ public required IReadOnlyList<NameIdPair> ProviderChannels { get; set; }
- /// <summary>
- /// Gets or sets list of mappings.
- /// </summary>
- public IReadOnlyList<NameValuePair> Mappings { get; set; } = Array.Empty<NameValuePair>();
+ /// <summary>
+ /// Gets or sets list of mappings.
+ /// </summary>
+ public IReadOnlyList<NameValuePair> Mappings { get; set; } = Array.Empty<NameValuePair>();
- /// <summary>
- /// Gets or sets provider name.
- /// </summary>
- public string? ProviderName { get; set; }
- }
+ /// <summary>
+ /// Gets or sets provider name.
+ /// </summary>
+ public string? ProviderName { get; set; }
}
diff --git a/Jellyfin.Api/Models/LiveTvDtos/GetProgramsDto.cs b/Jellyfin.Api/Models/LiveTvDtos/GetProgramsDto.cs
index 411e4c550..5e7dd689e 100644
--- a/Jellyfin.Api/Models/LiveTvDtos/GetProgramsDto.cs
+++ b/Jellyfin.Api/Models/LiveTvDtos/GetProgramsDto.cs
@@ -6,174 +6,173 @@ using Jellyfin.Extensions.Json.Converters;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Querying;
-namespace Jellyfin.Api.Models.LiveTvDtos
+namespace Jellyfin.Api.Models.LiveTvDtos;
+
+/// <summary>
+/// Get programs dto.
+/// </summary>
+public class GetProgramsDto
{
/// <summary>
- /// Get programs dto.
- /// </summary>
- public class GetProgramsDto
- {
- /// <summary>
- /// Gets or sets the channels to return guide information for.
- /// </summary>
- [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
- public IReadOnlyList<Guid> ChannelIds { get; set; } = Array.Empty<Guid>();
-
- /// <summary>
- /// Gets or sets optional. Filter by user id.
- /// </summary>
- public Guid UserId { get; set; }
-
- /// <summary>
- /// Gets or sets the minimum premiere start date.
- /// Optional.
- /// </summary>
- public DateTime? MinStartDate { get; set; }
-
- /// <summary>
- /// Gets or sets filter by programs that have completed airing, or not.
- /// Optional.
- /// </summary>
- public bool? HasAired { get; set; }
-
- /// <summary>
- /// Gets or sets filter by programs that are currently airing, or not.
- /// Optional.
- /// </summary>
- public bool? IsAiring { get; set; }
-
- /// <summary>
- /// Gets or sets the maximum premiere start date.
- /// Optional.
- /// </summary>
- public DateTime? MaxStartDate { get; set; }
-
- /// <summary>
- /// Gets or sets the minimum premiere end date.
- /// Optional.
- /// </summary>
- public DateTime? MinEndDate { get; set; }
-
- /// <summary>
- /// Gets or sets the maximum premiere end date.
- /// Optional.
- /// </summary>
- public DateTime? MaxEndDate { get; set; }
-
- /// <summary>
- /// Gets or sets filter for movies.
- /// Optional.
- /// </summary>
- public bool? IsMovie { get; set; }
-
- /// <summary>
- /// Gets or sets filter for series.
- /// Optional.
- /// </summary>
- public bool? IsSeries { get; set; }
-
- /// <summary>
- /// Gets or sets filter for news.
- /// Optional.
- /// </summary>
- public bool? IsNews { get; set; }
-
- /// <summary>
- /// Gets or sets filter for kids.
- /// Optional.
- /// </summary>
- public bool? IsKids { get; set; }
-
- /// <summary>
- /// Gets or sets filter for sports.
- /// Optional.
- /// </summary>
- public bool? IsSports { get; set; }
-
- /// <summary>
- /// Gets or sets the record index to start at. All items with a lower index will be dropped from the results.
- /// Optional.
- /// </summary>
- public int? StartIndex { get; set; }
-
- /// <summary>
- /// Gets or sets the maximum number of records to return.
- /// Optional.
- /// </summary>
- public int? Limit { get; set; }
-
- /// <summary>
- /// Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate.
- /// Optional.
- /// </summary>
- [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
- public IReadOnlyList<string> SortBy { get; set; } = Array.Empty<string>();
-
- /// <summary>
- /// Gets or sets sort Order - Ascending,Descending.
- /// </summary>
- [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
- public IReadOnlyList<SortOrder> SortOrder { get; set; } = Array.Empty<SortOrder>();
-
- /// <summary>
- /// Gets or sets the genres to return guide information for.
- /// </summary>
- [JsonConverter(typeof(JsonPipeDelimitedArrayConverterFactory))]
- public IReadOnlyList<string> Genres { get; set; } = Array.Empty<string>();
-
- /// <summary>
- /// Gets or sets the genre ids to return guide information for.
- /// </summary>
- [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
- public IReadOnlyList<Guid> GenreIds { get; set; } = Array.Empty<Guid>();
-
- /// <summary>
- /// Gets or sets include image information in output.
- /// Optional.
- /// </summary>
- public bool? EnableImages { get; set; }
-
- /// <summary>
- /// Gets or sets a value indicating whether retrieve total record count.
- /// </summary>
- public bool EnableTotalRecordCount { get; set; } = true;
-
- /// <summary>
- /// Gets or sets the max number of images to return, per image type.
- /// Optional.
- /// </summary>
- public int? ImageTypeLimit { get; set; }
-
- /// <summary>
- /// Gets or sets the image types to include in the output.
- /// Optional.
- /// </summary>
- [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
- public IReadOnlyList<ImageType> EnableImageTypes { get; set; } = Array.Empty<ImageType>();
-
- /// <summary>
- /// Gets or sets include user data.
- /// Optional.
- /// </summary>
- public bool? EnableUserData { get; set; }
-
- /// <summary>
- /// Gets or sets filter by series timer id.
- /// Optional.
- /// </summary>
- public string? SeriesTimerId { get; set; }
-
- /// <summary>
- /// Gets or sets filter by library series id.
- /// Optional.
- /// </summary>
- public Guid LibrarySeriesId { get; set; }
-
- /// <summary>
- /// Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
- /// Optional.
- /// </summary>
- [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
- public IReadOnlyList<ItemFields> Fields { get; set; } = Array.Empty<ItemFields>();
- }
+ /// Gets or sets the channels to return guide information for.
+ /// </summary>
+ [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
+ public IReadOnlyList<Guid> ChannelIds { get; set; } = Array.Empty<Guid>();
+
+ /// <summary>
+ /// Gets or sets optional. Filter by user id.
+ /// </summary>
+ public Guid UserId { get; set; }
+
+ /// <summary>
+ /// Gets or sets the minimum premiere start date.
+ /// Optional.
+ /// </summary>
+ public DateTime? MinStartDate { get; set; }
+
+ /// <summary>
+ /// Gets or sets filter by programs that have completed airing, or not.
+ /// Optional.
+ /// </summary>
+ public bool? HasAired { get; set; }
+
+ /// <summary>
+ /// Gets or sets filter by programs that are currently airing, or not.
+ /// Optional.
+ /// </summary>
+ public bool? IsAiring { get; set; }
+
+ /// <summary>
+ /// Gets or sets the maximum premiere start date.
+ /// Optional.
+ /// </summary>
+ public DateTime? MaxStartDate { get; set; }
+
+ /// <summary>
+ /// Gets or sets the minimum premiere end date.
+ /// Optional.
+ /// </summary>
+ public DateTime? MinEndDate { get; set; }
+
+ /// <summary>
+ /// Gets or sets the maximum premiere end date.
+ /// Optional.
+ /// </summary>
+ public DateTime? MaxEndDate { get; set; }
+
+ /// <summary>
+ /// Gets or sets filter for movies.
+ /// Optional.
+ /// </summary>
+ public bool? IsMovie { get; set; }
+
+ /// <summary>
+ /// Gets or sets filter for series.
+ /// Optional.
+ /// </summary>
+ public bool? IsSeries { get; set; }
+
+ /// <summary>
+ /// Gets or sets filter for news.
+ /// Optional.
+ /// </summary>
+ public bool? IsNews { get; set; }
+
+ /// <summary>
+ /// Gets or sets filter for kids.
+ /// Optional.
+ /// </summary>
+ public bool? IsKids { get; set; }
+
+ /// <summary>
+ /// Gets or sets filter for sports.
+ /// Optional.
+ /// </summary>
+ public bool? IsSports { get; set; }
+
+ /// <summary>
+ /// Gets or sets the record index to start at. All items with a lower index will be dropped from the results.
+ /// Optional.
+ /// </summary>
+ public int? StartIndex { get; set; }
+
+ /// <summary>
+ /// Gets or sets the maximum number of records to return.
+ /// Optional.
+ /// </summary>
+ public int? Limit { get; set; }
+
+ /// <summary>
+ /// Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate.
+ /// Optional.
+ /// </summary>
+ [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
+ public IReadOnlyList<string> SortBy { get; set; } = Array.Empty<string>();
+
+ /// <summary>
+ /// Gets or sets sort Order - Ascending,Descending.
+ /// </summary>
+ [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
+ public IReadOnlyList<SortOrder> SortOrder { get; set; } = Array.Empty<SortOrder>();
+
+ /// <summary>
+ /// Gets or sets the genres to return guide information for.
+ /// </summary>
+ [JsonConverter(typeof(JsonPipeDelimitedArrayConverterFactory))]
+ public IReadOnlyList<string> Genres { get; set; } = Array.Empty<string>();
+
+ /// <summary>
+ /// Gets or sets the genre ids to return guide information for.
+ /// </summary>
+ [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
+ public IReadOnlyList<Guid> GenreIds { get; set; } = Array.Empty<Guid>();
+
+ /// <summary>
+ /// Gets or sets include image information in output.
+ /// Optional.
+ /// </summary>
+ public bool? EnableImages { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether retrieve total record count.
+ /// </summary>
+ public bool EnableTotalRecordCount { get; set; } = true;
+
+ /// <summary>
+ /// Gets or sets the max number of images to return, per image type.
+ /// Optional.
+ /// </summary>
+ public int? ImageTypeLimit { get; set; }
+
+ /// <summary>
+ /// Gets or sets the image types to include in the output.
+ /// Optional.
+ /// </summary>
+ [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
+ public IReadOnlyList<ImageType> EnableImageTypes { get; set; } = Array.Empty<ImageType>();
+
+ /// <summary>
+ /// Gets or sets include user data.
+ /// Optional.
+ /// </summary>
+ public bool? EnableUserData { get; set; }
+
+ /// <summary>
+ /// Gets or sets filter by series timer id.
+ /// Optional.
+ /// </summary>
+ public string? SeriesTimerId { get; set; }
+
+ /// <summary>
+ /// Gets or sets filter by library series id.
+ /// Optional.
+ /// </summary>
+ public Guid LibrarySeriesId { get; set; }
+
+ /// <summary>
+ /// Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
+ /// Optional.
+ /// </summary>
+ [JsonConverter(typeof(JsonCommaDelimitedArrayConverterFactory))]
+ public IReadOnlyList<ItemFields> Fields { get; set; } = Array.Empty<ItemFields>();
}
diff --git a/Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs b/Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs
index e7501bd9f..2dbaece5e 100644
--- a/Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs
+++ b/Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs
@@ -1,28 +1,27 @@
using System.ComponentModel.DataAnnotations;
-namespace Jellyfin.Api.Models.LiveTvDtos
+namespace Jellyfin.Api.Models.LiveTvDtos;
+
+/// <summary>
+/// Set channel mapping dto.
+/// </summary>
+public class SetChannelMappingDto
{
/// <summary>
- /// Set channel mapping dto.
+ /// Gets or sets the provider id.
/// </summary>
- public class SetChannelMappingDto
- {
- /// <summary>
- /// Gets or sets the provider id.
- /// </summary>
- [Required]
- public string ProviderId { get; set; } = string.Empty;
+ [Required]
+ public string ProviderId { get; set; } = string.Empty;
- /// <summary>
- /// Gets or sets the tuner channel id.
- /// </summary>
- [Required]
- public string TunerChannelId { get; set; } = string.Empty;
+ /// <summary>
+ /// Gets or sets the tuner channel id.
+ /// </summary>
+ [Required]
+ public string TunerChannelId { get; set; } = string.Empty;
- /// <summary>
- /// Gets or sets the provider channel id.
- /// </summary>
- [Required]
- public string ProviderChannelId { get; set; } = string.Empty;
- }
+ /// <summary>
+ /// Gets or sets the provider channel id.
+ /// </summary>
+ [Required]
+ public string ProviderChannelId { get; set; } = string.Empty;
}