Selaa lähdekoodia

Enable TreatWarningsAsErrors for Emby.Data in Release

Bond_009 4 vuotta sitten
vanhempi
sitoutus
4243a17c86
51 muutettua tiedostoa jossa 169 lisäystä ja 4 poistoa
  1. 2 0
      Jellyfin.Data/DayOfWeekHelper.cs
  2. 2 0
      Jellyfin.Data/Entities/ActivityLog.cs
  3. 2 0
      Jellyfin.Data/Entities/Artwork.cs
  4. 4 0
      Jellyfin.Data/Entities/Book.cs
  5. 6 0
      Jellyfin.Data/Entities/BookMetadata.cs
  6. 2 0
      Jellyfin.Data/Entities/Chapter.cs
  7. 2 0
      Jellyfin.Data/Entities/Collection.cs
  8. 2 0
      Jellyfin.Data/Entities/CollectionItem.cs
  9. 2 0
      Jellyfin.Data/Entities/Company.cs
  10. 6 0
      Jellyfin.Data/Entities/CompanyMetadata.cs
  11. 4 0
      Jellyfin.Data/Entities/CustomItem.cs
  12. 6 0
      Jellyfin.Data/Entities/CustomItemMetadata.cs
  13. 4 0
      Jellyfin.Data/Entities/Episode.cs
  14. 6 0
      Jellyfin.Data/Entities/EpisodeMetadata.cs
  15. 2 0
      Jellyfin.Data/Entities/Genre.cs
  16. 2 0
      Jellyfin.Data/Entities/Group.cs
  17. 3 1
      Jellyfin.Data/Entities/ImageInfo.cs
  18. 3 1
      Jellyfin.Data/Entities/ItemDisplayPreferences.cs
  19. 2 0
      Jellyfin.Data/Entities/Library.cs
  20. 3 0
      Jellyfin.Data/Entities/LibraryItem.cs
  21. 2 0
      Jellyfin.Data/Entities/LibraryRoot.cs
  22. 2 0
      Jellyfin.Data/Entities/MediaFile.cs
  23. 2 0
      Jellyfin.Data/Entities/MediaFileStream.cs
  24. 4 0
      Jellyfin.Data/Entities/Metadata.cs
  25. 2 0
      Jellyfin.Data/Entities/MetadataProvider.cs
  26. 2 0
      Jellyfin.Data/Entities/MetadataProviderId.cs
  27. 4 0
      Jellyfin.Data/Entities/Movie.cs
  28. 6 0
      Jellyfin.Data/Entities/MovieMetadata.cs
  29. 4 0
      Jellyfin.Data/Entities/MusicAlbum.cs
  30. 6 0
      Jellyfin.Data/Entities/MusicAlbumMetadata.cs
  31. 2 0
      Jellyfin.Data/Entities/Permission.cs
  32. 6 0
      Jellyfin.Data/Entities/Person.cs
  33. 2 0
      Jellyfin.Data/Entities/PersonRole.cs
  34. 4 0
      Jellyfin.Data/Entities/Photo.cs
  35. 6 0
      Jellyfin.Data/Entities/PhotoMetadata.cs
  36. 2 0
      Jellyfin.Data/Entities/ProviderMapping.cs
  37. 2 0
      Jellyfin.Data/Entities/Rating.cs
  38. 2 0
      Jellyfin.Data/Entities/RatingSource.cs
  39. 2 0
      Jellyfin.Data/Entities/Release.cs
  40. 4 0
      Jellyfin.Data/Entities/Season.cs
  41. 6 0
      Jellyfin.Data/Entities/SeasonMetadata.cs
  42. 4 0
      Jellyfin.Data/Entities/Series.cs
  43. 6 0
      Jellyfin.Data/Entities/SeriesMetadata.cs
  44. 4 0
      Jellyfin.Data/Entities/Track.cs
  45. 6 1
      Jellyfin.Data/Entities/TrackMetadata.cs
  46. 2 0
      Jellyfin.Data/Entities/User.cs
  47. 2 0
      Jellyfin.Data/Enums/ArtKind.cs
  48. 3 1
      Jellyfin.Data/Enums/IndexingKind.cs
  49. 2 0
      Jellyfin.Data/Enums/MediaFileKind.cs
  50. 2 0
      Jellyfin.Data/Enums/PersonRoleType.cs
  51. 1 0
      Jellyfin.Data/Jellyfin.Data.csproj

+ 2 - 0
Jellyfin.Data/DayOfWeekHelper.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using Jellyfin.Data.Enums;

