Updated code to correct build errors for Jelyfin.Data and Jellyfin.Database.Implementations
This commit is contained in:
Binary file not shown.
@@ -1 +1 @@
|
||||
707b848c9239ee433c68bdbbe8bf0840dedefaf0732ff470296b59e7b39c4d3a
|
||||
16af1f055d778316827440b76eceed3a1b05fabb34bc065076f833acf6b594ae
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
C:\Projects\pgsql-jellyfin\Emby.Naming\obj\Debug\net10.0\Emby.Naming.csproj.AssemblyReference.cache
|
||||
C:\Projects\pgsql-jellyfin\Emby.Naming\obj\Debug\net10.0\Emby.Naming.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\Emby.Naming\obj\Debug\net10.0\Emby.Naming.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\Emby.Naming\obj\Debug\net10.0\Emby.Naming.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\Emby.Naming\obj\Debug\net10.0\Emby.Naming.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\Emby.Naming\obj\Debug\net10.0\Emby.Naming.csproj.CoreCompileInputs.cache
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
fe8f4e506cd763fe456c7ccca92576c0078938cd75d2fca8a97fac0a9a6095a9
|
||||
4fc4fc0e2cc8db7e69fd41ec171c1bb9593046487006fd731d47bf622a09616a
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
C:\Projects\pgsql-jellyfin\Emby.Photos\obj\Debug\net10.0\Emby.Photos.csproj.AssemblyReference.cache
|
||||
C:\Projects\pgsql-jellyfin\Emby.Photos\obj\Debug\net10.0\Emby.Photos.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\Emby.Photos\obj\Debug\net10.0\Emby.Photos.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\Emby.Photos\obj\Debug\net10.0\Emby.Photos.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\Emby.Photos\obj\Debug\net10.0\Emby.Photos.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\Emby.Photos\obj\Debug\net10.0\Emby.Photos.csproj.CoreCompileInputs.cache
|
||||
|
||||
BIN
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
5b680cc9024d36c3e3868fcf7e5dce113b6148ee71a24cab7a6ba705cede9780
|
||||
cb3c2e72bbedf5d3d0cb41fd241999614a4db7938e96024d0e32828ee286fa2c
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
C:\Projects\pgsql-jellyfin\Emby.Server.Implementations\obj\Debug\net10.0\Emby.Server.Implementations.csproj.AssemblyReference.cache
|
||||
C:\Projects\pgsql-jellyfin\Emby.Server.Implementations\obj\Debug\net10.0\Emby.Server.Implementations.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\Emby.Server.Implementations\obj\Debug\net10.0\Emby.Server.Implementations.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\Emby.Server.Implementations\obj\Debug\net10.0\Emby.Server.Implementations.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\Emby.Server.Implementations\obj\Debug\net10.0\Emby.Server.Implementations.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\Emby.Server.Implementations\obj\Debug\net10.0\Emby.Server.Implementations.csproj.CoreCompileInputs.cache
|
||||
|
||||
@@ -15,7 +15,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Jellyfin.Api")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+036953f3ffd782d56040af1332c53c54c7107be2")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f47555f2aa4eff7dcc5c5ef5bbda374f292f0638")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Jellyfin.Api")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Jellyfin.Api")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
5829a70b85481b4296a972f5535317bc95e028c523b9b33ab29c5349d3b17ab6
|
||||
ed069dda709e5f640951c1f97c15ff3b3eb023b7a2100def0482fc15be2b0889
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
ed467d62148192bd1017f4379a40550274f0ab5e77ece2cb36372e246f5dbd44
|
||||
642fe2a6bdf754ed9b2bdde6285c679014461fc4883473b9200532551ef4826b
|
||||
|
||||
@@ -3,3 +3,8 @@ C:\Projects\pgsql-jellyfin\Jellyfin.Api\obj\Debug\net10.0\Jellyfin.Api.Generated
|
||||
C:\Projects\pgsql-jellyfin\Jellyfin.Api\obj\Debug\net10.0\Jellyfin.Api.AssemblyInfoInputs.cache
|
||||
C:\Projects\pgsql-jellyfin\Jellyfin.Api\obj\Debug\net10.0\Jellyfin.Api.AssemblyInfo.cs
|
||||
C:\Projects\pgsql-jellyfin\Jellyfin.Api\obj\Debug\net10.0\Jellyfin.Api.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Api\obj\Debug\net10.0\Jellyfin.Api.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Api\obj\Debug\net10.0\Jellyfin.Api.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Api\obj\Debug\net10.0\Jellyfin.Api.AssemblyInfoInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Api\obj\Debug\net10.0\Jellyfin.Api.AssemblyInfo.cs
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Api\obj\Debug\net10.0\Jellyfin.Api.csproj.CoreCompileInputs.cache
|
||||
|
||||
@@ -2,14 +2,15 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
using System;
|
||||
|
||||
namespace Jellyfin.Data.Attributes;
|
||||
|
||||
/// <summary>
|
||||
/// Attribute to specify that the enum value is to be ignored when generating the openapi spec.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public sealed class OpenApiIgnoreEnumAttribute : Attribute
|
||||
namespace Jellyfin.Data.Attributes
|
||||
{
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Attribute to specify that the enum value is to be ignored when generating the openapi spec.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public sealed class OpenApiIgnoreEnumAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,12 +3,13 @@
|
||||
// </copyright>
|
||||
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using Jellyfin.Database.Implementations.Enums;
|
||||
#pragma warning disable SA1600 // Elements should be documented
|
||||
|
||||
namespace Jellyfin.Data
|
||||
{
|
||||
using System;
|
||||
using Jellyfin.Database.Implementations.Enums;
|
||||
|
||||
public static class DayOfWeekHelper
|
||||
{
|
||||
public static DayOfWeek[] GetDaysOfWeek(DynamicDayOfWeek day)
|
||||
@@ -18,7 +19,7 @@ namespace Jellyfin.Data
|
||||
DynamicDayOfWeek.Everyday => new[] { DayOfWeek.Sunday, DayOfWeek.Monday, DayOfWeek.Tuesday, DayOfWeek.Wednesday, DayOfWeek.Thursday, DayOfWeek.Friday, DayOfWeek.Saturday },
|
||||
DynamicDayOfWeek.Weekday => new[] { DayOfWeek.Monday, DayOfWeek.Tuesday, DayOfWeek.Wednesday, DayOfWeek.Thursday, DayOfWeek.Friday },
|
||||
DynamicDayOfWeek.Weekend => new[] { DayOfWeek.Sunday, DayOfWeek.Saturday },
|
||||
_ => new[] { (DayOfWeek)day }
|
||||
_ => new[] { (DayOfWeek)day },
|
||||
};
|
||||
}
|
||||
|
||||
@@ -29,7 +30,7 @@ namespace Jellyfin.Data
|
||||
DynamicDayOfWeek.Everyday => true,
|
||||
DynamicDayOfWeek.Weekday => dayOfWeek is >= DayOfWeek.Monday and <= DayOfWeek.Friday,
|
||||
DynamicDayOfWeek.Weekend => dayOfWeek is DayOfWeek.Saturday or DayOfWeek.Sunday,
|
||||
_ => (DayOfWeek)dynamicDayOfWeek == dayOfWeek
|
||||
_ => (DayOfWeek)dynamicDayOfWeek == dayOfWeek,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,5 +49,5 @@ public enum ActivityLogSortBy
|
||||
/// <summary>
|
||||
/// Sort by severity.
|
||||
/// </summary>
|
||||
LogSeverity = 7
|
||||
LogSeverity = 7,
|
||||
}
|
||||
|
||||
@@ -204,6 +204,6 @@ namespace Jellyfin.Data.Enums
|
||||
/// <summary>
|
||||
/// Item is year.
|
||||
/// </summary>
|
||||
Year
|
||||
Year,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,167 +3,169 @@
|
||||
// </copyright>
|
||||
|
||||
#pragma warning disable SA1300 // The name of a C# element does not begin with an upper-case letter. - disabled due to legacy requirement.
|
||||
using Jellyfin.Data.Attributes;
|
||||
|
||||
namespace Jellyfin.Data.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// Collection type.
|
||||
/// </summary>
|
||||
public enum CollectionType
|
||||
namespace Jellyfin.Data.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// Unknown collection.
|
||||
/// </summary>
|
||||
unknown = 0,
|
||||
using Jellyfin.Data.Attributes;
|
||||
|
||||
/// <summary>
|
||||
/// Movies collection.
|
||||
/// Collection type.
|
||||
/// </summary>
|
||||
movies = 1,
|
||||
public enum CollectionType
|
||||
{
|
||||
/// <summary>
|
||||
/// Unknown collection.
|
||||
/// </summary>
|
||||
unknown = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Tv shows collection.
|
||||
/// </summary>
|
||||
tvshows = 2,
|
||||
/// <summary>
|
||||
/// Movies collection.
|
||||
/// </summary>
|
||||
movies = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Music collection.
|
||||
/// </summary>
|
||||
music = 3,
|
||||
/// <summary>
|
||||
/// Tv shows collection.
|
||||
/// </summary>
|
||||
tvshows = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Music videos collection.
|
||||
/// </summary>
|
||||
musicvideos = 4,
|
||||
/// <summary>
|
||||
/// Music collection.
|
||||
/// </summary>
|
||||
music = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Trailers collection.
|
||||
/// </summary>
|
||||
trailers = 5,
|
||||
/// <summary>
|
||||
/// Music videos collection.
|
||||
/// </summary>
|
||||
musicvideos = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Home videos collection.
|
||||
/// </summary>
|
||||
homevideos = 6,
|
||||
/// <summary>
|
||||
/// Trailers collection.
|
||||
/// </summary>
|
||||
trailers = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Box sets collection.
|
||||
/// </summary>
|
||||
boxsets = 7,
|
||||
/// <summary>
|
||||
/// Home videos collection.
|
||||
/// </summary>
|
||||
homevideos = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Books collection.
|
||||
/// </summary>
|
||||
books = 8,
|
||||
/// <summary>
|
||||
/// Box sets collection.
|
||||
/// </summary>
|
||||
boxsets = 7,
|
||||
|
||||
/// <summary>
|
||||
/// Photos collection.
|
||||
/// </summary>
|
||||
photos = 9,
|
||||
/// <summary>
|
||||
/// Books collection.
|
||||
/// </summary>
|
||||
books = 8,
|
||||
|
||||
/// <summary>
|
||||
/// Live tv collection.
|
||||
/// </summary>
|
||||
livetv = 10,
|
||||
/// <summary>
|
||||
/// Photos collection.
|
||||
/// </summary>
|
||||
photos = 9,
|
||||
|
||||
/// <summary>
|
||||
/// Playlists collection.
|
||||
/// </summary>
|
||||
playlists = 11,
|
||||
/// <summary>
|
||||
/// Live tv collection.
|
||||
/// </summary>
|
||||
livetv = 10,
|
||||
|
||||
/// <summary>
|
||||
/// Folders collection.
|
||||
/// </summary>
|
||||
folders = 12,
|
||||
/// <summary>
|
||||
/// Playlists collection.
|
||||
/// </summary>
|
||||
playlists = 11,
|
||||
|
||||
/// <summary>
|
||||
/// Tv show series collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvshowseries = 101,
|
||||
/// <summary>
|
||||
/// Folders collection.
|
||||
/// </summary>
|
||||
folders = 12,
|
||||
|
||||
/// <summary>
|
||||
/// Tv genres collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvgenres = 102,
|
||||
/// <summary>
|
||||
/// Tv show series collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvshowseries = 101,
|
||||
|
||||
/// <summary>
|
||||
/// Tv genre collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvgenre = 103,
|
||||
/// <summary>
|
||||
/// Tv genres collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvgenres = 102,
|
||||
|
||||
/// <summary>
|
||||
/// Tv latest collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvlatest = 104,
|
||||
/// <summary>
|
||||
/// Tv genre collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvgenre = 103,
|
||||
|
||||
/// <summary>
|
||||
/// Tv next up collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvnextup = 105,
|
||||
/// <summary>
|
||||
/// Tv latest collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvlatest = 104,
|
||||
|
||||
/// <summary>
|
||||
/// Tv resume collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvresume = 106,
|
||||
/// <summary>
|
||||
/// Tv next up collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvnextup = 105,
|
||||
|
||||
/// <summary>
|
||||
/// Tv favorite series collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvfavoriteseries = 107,
|
||||
/// <summary>
|
||||
/// Tv resume collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvresume = 106,
|
||||
|
||||
/// <summary>
|
||||
/// Tv favorite episodes collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvfavoriteepisodes = 108,
|
||||
/// <summary>
|
||||
/// Tv favorite series collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvfavoriteseries = 107,
|
||||
|
||||
/// <summary>
|
||||
/// Latest movies collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
movielatest = 109,
|
||||
/// <summary>
|
||||
/// Tv favorite episodes collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
tvfavoriteepisodes = 108,
|
||||
|
||||
/// <summary>
|
||||
/// Movies to resume collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
movieresume = 110,
|
||||
/// <summary>
|
||||
/// Latest movies collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
movielatest = 109,
|
||||
|
||||
/// <summary>
|
||||
/// Movie movie collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviemovies = 111,
|
||||
/// <summary>
|
||||
/// Movies to resume collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
movieresume = 110,
|
||||
|
||||
/// <summary>
|
||||
/// Movie collections collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviecollection = 112,
|
||||
/// <summary>
|
||||
/// Movie movie collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviemovies = 111,
|
||||
|
||||
/// <summary>
|
||||
/// Movie favorites collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviefavorites = 113,
|
||||
/// <summary>
|
||||
/// Movie collections collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviecollection = 112,
|
||||
|
||||
/// <summary>
|
||||
/// Movie genres collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviegenres = 114,
|
||||
/// <summary>
|
||||
/// Movie favorites collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviefavorites = 113,
|
||||
|
||||
/// <summary>
|
||||
/// Movie genre collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviegenre = 115
|
||||
/// <summary>
|
||||
/// Movie genres collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviegenres = 114,
|
||||
|
||||
/// <summary>
|
||||
/// Movie genre collection.
|
||||
/// </summary>
|
||||
[OpenApiIgnoreEnum]
|
||||
moviegenre = 115,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,24 +3,25 @@
|
||||
// </copyright>
|
||||
|
||||
#pragma warning disable SA1300 // Lowercase required for backwards compat.
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Jellyfin.Data.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// Media streaming protocol.
|
||||
/// Lowercase for backwards compatibility.
|
||||
/// </summary>
|
||||
[DefaultValue(http)]
|
||||
public enum MediaStreamProtocol
|
||||
namespace Jellyfin.Data.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// HTTP.
|
||||
/// </summary>
|
||||
http = 0,
|
||||
using System.ComponentModel;
|
||||
|
||||
/// <summary>
|
||||
/// HTTP Live Streaming.
|
||||
/// Media streaming protocol.
|
||||
/// Lowercase for backwards compatibility.
|
||||
/// </summary>
|
||||
hls = 1
|
||||
[DefaultValue(http)]
|
||||
public enum MediaStreamProtocol
|
||||
{
|
||||
/// <summary>
|
||||
/// HTTP.
|
||||
/// </summary>
|
||||
http = 0,
|
||||
|
||||
/// <summary>
|
||||
/// HTTP Live Streaming.
|
||||
/// </summary>
|
||||
hls = 1,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@ public enum MediaType
|
||||
/// <summary>
|
||||
/// Book media.
|
||||
/// </summary>
|
||||
Book = 4
|
||||
Book = 4,
|
||||
}
|
||||
|
||||
@@ -133,5 +133,5 @@ public enum PersonKind
|
||||
/// <summary>
|
||||
/// A person who renders a text from one language into another.
|
||||
/// </summary>
|
||||
Translator
|
||||
Translator,
|
||||
}
|
||||
|
||||
@@ -27,6 +27,6 @@ namespace Jellyfin.Data.Enums
|
||||
/// <summary>
|
||||
/// User must be in a group.
|
||||
/// </summary>
|
||||
IsInGroup = 3
|
||||
IsInGroup = 3,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +52,6 @@ namespace Jellyfin.Data.Enums
|
||||
/// <summary>
|
||||
/// Another type, not covered by the other fields.
|
||||
/// </summary>
|
||||
Other = 8
|
||||
Other = 8,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,5 +22,5 @@ public enum VideoRange
|
||||
/// <summary>
|
||||
/// HDR video range.
|
||||
/// </summary>
|
||||
HDR
|
||||
HDR,
|
||||
}
|
||||
|
||||
@@ -73,5 +73,5 @@ public enum VideoRangeType
|
||||
/// <summary>
|
||||
/// HDR10+ video range type (10bit to 16bit).
|
||||
/// </summary>
|
||||
HDR10Plus
|
||||
HDR10Plus,
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
#pragma warning disable SA1200 // using directive or a using-alias directive is placed outside of a namespace element
|
||||
|
||||
using System;
|
||||
|
||||
namespace Jellyfin.Data.Events
|
||||
@@ -18,7 +20,7 @@ namespace Jellyfin.Data.Events
|
||||
/// <param name="arg">The argument.</param>
|
||||
public GenericEventArgs(T arg)
|
||||
{
|
||||
Argument = arg;
|
||||
this.Argument = arg;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
#pragma warning disable CA1711 // Identifiers should not have incorrect suffix
|
||||
#pragma warning disable SA1200 // using directive or a using-alias directive is placed outside of a namespace element
|
||||
|
||||
using System;
|
||||
|
||||
namespace Jellyfin.Data.Events.System
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
#pragma warning disable SA1128 // Put constructor initializers on their own line
|
||||
|
||||
namespace Jellyfin.Data.Events.Users
|
||||
{
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// An event that occurs when a user is created.
|
||||
/// </summary>
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
#pragma warning disable SA1128 // Put constructor initializers on their own line
|
||||
|
||||
namespace Jellyfin.Data.Events.Users
|
||||
{
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// An event that occurs when a user is deleted.
|
||||
/// </summary>
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
#pragma warning disable SA1128 // Put constructor initializers on their own line
|
||||
|
||||
namespace Jellyfin.Data.Events.Users
|
||||
{
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// An event that occurs when a user is locked out.
|
||||
/// </summary>
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
#pragma warning disable SA1128 // Put constructor initializers on their own line
|
||||
|
||||
namespace Jellyfin.Data.Events.Users
|
||||
{
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// An event that occurs when a user's password has changed.
|
||||
/// </summary>
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
#pragma warning disable SA1128 // Put constructor initializers on their own line
|
||||
|
||||
namespace Jellyfin.Data.Events.Users
|
||||
{
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// An event that occurs when a user is updated.
|
||||
/// </summary>
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
namespace Jellyfin.Data.Queries;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Jellyfin.Data.Enums;
|
||||
using Jellyfin.Database.Implementations.Enums;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Jellyfin.Data.Queries;
|
||||
|
||||
/// <summary>
|
||||
/// A class representing a query to the activity logs.
|
||||
/// </summary>
|
||||
|
||||
@@ -2,28 +2,27 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
namespace Jellyfin.Data.Queries;
|
||||
|
||||
using System;
|
||||
|
||||
namespace Jellyfin.Data.Queries
|
||||
/// <summary>
|
||||
/// A query to retrieve devices.
|
||||
/// </summary>
|
||||
public class DeviceQuery : PaginatedQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// A query to retrieve devices.
|
||||
/// Gets or sets the user id of the device.
|
||||
/// </summary>
|
||||
public class DeviceQuery : PaginatedQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the user id of the device.
|
||||
/// </summary>
|
||||
public Guid? UserId { get; set; }
|
||||
public Guid? UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the device id.
|
||||
/// </summary>
|
||||
public string? DeviceId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the device id.
|
||||
/// </summary>
|
||||
public string? DeviceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the access token.
|
||||
/// </summary>
|
||||
public string? AccessToken { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the access token.
|
||||
/// </summary>
|
||||
public string? AccessToken { get; set; }
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
namespace Jellyfin.Data;
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
@@ -9,8 +11,6 @@ using Jellyfin.Database.Implementations.Entities;
|
||||
using Jellyfin.Database.Implementations.Enums;
|
||||
using Jellyfin.Database.Implementations.Interfaces;
|
||||
|
||||
namespace Jellyfin.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Contains extension methods for manipulation of <see cref="User"/> entities.
|
||||
/// </summary>
|
||||
@@ -29,6 +29,7 @@ public static class UserEntityExtensions
|
||||
/// <returns><c>True</c> if the user has the specified permission.</returns>
|
||||
public static bool HasPermission(this IHasPermissions entity, PermissionKind kind)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(entity);
|
||||
return entity.Permissions.FirstOrDefault(p => p.Kind == kind)?.Value ?? false;
|
||||
}
|
||||
|
||||
@@ -40,6 +41,7 @@ public static class UserEntityExtensions
|
||||
/// <param name="value">The value to set.</param>
|
||||
public static void SetPermission(this IHasPermissions entity, PermissionKind kind, bool value)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(entity);
|
||||
var currentPermission = entity.Permissions.FirstOrDefault(p => p.Kind == kind);
|
||||
if (currentPermission is null)
|
||||
{
|
||||
@@ -59,6 +61,7 @@ public static class UserEntityExtensions
|
||||
/// <returns>A string array containing the user's preferences.</returns>
|
||||
public static string[] GetPreference(this User entity, PreferenceKind preference)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(entity);
|
||||
var val = entity.Preferences.FirstOrDefault(p => p.Kind == preference)?.Value;
|
||||
|
||||
return string.IsNullOrEmpty(val) ? Array.Empty<string>() : val.Split(Delimiter);
|
||||
@@ -73,6 +76,7 @@ public static class UserEntityExtensions
|
||||
/// <returns>A {T} array containing the user's preference.</returns>
|
||||
public static T[] GetPreferenceValues<T>(this User entity, PreferenceKind preference)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(entity);
|
||||
var val = entity.Preferences.FirstOrDefault(p => p.Kind == preference)?.Value;
|
||||
if (string.IsNullOrEmpty(val))
|
||||
{
|
||||
@@ -111,6 +115,7 @@ public static class UserEntityExtensions
|
||||
/// <param name="values">The values.</param>
|
||||
public static void SetPreference(this User entity, PreferenceKind preference, string[] values)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(entity);
|
||||
var value = string.Join(Delimiter, values);
|
||||
var currentPreference = entity.Preferences.FirstOrDefault(p => p.Kind == preference);
|
||||
if (currentPreference is null)
|
||||
@@ -132,6 +137,7 @@ public static class UserEntityExtensions
|
||||
/// <typeparam name="T">The type of value.</typeparam>
|
||||
public static void SetPreference<T>(this User entity, PreferenceKind preference, T[] values)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(entity);
|
||||
var value = string.Join(Delimiter, values);
|
||||
var currentPreference = entity.Preferences.FirstOrDefault(p => p.Kind == preference);
|
||||
if (currentPreference is null)
|
||||
@@ -151,6 +157,7 @@ public static class UserEntityExtensions
|
||||
/// <returns><c>True</c> if the current time is within an access schedule, or there are no access schedules.</returns>
|
||||
public static bool IsParentalScheduleAllowed(this User entity)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(entity);
|
||||
return entity.AccessSchedules.Count == 0
|
||||
|| entity.AccessSchedules.Any(i => IsParentalScheduleAllowed(i, DateTime.UtcNow));
|
||||
}
|
||||
@@ -173,6 +180,7 @@ public static class UserEntityExtensions
|
||||
// TODO: make these user configurable?
|
||||
public static void AddDefaultPermissions(this User entity)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(entity);
|
||||
entity.Permissions.Add(new Permission(PermissionKind.IsAdministrator, false));
|
||||
entity.Permissions.Add(new Permission(PermissionKind.IsDisabled, false));
|
||||
entity.Permissions.Add(new Permission(PermissionKind.IsHidden, true));
|
||||
@@ -207,6 +215,7 @@ public static class UserEntityExtensions
|
||||
{
|
||||
foreach (var val in Enum.GetValues<PreferenceKind>())
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(entity);
|
||||
entity.Preferences.Add(new Preference(val, string.Empty));
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>Jellyfin.CodeAnalysis</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:Jellyfin.CodeAnalysis.AsyncDisposalPatternAnalyzer">
|
||||
<summary>
|
||||
Analyzer to detect sync disposal of async-created IAsyncDisposable objects.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:Jellyfin.CodeAnalysis.AsyncDisposalPatternAnalyzer.AsyncDisposableSyncDisposal">
|
||||
<summary>
|
||||
Diagnostic descriptor for sync disposal of async-created IAsyncDisposable objects.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Jellyfin.CodeAnalysis.AsyncDisposalPatternAnalyzer.SupportedDiagnostics">
|
||||
<inheritdoc/>
|
||||
</member>
|
||||
<member name="M:Jellyfin.CodeAnalysis.AsyncDisposalPatternAnalyzer.Initialize(Microsoft.CodeAnalysis.Diagnostics.AnalysisContext)">
|
||||
<inheritdoc/>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
@@ -0,0 +1,461 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v10.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v10.0": {
|
||||
"Jellyfin.Data/10.12.0": {
|
||||
"dependencies": {
|
||||
"Jellyfin.CodeAnalysis": "1.0.0",
|
||||
"Jellyfin.Database.Implementations": "10.11.0",
|
||||
"Jellyfin.Sdk": "2025.10.21",
|
||||
"Microsoft.Extensions.Logging": "10.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"Jellyfin.Data.dll": {}
|
||||
}
|
||||
},
|
||||
"Jellyfin.Sdk/2025.10.21": {
|
||||
"dependencies": {
|
||||
"Microsoft.Kiota.Abstractions": "1.20.1",
|
||||
"Microsoft.Kiota.Http.HttpClientLibrary": "1.20.1",
|
||||
"Microsoft.Kiota.Serialization.Form": "1.20.1",
|
||||
"Microsoft.Kiota.Serialization.Json": "1.20.1",
|
||||
"Microsoft.Kiota.Serialization.Multipart": "1.20.1",
|
||||
"Microsoft.Kiota.Serialization.Text": "1.20.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Jellyfin.Sdk.dll": {
|
||||
"assemblyVersion": "2025.10.21.0",
|
||||
"fileVersion": "2025.10.21.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore/10.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.EntityFrameworkCore.Abstractions": "10.0.3",
|
||||
"Microsoft.Extensions.Caching.Memory": "10.0.3",
|
||||
"Microsoft.Extensions.Logging": "10.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net10.0/Microsoft.EntityFrameworkCore.dll": {
|
||||
"assemblyVersion": "10.0.3.0",
|
||||
"fileVersion": "10.0.326.7603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Abstractions/10.0.3": {
|
||||
"runtime": {
|
||||
"lib/net10.0/Microsoft.EntityFrameworkCore.Abstractions.dll": {
|
||||
"assemblyVersion": "10.0.3.0",
|
||||
"fileVersion": "10.0.326.7603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Relational/10.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.EntityFrameworkCore": "10.0.3",
|
||||
"Microsoft.Extensions.Caching.Memory": "10.0.3",
|
||||
"Microsoft.Extensions.Configuration.Abstractions": "10.0.3",
|
||||
"Microsoft.Extensions.Logging": "10.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net10.0/Microsoft.EntityFrameworkCore.Relational.dll": {
|
||||
"assemblyVersion": "10.0.3.0",
|
||||
"fileVersion": "10.0.326.7603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Caching.Abstractions/10.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Primitives": "10.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net10.0/Microsoft.Extensions.Caching.Abstractions.dll": {
|
||||
"assemblyVersion": "10.0.0.0",
|
||||
"fileVersion": "10.0.326.7603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Caching.Memory/10.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Caching.Abstractions": "10.0.3",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "10.0.3",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "10.0.3",
|
||||
"Microsoft.Extensions.Options": "10.0.3",
|
||||
"Microsoft.Extensions.Primitives": "10.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net10.0/Microsoft.Extensions.Caching.Memory.dll": {
|
||||
"assemblyVersion": "10.0.0.0",
|
||||
"fileVersion": "10.0.326.7603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.Abstractions/10.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Primitives": "10.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net10.0/Microsoft.Extensions.Configuration.Abstractions.dll": {
|
||||
"assemblyVersion": "10.0.0.0",
|
||||
"fileVersion": "10.0.326.7603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection/10.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "10.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net10.0/Microsoft.Extensions.DependencyInjection.dll": {
|
||||
"assemblyVersion": "10.0.0.0",
|
||||
"fileVersion": "10.0.326.7603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions/10.0.3": {
|
||||
"runtime": {
|
||||
"lib/net10.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
|
||||
"assemblyVersion": "10.0.0.0",
|
||||
"fileVersion": "10.0.326.7603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Logging/10.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.DependencyInjection": "10.0.3",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "10.0.3",
|
||||
"Microsoft.Extensions.Options": "10.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net10.0/Microsoft.Extensions.Logging.dll": {
|
||||
"assemblyVersion": "10.0.0.0",
|
||||
"fileVersion": "10.0.326.7603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Logging.Abstractions/10.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "10.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net10.0/Microsoft.Extensions.Logging.Abstractions.dll": {
|
||||
"assemblyVersion": "10.0.0.0",
|
||||
"fileVersion": "10.0.326.7603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Options/10.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "10.0.3",
|
||||
"Microsoft.Extensions.Primitives": "10.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net10.0/Microsoft.Extensions.Options.dll": {
|
||||
"assemblyVersion": "10.0.0.0",
|
||||
"fileVersion": "10.0.326.7603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Primitives/10.0.3": {
|
||||
"runtime": {
|
||||
"lib/net10.0/Microsoft.Extensions.Primitives.dll": {
|
||||
"assemblyVersion": "10.0.0.0",
|
||||
"fileVersion": "10.0.326.7603"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Kiota.Abstractions/1.20.1": {
|
||||
"dependencies": {
|
||||
"Std.UriTemplate": "2.0.5"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Kiota.Abstractions.dll": {
|
||||
"assemblyVersion": "1.20.1.0",
|
||||
"fileVersion": "1.20.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Kiota.Http.HttpClientLibrary/1.20.1": {
|
||||
"dependencies": {
|
||||
"Microsoft.Kiota.Abstractions": "1.20.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Kiota.Http.HttpClientLibrary.dll": {
|
||||
"assemblyVersion": "1.20.1.0",
|
||||
"fileVersion": "1.20.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Kiota.Serialization.Form/1.20.1": {
|
||||
"dependencies": {
|
||||
"Microsoft.Kiota.Abstractions": "1.20.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Kiota.Serialization.Form.dll": {
|
||||
"assemblyVersion": "1.20.1.0",
|
||||
"fileVersion": "1.20.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Kiota.Serialization.Json/1.20.1": {
|
||||
"dependencies": {
|
||||
"Microsoft.Kiota.Abstractions": "1.20.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Kiota.Serialization.Json.dll": {
|
||||
"assemblyVersion": "1.20.1.0",
|
||||
"fileVersion": "1.20.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Kiota.Serialization.Multipart/1.20.1": {
|
||||
"dependencies": {
|
||||
"Microsoft.Kiota.Abstractions": "1.20.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Kiota.Serialization.Multipart.dll": {
|
||||
"assemblyVersion": "1.20.1.0",
|
||||
"fileVersion": "1.20.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Kiota.Serialization.Text/1.20.1": {
|
||||
"dependencies": {
|
||||
"Microsoft.Kiota.Abstractions": "1.20.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/Microsoft.Kiota.Serialization.Text.dll": {
|
||||
"assemblyVersion": "1.20.1.0",
|
||||
"fileVersion": "1.20.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Polly/8.6.5": {
|
||||
"dependencies": {
|
||||
"Polly.Core": "8.6.5"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/Polly.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.6.5.5194"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Polly.Core/8.6.5": {
|
||||
"runtime": {
|
||||
"lib/net8.0/Polly.Core.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.6.5.5194"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Std.UriTemplate/2.0.5": {
|
||||
"runtime": {
|
||||
"lib/net5.0/Std.UriTemplate.dll": {
|
||||
"assemblyVersion": "2.0.5.0",
|
||||
"fileVersion": "2.0.5.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Jellyfin.CodeAnalysis/1.0.0": {
|
||||
"dependencies": {
|
||||
"Jellyfin.Sdk": "2025.10.21"
|
||||
},
|
||||
"runtime": {
|
||||
"Jellyfin.CodeAnalysis.dll": {
|
||||
"assemblyVersion": "1.0.0.0",
|
||||
"fileVersion": "1.0.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Jellyfin.Database.Implementations/10.11.0": {
|
||||
"dependencies": {
|
||||
"Jellyfin.CodeAnalysis": "1.0.0",
|
||||
"Microsoft.EntityFrameworkCore.Relational": "10.0.3",
|
||||
"Polly": "8.6.5"
|
||||
},
|
||||
"runtime": {
|
||||
"Jellyfin.Database.Implementations.dll": {
|
||||
"assemblyVersion": "10.12.0.0",
|
||||
"fileVersion": "10.12.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Jellyfin.Data/10.12.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"Jellyfin.Sdk/2025.10.21": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-1pG60suEiV3v77zqLd5fO9S8m8qryxj9mZYb24Me1XgSXlaCIt0SC1V1sbFKyoG70Q3n915wT4Ko4BUanorRug==",
|
||||
"path": "jellyfin.sdk/2025.10.21",
|
||||
"hashPath": "jellyfin.sdk.2025.10.21.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore/10.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-CDEImwD4A7BseABJMCpLZnhfFjmPY/bHwhhS70elc6gLI/bYUEOhxWt7PmaNGYGhIEzOnStlCy5QcVb+8dod5Q==",
|
||||
"path": "microsoft.entityframeworkcore/10.0.3",
|
||||
"hashPath": "microsoft.entityframeworkcore.10.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Abstractions/10.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-c7Uoz381xnMHNBRB8eHRhGgzUtXbgddlbODhwZRrTSzZWDharp3RkJsFwhxyESbeXhCqmML7VdvjMQ7uu+HreA==",
|
||||
"path": "microsoft.entityframeworkcore.abstractions/10.0.3",
|
||||
"hashPath": "microsoft.entityframeworkcore.abstractions.10.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Relational/10.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-Pmh60OK9neVr/M0FJwm9hlzm2bD4Kd65SID8E6SP5c90tExNgXwORrlEWl0oGU/ig9ifpNN4PSpIrnHNozlT5w==",
|
||||
"path": "microsoft.entityframeworkcore.relational/10.0.3",
|
||||
"hashPath": "microsoft.entityframeworkcore.relational.10.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Caching.Abstractions/10.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-5dtXBvI8t3z8pF4tB38JYgi/enCL/DwSXxpqShgFz3SHJ7IzqFIMs6Gu5ik8sNZzcO9qQs3xIDpB3vDamkYG+Q==",
|
||||
"path": "microsoft.extensions.caching.abstractions/10.0.3",
|
||||
"hashPath": "microsoft.extensions.caching.abstractions.10.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Caching.Memory/10.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-No4fVh0z30SWqiWFRoA4PNdrEco6OjXvCqRFvlmRgDQqqks2bRDdeavUgWEiAX153ZAwW9loUgbxcvuP4NKQLg==",
|
||||
"path": "microsoft.extensions.caching.memory/10.0.3",
|
||||
"hashPath": "microsoft.extensions.caching.memory.10.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.Abstractions/10.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-xVDHL0+SIgemfh95fTO9cGLe17TWv/ZP0n7m01z8X6pzt2DmQpucioWR/mYZA1sRlkWnkXzfl0JweLNWmE9WMg==",
|
||||
"path": "microsoft.extensions.configuration.abstractions/10.0.3",
|
||||
"hashPath": "microsoft.extensions.configuration.abstractions.10.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection/10.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-2DLOmC0EkB2smVK8lPP1PIKEgL1arE3CMp9XSIQB/Y7ev5nnnyuM/PizKJ6QfLD08QCYoopSC9SFdbYglDomYg==",
|
||||
"path": "microsoft.extensions.dependencyinjection/10.0.3",
|
||||
"hashPath": "microsoft.extensions.dependencyinjection.10.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions/10.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-bwGMrRcAMWx2s/RDgja97p27rxSz2pEQW0+rX5cWAUWVETVJ/eyxGfjAl8vuG5a+lckWmPIE+vcuaZNVB5YDdw==",
|
||||
"path": "microsoft.extensions.dependencyinjection.abstractions/10.0.3",
|
||||
"hashPath": "microsoft.extensions.dependencyinjection.abstractions.10.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Logging/10.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-8D9Er1cGXNjNDIB+VLBNHn386L5ls2FoiG9a6o12gyn+GG3w6jdfUhzT8dtBnKcevE7/fsVA8MS3FBgFfClFtQ==",
|
||||
"path": "microsoft.extensions.logging/10.0.3",
|
||||
"hashPath": "microsoft.extensions.logging.10.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Logging.Abstractions/10.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-lxl0WLk7ROgBFAsjcOYjQ8/DVK+VMszxGBzUhgtQmAsTNldLL5pk9NG/cWTsXHq0lUhUEAtZkEE7jOGOA8bGKQ==",
|
||||
"path": "microsoft.extensions.logging.abstractions/10.0.3",
|
||||
"hashPath": "microsoft.extensions.logging.abstractions.10.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Options/10.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-hU6WzGTPvPoLA2ng1ILvWQb3g0qORdlHNsxI8IcPLumJb3suimYUl+bbDzdo1V4KFsvVhnMWzysHpKbZaoDQPQ==",
|
||||
"path": "microsoft.extensions.options/10.0.3",
|
||||
"hashPath": "microsoft.extensions.options.10.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Primitives/10.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-GEcpTwo7sUoLGGNTqV1FZEuL+tTD9m81NX/mh099dqGNna07/UGZShKQNZRw4hv6nlliSUwYQgSYc7OR99Jufg==",
|
||||
"path": "microsoft.extensions.primitives/10.0.3",
|
||||
"hashPath": "microsoft.extensions.primitives.10.0.3.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Kiota.Abstractions/1.20.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-bv1n2gnxA/O+1a26h3YB6bgcc3ZSLCjRumMh7sVkFmksLaVonhcrJpUrEtBlnnYPrnHwzm/1BYQnYjCVG7A+fA==",
|
||||
"path": "microsoft.kiota.abstractions/1.20.1",
|
||||
"hashPath": "microsoft.kiota.abstractions.1.20.1.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Kiota.Http.HttpClientLibrary/1.20.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-pQzs+9n3QAG/FKFwgIaRE0EqOXfW3rWliOdk9XZbghyRdeAtiQjSbJbpascdZlf7uatLpPYA145q6MYpLxvsgA==",
|
||||
"path": "microsoft.kiota.http.httpclientlibrary/1.20.1",
|
||||
"hashPath": "microsoft.kiota.http.httpclientlibrary.1.20.1.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Kiota.Serialization.Form/1.20.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-n7izb8GZSoatmFSpMaHmh78U3oW+YdYb2gDwhkG86COHuiGWV9s0BKBeUlFakAV00CDwaH9iFqxCQ0veYVkG1A==",
|
||||
"path": "microsoft.kiota.serialization.form/1.20.1",
|
||||
"hashPath": "microsoft.kiota.serialization.form.1.20.1.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Kiota.Serialization.Json/1.20.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-4MumZe45DI/o1YP+hq7wyArOHDhjkSiu14ysN4xWKe6vwlu43BUYydA/yT0CtjoPwbFW/6jfx/NVSvM3DzBzbg==",
|
||||
"path": "microsoft.kiota.serialization.json/1.20.1",
|
||||
"hashPath": "microsoft.kiota.serialization.json.1.20.1.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Kiota.Serialization.Multipart/1.20.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-tP7ZxA1zsIi3FE8CHwfA5JnzlW1NYld+LpFihFq+S7IXFDv1x37I968lPKGIdEpWW9vWacuqDQVKIyJiKZ257A==",
|
||||
"path": "microsoft.kiota.serialization.multipart/1.20.1",
|
||||
"hashPath": "microsoft.kiota.serialization.multipart.1.20.1.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Kiota.Serialization.Text/1.20.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-Cue4l9AeU0WgL2CdUW8K58BMwQOyiHgT7aCov2qGEKpmpeWQj7cmAWCgxDfPHYPkZtz1Ccbrw4/6KrDgCmrC3Q==",
|
||||
"path": "microsoft.kiota.serialization.text/1.20.1",
|
||||
"hashPath": "microsoft.kiota.serialization.text.1.20.1.nupkg.sha512"
|
||||
},
|
||||
"Polly/8.6.5": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-VqtW2ZE/ALvQMAH1cQY3qZ2cF2OXa3oe/HKMdOv6Q02HCoEW0rsFNfcBONXlHBe1TnjWW1vdRxBEkPeq0/2FHA==",
|
||||
"path": "polly/8.6.5",
|
||||
"hashPath": "polly.8.6.5.nupkg.sha512"
|
||||
},
|
||||
"Polly.Core/8.6.5": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-t+sUVrIwvo7UmsgHGgOG9F0GDZSRIm47u2ylH17Gvcv1q5hNEwgD5GoBlFyc0kh/pebmPyrAgvGsR/65ZBaXlg==",
|
||||
"path": "polly.core/8.6.5",
|
||||
"hashPath": "polly.core.8.6.5.nupkg.sha512"
|
||||
},
|
||||
"Std.UriTemplate/2.0.5": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-PtqPdWNBObRcDHjyjbgOz2XoCJQaiA+HNDPQve/O7yGCkospfHDCuH9ULVx1msImwHHG+uhpDjiZX7bpLN/cnw==",
|
||||
"path": "std.uritemplate/2.0.5",
|
||||
"hashPath": "std.uritemplate.2.0.5.nupkg.sha512"
|
||||
},
|
||||
"Jellyfin.CodeAnalysis/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"Jellyfin.Database.Implementations/10.11.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -1 +1 @@
|
||||
ceaa91a5c5ec9124d1529284418af5db64b490937ad54f85e57513b5d03afc95
|
||||
3830fdc1e1abfc1a4e9eae455e6fd43e54500311710ea424492686e858f0a20f
|
||||
|
||||
@@ -1,3 +1,22 @@
|
||||
C:\Projects\pgsql-jellyfin\Jellyfin.Data\obj\Debug\net10.0\Jellyfin.Data.csproj.AssemblyReference.cache
|
||||
C:\Projects\pgsql-jellyfin\Jellyfin.Data\obj\Debug\net10.0\Jellyfin.Data.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\Jellyfin.Data\obj\Debug\net10.0\Jellyfin.Data.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\obj\Debug\net10.0\Jellyfin.Data.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\obj\Debug\net10.0\Jellyfin.Data.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\obj\Debug\net10.0\Jellyfin.Data.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\obj\Debug\net10.0\Jellyfin.Data.xml
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\bin\Debug\net10.0\Jellyfin.Data.deps.json
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\bin\Debug\net10.0\Jellyfin.Data.dll
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\bin\Debug\net10.0\Jellyfin.Data.pdb
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\bin\Debug\net10.0\Jellyfin.Data.xml
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\bin\Debug\net10.0\Jellyfin.CodeAnalysis.dll
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\bin\Debug\net10.0\Jellyfin.Database.Implementations.dll
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\bin\Debug\net10.0\Jellyfin.CodeAnalysis.pdb
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\bin\Debug\net10.0\Jellyfin.CodeAnalysis.xml
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\bin\Debug\net10.0\Jellyfin.Database.Implementations.pdb
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\bin\Debug\net10.0\Jellyfin.Database.Implementations.xml
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\obj\Debug\net10.0\Jellyfin.B884D0AA.Up2Date
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\obj\Debug\net10.0\Jellyfin.Data.dll
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\obj\Debug\net10.0\refint\Jellyfin.Data.dll
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\obj\Debug\net10.0\Jellyfin.Data.pdb
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Data\obj\Debug\net10.0\ref\Jellyfin.Data.dll
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
4ebd387e21606a11f29ddb8016fa2507f255e81421c7ba077b0b47e8d2a18296
|
||||
d1eb00cacfd33b56f483e3a8d9e456e5d30f7535c294f2b56aa29eca2f28919b
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
C:\Projects\pgsql-jellyfin\Jellyfin.Server.Implementations\obj\Debug\net10.0\Jellyfin.Server.Implementations.csproj.AssemblyReference.cache
|
||||
C:\Projects\pgsql-jellyfin\Jellyfin.Server.Implementations\obj\Debug\net10.0\Jellyfin.Server.Implementations.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\Jellyfin.Server.Implementations\obj\Debug\net10.0\Jellyfin.Server.Implementations.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Server.Implementations\obj\Debug\net10.0\Jellyfin.Server.Implementations.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Server.Implementations\obj\Debug\net10.0\Jellyfin.Server.Implementations.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Server.Implementations\obj\Debug\net10.0\Jellyfin.Server.Implementations.csproj.CoreCompileInputs.cache
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
d2f95863a9600605fdb2b2708cf2bfc69e48f7e43d84ceabb7bcaf57a21d180d
|
||||
b3779413f844448ca41905720eba7a362836e9a726cb68cf84c9fc51daefb0e9
|
||||
|
||||
@@ -3,3 +3,8 @@ C:\Projects\pgsql-jellyfin\Jellyfin.Server\obj\Debug\net10.0\rpswa.dswa.cache.js
|
||||
C:\Projects\pgsql-jellyfin\Jellyfin.Server\obj\Debug\net10.0\Jellyfin.Server.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\Jellyfin.Server\obj\Debug\net10.0\Jellyfin.Server.csproj.CoreCompileInputs.cache
|
||||
C:\Projects\pgsql-jellyfin\Jellyfin.Server\obj\Debug\net10.0\jellyfin.MvcApplicationPartsAssemblyInfo.cache
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Server\obj\Debug\net10.0\Jellyfin.Server.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Server\obj\Debug\net10.0\rpswa.dswa.cache.json
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Server\obj\Debug\net10.0\Jellyfin.Server.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Server\obj\Debug\net10.0\Jellyfin.Server.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\Jellyfin.Server\obj\Debug\net10.0\jellyfin.MvcApplicationPartsAssemblyInfo.cache
|
||||
|
||||
BIN
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
1fed7ecba8d3922a9226dab0994e07db89438757b28efdcde87a20342f43b43f
|
||||
ea1900ada7e71b699cc8b32fc18ed9c2c4c85d035c2a9f53d43b9e309a7daf47
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.Common\obj\Debug\net10.0\MediaBrowser.Common.csproj.AssemblyReference.cache
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.Common\obj\Debug\net10.0\MediaBrowser.Common.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.Common\obj\Debug\net10.0\MediaBrowser.Common.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Common\obj\Debug\net10.0\MediaBrowser.Common.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Common\obj\Debug\net10.0\MediaBrowser.Common.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Common\obj\Debug\net10.0\MediaBrowser.Common.csproj.CoreCompileInputs.cache
|
||||
|
||||
BIN
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
577163823b694177a623d0ede8f099f28422a4bdc1c2b6ddb59627f270978e26
|
||||
95ba3425bbce8008be2cbdd53ecf5180a49b86ed3caa3066b3b1c0b0bf2eb499
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.Controller\obj\Debug\net10.0\MediaBrowser.Controller.csproj.AssemblyReference.cache
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.Controller\obj\Debug\net10.0\MediaBrowser.Controller.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.Controller\obj\Debug\net10.0\MediaBrowser.Controller.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Controller\obj\Debug\net10.0\MediaBrowser.Controller.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Controller\obj\Debug\net10.0\MediaBrowser.Controller.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Controller\obj\Debug\net10.0\MediaBrowser.Controller.csproj.CoreCompileInputs.cache
|
||||
|
||||
BIN
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
a2233bb24d31e3f2ee663fac46990c42fa7890f3675b62b06ee7a98a90783d15
|
||||
c4fb102f36ba07eddc44c38bcf6c5e2848d2fa8f2723c61b3026314ee2491817
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.LocalMetadata\obj\Debug\net10.0\MediaBrowser.LocalMetadata.csproj.AssemblyReference.cache
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.LocalMetadata\obj\Debug\net10.0\MediaBrowser.LocalMetadata.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.LocalMetadata\obj\Debug\net10.0\MediaBrowser.LocalMetadata.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.LocalMetadata\obj\Debug\net10.0\MediaBrowser.LocalMetadata.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.LocalMetadata\obj\Debug\net10.0\MediaBrowser.LocalMetadata.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.LocalMetadata\obj\Debug\net10.0\MediaBrowser.LocalMetadata.csproj.CoreCompileInputs.cache
|
||||
|
||||
BIN
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
a48a7690550baf3bbe9ecabd5d234aa53a39cd379397dd9d6a0f996bd028404f
|
||||
d8480ae4c903492a0e9e6e299a1ba4ea7dbbc520ebaf221417b319341e04a58f
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.MediaEncoding\obj\Debug\net10.0\MediaBrowser.MediaEncoding.csproj.AssemblyReference.cache
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.MediaEncoding\obj\Debug\net10.0\MediaBrowser.MediaEncoding.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.MediaEncoding\obj\Debug\net10.0\MediaBrowser.MediaEncoding.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.MediaEncoding\obj\Debug\net10.0\MediaBrowser.MediaEncoding.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.MediaEncoding\obj\Debug\net10.0\MediaBrowser.MediaEncoding.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.MediaEncoding\obj\Debug\net10.0\MediaBrowser.MediaEncoding.csproj.CoreCompileInputs.cache
|
||||
|
||||
BIN
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
a6e0d72e09b51608ade5b97739fc7d0b94bd4119cb73bf3e176894e14fded06b
|
||||
4d6ced8a676ca84ec08b198262bcbd68d1eff6ed316612d11ebde55f3a905528
|
||||
|
||||
@@ -2,3 +2,7 @@ C:\Projects\pgsql-jellyfin\MediaBrowser.Model\obj\Debug\net10.0\NuGet\55D74E64AE
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.Model\obj\Debug\net10.0\MediaBrowser.Model.csproj.AssemblyReference.cache
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.Model\obj\Debug\net10.0\MediaBrowser.Model.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.Model\obj\Debug\net10.0\MediaBrowser.Model.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Model\obj\Debug\net10.0\NuGet\56CB1F26329E58CE\MimeTypes\2.5.2\MimeTypes.Nullable.cs
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Model\obj\Debug\net10.0\MediaBrowser.Model.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Model\obj\Debug\net10.0\MediaBrowser.Model.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Model\obj\Debug\net10.0\MediaBrowser.Model.csproj.CoreCompileInputs.cache
|
||||
|
||||
BIN
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
c32e8e5235494f120555a86a2b37bef84f7862cc220cf8d1201e6e4e79d56c0e
|
||||
1b5762457f1bd7714a346bc46fded4aad9bbe06c832681bcdc0ebab8e8c4396b
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.Providers\obj\Debug\net10.0\MediaBrowser.Providers.csproj.AssemblyReference.cache
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.Providers\obj\Debug\net10.0\MediaBrowser.Providers.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.Providers\obj\Debug\net10.0\MediaBrowser.Providers.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Providers\obj\Debug\net10.0\MediaBrowser.Providers.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Providers\obj\Debug\net10.0\MediaBrowser.Providers.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.Providers\obj\Debug\net10.0\MediaBrowser.Providers.csproj.CoreCompileInputs.cache
|
||||
|
||||
BIN
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
b29dc5fc9fd1572dd1c0cab4ea21283d4f4bf2d1e6fb1d1afc9c6d0c9e226d59
|
||||
7838ecb7ace3f7daa4e1e8726991a5cf7fe45065d0501d77a0b0747b4083395b
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.XbmcMetadata\obj\Debug\net10.0\MediaBrowser.XbmcMetadata.csproj.AssemblyReference.cache
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.XbmcMetadata\obj\Debug\net10.0\MediaBrowser.XbmcMetadata.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Projects\pgsql-jellyfin\MediaBrowser.XbmcMetadata\obj\Debug\net10.0\MediaBrowser.XbmcMetadata.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.XbmcMetadata\obj\Debug\net10.0\MediaBrowser.XbmcMetadata.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.XbmcMetadata\obj\Debug\net10.0\MediaBrowser.XbmcMetadata.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\MediaBrowser.XbmcMetadata\obj\Debug\net10.0\MediaBrowser.XbmcMetadata.csproj.CoreCompileInputs.cache
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+1
-1
@@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Jellyfin.CodeAnalysis")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+036953f3ffd782d56040af1332c53c54c7107be2")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f47555f2aa4eff7dcc5c5ef5bbda374f292f0638")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Jellyfin.CodeAnalysis")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Jellyfin.CodeAnalysis")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
14abb783c55dca9d506ea58b2fb4e83cf46869fbb125fd5d419b7cd5ec04579a
|
||||
cfe4822f334685403d8dd28c9794902cf41ac16cf3fdae734ed53b2348acf886
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
925762113528dbfe64b2ae859ceacd4178e352a947de363b76e06cbd504b0ecf
|
||||
e7c17426fec14bd402397d7c8b6303a56fe39a7ababbc3fc41dcceedc7dc82f3
|
||||
|
||||
+12
@@ -10,3 +10,15 @@ C:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\bin\Debug\netstandard2.0\Je
|
||||
C:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\bin\Debug\netstandard2.0\Jellyfin.CodeAnalysis.xml
|
||||
C:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\obj\Debug\netstandard2.0\Jellyfin.CodeAnalysis.dll
|
||||
C:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\obj\Debug\netstandard2.0\Jellyfin.CodeAnalysis.pdb
|
||||
E:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\bin\Debug\netstandard2.0\Jellyfin.CodeAnalysis.deps.json
|
||||
E:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\bin\Debug\netstandard2.0\Jellyfin.CodeAnalysis.dll
|
||||
E:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\bin\Debug\netstandard2.0\Jellyfin.CodeAnalysis.pdb
|
||||
E:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\bin\Debug\netstandard2.0\Jellyfin.CodeAnalysis.xml
|
||||
E:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\obj\Debug\netstandard2.0\Jellyfin.CodeAnalysis.csproj.AssemblyReference.cache
|
||||
E:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\obj\Debug\netstandard2.0\Jellyfin.CodeAnalysis.GeneratedMSBuildEditorConfig.editorconfig
|
||||
E:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\obj\Debug\netstandard2.0\Jellyfin.CodeAnalysis.AssemblyInfoInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\obj\Debug\netstandard2.0\Jellyfin.CodeAnalysis.AssemblyInfo.cs
|
||||
E:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\obj\Debug\netstandard2.0\Jellyfin.CodeAnalysis.csproj.CoreCompileInputs.cache
|
||||
E:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\obj\Debug\netstandard2.0\Jellyfin.CodeAnalysis.dll
|
||||
E:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\obj\Debug\netstandard2.0\Jellyfin.CodeAnalysis.xml
|
||||
E:\Projects\pgsql-jellyfin\src\Jellyfin.CodeAnalysis\obj\Debug\netstandard2.0\Jellyfin.CodeAnalysis.pdb
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+55
-55
@@ -3,64 +3,64 @@
|
||||
// </copyright>
|
||||
|
||||
namespace Jellyfin.Database.Implementations.Entities
|
||||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Xml.Serialization;
|
||||
using Jellyfin.Database.Implementations.Enums;
|
||||
|
||||
// <summary>
|
||||
// An entity representing a user's access schedule.
|
||||
// </summary>
|
||||
public class AccessSchedule
|
||||
{
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Xml.Serialization;
|
||||
using Jellyfin.Database.Implementations.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AccessSchedule"/> class.
|
||||
/// An entity representing a user's access schedule.
|
||||
/// </summary>
|
||||
/// <param name="dayOfWeek">The day of the week.</param>
|
||||
/// <param name="startHour">The start hour.</param>
|
||||
/// <param name="endHour">The end hour.</param>
|
||||
/// <param name="userId">The associated user's id.</param>
|
||||
public AccessSchedule(DynamicDayOfWeek dayOfWeek, double startHour, double endHour, Guid userId)
|
||||
public class AccessSchedule
|
||||
{
|
||||
UserId = userId;
|
||||
DayOfWeek = dayOfWeek;
|
||||
StartHour = startHour;
|
||||
EndHour = endHour;
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AccessSchedule"/> class.
|
||||
/// </summary>
|
||||
/// <param name="dayOfWeek">The day of the week.</param>
|
||||
/// <param name="startHour">The start hour.</param>
|
||||
/// <param name="endHour">The end hour.</param>
|
||||
/// <param name="userId">The associated user's id.</param>
|
||||
public AccessSchedule(DynamicDayOfWeek dayOfWeek, double startHour, double endHour, Guid userId)
|
||||
{
|
||||
this.UserId = userId;
|
||||
this.DayOfWeek = dayOfWeek;
|
||||
this.StartHour = startHour;
|
||||
this.EndHour = endHour;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the id of this instance.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Identity, Indexed, Required.
|
||||
/// </remarks>
|
||||
[XmlIgnore]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the id of the associated user.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Guid UserId { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the day of week.
|
||||
/// </summary>
|
||||
/// <value>The day of week.</value>
|
||||
public DynamicDayOfWeek DayOfWeek { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the start hour.
|
||||
/// </summary>
|
||||
/// <value>The start hour.</value>
|
||||
public double StartHour { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the end hour.
|
||||
/// </summary>
|
||||
/// <value>The end hour.</value>
|
||||
public double EndHour { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the id of this instance.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Identity, Indexed, Required.
|
||||
/// </remarks>
|
||||
[XmlIgnore]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the id of the associated user.
|
||||
/// </summary>
|
||||
[XmlIgnore]
|
||||
public Guid UserId { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the day of week.
|
||||
/// </summary>
|
||||
/// <value>The day of week.</value>
|
||||
public DynamicDayOfWeek DayOfWeek { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the start hour.
|
||||
/// </summary>
|
||||
/// <value>The start hour.</value>
|
||||
public double StartHour { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the end hour.
|
||||
/// </summary>
|
||||
/// <value>The end hour.</value>
|
||||
public double EndHour { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -2,125 +2,132 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
namespace Jellyfin.Database.Implementations.Entities
|
||||
#pragma warning disable CA1724 //The type name conflicts in whole or in part with the namespace name (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1724)
|
||||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Jellyfin.Database.Implementations.Interfaces;
|
||||
using Microsoft.Extensions.Logging;
|
||||
namespace Jellyfin.Database.Implementations.Entities
|
||||
{
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Jellyfin.Database.Implementations.Interfaces;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
/// <summary>
|
||||
/// An entity referencing an activity log entry.
|
||||
/// </summary>
|
||||
public class ActivityLog : IHasConcurrencyToken
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ActivityLog"/> class.
|
||||
/// Public constructor with required data.
|
||||
/// </summary>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <param name="type">The type.</param>
|
||||
/// <param name="userId">The user id.</param>
|
||||
public ActivityLog(string name, string type, Guid userId)
|
||||
public class ActivityLog : IHasConcurrencyToken
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrEmpty(name);
|
||||
ArgumentException.ThrowIfNullOrEmpty(type);
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ActivityLog"/> class.
|
||||
/// Public constructor with required data.
|
||||
/// </summary>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <param name="type">The type.</param>
|
||||
/// <param name="userId">The user id.</param>
|
||||
public ActivityLog(string name, string type, Guid userId)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrEmpty(name);
|
||||
ArgumentException.ThrowIfNullOrEmpty(type);
|
||||
|
||||
Name = name;
|
||||
Type = type;
|
||||
UserId = userId;
|
||||
DateCreated = DateTime.UtcNow;
|
||||
LogSeverity = LogLevel.Information;
|
||||
}
|
||||
this.Name = name;
|
||||
this.Type = type;
|
||||
this.UserId = userId;
|
||||
this.DateCreated = DateTime.UtcNow;
|
||||
this.LogSeverity = LogLevel.Information;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the identity of this instance.
|
||||
/// </summary>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets the identity of this instance.
|
||||
/// </summary>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required, Max length = 512.
|
||||
/// </remarks>
|
||||
[MaxLength(512)]
|
||||
[StringLength(512)]
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required, Max length = 512.
|
||||
/// </remarks>
|
||||
[MaxLength(512)]
|
||||
[StringLength(512)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the overview.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Max length = 512.
|
||||
/// </remarks>
|
||||
[MaxLength(512)]
|
||||
[StringLength(512)]
|
||||
public string? Overview { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the overview.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Max length = 512.
|
||||
/// </remarks>
|
||||
[MaxLength(512)]
|
||||
[StringLength(512)]
|
||||
public string? Overview { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the short overview.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Max length = 512.
|
||||
/// </remarks>
|
||||
[MaxLength(512)]
|
||||
[StringLength(512)]
|
||||
public string? ShortOverview { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the short overview.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Max length = 512.
|
||||
/// </remarks>
|
||||
[MaxLength(512)]
|
||||
[StringLength(512)]
|
||||
public string? ShortOverview { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required, Max length = 256.
|
||||
/// </remarks>
|
||||
[MaxLength(256)]
|
||||
[StringLength(256)]
|
||||
public string Type { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the type.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required, Max length = 256.
|
||||
/// </remarks>
|
||||
[MaxLength(256)]
|
||||
[StringLength(256)]
|
||||
public string Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public Guid UserId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the user id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the item id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Max length = 256.
|
||||
/// </remarks>
|
||||
[MaxLength(256)]
|
||||
[StringLength(256)]
|
||||
public string? ItemId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the item id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Max length = 256.
|
||||
/// </remarks>
|
||||
[MaxLength(256)]
|
||||
[StringLength(256)]
|
||||
public string? ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the date created. This should be in UTC.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public DateTime DateCreated { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the date created. This should be in UTC.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public DateTime DateCreated { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the log severity. Default is <see cref="LogLevel.Trace"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public LogLevel LogSeverity { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the log severity. Default is <see cref="LogLevel.Trace"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public LogLevel LogSeverity { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
[ConcurrencyCheck]
|
||||
public uint RowVersion { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets the concurrency token used for optimistic concurrency control.
|
||||
/// </summary>
|
||||
[ConcurrencyCheck]
|
||||
public uint RowVersion { get; private set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public void OnSavingChanges()
|
||||
{
|
||||
RowVersion++;
|
||||
/// <summary>
|
||||
/// Updates the concurrency token before saving changes.
|
||||
/// </summary>
|
||||
public void OnSavingChanges()
|
||||
{
|
||||
this.RowVersion++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace Jellyfin.Database.Implementations.Entities;
|
||||
|
||||
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
|
||||
#pragma warning disable CA2227 // Collection properties should be read only
|
||||
#pragma warning disable SA1600 // Missing XML comment for publicly visible type or member
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
+4
-1
@@ -5,6 +5,9 @@
|
||||
namespace Jellyfin.Database.Implementations.Entities;
|
||||
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
#pragma warning disable SA1602
|
||||
#pragma warning disable CA1720
|
||||
public enum BaseItemExtraType
|
||||
{
|
||||
Unknown = 0,
|
||||
@@ -18,5 +21,5 @@ public enum BaseItemExtraType
|
||||
ThemeSong = 8,
|
||||
ThemeVideo = 9,
|
||||
Featurette = 10,
|
||||
Short = 11
|
||||
Short = 11,
|
||||
}
|
||||
|
||||
+73
-72
@@ -3,81 +3,82 @@
|
||||
// </copyright>
|
||||
|
||||
namespace Jellyfin.Database.Implementations.Entities
|
||||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
/// <summary>
|
||||
/// An entity that represents a user's custom display preferences for a specific item.
|
||||
/// </summary>
|
||||
public class CustomItemDisplayPreferences
|
||||
{
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CustomItemDisplayPreferences"/> class.
|
||||
/// An entity that represents a user's custom display preferences for a specific item.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user id.</param>
|
||||
/// <param name="itemId">The item id.</param>
|
||||
/// <param name="client">The client.</param>
|
||||
/// <param name="key">The preference key.</param>
|
||||
/// <param name="value">The preference value.</param>
|
||||
public CustomItemDisplayPreferences(Guid userId, Guid itemId, string client, string key, string? value)
|
||||
public class CustomItemDisplayPreferences
|
||||
{
|
||||
UserId = userId;
|
||||
ItemId = itemId;
|
||||
Client = client;
|
||||
Key = key;
|
||||
Value = value;
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CustomItemDisplayPreferences"/> class.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user id.</param>
|
||||
/// <param name="itemId">The item id.</param>
|
||||
/// <param name="client">The client.</param>
|
||||
/// <param name="key">The preference key.</param>
|
||||
/// <param name="value">The preference value.</param>
|
||||
public CustomItemDisplayPreferences(Guid userId, Guid itemId, string client, string key, string? value)
|
||||
{
|
||||
this.UserId = userId;
|
||||
this.ItemId = itemId;
|
||||
this.Client = client;
|
||||
this.Key = key;
|
||||
this.Value = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user Id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the id of the associated item.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public Guid ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the client string.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required. Max Length = 32.
|
||||
/// </remarks>
|
||||
[MaxLength(32)]
|
||||
[StringLength(32)]
|
||||
public string Client { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the preference key.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public string Key { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the preference value.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public string? Value { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user Id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the id of the associated item.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public Guid ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the client string.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required. Max Length = 32.
|
||||
/// </remarks>
|
||||
[MaxLength(32)]
|
||||
[StringLength(32)]
|
||||
public string Client { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the preference key.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public string Key { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the preference value.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public string? Value { get; set; }
|
||||
}
|
||||
|
||||
+144
-143
@@ -2,154 +2,155 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
#pragma warning disable CA1724 //The type name conflicts in whole or in part with the namespace name (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1724)
|
||||
|
||||
namespace Jellyfin.Database.Implementations.Entities
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Jellyfin.Database.Implementations.Enums;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// An entity representing a user's display preferences.
|
||||
/// </summary>
|
||||
public class DisplayPreferences
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Jellyfin.Database.Implementations.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DisplayPreferences"/> class.
|
||||
/// An entity representing a user's display preferences.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user's id.</param>
|
||||
/// <param name="itemId">The item id.</param>
|
||||
/// <param name="client">The client string.</param>
|
||||
public DisplayPreferences(Guid userId, Guid itemId, string client)
|
||||
public class DisplayPreferences
|
||||
{
|
||||
UserId = userId;
|
||||
ItemId = itemId;
|
||||
Client = client;
|
||||
ShowSidebar = false;
|
||||
ShowBackdrop = true;
|
||||
SkipForwardLength = 30000;
|
||||
SkipBackwardLength = 10000;
|
||||
ScrollDirection = ScrollDirection.Horizontal;
|
||||
ChromecastVersion = ChromecastVersion.Stable;
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DisplayPreferences"/> class.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user's id.</param>
|
||||
/// <param name="itemId">The item id.</param>
|
||||
/// <param name="client">The client string.</param>
|
||||
public DisplayPreferences(Guid userId, Guid itemId, string client)
|
||||
{
|
||||
this.UserId = userId;
|
||||
this.ItemId = itemId;
|
||||
this.Client = client;
|
||||
this.ShowSidebar = false;
|
||||
this.ShowBackdrop = true;
|
||||
this.SkipForwardLength = 30000;
|
||||
this.SkipBackwardLength = 10000;
|
||||
this.ScrollDirection = ScrollDirection.Horizontal;
|
||||
this.ChromecastVersion = ChromecastVersion.Stable;
|
||||
|
||||
HomeSections = new HashSet<HomeSection>();
|
||||
this.HomeSections = new HashSet<HomeSection>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user Id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the id of the associated item.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public Guid ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the client string.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required. Max Length = 32.
|
||||
/// </remarks>
|
||||
[MaxLength(32)]
|
||||
[StringLength(32)]
|
||||
public string Client { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether to show the sidebar.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public bool ShowSidebar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether to show the backdrop.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public bool ShowBackdrop { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the scroll direction.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public ScrollDirection ScrollDirection { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets what the view should be indexed by.
|
||||
/// </summary>
|
||||
public IndexingKind? IndexBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the length of time to skip forwards, in milliseconds.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public int SkipForwardLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the length of time to skip backwards, in milliseconds.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public int SkipBackwardLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Chromecast Version.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public ChromecastVersion ChromecastVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the next video info overlay should be shown.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public bool EnableNextVideoInfoOverlay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the dashboard theme.
|
||||
/// </summary>
|
||||
[MaxLength(32)]
|
||||
[StringLength(32)]
|
||||
public string? DashboardTheme { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the tv home screen.
|
||||
/// </summary>
|
||||
[MaxLength(32)]
|
||||
[StringLength(32)]
|
||||
public string? TvHome { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the home sections.
|
||||
/// </summary>
|
||||
public virtual ICollection<HomeSection> HomeSections { get; private set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user Id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the id of the associated item.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public Guid ItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the client string.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required. Max Length = 32.
|
||||
/// </remarks>
|
||||
[MaxLength(32)]
|
||||
[StringLength(32)]
|
||||
public string Client { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether to show the sidebar.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public bool ShowSidebar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether to show the backdrop.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public bool ShowBackdrop { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the scroll direction.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public ScrollDirection ScrollDirection { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets what the view should be indexed by.
|
||||
/// </summary>
|
||||
public IndexingKind? IndexBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the length of time to skip forwards, in milliseconds.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public int SkipForwardLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the length of time to skip backwards, in milliseconds.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public int SkipBackwardLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Chromecast Version.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public ChromecastVersion ChromecastVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the next video info overlay should be shown.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public bool EnableNextVideoInfoOverlay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the dashboard theme.
|
||||
/// </summary>
|
||||
[MaxLength(32)]
|
||||
[StringLength(32)]
|
||||
public string? DashboardTheme { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the tv home screen.
|
||||
/// </summary>
|
||||
[MaxLength(32)]
|
||||
[StringLength(32)]
|
||||
public string? TvHome { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the home sections.
|
||||
/// </summary>
|
||||
public virtual ICollection<HomeSection> HomeSections { get; private set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -3,68 +3,68 @@
|
||||
// </copyright>
|
||||
|
||||
namespace Jellyfin.Database.Implementations.Entities
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Jellyfin.Database.Implementations.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// An entity representing a group.
|
||||
/// </summary>
|
||||
public class Group : IHasPermissions, IHasConcurrencyToken
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Jellyfin.Database.Implementations.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Group"/> class.
|
||||
/// An entity representing a group.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the group.</param>
|
||||
public Group(string name)
|
||||
public class Group : IHasPermissions, IHasConcurrencyToken
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrEmpty(name);
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Group"/> class.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the group.</param>
|
||||
public Group(string name)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrEmpty(name);
|
||||
|
||||
Name = name;
|
||||
Id = Guid.NewGuid();
|
||||
this.Name = name;
|
||||
this.Id = Guid.NewGuid();
|
||||
|
||||
Permissions = new HashSet<Permission>();
|
||||
Preferences = new HashSet<Preference>();
|
||||
}
|
||||
this.Permissions = new HashSet<Permission>();
|
||||
this.Preferences = new HashSet<Preference>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the id of this group.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Identity, Indexed, Required.
|
||||
/// </remarks>
|
||||
public Guid Id { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets the id of this group.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Identity, Indexed, Required.
|
||||
/// </remarks>
|
||||
public Guid Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the group's name.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required, Max length = 255.
|
||||
/// </remarks>
|
||||
[MaxLength(255)]
|
||||
[StringLength(255)]
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the group's name.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required, Max length = 255.
|
||||
/// </remarks>
|
||||
[MaxLength(255)]
|
||||
[StringLength(255)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
[ConcurrencyCheck]
|
||||
public uint RowVersion { get; private set; }
|
||||
/// <inheritdoc />
|
||||
[ConcurrencyCheck]
|
||||
public uint RowVersion { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a collection containing the group's permissions.
|
||||
/// </summary>
|
||||
public virtual ICollection<Permission> Permissions { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets a collection containing the group's permissions.
|
||||
/// </summary>
|
||||
public virtual ICollection<Permission> Permissions { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a collection containing the group's preferences.
|
||||
/// </summary>
|
||||
public virtual ICollection<Preference> Preferences { get; private set; }
|
||||
/// <summary>
|
||||
/// Gets a collection containing the group's preferences.
|
||||
/// </summary>
|
||||
public virtual ICollection<Preference> Preferences { get; private set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public void OnSavingChanges()
|
||||
{
|
||||
RowVersion++;
|
||||
/// <inheritdoc />
|
||||
public void OnSavingChanges()
|
||||
{
|
||||
this.RowVersion++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,46 +3,46 @@
|
||||
// </copyright>
|
||||
|
||||
namespace Jellyfin.Database.Implementations.Entities
|
||||
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Jellyfin.Database.Implementations.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// An entity representing a section on the user's home page.
|
||||
/// </summary>
|
||||
public class HomeSection
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Identity. Required.
|
||||
/// </remarks>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Jellyfin.Database.Implementations.Enums;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the associated display preferences.
|
||||
/// An entity representing a section on the user's home page.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public int DisplayPreferencesId { get; set; }
|
||||
public class HomeSection
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Identity. Required.
|
||||
/// </remarks>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the order.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public int Order { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the Id of the associated display preferences.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public int DisplayPreferencesId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public HomeSectionType Type { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the order.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public int Order { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public HomeSectionType Type { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,55 +3,56 @@
|
||||
// </copyright>
|
||||
|
||||
namespace Jellyfin.Database.Implementations.Entities
|
||||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
/// <summary>
|
||||
/// An entity representing an image.
|
||||
/// </summary>
|
||||
public class ImageInfo
|
||||
{
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ImageInfo"/> class.
|
||||
/// An entity representing an image.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
public ImageInfo(string path)
|
||||
public class ImageInfo
|
||||
{
|
||||
Path = path;
|
||||
LastModified = DateTime.UtcNow;
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ImageInfo"/> class.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
public ImageInfo(string path)
|
||||
{
|
||||
this.Path = path;
|
||||
this.LastModified = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Identity, Indexed, Required.
|
||||
/// </remarks>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the user id.
|
||||
/// </summary>
|
||||
public Guid? UserId { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the path of the image.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
[MaxLength(512)]
|
||||
[StringLength(512)]
|
||||
public string Path { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the date last modified.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public DateTime LastModified { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Identity, Indexed, Required.
|
||||
/// </remarks>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the user id.
|
||||
/// </summary>
|
||||
public Guid? UserId { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the path of the image.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
[MaxLength(512)]
|
||||
[StringLength(512)]
|
||||
public string Path { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the date last modified.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public DateTime LastModified { get; set; }
|
||||
}
|
||||
|
||||
+1
-1
@@ -76,5 +76,5 @@ public enum ImageInfoImageType
|
||||
/// <summary>
|
||||
/// The user profile image.
|
||||
/// </summary>
|
||||
Profile = 12
|
||||
Profile = 12,
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user