2023-02-04 17:56:12 +01:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace Jellyfin.Api.Models.UserDtos;
|
2023-01-31 12:18:10 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The create user by name request body.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class CreateUserByName
|
2020-06-18 19:35:29 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2023-01-31 12:18:10 +01:00
|
|
|
|
/// Gets or sets the username.
|
2020-06-18 19:35:29 +02:00
|
|
|
|
/// </summary>
|
2023-02-04 17:56:12 +01:00
|
|
|
|
[Required]
|
2023-06-22 00:39:32 +02:00
|
|
|
|
public required string Name { get; set; }
|
2020-06-18 19:35:29 +02:00
|
|
|
|
|
2023-01-31 12:18:10 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the password.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? Password { get; set; }
|
2020-06-18 19:35:29 +02:00
|
|
|
|
}
|