aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2024-04-20 16:43:25 +0200
committerBond_009 <bond.009@outlook.com>2024-07-29 21:05:23 +0200
commitd3f0346f0498538ae3c0f34e4d17a6e1d044b4f8 (patch)
treee0a4d4b104eaaac2831333d2e6981a93f598f2e4 /MediaBrowser.Controller/Entities
parenteeb8c59ff27307b5edd8e056a9ef7d451dbddd04 (diff)
Enable nullable for UserItemData
MetadataResult.GetOrAddUserData doesn't ever get used and is probably broken since the migration to .NET Core as it still expects a Guid for userId
Diffstat (limited to 'MediaBrowser.Controller/Entities')
-rw-r--r--MediaBrowser.Controller/Entities/UserItemData.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/MediaBrowser.Controller/Entities/UserItemData.cs b/MediaBrowser.Controller/Entities/UserItemData.cs
index ecca440f0..15bd41a9c 100644
--- a/MediaBrowser.Controller/Entities/UserItemData.cs
+++ b/MediaBrowser.Controller/Entities/UserItemData.cs
@@ -1,5 +1,3 @@
-#nullable disable
-
#pragma warning disable CS1591
using System;
@@ -20,16 +18,10 @@ namespace MediaBrowser.Controller.Entities
private double? _rating;
/// <summary>
- /// Gets or sets the user id.
- /// </summary>
- /// <value>The user id.</value>
- public Guid UserId { get; set; }
-
- /// <summary>
/// Gets or sets the key.
/// </summary>
/// <value>The key.</value>
- public string Key { get; set; }
+ public required string Key { get; set; }
/// <summary>
/// Gets or sets the users 0-10 rating.