parent
c9669a0d21
commit
c2cdbc909b
@ -0,0 +1,23 @@
|
||||
namespace Jellyfin.Api.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum for user roles used in the authentication and authorization for the API.
|
||||
/// </summary>
|
||||
public enum UserRole
|
||||
{
|
||||
/// <summary>
|
||||
/// Guest user.
|
||||
/// </summary>
|
||||
Guest = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Regular user with no special privileges.
|
||||
/// </summary>
|
||||
User = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Administrator user with elevated privileges.
|
||||
/// </summary>
|
||||
Administrator = 2
|
||||
}
|
||||
}
|
@ -1,9 +1,23 @@
|
||||
namespace Jellyfin.Api.Models.Startup
|
||||
{
|
||||
/// <summary>
|
||||
/// The startup configuration DTO.
|
||||
/// </summary>
|
||||
public class StartupConfigurationDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets UI language culture.
|
||||
/// </summary>
|
||||
public string UICulture { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the metadata country code.
|
||||
/// </summary>
|
||||
public string MetadataCountryCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the preferred language for the metadata.
|
||||
/// </summary>
|
||||
public string PreferredMetadataLanguage { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,18 @@
|
||||
namespace Jellyfin.Api.Models.Startup
|
||||
{
|
||||
/// <summary>
|
||||
/// The startup user DTO.
|
||||
/// </summary>
|
||||
public class StartupUserDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the username.
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user's password.
|
||||
/// </summary>
|
||||
public string Password { get; set; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue