Fixed a few toString methods

This commit is contained in:
Alex Mikhalev 2017-10-04 13:51:06 -06:00
parent 00bd588794
commit 5d25ce7381
2 changed files with 6 additions and 6 deletions

View File

@ -41,7 +41,7 @@ export class Program {
} }
toString(): string { toString(): string {
return `Program{name="${this.name}", enabled=${this.enabled}, schedule=${this.schedule}, return `Program{name="${this.name}", enabled=${this.enabled}, schedule=${this.schedule}, ` +
sequence=${this.sequence}, running=${this.running}}`; `sequence=${this.sequence}, running=${this.running}}`;
} }
} }

View File

@ -30,9 +30,9 @@ export abstract class SprinklersDevice {
abstract unpauseSectionRunner(): Promise<{}>; abstract unpauseSectionRunner(): Promise<{}>;
toString(): string { toString(): string {
return `SprinklersDevice{id="${this.id}", connected=${this.connected}, return `SprinklersDevice{id="${this.id}", connected=${this.connected}, ` +
sections=${this.sections}, `sections=[${this.sections}], ` +
programs=${this.programs}, `programs=[${this.programs}], ` +
sectionRunner=${this.sectionRunner} }`; `sectionRunner=${this.sectionRunner} }`;
} }
} }