Files
agent/config-serializer/config-items/NoneAction.ts

23 lines
595 B
TypeScript

class NoneAction extends KeyAction implements Serializable<NoneAction> {
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: KeyActionId.NoneAction
};
}
toBinary(buffer: UhkBuffer) {
buffer.writeUInt8(KeyActionId.NoneAction);
}
}