Exemplo n.º 1
0
 protected override IFreeformEntity CreateEntityInternal(IMonitorEntity parent, IMonitorEntity request)
 {
     IMonitorEntity_Msg monMsg = request as IMonitorEntity_Msg;
     IFreeformEntity_Msg ffMsg = this.CreateFreeformMessage();
     ffMsg.IpAddress = monMsg.IpAddress;
     return ffMsg;
 }
        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;
        }
Exemplo n.º 3
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            using (ILogMethod method = Log.LogMethod("MonTgtParser_PC_NotificationResponse_G2H", "CreateMonitorTarget"))
            {
                try
                {
                    FFTgt_G2H_PC_NotificationResponse ffTgt = request as FFTgt_G2H_PC_NotificationResponse;
                    if (ffTgt == null)
                    {
                        return(null);
                    }

                    MonTgt_G2H_PC_NotificationResponse monTgt = new MonTgt_G2H_PC_NotificationResponse()
                    {
                        AcknowledgementType = ffTgt.AcknowledgementType,
                        PlayerAccNoLen      = ffTgt.PlayerAccNoLen,
                        PlayerAccNo         = ffTgt.PlayerAccNo
                    };
                    return(monTgt);
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                    return(null);
                }
            }
        }
Exemplo n.º 4
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            MonTgt_G2H_Meters          meters = parent as MonTgt_G2H_Meters;
            FFTgt_G2H_AccountingMeters tgtSrc = request as FFTgt_G2H_AccountingMeters;

            if (meters != null &&
                tgtSrc != null)
            {
                Parallel.ForEach <FFTgt_G2H_AccountingMeter>(tgtSrc.Meters,
                                                             (meter) =>
                {
                    MonTgt_G2H_Meter_MeterType meterId = MonTgt_G2H_Meter_MeterType.Unknown;
                    long meterValue = 0;

                    if (_meterMappings.ContainsKey(meter.MeterId))
                    {
                        meterId    = _meterMappings[meter.MeterId];
                        meterValue = (long)meter.Value;
                    }

                    if (meterId != MonTgt_G2H_Meter_MeterType.Unknown)
                    {
                        meters.Meters.Add(meterId,
                                          new MonTgt_G2H_Meter()
                        {
                            Type  = meterId,
                            Value = meterValue,
                        });
                    }
                });
            }
            return(null);
        }
Exemplo n.º 5
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            using (ILogMethod method = Log.LogMethod("MonTgtParser_PC_LimitReachedNotificationMessage_H2G", "CreateMonitorTarget"))
            {
                try
                {
                    MonTgt_H2G_PC_LimitReachedNotificationMessage monTgt = request as MonTgt_H2G_PC_LimitReachedNotificationMessage;
                    if (monTgt == null)
                    {
                        return(null);
                    }

                    FFTgt_H2G_PC_LimitReachedNotificationMessage ffTgt = new FFTgt_H2G_PC_LimitReachedNotificationMessage()
                    {
                        LockType             = monTgt.LockType,
                        DisplayTime          = monTgt.DisplayTime,
                        DisplayInterval      = monTgt.DisplayInterval,
                        DisplayMessageLength = monTgt.DisplayMessageLength,
                        DisplayMessage       = monTgt.DisplayMessage
                    };
                    return(ffTgt);
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                    return(null);
                }
            }
        }
Exemplo n.º 6
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            using (ILogMethod method = Log.LogMethod("MonTgtParser_PC_LimitReachedNotificationMessage_H2G", "CreateMonitorTarget"))
            {
                try
                {
                    MonTgt_H2G_PC_LimitReachedNotificationMessage monTgt = request as MonTgt_H2G_PC_LimitReachedNotificationMessage;
                    if (monTgt == null) return null;

                    FFTgt_H2G_PC_LimitReachedNotificationMessage ffTgt = new FFTgt_H2G_PC_LimitReachedNotificationMessage()
                    {
                        LockType = monTgt.LockType,
                        DisplayTime = monTgt.DisplayTime,
                        DisplayInterval = monTgt.DisplayInterval,
                        DisplayMessageLength = monTgt.DisplayMessageLength,
                        DisplayMessage = monTgt.DisplayMessage
                    };
                    return ffTgt;
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                    return null;
                }
            }
        }
Exemplo n.º 7
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            using (ILogMethod method = Log.LogMethod("MonTgtParser_PC_StatusRequest_G2H", "CreateMonitorTarget"))
            {
                try
                {
                    FFTgt_G2H_PC_StatusRequest ffTgt = request as FFTgt_G2H_PC_StatusRequest;
                    if (ffTgt == null)
                    {
                        return(null);
                    }

                    MonTgt_G2H_PC_StatusRequest monTgt = new MonTgt_G2H_PC_StatusRequest()
                    {
                        PlayerAccNoLen = ffTgt.PlayerAccNoLen,
                        PlayerAccNo    = ffTgt.PlayerAccNo,
                        PlayerPIN      = ffTgt.PlayerPIN,
                    };
                    return(monTgt);
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                    return(null);
                }
            }
        }
