Files
agent/config-serializer/config-items/NoneAction.ts
2016-04-02 00:58:06 +02:00

27 lines
628 B
TypeScript

class NoneAction extends KeyAction {
_fromJsObject(jsObject: any): NoneAction {
this.assertKeyActionType(jsObject, KeyActionType.NoneAction, 'NoneAction');
return this;
}
_fromBinary(buffer: UhkBuffer): NoneAction {
this.readAndAssertKeyActionId(buffer, KeyActionId.NoneAction, 'NoneAction');
return this;
}
_toJsObject(): any {
return {
keyActionType: KeyActionType.NoneAction
};
}
_toBinary(buffer: UhkBuffer) {
buffer.writeUInt8(KeyActionId.NoneAction);
}
toString(): string {
return '<NoneAction>';
}
}