From 5d25ce738170a8214c1933ff96148ae62cfcdae7 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Wed, 4 Oct 2017 13:51:06 -0600 Subject: [PATCH] Fixed a few toString methods --- common/sprinklers/Program.ts | 4 ++-- common/sprinklers/SprinklersDevice.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/sprinklers/Program.ts b/common/sprinklers/Program.ts index fb937e9..c822562 100644 --- a/common/sprinklers/Program.ts +++ b/common/sprinklers/Program.ts @@ -41,7 +41,7 @@ export class Program { } toString(): string { - return `Program{name="${this.name}", enabled=${this.enabled}, schedule=${this.schedule}, - sequence=${this.sequence}, running=${this.running}}`; + return `Program{name="${this.name}", enabled=${this.enabled}, schedule=${this.schedule}, ` + + `sequence=${this.sequence}, running=${this.running}}`; } } diff --git a/common/sprinklers/SprinklersDevice.ts b/common/sprinklers/SprinklersDevice.ts index 3ef1f4b..e159c9c 100644 --- a/common/sprinklers/SprinklersDevice.ts +++ b/common/sprinklers/SprinklersDevice.ts @@ -30,9 +30,9 @@ export abstract class SprinklersDevice { abstract unpauseSectionRunner(): Promise<{}>; toString(): string { - return `SprinklersDevice{id="${this.id}", connected=${this.connected}, - sections=${this.sections}, - programs=${this.programs}, - sectionRunner=${this.sectionRunner} }`; + return `SprinklersDevice{id="${this.id}", connected=${this.connected}, ` + + `sections=[${this.sections}], ` + + `programs=[${this.programs}], ` + + `sectionRunner=${this.sectionRunner} }`; } }