aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/Metadata.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Data/Entities/Metadata.cs')
-rw-r--r--Jellyfin.Data/Entities/Metadata.cs39
1 files changed, 23 insertions, 16 deletions
diff --git a/Jellyfin.Data/Entities/Metadata.cs b/Jellyfin.Data/Entities/Metadata.cs
index 467ee6822..a6ca61709 100644
--- a/Jellyfin.Data/Entities/Metadata.cs
+++ b/Jellyfin.Data/Entities/Metadata.cs
@@ -24,7 +24,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Public constructor with required data
+ /// Public constructor with required data.
/// </summary>
/// <param name="title">The title or name of the object</param>
/// <param name="language">ISO-639-3 3-character language codes</param>
@@ -50,7 +50,7 @@ namespace Jellyfin.Data.Entities
*************************************************************************/
/// <summary>
- /// Backing field for Id
+ /// Backing field for Id.
/// </summary>
internal int _Id;
/// <summary>
@@ -63,7 +63,7 @@ namespace Jellyfin.Data.Entities
partial void GetId(ref int result);
/// <summary>
- /// Identity, Indexed, Required
+ /// Identity, Indexed, Required.
/// </summary>
[Key]
[Required]
@@ -76,6 +76,7 @@ namespace Jellyfin.Data.Entities
GetId(ref value);
return (_Id = value);
}
+
protected set
{
int oldValue = _Id;
@@ -88,7 +89,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Backing field for Title
+ /// Backing field for Title.
/// </summary>
protected string _Title;
/// <summary>
@@ -102,7 +103,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Required, Max length = 1024
- /// The title or name of the object
+ /// The title or name of the object.
/// </summary>
[Required]
[MaxLength(1024)]
@@ -115,6 +116,7 @@ namespace Jellyfin.Data.Entities
GetTitle(ref value);
return (_Title = value);
}
+
set
{
string oldValue = _Title;
@@ -127,7 +129,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Backing field for OriginalTitle
+ /// Backing field for OriginalTitle.
/// </summary>
protected string _OriginalTitle;
/// <summary>
@@ -152,6 +154,7 @@ namespace Jellyfin.Data.Entities
GetOriginalTitle(ref value);
return (_OriginalTitle = value);
}
+
set
{
string oldValue = _OriginalTitle;
@@ -164,7 +167,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Backing field for SortTitle
+ /// Backing field for SortTitle.
/// </summary>
protected string _SortTitle;
/// <summary>
@@ -189,6 +192,7 @@ namespace Jellyfin.Data.Entities
GetSortTitle(ref value);
return (_SortTitle = value);
}
+
set
{
string oldValue = _SortTitle;
@@ -201,7 +205,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Backing field for Language
+ /// Backing field for Language.
/// </summary>
protected string _Language;
/// <summary>
@@ -215,7 +219,7 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Required, Min length = 3, Max length = 3
- /// ISO-639-3 3-character language codes
+ /// ISO-639-3 3-character language codes.
/// </summary>
[Required]
[MinLength(3)]
@@ -229,6 +233,7 @@ namespace Jellyfin.Data.Entities
GetLanguage(ref value);
return (_Language = value);
}
+
set
{
string oldValue = _Language;
@@ -241,7 +246,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Backing field for ReleaseDate
+ /// Backing field for ReleaseDate.
/// </summary>
protected DateTimeOffset? _ReleaseDate;
/// <summary>
@@ -261,6 +266,7 @@ namespace Jellyfin.Data.Entities
GetReleaseDate(ref value);
return (_ReleaseDate = value);
}
+
set
{
DateTimeOffset? oldValue = _ReleaseDate;
@@ -273,7 +279,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Backing field for DateAdded
+ /// Backing field for DateAdded.
/// </summary>
protected DateTime _DateAdded;
/// <summary>
@@ -286,7 +292,7 @@ namespace Jellyfin.Data.Entities
partial void GetDateAdded(ref DateTime result);
/// <summary>
- /// Required
+ /// Required.
/// </summary>
[Required]
public DateTime DateAdded
@@ -297,6 +303,7 @@ namespace Jellyfin.Data.Entities
GetDateAdded(ref value);
return (_DateAdded = value);
}
+
internal set
{
DateTime oldValue = _DateAdded;
@@ -309,7 +316,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Backing field for DateModified
+ /// Backing field for DateModified.
/// </summary>
protected DateTime _DateModified;
/// <summary>
@@ -322,7 +329,7 @@ namespace Jellyfin.Data.Entities
partial void GetDateModified(ref DateTime result);
/// <summary>
- /// Required
+ /// Required.
/// </summary>
[Required]
public DateTime DateModified
@@ -333,6 +340,7 @@ namespace Jellyfin.Data.Entities
GetDateModified(ref value);
return (_DateModified = value);
}
+
internal set
{
DateTime oldValue = _DateModified;
@@ -345,7 +353,7 @@ namespace Jellyfin.Data.Entities
}
/// <summary>
- /// Required, ConcurrenyToken
+ /// Required, ConcurrenyToken.
/// </summary>
[ConcurrencyCheck]
[Required]
@@ -374,7 +382,6 @@ namespace Jellyfin.Data.Entities
[ForeignKey("PersonRole_PersonRoles_Id")]
public virtual ICollection<MetadataProviderId> Sources { get; protected set; }
-
}
}