protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request) { using (ILogMethod method = Log.LogMethod("MonTgtParser_PC_PlayerEnrollmentResponse_H2G", "CreateMonitorTarget")) { try { MonTgt_H2G_PC_PlayerEnrollmentResponse monTgt = request as MonTgt_H2G_PC_PlayerEnrollmentResponse; if (monTgt == null) { return(null); } FFTgt_H2G_PC_PlayerEnrollmentResponse ffTgt = new FFTgt_H2G_PC_PlayerEnrollmentResponse() { ErrorCode = monTgt.ErrorCode, DisplayMessageLength = monTgt.DisplayMessageLength, DisplayMessage = monTgt.DisplayMessage, }; return(ffTgt); } catch (Exception ex) { method.Exception(ex); return(null); } } }
public void SendPCPlayerEnrollmentResponse(PCEnrollementResponse pCEnrollmentParameterResponse, object requestId, int installationNo) { try { MonTgt_H2G_PC_PlayerEnrollmentResponse monTgt = new MonTgt_H2G_PC_PlayerEnrollmentResponse() { ErrorCode = Convert.ToByte(pCEnrollmentParameterResponse.ErrorCode), DisplayMessageLength = pCEnrollmentParameterResponse.ErrorMessage.Length, DisplayMessage = pCEnrollmentParameterResponse.ErrorMessage, }; EPIMsgProcessor.Current.SendCommand(installationNo, monTgt); } catch (Exception ex) { ExceptionManager.Publish(ex); } }