Owneat Technical Guide main Help

Class UserResponse

Namespace: Identity.Application.Responses.User
Assembly: Identity.Application.dll

Identity.Application.Responses.User.UserResponse is returned when you try to get a user from the server.

public sealed class UserResponse

Inheritance

object ← UserResponse

Inherited Members

object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Properties

Color

The color of the user

public long Color { get; set; }

Property Value

long

Email

The email address of the User.

public string Email { get; init; }

Property Value

string

Firstname

First name of the User.

public string Firstname { get; init; }

Property Value

string

Id

The unique username of the User.

public Guid Id { get; set; }

Property Value

Guid

Lastname

Last name of the User.

public string Lastname { get; init; }

Property Value

string

RestaurantId

The Id of the restaurant that is linked with the user.

public Guid? RestaurantId { get; set; }

Property Value

Guid?

RoleId

The role of the User.

public Guid RoleId { get; init; }

Property Value

Guid

SortingIndex

The SortingIndex of the user.

public int SortingIndex { get; set; }

Property Value

int

Username

The unique username of the User.

public string Username { get; init; }

Property Value

string

Methods

ConvertFromCreateCommand\(CreateUserCommand\)

public static UserResponse ConvertFromCreateCommand(CreateUserCommand commandToConvert)

Parameters

commandToConvert CreateUserCommand

Returns

UserResponse

ConvertFromUpdateCommand\(UpdateUserCommand\)

public static UserResponse ConvertFromUpdateCommand(UpdateUserCommand commandToConvert)

Parameters

commandToConvert UpdateUserCommand

Returns

UserResponse

ConvertFromUser\(User\)

public static UserResponse ConvertFromUser(User userToConvert)

Parameters

userToConvert User

Returns

UserResponse

Last modified: 21 May 2024