Exemplo n.º 8
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            using (ILogMethod method = Log.LogMethod("MonTgtParser_PC_StatusResponsePlayerCardIn_H2G", "CreateMonitorTarget"))
            {
                try
                {
                    MonTgt_H2G_PC_StatusResponsePlayerCardIn monTgt = request as MonTgt_H2G_PC_StatusResponsePlayerCardIn;
                    if (monTgt == null)
                    {
                        return(null);
                    }

                    FFTgt_H2G_PC_StatusResponsePlayerCardIn ffTgt = new FFTgt_H2G_PC_StatusResponsePlayerCardIn()
                    {
                        PCEnrolled     = monTgt.PCEnrolled,
                        HandlePulls    = monTgt.HandlePulls,
                        RatingInterval = monTgt.RatingInterval,
                    };
                    return(ffTgt);
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                    return(null);
                }
            }
        }
Exemplo n.º 9
0
 protected override IMonitorEntity CreateEntityInternal(IMonitorEntity parent, IFreeformEntity request)
 {
     IFreeformEntity_Msg msgFF = request as IFreeformEntity_Msg;
     IMonitorEntity_Msg msgMon = this.CreateMonitorMessage();
     msgMon.IpAddress = msgFF.IpAddress;
     return msgMon;
 }
        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);
        }
Exemplo n.º 11
0
        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);
                }
            }
        }
Exemplo n.º 12
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            using (ILogMethod method = Log.LogMethod("MonTgtParser_PC_EnrollmentParameterResponse_H2G", "CreateMonitorTarget"))
            {
                try
                {
                    MonTgt_H2G_PC_EnrollmentParameterResponse monTgt = request as MonTgt_H2G_PC_EnrollmentParameterResponse;
                    if (monTgt == null)
                    {
                        return(null);
                    }

                    FFTgt_H2G_PC_EnrollmentParameterResponse ffTgt = new FFTgt_H2G_PC_EnrollmentParameterResponse()
                    {
                        Status                  = monTgt.Status,
                        IsDayTimeBasis          = monTgt.IsDayTimeBasis,
                        DayDefaultTime          = monTgt.DayDefaultTime,
                        IsDayTimeBasisMandatory = monTgt.IsDayTimeBasisMandatory,

                        IsWeekTimeBasis          = monTgt.IsWeekTimeBasis,
                        WeekDefaultTime          = monTgt.WeekDefaultTime,
                        IsWeekTimeBasisMandatory = monTgt.IsWeekTimeBasisMandatory,

                        IsMonthTimeBasis          = monTgt.IsMonthTimeBasis,
                        MonthDefaultTime          = monTgt.MonthDefaultTime,
                        IsMonthTimeBasisMandatory = monTgt.IsMonthTimeBasisMandatory,

                        IsDayLossBasis          = monTgt.IsDayLossBasis,
                        DayDefaultLossValue     = monTgt.DayDefaultLossValue,
                        IsDayLossBasisMandatory = monTgt.IsMonthLossBasisMandatory,

                        IsWeekLossBasis          = monTgt.IsWeekLossBasis,
                        WeekDefaultLossValue     = monTgt.WeekDefaultLossValue,
                        IsWeekLossBasisMandatory = monTgt.IsWeekLossBasisMandatory,

                        IsDayWagerBasis          = monTgt.IsDayWagerBasis,
                        DayDefaultWager          = monTgt.DayDefaultWager,
                        IsDayWagerBasisMandatory = monTgt.IsDayWagerBasisMandatory,

                        IsWeekWagerBasis          = monTgt.IsWeekWagerBasis,
                        WeekDefaultWager          = monTgt.WeekDefaultWager,
                        IsWeekWagerBasisMandatory = monTgt.IsWeekWagerBasisMandatory,

                        IsMonthWagerBasis          = monTgt.IsMonthWagerBasis,
                        MonthDefaultWager          = monTgt.MonthDefaultWager,
                        IsMonthWagerBasisMandatory = monTgt.IsWeekWagerBasisMandatory,

                        DisplayMessageLength = monTgt.DisplayMessageLength,
                        DisplayMessage       = monTgt.DisplayMessage,
                    };
                    return(ffTgt);
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                    return(null);
                }
            }
        }
