aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/UserDtos
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Api/Models/UserDtos')
-rw-r--r--Jellyfin.Api/Models/UserDtos/AuthenticateUserByName.cs25
-rw-r--r--Jellyfin.Api/Models/UserDtos/CreateUserByName.cs25
-rw-r--r--Jellyfin.Api/Models/UserDtos/ForgotPasswordDto.cs19
-rw-r--r--Jellyfin.Api/Models/UserDtos/ForgotPasswordPinDto.cs19
-rw-r--r--Jellyfin.Api/Models/UserDtos/QuickConnectDto.cs19
-rw-r--r--Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs33
-rw-r--r--Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs41
7 files changed, 87 insertions, 94 deletions
diff --git a/Jellyfin.Api/Models/UserDtos/AuthenticateUserByName.cs b/Jellyfin.Api/Models/UserDtos/AuthenticateUserByName.cs
index 31208264f..70c18a98a 100644
--- a/Jellyfin.Api/Models/UserDtos/AuthenticateUserByName.cs
+++ b/Jellyfin.Api/Models/UserDtos/AuthenticateUserByName.cs
@@ -1,18 +1,17 @@
-namespace Jellyfin.Api.Models.UserDtos
+namespace Jellyfin.Api.Models.UserDtos;
+
+/// <summary>
+/// The authenticate user by name request body.
+/// </summary>
+public class AuthenticateUserByName
{
/// <summary>
- /// The authenticate user by name request body.
+ /// Gets or sets the username.
/// </summary>
- public class AuthenticateUserByName
- {
- /// <summary>
- /// Gets or sets the username.
- /// </summary>
- public string? Username { get; set; }
+ public string? Username { get; set; }
- /// <summary>
- /// Gets or sets the plain text password.
- /// </summary>
- public string? Pw { get; set; }
- }
+ /// <summary>
+ /// Gets or sets the plain text password.
+ /// </summary>
+ public string? Pw { get; set; }
}
diff --git a/Jellyfin.Api/Models/UserDtos/CreateUserByName.cs b/Jellyfin.Api/Models/UserDtos/CreateUserByName.cs
index 1c88d3628..0503c5d57 100644
--- a/Jellyfin.Api/Models/UserDtos/CreateUserByName.cs
+++ b/Jellyfin.Api/Models/UserDtos/CreateUserByName.cs
@@ -1,18 +1,17 @@
-namespace Jellyfin.Api.Models.UserDtos
+namespace Jellyfin.Api.Models.UserDtos;
+
+/// <summary>
+/// The create user by name request body.
+/// </summary>
+public class CreateUserByName
{
/// <summary>
- /// The create user by name request body.
+ /// Gets or sets the username.
/// </summary>
- public class CreateUserByName
- {
- /// <summary>
- /// Gets or sets the username.
- /// </summary>
- public string? Name { get; set; }
+ public string? Name { get; set; }
- /// <summary>
- /// Gets or sets the password.
- /// </summary>
- public string? Password { get; set; }
- }
+ /// <summary>
+ /// Gets or sets the password.
+ /// </summary>
+ public string? Password { get; set; }
}
diff --git a/Jellyfin.Api/Models/UserDtos/ForgotPasswordDto.cs b/Jellyfin.Api/Models/UserDtos/ForgotPasswordDto.cs
index b31c6539c..ebe9297ea 100644
--- a/Jellyfin.Api/Models/UserDtos/ForgotPasswordDto.cs
+++ b/Jellyfin.Api/Models/UserDtos/ForgotPasswordDto.cs
@@ -1,16 +1,15 @@
using System.ComponentModel.DataAnnotations;
-namespace Jellyfin.Api.Models.UserDtos
+namespace Jellyfin.Api.Models.UserDtos;
+
+/// <summary>
+/// Forgot Password request body DTO.
+/// </summary>
+public class ForgotPasswordDto
{
/// <summary>
- /// Forgot Password request body DTO.
+ /// Gets or sets the entered username to have its password reset.
/// </summary>
- public class ForgotPasswordDto
- {
- /// <summary>
- /// Gets or sets the entered username to have its password reset.
- /// </summary>
- [Required]
- public string? EnteredUsername { get; set; }
- }
+ [Required]
+ public string? EnteredUsername { get; set; }
}
diff --git a/Jellyfin.Api/Models/UserDtos/ForgotPasswordPinDto.cs b/Jellyfin.Api/Models/UserDtos/ForgotPasswordPinDto.cs
index 62780e23c..2949efe29 100644
--- a/Jellyfin.Api/Models/UserDtos/ForgotPasswordPinDto.cs
+++ b/Jellyfin.Api/Models/UserDtos/ForgotPasswordPinDto.cs
@@ -1,16 +1,15 @@
using System.ComponentModel.DataAnnotations;
-namespace Jellyfin.Api.Models.UserDtos
+namespace Jellyfin.Api.Models.UserDtos;
+
+/// <summary>
+/// Forgot Password Pin enter request body DTO.
+/// </summary>
+public class ForgotPasswordPinDto
{
/// <summary>
- /// Forgot Password Pin enter request body DTO.
+ /// Gets or sets the entered pin to have the password reset.
/// </summary>
- public class ForgotPasswordPinDto
- {
- /// <summary>
- /// Gets or sets the entered pin to have the password reset.
- /// </summary>
- [Required]
- public string? Pin { get; set; }
- }
+ [Required]
+ public string? Pin { get; set; }
}
diff --git a/Jellyfin.Api/Models/UserDtos/QuickConnectDto.cs b/Jellyfin.Api/Models/UserDtos/QuickConnectDto.cs
index 9493c08c2..245002f80 100644
--- a/Jellyfin.Api/Models/UserDtos/QuickConnectDto.cs
+++ b/Jellyfin.Api/Models/UserDtos/QuickConnectDto.cs
@@ -1,16 +1,15 @@
using System.ComponentModel.DataAnnotations;
-namespace Jellyfin.Api.Models.UserDtos
+namespace Jellyfin.Api.Models.UserDtos;
+
+/// <summary>
+/// The quick connect request body.
+/// </summary>
+public class QuickConnectDto
{
/// <summary>
- /// The quick connect request body.
+ /// Gets or sets the quick connect secret.
/// </summary>
- public class QuickConnectDto
- {
- /// <summary>
- /// Gets or sets the quick connect secret.
- /// </summary>
- [Required]
- public string Secret { get; set; } = null!;
- }
+ [Required]
+ public string Secret { get; set; } = null!;
}
diff --git a/Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs b/Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs
index 0a173ea1a..80b6203bc 100644
--- a/Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs
+++ b/Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs
@@ -1,23 +1,22 @@
-namespace Jellyfin.Api.Models.UserDtos
+namespace Jellyfin.Api.Models.UserDtos;
+
+/// <summary>
+/// The update user easy password request body.
+/// </summary>
+public class UpdateUserEasyPassword
{
/// <summary>
- /// The update user easy password request body.
+ /// Gets or sets the new sha1-hashed password.
/// </summary>
- public class UpdateUserEasyPassword
- {
- /// <summary>
- /// Gets or sets the new sha1-hashed password.
- /// </summary>
- public string? NewPassword { get; set; }
+ public string? NewPassword { get; set; }
- /// <summary>
- /// Gets or sets the new password.
- /// </summary>
- public string? NewPw { get; set; }
+ /// <summary>
+ /// Gets or sets the new password.
+ /// </summary>
+ public string? NewPw { get; set; }
- /// <summary>
- /// Gets or sets a value indicating whether to reset the password.
- /// </summary>
- public bool ResetPassword { get; set; }
- }
+ /// <summary>
+ /// Gets or sets a value indicating whether to reset the password.
+ /// </summary>
+ public bool ResetPassword { get; set; }
}
diff --git a/Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs b/Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs
index 8288dbbc4..5347fcc9a 100644
--- a/Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs
+++ b/Jellyfin.Api/Models/UserDtos/UpdateUserPassword.cs
@@ -1,28 +1,27 @@
-namespace Jellyfin.Api.Models.UserDtos
+namespace Jellyfin.Api.Models.UserDtos;
+
+/// <summary>
+/// The update user password request body.
+/// </summary>
+public class UpdateUserPassword
{
/// <summary>
- /// The update user password request body.
+ /// Gets or sets the current sha1-hashed password.
/// </summary>
- public class UpdateUserPassword
- {
- /// <summary>
- /// Gets or sets the current sha1-hashed password.
- /// </summary>
- public string? CurrentPassword { get; set; }
+ public string? CurrentPassword { get; set; }
- /// <summary>
- /// Gets or sets the current plain text password.
- /// </summary>
- public string? CurrentPw { get; set; }
+ /// <summary>
+ /// Gets or sets the current plain text password.
+ /// </summary>
+ public string? CurrentPw { get; set; }
- /// <summary>
- /// Gets or sets the new plain text password.
- /// </summary>
- public string? NewPw { get; set; }
+ /// <summary>
+ /// Gets or sets the new plain text password.
+ /// </summary>
+ public string? NewPw { get; set; }
- /// <summary>
- /// Gets or sets a value indicating whether to reset the password.
- /// </summary>
- public bool ResetPassword { get; set; }
- }
+ /// <summary>
+ /// Gets or sets a value indicating whether to reset the password.
+ /// </summary>
+ public bool ResetPassword { get; set; }
}