Files
node-screenlogic/messages/SLVersionMessage.js
2018-04-28 23:06:11 -05:00

28 lines
479 B
JavaScript
Executable File

'use strict';
const SLMessage = require('./SLMessage.js').SLMessage;
const MSG_ID = 8120;
exports.SLVersionMessage = class SLVersionMessage extends SLMessage {
constructor(buf) {
super(0, MSG_ID);
if (buf) {
this._wroteSize = true;
this.writeBuffer(buf, 0);
this.decode();
}
}
decode() {
super.decode();
this.version = this.readSLString();
}
static getResponseId() {
return MSG_ID + 1;
}
};