diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-10-26 14:35:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-26 14:35:32 +0200 |
| commit | 1b478cfdec9865ff98706c824eb7ef736e74082b (patch) | |
| tree | fe57e9cabc1553d04b2897367e98ccb9b143ff89 /MediaBrowser.Model/Channels/ChannelFeatures.cs | |
| parent | dc72d90703eab626f5241755251fa97c9b854604 (diff) | |
| parent | 1b6eb2ff2d2cc3973fa529c721cf50e3ad849646 (diff) | |
Merge pull request #6735 from Bond-009/nullable8
Enable nullable for more files
Diffstat (limited to 'MediaBrowser.Model/Channels/ChannelFeatures.cs')
| -rw-r--r-- | MediaBrowser.Model/Channels/ChannelFeatures.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/MediaBrowser.Model/Channels/ChannelFeatures.cs b/MediaBrowser.Model/Channels/ChannelFeatures.cs index d925b78b6..1ca8e80a6 100644 --- a/MediaBrowser.Model/Channels/ChannelFeatures.cs +++ b/MediaBrowser.Model/Channels/ChannelFeatures.cs @@ -1,4 +1,3 @@ -#nullable disable #pragma warning disable CS1591 using System; @@ -7,11 +6,14 @@ namespace MediaBrowser.Model.Channels { public class ChannelFeatures { - public ChannelFeatures() + public ChannelFeatures(string name, Guid id) { MediaTypes = Array.Empty<ChannelMediaType>(); ContentTypes = Array.Empty<ChannelMediaContentType>(); DefaultSortFields = Array.Empty<ChannelItemSortField>(); + + Name = name; + Id = id; } /// <summary> @@ -24,7 +26,7 @@ namespace MediaBrowser.Model.Channels /// Gets or sets the identifier. /// </summary> /// <value>The identifier.</value> - public string Id { get; set; } + public Guid Id { get; set; } /// <summary> /// Gets or sets a value indicating whether this instance can search. |
