parent
d08bdfd961
commit
1d1fa50327
@ -1,23 +1,16 @@
|
|||||||
import {
|
import {
|
||||||
IsArray,
|
IsArray
|
||||||
IsInt
|
|
||||||
} from "class-validator";
|
} from "class-validator";
|
||||||
|
import { DistanceDonation } from './DistanceDonation';
|
||||||
import { Runner } from './Runner';
|
import { Runner } from './Runner';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the certificate runner class (from which the runner certificates get generated).
|
* Defines the certificate runner class (from which the runner certificates get generated).
|
||||||
*/
|
*/
|
||||||
export class CertificateRunner extends Runner {
|
export class CertificateRunner extends Runner {
|
||||||
|
|
||||||
/**
|
|
||||||
* The total distance ran by the runner.
|
|
||||||
*/
|
|
||||||
@IsInt()
|
|
||||||
distance: number;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array containing all distance donations associated with the runner.
|
* Array containing all distance donations associated with the runner.
|
||||||
*/
|
*/
|
||||||
@IsArray()
|
@IsArray()
|
||||||
distanceDonations: any[];
|
distanceDonations: DistanceDonation[];
|
||||||
}
|
}
|
||||||
|
@ -38,4 +38,10 @@ export class Runner {
|
|||||||
*/
|
*/
|
||||||
@IsObject()
|
@IsObject()
|
||||||
group: RunnerGroup;
|
group: RunnerGroup;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The total distance ran by the runner.
|
||||||
|
*/
|
||||||
|
@IsInt()
|
||||||
|
distance: number;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user