aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-12-15 12:22:39 +0100
committerGitHub <noreply@github.com>2020-12-15 12:22:39 +0100
commit906ee4f96229a0cc4c481911d6443c68af6d4a2d (patch)
tree1be9cf79a0074f02e000acf24dff430f89b79be4 /Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs
parentbc8f1bdcace3bad9103591f5d259b3d5937fba9d (diff)
parentc6b381db1098041fe975f9830728bf1f000ce71f (diff)
Merge pull request #4781 from crobibero/map-xmltv
Use request body for mapping xml channels
Diffstat (limited to 'Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs')
-rw-r--r--Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs b/Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs
new file mode 100644
index 000000000..2ddaa89e8
--- /dev/null
+++ b/Jellyfin.Api/Models/LiveTvDtos/SetChannelMappingDto.cs
@@ -0,0 +1,28 @@
+using System.ComponentModel.DataAnnotations;
+
+namespace Jellyfin.Api.Models.LiveTvDtos
+{
+ /// <summary>
+ /// Set channel mapping dto.
+ /// </summary>
+ public class SetChannelMappingDto
+ {
+ /// <summary>
+ /// Gets or sets the provider id.
+ /// </summary>
+ [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 provider channel id.
+ /// </summary>
+ [Required]
+ public string ProviderChannelId { get; set; } = string.Empty;
+ }
+} \ No newline at end of file