Skip to main content

Class: DefaultReturn

default-return.dto.DefaultReturn

The default return type for requests that don't have a return value

Includes the current time and the operation performed

Constructors

constructor

new DefaultReturn(operation, result?, time?)

Parameters

NameTypeDefault valueDescription
operationstringundefinedA string representation of the operation performed
resultDefaultReturnResultDefaultReturnResult.SUCCESSThe result of the operation. Optional
timeDateundefinedThe time the operation was performed. Optional

Defined in

login-service/src/default-return.dto.ts:38

Properties

operation

Readonly operation: string

A string representation of the operation performed

Example

"self-register"

Defined in

login-service/src/default-return.dto.ts:16


result

Readonly result: DefaultReturnResult = DefaultReturnResult.SUCCESS

The result of the operation. Defaults to "success"

Example

"success"

Defined in

login-service/src/default-return.dto.ts:24


time

Readonly time: Date

The time the operation was performed. Defaults to the current date+time

Defined in

login-service/src/default-return.dto.ts:30