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.
39 lines
1.1 KiB
39 lines
1.1 KiB
// =========================================================================
|
|
// UserDto.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Squidex.Controllers.Api.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; }
|
|
}
|
|
}
|
|
|