Fixed a few toString methods
This commit is contained in:
parent
00bd588794
commit
5d25ce7381
@ -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}}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user