+ 2 - 0
Jellyfin.Data/Entities/ActivityLog.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 2 - 0
Jellyfin.Data/Entities/Artwork.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 

+ 4 - 0
Jellyfin.Data/Entities/Book.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -31,6 +33,7 @@ namespace Jellyfin.Data.Entities
         /// Public constructor with required data.
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         public Book(Guid urlid, DateTime dateadded)
         {
             this.UrlId = urlid;
@@ -45,6 +48,7 @@ namespace Jellyfin.Data.Entities
         /// Static create function (for use in LINQ queries, etc.)
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         public static Book Create(Guid urlid, DateTime dateadded)
         {
             return new Book(urlid, dateadded);

+ 6 - 0
Jellyfin.Data/Entities/BookMetadata.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -31,6 +33,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_book0"></param>
         public BookMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Book _book0)
         {
@@ -65,6 +69,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_book0"></param>
         public static BookMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Book _book0)
         {

+ 2 - 0
Jellyfin.Data/Entities/Chapter.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 2 - 0
Jellyfin.Data/Entities/Collection.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 2 - 0
Jellyfin.Data/Entities/CollectionItem.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 2 - 0
Jellyfin.Data/Entities/Company.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;

+ 6 - 0
Jellyfin.Data/Entities/CompanyMetadata.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 
@@ -28,6 +30,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_company0"></param>
         public CompanyMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Company _company0)
         {
@@ -60,6 +64,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_company0"></param>
         public static CompanyMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Company _company0)
         {

+ 4 - 0
Jellyfin.Data/Entities/CustomItem.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -31,6 +33,7 @@ namespace Jellyfin.Data.Entities
         /// Public constructor with required data.
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         public CustomItem(Guid urlid, DateTime dateadded)
         {
             this.UrlId = urlid;
@@ -45,6 +48,7 @@ namespace Jellyfin.Data.Entities
         /// Static create function (for use in LINQ queries, etc.)
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         public static CustomItem Create(Guid urlid, DateTime dateadded)
         {
             return new CustomItem(urlid, dateadded);

+ 6 - 0
Jellyfin.Data/Entities/CustomItemMetadata.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 
 namespace Jellyfin.Data.Entities
@@ -27,6 +29,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_customitem0"></param>
         public CustomItemMetadata(string title, string language, DateTime dateadded, DateTime datemodified, CustomItem _customitem0)
         {
@@ -59,6 +63,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_customitem0"></param>
         public static CustomItemMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, CustomItem _customitem0)
         {

+ 4 - 0
Jellyfin.Data/Entities/Episode.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -34,6 +36,7 @@ namespace Jellyfin.Data.Entities
         /// Public constructor with required data.
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         /// <param name="_season0"></param>
         public Episode(Guid urlid, DateTime dateadded, Season _season0)
         {
@@ -59,6 +62,7 @@ namespace Jellyfin.Data.Entities
         /// Static create function (for use in LINQ queries, etc.)
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         /// <param name="_season0"></param>
         public static Episode Create(Guid urlid, DateTime dateadded, Season _season0)
         {

+ 6 - 0
Jellyfin.Data/Entities/EpisodeMetadata.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 
@@ -28,6 +30,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_episode0"></param>
         public EpisodeMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Episode _episode0)
         {
@@ -60,6 +64,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_episode0"></param>
         public static EpisodeMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Episode _episode0)
         {

+ 2 - 0
Jellyfin.Data/Entities/Genre.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 2 - 0
Jellyfin.Data/Entities/Group.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;

+ 3 - 1
Jellyfin.Data/Entities/ImageInfo.cs

@@ -1,4 +1,6 @@
-using System;
+#pragma warning disable CS1591
+
+using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;
 

+ 3 - 1
Jellyfin.Data/Entities/ItemDisplayPreferences.cs

@@ -1,4 +1,6 @@
-using System;
+#pragma warning disable CS1591
+
+using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;
 using Jellyfin.Data.Enums;

+ 2 - 0
Jellyfin.Data/Entities/Library.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 3 - 0
Jellyfin.Data/Entities/LibraryItem.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -20,6 +22,7 @@ namespace Jellyfin.Data.Entities
         /// Public constructor with required data.
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         protected LibraryItem(Guid urlid, DateTime dateadded)
         {
             this.UrlId = urlid;

+ 2 - 0
Jellyfin.Data/Entities/LibraryRoot.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 2 - 0
Jellyfin.Data/Entities/MediaFile.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;

+ 2 - 0
Jellyfin.Data/Entities/MediaFileStream.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 4 - 0
Jellyfin.Data/Entities/Metadata.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;
@@ -28,6 +30,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         protected Metadata(string title, string language, DateTime dateadded, DateTime datemodified)
         {
             if (string.IsNullOrEmpty(title))

+ 2 - 0
Jellyfin.Data/Entities/MetadataProvider.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 2 - 0
Jellyfin.Data/Entities/MetadataProviderId.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 4 - 0
Jellyfin.Data/Entities/Movie.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -31,6 +33,7 @@ namespace Jellyfin.Data.Entities
         /// Public constructor with required data.
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         public Movie(Guid urlid, DateTime dateadded)
         {
             this.UrlId = urlid;
@@ -45,6 +48,7 @@ namespace Jellyfin.Data.Entities
         /// Static create function (for use in LINQ queries, etc.)
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         public static Movie Create(Guid urlid, DateTime dateadded)
         {
             return new Movie(urlid, dateadded);

+ 6 - 0
Jellyfin.Data/Entities/MovieMetadata.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;
@@ -32,6 +34,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_movie0"></param>
         public MovieMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Movie _movie0)
         {
@@ -66,6 +70,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_movie0"></param>
         public static MovieMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Movie _movie0)
         {

+ 4 - 0
Jellyfin.Data/Entities/MusicAlbum.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -31,6 +33,7 @@ namespace Jellyfin.Data.Entities
         /// Public constructor with required data.
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         public MusicAlbum(Guid urlid, DateTime dateadded)
         {
             this.UrlId = urlid;
@@ -45,6 +48,7 @@ namespace Jellyfin.Data.Entities
         /// Static create function (for use in LINQ queries, etc.)
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         public static MusicAlbum Create(Guid urlid, DateTime dateadded)
         {
             return new MusicAlbum(urlid, dateadded);

+ 6 - 0
Jellyfin.Data/Entities/MusicAlbumMetadata.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;
@@ -32,6 +34,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_musicalbum0"></param>
         public MusicAlbumMetadata(string title, string language, DateTime dateadded, DateTime datemodified, MusicAlbum _musicalbum0)
         {
@@ -66,6 +70,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_musicalbum0"></param>
         public static MusicAlbumMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, MusicAlbum _musicalbum0)
         {

+ 2 - 0
Jellyfin.Data/Entities/Permission.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;
 using Jellyfin.Data.Enums;

+ 6 - 0
Jellyfin.Data/Entities/Person.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;
@@ -32,6 +34,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="urlid"></param>
         /// <param name="name"></param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         public Person(Guid urlid, string name, DateTime dateadded, DateTime datemodified)
         {
             this.UrlId = urlid;
@@ -53,6 +57,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="urlid"></param>
         /// <param name="name"></param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         public static Person Create(Guid urlid, string name, DateTime dateadded, DateTime datemodified)
         {
             return new Person(urlid, name, dateadded, datemodified);

+ 2 - 0
Jellyfin.Data/Entities/PersonRole.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;

+ 4 - 0
Jellyfin.Data/Entities/Photo.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -31,6 +33,7 @@ namespace Jellyfin.Data.Entities
         /// Public constructor with required data.
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         public Photo(Guid urlid, DateTime dateadded)
         {
             this.UrlId = urlid;
@@ -45,6 +48,7 @@ namespace Jellyfin.Data.Entities
         /// Static create function (for use in LINQ queries, etc.)
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         public static Photo Create(Guid urlid, DateTime dateadded)
         {
             return new Photo(urlid, dateadded);

+ 6 - 0
Jellyfin.Data/Entities/PhotoMetadata.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations.Schema;
 
@@ -28,6 +30,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_photo0"></param>
         public PhotoMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Photo _photo0)
         {
@@ -60,6 +64,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_photo0"></param>
         public static PhotoMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Photo _photo0)
         {

+ 2 - 0
Jellyfin.Data/Entities/ProviderMapping.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 2 - 0
Jellyfin.Data/Entities/Rating.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 2 - 0
Jellyfin.Data/Entities/RatingSource.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;

+ 2 - 0
Jellyfin.Data/Entities/Release.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;

+ 4 - 0
Jellyfin.Data/Entities/Season.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -34,6 +36,7 @@ namespace Jellyfin.Data.Entities
         /// Public constructor with required data.
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         /// <param name="_series0"></param>
         public Season(Guid urlid, DateTime dateadded, Series _series0)
         {
@@ -59,6 +62,7 @@ namespace Jellyfin.Data.Entities
         /// Static create function (for use in LINQ queries, etc.)
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         /// <param name="_series0"></param>
         public static Season Create(Guid urlid, DateTime dateadded, Series _series0)
         {

+ 6 - 0
Jellyfin.Data/Entities/SeasonMetadata.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.ComponentModel.DataAnnotations;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -29,6 +31,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_season0"></param>
         public SeasonMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Season _season0)
         {
@@ -61,6 +65,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_season0"></param>
         public static SeasonMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Season _season0)
         {

+ 4 - 0
Jellyfin.Data/Entities/Series.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -23,6 +25,7 @@ namespace Jellyfin.Data.Entities
         /// Public constructor with required data.
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         public Series(Guid urlid, DateTime dateadded)
         {
             this.UrlId = urlid;
@@ -37,6 +40,7 @@ namespace Jellyfin.Data.Entities
         /// Static create function (for use in LINQ queries, etc.)
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         public static Series Create(Guid urlid, DateTime dateadded)
         {
             return new Series(urlid, dateadded);

+ 6 - 0
Jellyfin.Data/Entities/SeriesMetadata.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;
@@ -32,6 +34,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_series0"></param>
         public SeriesMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Series _series0)
         {
@@ -66,6 +70,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_series0"></param>
         public static SeriesMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Series _series0)
         {

+ 4 - 0
Jellyfin.Data/Entities/Track.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations.Schema;
@@ -34,6 +36,7 @@ namespace Jellyfin.Data.Entities
         /// Public constructor with required data.
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         /// <param name="_musicalbum0"></param>
         public Track(Guid urlid, DateTime dateadded, MusicAlbum _musicalbum0)
         {
@@ -59,6 +62,7 @@ namespace Jellyfin.Data.Entities
         /// Static create function (for use in LINQ queries, etc.)
         /// </summary>
         /// <param name="urlid">This is whats gets displayed in the Urls and API requests. This could also be a string.</param>
+        /// <param name="dateadded">The date the object was added.</param>
         /// <param name="_musicalbum0"></param>
         public static Track Create(Guid urlid, DateTime dateadded, MusicAlbum _musicalbum0)
         {

+ 6 - 1
Jellyfin.Data/Entities/TrackMetadata.cs

@@ -1,5 +1,6 @@
+#pragma warning disable CS1591
+
 using System;
-using System.ComponentModel.DataAnnotations.Schema;
 
 namespace Jellyfin.Data.Entities
 {
@@ -28,6 +29,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_track0"></param>
         public TrackMetadata(string title, string language, DateTime dateadded, DateTime datemodified, Track _track0)
         {
@@ -60,6 +63,8 @@ namespace Jellyfin.Data.Entities
         /// </summary>
         /// <param name="title">The title or name of the object.</param>
         /// <param name="language">ISO-639-3 3-character language codes.</param>
+        /// <param name="dateadded">The date the object was added.</param>
+        /// <param name="datemodified">The date the object was last modified.</param>
         /// <param name="_track0"></param>
         public static TrackMetadata Create(string title, string language, DateTime dateadded, DateTime datemodified, Track _track0)
         {

+ 2 - 0
Jellyfin.Data/Entities/User.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;

+ 2 - 0
Jellyfin.Data/Enums/ArtKind.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 namespace Jellyfin.Data.Enums
 {
     public enum ArtKind

+ 3 - 1
Jellyfin.Data/Enums/IndexingKind.cs

@@ -1,4 +1,6 @@
-namespace Jellyfin.Data.Enums
+#pragma warning disable CS1591
+
+namespace Jellyfin.Data.Enums
 {
     public enum IndexingKind
     {

+ 2 - 0
Jellyfin.Data/Enums/MediaFileKind.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 namespace Jellyfin.Data.Enums
 {
     public enum MediaFileKind

+ 2 - 0
Jellyfin.Data/Enums/PersonRoleType.cs

@@ -1,3 +1,5 @@
+#pragma warning disable CS1591
+
 namespace Jellyfin.Data.Enums
 {
     public enum PersonRoleType

+ 1 - 0
Jellyfin.Data/Jellyfin.Data.csproj

@@ -4,6 +4,7 @@
     <TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
     <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
+    <TreatWarningsAsErrors Condition=" '$(Configuration)' == 'Release' ">true</TreatWarningsAsErrors>
   </PropertyGroup>
 
   <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">