Skip to content

UserInformationDto

Namespace: SlottyMedia.Backend.Dtos

The User Information Data Transfer Object. It differs to UserDto by not persisting recentForums.

public class UserInformationDto

Inheritance ObjectUserInformationDto

Properties

UserId

Gets or sets the User Id.

public Nullable<Guid> UserId { get; set; }

Property Value

Nullable<Guid>

Username

Gets or sets the Username.

public string Username { get; set; }

Property Value

String

Description

Gets or sets the Description of the User.

public string Description { get; set; }

Property Value

String

ProfilePic

ProfilePic of a user

public string ProfilePic { get; set; }

Property Value

String

FriendsAmount

Amount of Follow4Follows of User

public int FriendsAmount { get; set; }

Property Value

Int32

SpacesAmount

Amount of Spaces of a User

public int SpacesAmount { get; set; }

Property Value

Int32

CreatedAt

Gets or sets the date and time when the User was created.

public DateTime CreatedAt { get; set; }

Property Value

DateTime

Constructors

UserInformationDto(Boolean)

Initializes a new instance of the UserInformationDto class.

public UserInformationDto(bool isLoading)

Parameters

isLoading Boolean

Methods

Mapper()

This method maps the UserInformationDto to the User Dao.

public UserDao Mapper()

Returns

UserDao

Mapper(UserDao)

Maps the User Dao to the UserInformationDto.

public UserInformationDto Mapper(UserDao user)

Parameters

user UserDao

Returns

UserInformationDto