Exemplo n.º 13
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            using (ILogMethod method = Log.LogMethod("MonTgtParser_PC_RelaxedLimitEffectiveNotificationMsg_H2G", "CreateMonitorTarget"))
            {
                try
                {
                    MonTgt_H2G_PC_RelaxedLimitEffectiveNotificationMsg monTgt = request as MonTgt_H2G_PC_RelaxedLimitEffectiveNotificationMsg;
                    if (monTgt == null)
                    {
                        return(null);
                    }

                    FFTgt_H2G_PC_RelaxedLimitEffectiveNotificationMsg ffTgt = new FFTgt_H2G_PC_RelaxedLimitEffectiveNotificationMsg()
                    {
                        IsDayTimeBasisChanged = monTgt.IsDayTimeBasisChanged,
                        DayNewTargetTime      = monTgt.DayNewTargetTime,
                        DayOldTargetTime      = monTgt.DayOldTargetTime,

                        IsWeekTimeBasisChanged = monTgt.IsWeekTimeBasisChanged,
                        WeekNewTargetTime      = monTgt.WeekNewTargetTime,
                        WeekOldTargetTime      = monTgt.WeekOldTargetTime,

                        IsMonthTimeBasisChanged = monTgt.IsMonthTimeBasisChanged,
                        MonthNewTargetTime      = monTgt.MonthNewTargetTime,
                        MonthOldTargetTime      = monTgt.MonthOldTargetTime,

                        IsDayLossBasisChanged = monTgt.IsDayLossBasisChanged,
                        DayNewTargetLoss      = monTgt.DayNewTargetLoss,
                        DayOldTargetLoss      = monTgt.DayOldTargetLoss,

                        IsWeekLossBasisChanged = monTgt.IsWeekLossBasisChanged,
                        WeekNewTargetLoss      = monTgt.WeekNewTargetLoss,
                        WeekOldTargetLoss      = monTgt.WeekOldTargetLoss,

                        IsMonthLossBasisChanged = monTgt.IsMonthLossBasisChanged,
                        MonthNewTargetLoss      = monTgt.MonthNewTargetLoss,
                        MonthOldTargetLoss      = monTgt.MonthOldTargetLoss,

                        IsDayWagerBasisChanged = monTgt.IsDayWagerBasisChanged,
                        DayNewTargetWager      = monTgt.DayNewTargetWager,
                        DayOldTargetWager      = monTgt.DayOldTargetWager,

                        IsWeekWagerBasisChanged = monTgt.IsWeekWagerBasisChanged,
                        WeekNewTargetWager      = monTgt.WeekNewTargetWager,
                        WeekOldTargetWager      = monTgt.WeekOldTargetWager,

                        IsMonthWagerBasisChanged = monTgt.IsMonthWagerBasisChanged,
                        MonthNewTargetWager      = monTgt.MonthNewTargetWager,
                        MonthOldTargetWager      = monTgt.MonthOldTargetWager,
                    };
                    return(ffTgt);
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                    return(null);
                }
            }
        }
Exemplo n.º 14
0
        protected override IFreeformEntity CreateEntityInternal(IMonitorEntity parent, IMonitorEntity request)
        {
            IMonitorEntity_Msg  monMsg = request as IMonitorEntity_Msg;
            IFreeformEntity_Msg ffMsg  = this.CreateFreeformMessage();

            ffMsg.IpAddress = monMsg.IpAddress;
            return(ffMsg);
        }
Exemplo n.º 15
0
        protected override IMonitorEntity CreateEntityInternal(IMonitorEntity parent, IFreeformEntity request)
        {
            IFreeformEntity_Msg msgFF  = request as IFreeformEntity_Msg;
            IMonitorEntity_Msg  msgMon = this.CreateMonitorMessage();

            msgMon.IpAddress = msgFF.IpAddress;
            return(msgMon);
        }
