aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/Rating.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Data/Entities/Rating.cs')
-rw-r--r--Jellyfin.Data/Entities/Rating.cs17
1 files changed, 10 insertions, 7 deletions
diff --git a/Jellyfin.Data/Entities/Rating.cs b/Jellyfin.Data/Entities/Rating.cs
index 0c8b99ca2c..2c27dbd496 100644
--- a/Jellyfin.Data/Entities/Rating.cs
+++ b/Jellyfin.Data/Entities/Rating.cs
@@ -25,7 +25,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Public constructor with required data
+ /// Public constructor with required data.
/// </summary>
/// <param name="value"></param>
/// <param name="_metadata0"></param>
@@ -55,7 +55,7 @@ namespace Jellyfin.Data.Entities
*************************************************************************/
/// <summary>
- /// Backing field for Id
+ /// Backing field for Id.
/// </summary>
internal int _Id;
/// <summary>
@@ -68,7 +68,7 @@ namespace Jellyfin.Data.Entities
partial void GetId(ref int result);
/// <summary>
- /// Identity, Indexed, Required
+ /// Identity, Indexed, Required.
/// </summary>
[Key]
[Required]
@@ -81,6 +81,7 @@ namespace Jellyfin.Data.Entities
GetId(ref value);
return (_Id = value);
}
+
protected set
{
int oldValue = _Id;
@@ -93,7 +94,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Backing field for Value
+ /// Backing field for Value.
/// </summary>
protected double _Value;
/// <summary>
@@ -106,7 +107,7 @@ namespace Jellyfin.Data.Entities
partial void GetValue(ref double result);
/// <summary>
- /// Required
+ /// Required.
/// </summary>
[Required]
public double Value
@@ -117,6 +118,7 @@ namespace Jellyfin.Data.Entities
GetValue(ref value);
return (_Value = value);
}
+
set
{
double oldValue = _Value;
@@ -129,7 +131,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Backing field for Votes
+ /// Backing field for Votes.
/// </summary>
protected int? _Votes;
/// <summary>
@@ -149,6 +151,7 @@ namespace Jellyfin.Data.Entities
GetVotes(ref value);
return (_Votes = value);
}
+
set
{
int? oldValue = _Votes;
@@ -161,7 +164,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Required, ConcurrenyToken
+ /// Required, ConcurrenyToken.
/// </summary>
[ConcurrencyCheck]
[Required]