"use strict" ; import { GW_FRAME_REQ } from "./common" ; import { CommandOriginator , PriorityLevel , ParameterActive , PriorityLevelInformation } from "./GW_COMMAND" ; import { ContactInputAssignment , LockPriorityLevel } from "./GW_CONTACTINPUT" ; import { Velocity } from "./GW_SYSTEMTABLE_DATA" ; export class GW_SET_CONTACT_INPUT_LINK_REQ extends GW_FRAME_REQ { constructor ( readonly ContactInputID , readonly ContactInputAssignment , readonly SuccessOutputID , readonly ErrorOutputID , readonly Position , readonly Velocity = 0 , readonly ActionID , readonly PriorityLevel = 3 , readonly CommandOriginator = 1 , readonly ParameterActive = 0 , readonly LockPriorityLevel = 0 , readonly PLI3 = PriorityLevelInformation . KeepCurrent , readonly PLI4 = PriorityLevelInformation . KeepCurrent , readonly PLI5 = PriorityLevelInformation . KeepCurrent , readonly PLI6 = PriorityLevelInformation . KeepCurrent , readonly PLI7 = PriorityLevelInformation . KeepCurrent ) { super ( 17 ) ; const buff = this . Data . slice ( this . offset ) ; buff . writeUInt8 ( this . ContactInputID , 0 ) ; buff . writeUInt8 ( this . ContactInputAssignment , 1 ) ; buff . writeUInt8 ( this . ActionID , 2 ) ; buff . writeUInt8 ( this . CommandOriginator , 3 ) ; buff . writeUInt8 ( this . PriorityLevel , 4 ) ; buff . writeUInt8 ( this . ParameterActive , 5 ) ; buff . writeUInt16BE ( this . Position , 6 ) ; buff . writeUInt8 ( this . Velocity , 8 ) ; buff . writeUInt8 ( this . LockPriorityLevel , 9 ) ; buff . writeUInt8 ( this . PLI3 , 10 ) ; buff . writeUInt8 ( this . PLI4 , 11 ) ; buff . writeUInt8 ( this . PLI5 , 12 ) ; buff . writeUInt8 ( this . PLI6 , 13 ) ; buff . writeUInt8 ( this . PLI7 , 14 ) ; buff . writeUInt8 ( this . SuccessOutputID , 15 ) ; buff . writeUInt8 ( this . ErrorOutputID , 16 ) ; } }