Exemplo n.º 16
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            using (ILogMethod method = Log.LogMethod("MonTgtParser_PC_EnrollmentParameterResponse_H2G", "CreateMonitorTarget"))
            {
                try
                {
                    MonTgt_H2G_PC_EnrollmentParameterResponse monTgt = request as MonTgt_H2G_PC_EnrollmentParameterResponse;
                    if (monTgt == null) return null;

                    FFTgt_H2G_PC_EnrollmentParameterResponse ffTgt = new FFTgt_H2G_PC_EnrollmentParameterResponse()
                    {
                        Status = monTgt.Status,
                        IsDayTimeBasis = monTgt.IsDayTimeBasis,
                        DayDefaultTime = monTgt.DayDefaultTime,
                        IsDayTimeBasisMandatory = monTgt.IsDayTimeBasisMandatory,

                        IsWeekTimeBasis = monTgt.IsWeekTimeBasis,
                        WeekDefaultTime = monTgt.WeekDefaultTime,
                        IsWeekTimeBasisMandatory = monTgt.IsWeekTimeBasisMandatory,

                        IsMonthTimeBasis = monTgt.IsMonthTimeBasis,
                        MonthDefaultTime = monTgt.MonthDefaultTime,
                        IsMonthTimeBasisMandatory = monTgt.IsMonthTimeBasisMandatory,

                        IsDayLossBasis = monTgt.IsDayLossBasis,
                        DayDefaultLossValue = monTgt.DayDefaultLossValue,
                        IsDayLossBasisMandatory = monTgt.IsMonthLossBasisMandatory,

                        IsWeekLossBasis = monTgt.IsWeekLossBasis,
                        WeekDefaultLossValue = monTgt.WeekDefaultLossValue,
                        IsWeekLossBasisMandatory = monTgt.IsWeekLossBasisMandatory,

                        IsDayWagerBasis = monTgt.IsDayWagerBasis,
                        DayDefaultWager = monTgt.DayDefaultWager,
                        IsDayWagerBasisMandatory = monTgt.IsDayWagerBasisMandatory,

                        IsWeekWagerBasis = monTgt.IsWeekWagerBasis,
                        WeekDefaultWager = monTgt.WeekDefaultWager,
                        IsWeekWagerBasisMandatory = monTgt.IsWeekWagerBasisMandatory,

                        IsMonthWagerBasis = monTgt.IsMonthWagerBasis,
                        MonthDefaultWager = monTgt.MonthDefaultWager,
                        IsMonthWagerBasisMandatory = monTgt.IsWeekWagerBasisMandatory,

                        DisplayMessageLength = monTgt.DisplayMessageLength,
                        DisplayMessage = monTgt.DisplayMessage,
                    };
                    return ffTgt;
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                    return null;
                }
            }
        }
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_GVA_OfflineT_TxtLine2_Req tgtSrc = request as FFTgt_G2H_GVA_OfflineT_TxtLine2_Req;
     if (tgtSrc != null)
     {
         MonTgt_G2H_GVA_OfflineT_TxtLine2_Req tgtDest = new MonTgt_G2H_GVA_OfflineT_TxtLine2_Req();
         return tgtDest;
     }
     return null;
 }
Exemplo n.º 18
0
 protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
 {
     MonTgt_H2G_LP_TotalGames tgtSrc = request as MonTgt_H2G_LP_TotalGames;
     if (tgtSrc != null)
     {
         FFTgt_H2G_GM_SAS_TotalGames tgtDest = new FFTgt_H2G_GM_SAS_TotalGames();
         return tgtDest;
     }
     return null;
 }
Exemplo n.º 19
0
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent,
     IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_GMUEvent_StdData tgtSrc = request as FFTgt_G2H_GMUEvent_StdData;
     if (tgtSrc != null)
     {
         return this.CreateMonitorStatusTarget(tgtSrc);
     }
     return null;
 }
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_TPD tgtSrc = request as FFTgt_G2H_TPD;
     if (tgtSrc != null)
     {
         MonTgt_G2H_GVA_TicketPrintDate_Request tgtDest = new MonTgt_G2H_GVA_TicketPrintDate_Request();
         return tgtDest;
     }
     return null;
 }
Exemplo n.º 21
0
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_GVA_EFT_MaxWithdraw_Request tgtSrc = request as FFTgt_G2H_GVA_EFT_MaxWithdraw_Request;
     if (tgtSrc != null)
     {
         MonTgt_G2H_GVA_EFTMaxWithdraw_Request tgtDest = new MonTgt_G2H_GVA_EFTMaxWithdraw_Request();
         return tgtDest;
     }
     return null;
 }
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_Max_OLT_Allowed_Req tgtSrc = request as FFTgt_G2H_Max_OLT_Allowed_Req;
     if (tgtSrc != null)
     {
         MonTgt_G2H_GVA_MOT_Request tgtDest = new MonTgt_G2H_GVA_MOT_Request();
         return tgtDest;
     }
     return null;
 }
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_GVA_OfflineT_TxtLine2_Req tgtSrc = request as FFTgt_G2H_GVA_OfflineT_TxtLine2_Req;

            if (tgtSrc != null)
            {
                MonTgt_G2H_GVA_OfflineT_TxtLine2_Req tgtDest = new MonTgt_G2H_GVA_OfflineT_TxtLine2_Req();
                return(tgtDest);
            }
            return(null);
        }
