aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2024-02-20 10:44:46 -0800
committerGitHub <noreply@github.com>2024-02-20 10:44:46 -0800
commit31715c6b8a0d1f9f9d9f2849b03e6312d9000e7c (patch)
treef7ef7f1985918402dbd4d4691899285a667fdcab /MediaBrowser.Model
parent84639948c75f1bf27bcff446450ad9137ecd8370 (diff)
parent3bdaf640ec52e38e64da25fce07631034538c74a (diff)
Merge pull request #10981 from barronpm/livetv-listingsmanager
Add IListingsManager Service
Diffstat (limited to 'MediaBrowser.Model')
-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 0000000000..3f9ecc8c86
--- /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 0000000000..647e24a913
--- /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; }
+}