diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-04-05 18:10:56 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-04-05 18:10:56 +0200 |
| commit | 30ce346f343ca61f921ec7d6faf2f06311c04e71 (patch) | |
| tree | 009b45907371f10fe4c3195708287f4b464df7dd /MediaBrowser.Model/Playlists | |
| parent | 29539174a3de47c151cc7c7fd192100e6fbe48d7 (diff) | |
Enable nullabe reference types for MediaBrowser.Model
Diffstat (limited to 'MediaBrowser.Model/Playlists')
| -rw-r--r-- | MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs | 1 | ||||
| -rw-r--r-- | MediaBrowser.Model/Playlists/PlaylistCreationResult.cs | 7 | ||||
| -rw-r--r-- | MediaBrowser.Model/Playlists/PlaylistItemQuery.cs | 39 |
3 files changed, 7 insertions, 40 deletions
diff --git a/MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs b/MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs index b7003c4c8..ef435b21e 100644 --- a/MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs +++ b/MediaBrowser.Model/Playlists/PlaylistCreationRequest.cs @@ -1,3 +1,4 @@ +#nullable disable #pragma warning disable CS1591 using System; diff --git a/MediaBrowser.Model/Playlists/PlaylistCreationResult.cs b/MediaBrowser.Model/Playlists/PlaylistCreationResult.cs index 4f2067b98..f3a1518ed 100644 --- a/MediaBrowser.Model/Playlists/PlaylistCreationResult.cs +++ b/MediaBrowser.Model/Playlists/PlaylistCreationResult.cs @@ -4,6 +4,11 @@ namespace MediaBrowser.Model.Playlists { public class PlaylistCreationResult { - public string Id { get; set; } + public PlaylistCreationResult(string id) + { + Id = id; + } + + public string Id { get; } } } diff --git a/MediaBrowser.Model/Playlists/PlaylistItemQuery.cs b/MediaBrowser.Model/Playlists/PlaylistItemQuery.cs deleted file mode 100644 index 324a38e70..000000000 --- a/MediaBrowser.Model/Playlists/PlaylistItemQuery.cs +++ /dev/null @@ -1,39 +0,0 @@ -#pragma warning disable CS1591 - -using MediaBrowser.Model.Querying; - -namespace MediaBrowser.Model.Playlists -{ - public class PlaylistItemQuery - { - /// <summary> - /// Gets or sets the identifier. - /// </summary> - /// <value>The identifier.</value> - public string Id { get; set; } - - /// <summary> - /// Gets or sets the user identifier. - /// </summary> - /// <value>The user identifier.</value> - public string UserId { get; set; } - - /// <summary> - /// Gets or sets the start index. - /// </summary> - /// <value>The start index.</value> - public int? StartIndex { get; set; } - - /// <summary> - /// Gets or sets the limit. - /// </summary> - /// <value>The limit.</value> - public int? Limit { get; set; } - - /// <summary> - /// Gets or sets the fields. - /// </summary> - /// <value>The fields.</value> - public ItemFields[] Fields { get; set; } - } -} |