Exemplo n.º 24
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_Max_OLT_Allowed_Req tgtSrc = request as FFTgt_G2H_Max_OLT_Allowed_Req;

            if (tgtSrc != null)
            {
                MonTgt_G2H_GVA_MOT_Request tgtDest = new MonTgt_G2H_GVA_MOT_Request();
                return(tgtDest);
            }
            return(null);
        }
Exemplo n.º 25
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_TPD tgtSrc = request as FFTgt_G2H_TPD;

            if (tgtSrc != null)
            {
                MonTgt_G2H_GVA_TicketPrintDate_Request tgtDest = new MonTgt_G2H_GVA_TicketPrintDate_Request();
                return(tgtDest);
            }
            return(null);
        }
        protected override IFreeformEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_TicketingEnablement_Request monTgt = request as MonTgt_H2G_TicketingEnablement_Request;
            if (monTgt == null) return null;

            FFTgt_H2G_TicketingEnablement_Request ffTgt = new FFTgt_H2G_TicketingEnablement_Request()
            {
                Command = monTgt.Command
            };
            return ffTgt;
        }
Exemplo n.º 27
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_LP_HandpayInfo tgtSrc = request as MonTgt_H2G_LP_HandpayInfo;

            if (tgtSrc != null)
            {
                FFTgt_H2G_GM_SAS_HandpayInfo tgtDest = new FFTgt_H2G_GM_SAS_HandpayInfo();
                return(tgtDest);
            }
            return(null);
        }
Exemplo n.º 28
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent,
                                                                     IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_GMUEvent_StdData tgtSrc = request as FFTgt_G2H_GMUEvent_StdData;

            if (tgtSrc != null)
            {
                return(this.CreateMonitorStatusTarget(tgtSrc));
            }
            return(null);
        }
Exemplo n.º 29
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_GVA_EFT_TTimeOut_Request tgtSrc = request as FFTgt_G2H_GVA_EFT_TTimeOut_Request;

            if (tgtSrc != null)
            {
                MonTgt_G2H_GVA_EFT_TTimeOut_Request tgtDest = new MonTgt_G2H_GVA_EFT_TTimeOut_Request();
                return(tgtDest);
            }
            return(null);
        }
Exemplo n.º 30
0
 protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
 {
     MonTgt_H2G_EFT_SystemEnable tgtSrc = request as MonTgt_H2G_EFT_SystemEnable;
     if (tgtSrc != null)
     {
         FFTgt_B2B_EFT tgtDest = new FFTgt_B2B_EFT();
         FFTgt_H2G_EFT_SystemEnable ffTgtGameIdInfo = new FFTgt_H2G_EFT_SystemEnable();
         tgtDest.AddTarget(ffTgtGameIdInfo);
         return tgtDest;
     }
     return null;
 }
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_TicketingEnablement ffTgt = request as FFTgt_G2H_TicketingEnablement;
            if (ffTgt == null) return null;

            MonTgt_G2H_TicketingEnablement monTgt = new MonTgt_G2H_TicketingEnablement()
            {
                Status = ffTgt.Status,
            };

            return monTgt;
        }
Exemplo n.º 32
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            using (ILogMethod method = Log.LogMethod("MonTgtParser_PC_PlayerEnrollmentRequest_G2H", "CreateMonitorTarget"))
            {
                try
                {
                    FFTgt_G2H_PC_PlayerEnrollmentRequest ffTgt = request as FFTgt_G2H_PC_PlayerEnrollmentRequest;
                    if (ffTgt == null)
                    {
                        return(null);
                    }

                    MonTgt_G2H_PC_PlayerEnrollmentRequest monTgt = new MonTgt_G2H_PC_PlayerEnrollmentRequest()
                    {
                        PlayerAccNoLen = ffTgt.PlayerAccNoLen,
                        PlayerAccNo    = ffTgt.PlayerAccNo,

                        IsDayTimeBasis = ffTgt.IsDayTimeBasis,
                        DayDefaultTime = ffTgt.DayDefaultTime,

                        IsWeekTimeBasis = ffTgt.IsWeekTimeBasis,
                        WeekTargetTime  = ffTgt.WeekTargetTime,

                        IsMonthTimeBasis = ffTgt.IsMonthTimeBasis,
                        MonthTargetTime  = ffTgt.MonthTargetTime,

                        IsDayLossBasis     = ffTgt.IsDayLossBasis,
                        DayTargetLossValue = ffTgt.DayTargetLossValue,

                        IsWeekLossBasis     = ffTgt.IsWeekLossBasis,
                        WeekTargetLossValue = ffTgt.WeekTargetLossValue,

                        IsMonthLossBasis     = ffTgt.IsMonthLossBasis,
                        MonthTargetLossValue = ffTgt.MonthTargetLossValue,

                        IsDayWagerBasis = ffTgt.IsDayWagerBasis,
                        DayTargetWager  = ffTgt.DayTargetWager,

                        IsWeekWagerBasis = ffTgt.IsWeekWagerBasis,
                        WeekTargetWager  = ffTgt.WeekTargetWager,

                        IsMonthWagerBasis = ffTgt.IsMonthWagerBasis,
                        MonthTargetWager  = ffTgt.MonthTargetWager,
                    };
                    return(monTgt);
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                    return(null);
                }
            }
        }
