UNPKG

rainbird

Version:

The Rainbird library allows you to access your RainBird Controller.

21 lines 464 B
import { Buffer } from 'node:buffer'; import { Request } from './Request.js'; export class RawRequest extends Request { _type; _page; constructor(type, page) { super(); this._type = type; this._page = page; } get type() { return this._type; } get page() { return this._page; } toBuffer() { return Buffer.from([this.type, this.page]); } } //# sourceMappingURL=RawRequest.js.map