Table of Contents

Class UserModificationRequestDto

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

Request DTO for the modification of a GastroSky.Models.DTO.User account's details.

public sealed class UserModificationRequestDto
Inheritance
UserModificationRequestDto
Inherited Members

Properties

Address

New address.

public string? Address { get; set; }

Property Value

string

CountryCodeISO

New 3-letter ISO country code.

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

Property Value

string

Language

New user language preference value.

public Language Language { get; set; }

Property Value

Language

Location

New location (e.g. city name).

public string? Location { get; set; }

Property Value

string

Name

New user name (ideally first + last name, whitespace-separated).

public string? Name { get; set; }

Property Value

string

Phone

New phone number.

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

Property Value

string

ProfilePictureBytesBase64

New profile picture as base64-encoded string.

public string? ProfilePictureBytesBase64 { get; set; }

Property Value

string

Slug

The User.Slug that uniquely identifies the GastroSky.Models.DTO.User account that needs to be modified.

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

Property Value

string

WebsiteURL

New website URL.

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

Property Value

string

ZipCode

New ZIP-code.

public string? ZipCode { get; set; }

Property Value

string

Methods

CopyTo(User)

public void CopyTo(User user)

Parameters

user User

See Also