mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
// ==========================================================================
|
|
// UserDto.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Squidex.Areas.Api.Controllers.Users.Models
|
|
{
|
|
public sealed class UserDto
|
|
{
|
|
/// <summary>
|
|
/// The id of the user.
|
|
/// </summary>
|
|
[Required]
|
|
public string Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// The email of the user. Unique value.
|
|
/// </summary>
|
|
[Required]
|
|
public string Email { get; set; }
|
|
|
|
/// <summary>
|
|
/// The url to the profile picture of the user.
|
|
/// </summary>
|
|
[Required]
|
|
public string PictureUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// The display name (usually first name and last name) of the user.
|
|
/// </summary>
|
|
[Required]
|
|
public string DisplayName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Determines if the user is locked.
|
|
/// </summary>
|
|
[Required]
|
|
public bool IsLocked { get; set; }
|
|
}
|
|
}
|
|
|