Added a certificaterunner class

ref #1
This commit is contained in:
Nicolai Ort 2021-02-02 08:59:30 +01:00
parent aae4f507ea
commit d08bdfd961
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
import {
IsArray,
IsInt
} from "class-validator";
import { Runner } from './Runner';
/**
* Defines the certificate runner class (from which the runner certificates get generated).
*/
export class CertificateRunner extends Runner {
/**
* The total distance ran by the runner.
*/
@IsInt()
distance: number;
/**
* Array containing all distance donations associated with the runner.
*/
@IsArray()
distanceDonations: any[];
}