From c6b381db1098041fe975f9830728bf1f000ce71f Mon Sep 17 00:00:00 2001 From: crobibero Date: Sun, 13 Dec 2020 08:32:33 -0700 Subject: Use request body for mapping xml channels --- .../Models/LiveTvDtos/SetChannelMappingDto.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs (limited to 'Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs') diff --git a/Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs b/Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs new file mode 100644 index 0000000000..2ddaa89e8b --- /dev/null +++ b/Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs @@ -0,0 +1,28 @@ +using System.ComponentModel.DataAnnotations; + +namespace Jellyfin.Api.Models.LiveTvDtos +{ + /// + /// Set channel mapping dto. + /// + public class SetChannelMappingDto + { + /// + /// Gets or sets the provider id. + /// + [Required] + public string ProviderId { get; set; } = string.Empty; + + /// + /// Gets or sets the tuner channel id. + /// + [Required] + public string TunerChannelId { get; set; } = string.Empty; + + /// + /// Gets or sets the provider channel id. + /// + [Required] + public string ProviderChannelId { get; set; } = string.Empty; + } +} \ No newline at end of file -- cgit v1.2.3