Exemplo n.º 33
0
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_H2G_LP_ForcePeriodic tgtSrc = request as FFTgt_H2G_LP_ForcePeriodic;
     if (tgtSrc == null) return null;
     
     MonTgt_H2G_LP_ForcePeriodic tgtDest = new MonTgt_H2G_LP_ForcePeriodic()
     {
         Data1 = tgtSrc.Data1,
         Data2 = tgtSrc.Data2
     };
     
     return tgtDest;
 }
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_Ticket_Redemption_Request tgtSrc = request as FFTgt_G2H_Ticket_Redemption_Request;
     if (tgtSrc != null)
     {
         MonTgt_G2H_Ticket_Redemption_Request tgtDest = new MonTgt_G2H_Ticket_Redemption_Request()
         {
             Barcode = tgtSrc.Barcode,
         };
         return tgtDest;
     }
     return null;
 }
Exemplo n.º 35
0
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_GM_SAS_TotalGames tgtSrc = request as FFTgt_G2H_GM_SAS_TotalGames;
     if (tgtSrc != null)
     {
         MonTgt_G2H_LP_TotalGames tgtDest = new MonTgt_G2H_LP_TotalGames()
         {
             TotalGames = tgtSrc.TotalGames,
         };
         return tgtDest;
     }
     return null;
 }
Exemplo n.º 36
0
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_EFT_Withdraw_Status tgtSrc = request as FFTgt_G2H_EFT_Withdraw_Status;
     if (tgtSrc != null)
     {
         MonTgt_G2H_GVA_EFTWitjhdraw_Status tgtDest = new MonTgt_G2H_GVA_EFTWitjhdraw_Status()
         {
             Status = tgtSrc.Status,
         };
         return tgtDest;
     }
     return null;
 }
Exemplo n.º 37
0
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_EFT_SystemDisable ffTgt = request as FFTgt_G2H_EFT_SystemDisable;
     if (ffTgt != null)
     {
         MonTgt_G2H_EFT_SystemDisable monTgt = new MonTgt_G2H_EFT_SystemDisable()
         {
             ResponseType = ffTgt.ResponseType,
         };
         return monTgt;
     }
     return null;
 }
Exemplo n.º 38
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_EFT_SystemDisable tgtSrc = request as MonTgt_H2G_EFT_SystemDisable;

            if (tgtSrc != null)
            {
                FFTgt_B2B_EFT tgtDest = new FFTgt_B2B_EFT();
                FFTgt_H2G_EFT_SystemDisable ffTgtGameIdInfo = new FFTgt_H2G_EFT_SystemDisable();
                tgtDest.AddTarget(ffTgtGameIdInfo);
                return(tgtDest);
            }
            return(null);
        }
Exemplo n.º 39
0
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_EFT_BalanceRequest ffTgt = request as FFTgt_G2H_EFT_BalanceRequest;
     if (ffTgt != null)
     {
         MonTgt_G2H_EFT_BalanceRequest monTgt = new MonTgt_G2H_EFT_BalanceRequest()
         {
             PlayerCardNumber = ffTgt.PlayerCardNumber,
             Pin = ffTgt.Pin,
         };
         return monTgt;
     }
     return null;
 }
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_Client_EnableDisableMachine tgtSrc = request as MonTgt_H2G_Client_EnableDisableMachine;
            if (tgtSrc != null)
            {
                FFTgt_H2G_GM_SAS_EnableDisable tgtDest = new FFTgt_H2G_GM_SAS_EnableDisable()
                {
                    EnableDisable = tgtSrc.EnableDisable,
                };

                return tgtDest;
            }
            return null;
        }
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_H2G_LP_InstantPeriodic tgtSrc = request as FFTgt_H2G_LP_InstantPeriodic;
            if (tgtSrc == null) return null;

            MonTgt_H2G_LP_InstantPeriodic tgtDest = new MonTgt_H2G_LP_InstantPeriodic()
            {
                ConfiguredInterval = tgtSrc.ConfiguredInterval,
                LowerOrderInterval = tgtSrc.LowerOrderInterval,
                HigherOrderInterval = tgtSrc.HigherOrderInterval
            };

            return tgtDest;
        }
