Table of Contents

Class UserCreationRequestDto

Namespace
GastroSky.Models.DTO.User
Assembly
GastroSky.Models.dll

Request DTO for the creation of a new GastroSky.Models.DTO.User.

public sealed class UserCreationRequestDto
Inheritance
UserCreationRequestDto
Inherited Members

Properties

Address

Address (street + house number).

public string? Address { get; set; }

Property Value

string

Claims

The GastroSky.Models.DTO.User's auth claims.

public ICollection<UserClaimRequestDto> Claims { get; set; }

Property Value

ICollection<UserClaimRequestDto>
See Also

CountryCodeISO

3-letter ISO code for the country of where the GastroSky.Models.DTO.User resides.

[StringLength(3)]
public string? CountryCodeISO { get; set; }

Property Value

string

Email

Username = the user's email address.

[Required]
[EmailAddress]
public string Email { get; set; }

Property Value

string

Language

The GastroSky.Models.DTO.User's preferred language.

public Language Language { get; set; }

Property Value

Language

Location

Address location (e.g. city name).

public string? Location { get; set; }

Property Value

string

Name

The new user's name (ideally, first + last name, whitespace-separated).

public string? Name { get; set; }

Property Value

string

PasswordHashSHA256

SHA-256 hash of the user's desired password, hex-encoded into a 64-character all-lowercase string.

[Required]
public string PasswordHashSHA256 { get; set; }

Property Value

string

Phone

Phone number.

[Phone]
public string? Phone { get; set; }

Property Value

string

ProfilePictureBytesBase64

Optional base64-encoded profile picture.

public string? ProfilePictureBytesBase64 { get; set; }

Property Value

string

Slug

User slug. If null this will be generated.

public string? Slug { get; set; }

Property Value

string

WebsiteURL

Optional URL of the GastroSky.Models.DTO.User's website (if they even have one).

[Url]
public string? WebsiteURL { get; set; }

Property Value

string

ZipCode

ZIP-code.

public string? ZipCode { get; set; }

Property Value

string