Runners now use the runnergroup class instead of strings

ref #1
This commit is contained in:
2021-02-02 08:50:31 +01:00
parent cb7325bbf9
commit aae4f507ea
2 changed files with 7 additions and 5 deletions
+41
View File
@@ -0,0 +1,41 @@
import {
IsInt,
IsObject,
IsString
} from "class-validator";
import { RunnerGroup } from './RunnerGroup';
/**
* Defines the contract runner class (from which the runner sponsoring contracts get generated).
*/
export class Runner {
/**
* 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.
*/
@IsObject()
group: RunnerGroup;
}