@@ -11,12 +11,20 @@ import {
|
||||
IsString
|
||||
} from "class-validator";
|
||||
import { ScanStation } from '../entities/ScanStation';
|
||||
import { ResponseObjectType } from '../enums/ResponseObjectType';
|
||||
import { IResponse } from './IResponse';
|
||||
import { ResponseTrack } from './ResponseTrack';
|
||||
|
||||
/**
|
||||
* Defines the statsClient response.
|
||||
*/
|
||||
export class ResponseScanStation {
|
||||
export class ResponseScanStation implements IResponse {
|
||||
/**
|
||||
* The responseType.
|
||||
* This contains the type of class/entity this response contains.
|
||||
*/
|
||||
responseType: ResponseObjectType = ResponseObjectType.SCANSTATION;
|
||||
|
||||
/**
|
||||
* The client's id.
|
||||
*/
|
||||
@@ -64,7 +72,7 @@ export class ResponseScanStation {
|
||||
this.description = station.description;
|
||||
this.prefix = station.prefix;
|
||||
this.key = "Only visible on creation.";
|
||||
this.track = station.track;
|
||||
this.track = station.track.toResponse();
|
||||
this.enabled = station.enabled;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user