Implemented the basic request classes feature/1-input_classes #2

Merged
niggl merged 9 commits from feature/1-input_classes into dev 2021-02-03 16:49:23 +00:00
Showing only changes of commit 63f9523766 - Show all commits

View File

@ -0,0 +1,39 @@
import {
IsInt,
IsString
} from "class-validator";
/**
* Defines the contract runner class (from which the runner sponsoring contracts get generated).
*/
export class ContractRunner {
/**
* The runner's id.
*/
@IsInt()
id: number;
/**
* The runner's first name.
*/
@IsString()
firstname: string;
/**
* The runner's middle name.
*/
@IsString()
middlename?: string;
/**
* The runner's last name.
*/
@IsString()
lastname: string;
/**
* The runner's group.
*/
@IsString()
group: string;
}