aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/LiveTv
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2024-01-17 15:18:15 -0500
committerPatrick Barron <barronpm@gmail.com>2024-02-08 15:20:46 -0500
commit42b052a5a619abf33ceeb4bc4aafcc1d3d52a723 (patch)
tree4b6238af1c4fe34c8ae8ae9c556da45c4552b73e /MediaBrowser.Model/LiveTv
parent20f05f8103c2f5447c3d2ebd319c9ad31857d42e (diff)
Add IListingsManager service
Diffstat (limited to 'MediaBrowser.Model/LiveTv')
-rw-r--r--MediaBrowser.Model/LiveTv/ChannelMappingOptionsDto.cs31
-rw-r--r--MediaBrowser.Model/LiveTv/TunerChannelMapping.cs16
2 files changed, 47 insertions, 0 deletions
diff --git a/MediaBrowser.Model/LiveTv/ChannelMappingOptionsDto.cs b/MediaBrowser.Model/LiveTv/ChannelMappingOptionsDto.cs
new file mode 100644
index 000000000..3f9ecc8c8
--- /dev/null
+++ b/MediaBrowser.Model/LiveTv/ChannelMappingOptionsDto.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using MediaBrowser.Model.Dto;
+
+namespace MediaBrowser.Model.LiveTv;
+
+/// <summary>
+/// Channel mapping options dto.
+/// </summary>
+public class ChannelMappingOptionsDto
+{
+ /// <summary>
+ /// Gets or sets list of tuner channels.
+ /// </summary>
+ public required IReadOnlyList<TunerChannelMapping> TunerChannels { 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 provider name.
+ /// </summary>
+ public string? ProviderName { get; set; }
+}
diff --git a/MediaBrowser.Model/LiveTv/TunerChannelMapping.cs b/MediaBrowser.Model/LiveTv/TunerChannelMapping.cs
new file mode 100644
index 000000000..647e24a91
--- /dev/null
+++ b/MediaBrowser.Model/LiveTv/TunerChannelMapping.cs
@@ -0,0 +1,16 @@
+#nullable disable
+
+#pragma warning disable CS1591
+
+namespace MediaBrowser.Model.LiveTv;
+
+public class TunerChannelMapping
+{
+ public string Name { get; set; }
+
+ public string ProviderChannelName { get; set; }
+
+ public string ProviderChannelId { get; set; }
+
+ public string Id { get; set; }
+}