Exemplo n.º 42
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_EFT_SystemDisable ffTgt = request as FFTgt_G2H_EFT_SystemDisable;

            if (ffTgt != null)
            {
                MonTgt_G2H_EFT_SystemDisable monTgt = new MonTgt_G2H_EFT_SystemDisable()
                {
                    ResponseType = ffTgt.ResponseType,
                };
                return(monTgt);
            }
            return(null);
        }
Exemplo n.º 43
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_GM_SAS_TotalGames tgtSrc = request as FFTgt_G2H_GM_SAS_TotalGames;

            if (tgtSrc != null)
            {
                MonTgt_G2H_LP_TotalGames tgtDest = new MonTgt_G2H_LP_TotalGames()
                {
                    TotalGames = tgtSrc.TotalGames,
                };
                return(tgtDest);
            }
            return(null);
        }
Exemplo n.º 44
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_Ticket_Redemption_Request tgtSrc = request as FFTgt_G2H_Ticket_Redemption_Request;

            if (tgtSrc != null)
            {
                MonTgt_G2H_Ticket_Redemption_Request tgtDest = new MonTgt_G2H_Ticket_Redemption_Request()
                {
                    Barcode = tgtSrc.Barcode,
                };
                return(tgtDest);
            }
            return(null);
        }
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_TicketSeqNoUpdate ffTgt = request as FFTgt_G2H_TicketSeqNoUpdate;
            if (ffTgt == null) return null;

            MonTgt_G2H_TicketSeqNoUpdate monTgt = new MonTgt_G2H_TicketSeqNoUpdate()
            {
                Barcode = ffTgt.Barcode,
                Error = ffTgt.Error,
                GameTicketSequence = ffTgt.GameTicketSequence
            };

            return monTgt;
        }
Exemplo n.º 46
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_GVA_TSSlotID_Status tgtSrc = request as FFTgt_G2H_GVA_TSSlotID_Status;

            if (tgtSrc != null)
            {
                MonTgt_G2H_GVA_TSSlotID_Status tgtDest = new MonTgt_G2H_GVA_TSSlotID_Status()
                {
                    Status = tgtSrc.Status,
                };
                return(tgtDest);
            }
            return(null);
        }
Exemplo n.º 47
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_Client_EnableDisableMachine tgtSrc = request as MonTgt_H2G_Client_EnableDisableMachine;

            if (tgtSrc != null)
            {
                FFTgt_H2G_GM_SAS_EnableDisable tgtDest = new FFTgt_H2G_GM_SAS_EnableDisable()
                {
                    EnableDisable = tgtSrc.EnableDisable,
                };

                return(tgtDest);
            }
            return(null);
        }
Exemplo n.º 48
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_EFT_BalanceRequest ffTgt = request as FFTgt_G2H_EFT_BalanceRequest;

            if (ffTgt != null)
            {
                MonTgt_G2H_EFT_BalanceRequest monTgt = new MonTgt_G2H_EFT_BalanceRequest()
                {
                    PlayerCardNumber = ffTgt.PlayerCardNumber,
                    Pin = ffTgt.Pin,
                };
                return(monTgt);
            }
            return(null);
        }
Exemplo n.º 49
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_Ticket_Void tgtSrc = request as FFTgt_G2H_Ticket_Void;

            if (tgtSrc != null)
            {
                MonTgt_G2H_Ticket_Void tgtDest = new MonTgt_G2H_Ticket_Void()
                {
                    Barcode = tgtSrc.Barcode,
                    Error   = tgtSrc.Error,
                };
                return(tgtDest);
            }
            return(null);
        }
Exemplo n.º 50
0
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_EFT_DepositComplete ffTgt = request as FFTgt_G2H_EFT_DepositComplete;
     if (ffTgt != null)
     {
         MonTgt_G2H_EFT_DepositComplete monTgt = new MonTgt_G2H_EFT_DepositComplete()
         {
             NonCashableAmount = ffTgt.NonCashableAmount,
             CashableAmount = ffTgt.CashableAmount,
             GMUErrorCode = ffTgt.ErrorCode,
             PlayerCardNumber = ffTgt.PlayerCardNumber
         };
         return monTgt;
     }
     return null;
 }
Exemplo n.º 51
0
 protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
 {
     MonTgt_H2G_Ticket_Printed_Response tgtSrc = request as MonTgt_H2G_Ticket_Printed_Response;
     if (tgtSrc != null)
     {
         FFTgt_B2B_TicketInfo tgtDest = new FFTgt_B2B_TicketInfo()
         {
             SubTargetData = new FFTgt_H2G_Ticket_Printed_Response()
             {
                 Status = tgtSrc.Status,
             }
         };
         return tgtDest;
     }
     return null;
 }
