Browse Source

Fixed a few toString methods

update-deps
Alex Mikhalev 7 years ago
parent
commit
5d25ce7381
  1. 4
      common/sprinklers/Program.ts
  2. 8
      common/sprinklers/SprinklersDevice.ts

4
common/sprinklers/Program.ts

@ -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}}`;
} }
} }

8
common/sprinklers/SprinklersDevice.ts

@ -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} }`;
} }
} }

Loading…
Cancel
Save