protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request) { FFTgt_G2H_GameMessage_SASCommand ffTgt = request as FFTgt_G2H_GameMessage_SASCommand; IMonitorEntity_MsgTgt tgtDest = null; if (ffTgt != null) { FF_AppId_LongPollCodes cmd = (FF_AppId_LongPollCodes)ffTgt.LongPollCommand; switch (cmd) { case FF_AppId_LongPollCodes.LPC_MachineEnable: tgtDest = new MonTgt_G2H_Client_EnableMachine() { FaultType = (int)FaultType_LongPollCode.LPC_EnableMachine, }; break; case FF_AppId_LongPollCodes.LPC_MachineDisable: tgtDest = new MonTgt_G2H_Client_DisableMachine() { FaultType = (int)FaultType_LongPollCode.LPC_DisableMachine, }; break; default: break; } } return tgtDest; }
protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request) { FFTgt_G2H_GameMessage_SASCommand ffTgt = request as FFTgt_G2H_GameMessage_SASCommand; IMonitorEntity_MsgTgt tgtDest = null; if (ffTgt != null) { FF_AppId_LongPollCodes cmd = (FF_AppId_LongPollCodes)ffTgt.LongPollCommand; switch (cmd) { case FF_AppId_LongPollCodes.LPC_MachineEnable: tgtDest = new MonTgt_G2H_Client_EnableMachine() { FaultType = (int)FaultType_LongPollCode.LPC_EnableMachine, }; break; case FF_AppId_LongPollCodes.LPC_MachineDisable: tgtDest = new MonTgt_G2H_Client_DisableMachine() { FaultType = (int)FaultType_LongPollCode.LPC_DisableMachine, }; break; default: break; } } return(tgtDest); }