Exemplo n.º 52
0
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_Ticket_Printed_Request tgtSrc = request as FFTgt_G2H_Ticket_Printed_Request;
     if (tgtSrc != null)
     {
         MonTgt_G2H_Ticket_Printed_Request tgtDest = new MonTgt_G2H_Ticket_Printed_Request()
         {
             BarCode = tgtSrc.BarCode,
             Amount = tgtSrc.Amount,
             Type = tgtSrc.Type,
             SequenceNo = tgtSrc.SequenceNo,
         };
         return tgtDest;
     }
     return null;
 }
Exemplo n.º 53
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_Client_AddUDPsToList tgtSrc = request as MonTgt_H2G_Client_AddUDPsToList;
            if (tgtSrc != null)
            {
                FFTgt_B2B_Client tgtDest = new FFTgt_B2B_Client();
                FFTgt_H2G_Client_AddUDPsToList ffTgtGameIdInfo = new FFTgt_H2G_Client_AddUDPsToList()
                {
                    InstallationNos = tgtSrc.InstallationNos,
                };

                tgtDest.AddTarget(ffTgtGameIdInfo);
                return tgtDest;
            }
            return null;
        }
Exemplo n.º 54
0
        protected override IFreeformEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_TicketingEnablement_Request monTgt = request as MonTgt_H2G_TicketingEnablement_Request;

            if (monTgt == null)
            {
                return(null);
            }

            FFTgt_H2G_TicketingEnablement_Request ffTgt = new FFTgt_H2G_TicketingEnablement_Request()
            {
                Command = monTgt.Command
            };

            return(ffTgt);
        }
Exemplo n.º 55
0
        protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
        {
            FFTgt_G2H_TicketingEnablement ffTgt = request as FFTgt_G2H_TicketingEnablement;

            if (ffTgt == null)
            {
                return(null);
            }

            MonTgt_G2H_TicketingEnablement monTgt = new MonTgt_G2H_TicketingEnablement()
            {
                Status = ffTgt.Status,
            };

            return(monTgt);
        }
Exemplo n.º 56
0
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_EFT_DepositRequest ffTgt = request as FFTgt_G2H_EFT_DepositRequest;
     if (ffTgt != null)
     {
         MonTgt_G2H_EFT_DepositRequest monTgt = new MonTgt_G2H_EFT_DepositRequest()
         {
             NonCashableAmount = ffTgt.NonCashableAmount,
             CashableAmount = ffTgt.CashableAmount,
             PlayerCardNumber = ffTgt.PlayerCardNumber,
             Pin = ffTgt.Pin,
         };
         return monTgt;
     }
     return null;
 }
 protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
 {
     FFTgt_G2H_Ticket_Redemption_Close tgtSrc = request as FFTgt_G2H_Ticket_Redemption_Close;
     if (tgtSrc != null)
     {
         MonTgt_G2H_Ticket_Redemption_Close tgtDest = new MonTgt_G2H_Ticket_Redemption_Close()
         {
             Barcode = tgtSrc.Barcode,
             Amount = tgtSrc.Amount,
             Type = tgtSrc.Type,
             Status = tgtSrc.Status,
         };
         return tgtDest;
     }
     return null;
 }
Exemplo n.º 58
0
 protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
 {
     MonTgt_H2G_GVA_TN_Response tgtSrc = request as MonTgt_H2G_GVA_TN_Response;
     if (tgtSrc != null)
     {
         FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction()
         {
             ActionData = new FFTgt_H2G_GVA_TN_Response()
             {
                 TicketNumber = tgtSrc.TicketNumber,
             }
         };
         return tgtDest;
     }
     return null;
 }
Exemplo n.º 59
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_TSSlotID_Response tgtSrc = request as MonTgt_H2G_GVA_TSSlotID_Response;

            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction          tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_GVA_TSSlotID_Response tgtSub  = new FFTgt_H2G_GVA_TSSlotID_Response()
                {
                    SlotID = tgtSrc.SlotID,
                };

                tgtDest.AddTarget(tgtSub);
                return(tgtDest);
            }
            return(null);
        }
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity parent, IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_Client_RemoveUDPFromList tgtSrc = request as MonTgt_H2G_Client_RemoveUDPFromList;

            if (tgtSrc != null)
            {
                FFTgt_B2B_Client tgtDest = new FFTgt_B2B_Client();
                FFTgt_H2G_Client_RemoveUDPFromList ffTgtGameIdInfo = new FFTgt_H2G_Client_RemoveUDPFromList()
                {
                    InstallationNo = parent.InstallationNo,
                };

                tgtDest.AddTarget(ffTgtGameIdInfo);
                return(tgtDest);
            }
            return(null);
        }