Home Manual Reference Source
public class | source

Profile

Profile domain model. A profile is part of a User and stores general information about the user.

Constructor Summary

Public Constructor
public

constructor(firstName: string, lastName: string, infix: string, gender: string, birthDate: Date)

Create a Profile.

Member Summary

Public Members
public

The birth date of the User.

public

The first name of the User.

public

The gender of the User.

public
public

The last name of the User.

Public Constructors

public constructor(firstName: string, lastName: string, infix: string, gender: string, birthDate: Date) source

Create a Profile.

Params:

NameTypeAttributeDescription
firstName string

The first name of the User.

lastName string

The last name of the User.

infix string
  • optional
  • nullable: true

The infix of the User's name.

gender string

The gender of the User.

birthDate Date

The birth date of the User.

Throw:

Error

firstName parameter of type "string" is required.

Error

lastName parameter of type "string" is required.

Error

gender parameter of type "string" is required.

Error

birthDate parameter of type "Date" is required.

Public Members

public birthDate: Date source

The birth date of the User.

public firstName: string source

The first name of the User.

public gender: string source

The gender of the User.

public infix: string source

public lastName: string source

The last name of the User.