Added input class for contract generation

ref #1
This commit is contained in:
Nicolai Ort 2021-01-30 18:32:28 +01:00
parent d291cf0d1b
commit 63f9523766
1 changed files with 39 additions and 0 deletions

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;
}