Added the enabled flag for scanstations

ref #67
This commit is contained in:
2021-01-07 19:37:15 +01:00
parent 09b37f0ff2
commit 4f01baaa23
6 changed files with 86 additions and 22 deletions

View File

@@ -1,5 +1,6 @@
import {
IsBoolean,
IsInt,
IsNotEmpty,
@@ -48,6 +49,12 @@ export class ResponseScanStation {
@IsNotEmpty()
track: ResponseTrack;
/**
* Is this station enabled?
*/
@IsBoolean()
enabled?: boolean = true;
/**
* Creates a ResponseStatsClient object from a statsClient.
* @param client The statsClient the response shall be build for.
@@ -58,5 +65,6 @@ export class ResponseScanStation {
this.prefix = station.prefix;
this.key = "Only visible on creation.";
this.track = station.track;
this.enabled = station.enabled;
}
}