protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_EFTCHAR_Response tgtSrc = request as MonTgt_H2G_GVA_EFTCHAR_Response;

            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction          tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_GVA_EFT_Char_Response tgtSub  = new FFTgt_H2G_GVA_EFT_Char_Response()
                {
                    IsAutoDepositEnabledForCashableOnCardOut    = tgtSrc.IsAutoDepositEnabledForCashableOnCardOut,
                    IsAutoDepositEnabledForNonCashableOnCardOut = tgtSrc.IsAutoDepositEnabledForNonCashableOnCardOut,
                    IsAutoDownloadEnabled      = tgtSrc.IsAutoDownloadEnabled,
                    IsAutoTopEnabled           = tgtSrc.IsAutoTopEnabled,
                    IsCashableDpositEnabled    = tgtSrc.IsCashableDpositEnabled,
                    IsCashlessSmartCardEnabled = tgtSrc.IsCashlessSmartCardEnabled,
                    ISCashWithdrawalEnabled    = tgtSrc.ISCashWithdrawalEnabled,
                    IsEftEnabled                 = tgtSrc.IsEftEnabled,
                    IsFullDownloadEnabled        = tgtSrc.IsFullDownloadEnabled,
                    IsNon_CashableDepositEnabled = tgtSrc.IsNon_CashableDepositEnabled,
                    IsOfferEnabled               = tgtSrc.IsOfferEnabled,
                    IsPartialTransferEnabled     = tgtSrc.IsPartialTransferEnabled,
                    IsPointsWithdrawalEnabled    = tgtSrc.IsPointsWithdrawalEnabled
                };

                tgtDest.AddTarget(tgtSub);
                return(tgtDest);
            }
            return(null);
        }
Beispiel #2
0
        private static FFTgt_B2B_GMUVarAction[] WrapTargetsAndReturn(params FFTgt_B2B_GMUVarAction_Data[] datas)
        {
            List <FFTgt_B2B_GMUVarAction> result = new List <FFTgt_B2B_GMUVarAction>();

            foreach (var data in datas)
            {
                FFTgt_B2B_GMUVarAction target = new FFTgt_B2B_GMUVarAction();
                target.AddTarget(data);
                result.Add(target);
            }
            return(result.ToArray());
        }
        protected override bool OnProcessMessageG2HInternal_GMU(FFTgtExecutionContext context, IFreeformEntity_MsgTgt target)
        {
            FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction()
            {
                ActionData = new FFTgt_H2G_GVA_TPD_Response()
                {
                    Date = DateTime.Now,
                }
            };

            context.FreeformTargets.Add(tgtDest);
            return(true);
        }
Beispiel #4
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_TicketPrintDate_Response tgtSrc = request as MonTgt_H2G_GVA_TicketPrintDate_Response;

            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_TPD_Request  tgtSub  = new FFTgt_H2G_TPD_Request()
                {
                    Date = tgtSrc.TicketDate,
                };

                tgtDest.AddTarget(tgtSub);
                return(tgtDest);
            }
            return(null);
        }
        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);
        }
Beispiel #6
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_EnablePrint_RT_Response tgtSrc = request as MonTgt_H2G_GVA_EnablePrint_RT_Response;

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

                tgtDest.AddTarget(tgtSub);
                return(tgtDest);
            }
            return(null);
        }
Beispiel #7
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_EFT_TTimeOut_Response tgtSrc = request as MonTgt_H2G_GVA_EFT_TTimeOut_Response;

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

                tgtDest.AddTarget(tgtSub);
                return(tgtDest);
            }
            return(null);
        }
        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);
        }
Beispiel #9
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_EFTMAxWithdraw_Response tgtSrc = request as MonTgt_H2G_GVA_EFTMAxWithdraw_Response;

            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_GVA_EFT_MaxWithdraw_Response tgtSub = new FFTgt_H2G_GVA_EFT_MaxWithdraw_Response()
                {
                    MaxElectronicWithdrawalAmount = tgtSrc.MaxWithdrawalAmount
                };

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

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

                tgtDest.AddTarget(tgtSub);
                return(tgtDest);
            }
            return(null);
        }
Beispiel #11
0
        protected override IFreeformEntity_MsgTgt CreateFreeformTarget(IMonitorEntity_MsgTgt request)
        {
            MonTgt_H2G_GVA_MOT_Response tgtSrc = request as MonTgt_H2G_GVA_MOT_Response;

            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction             tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_Max_OLT_Allowed_Response tgtSub  = new FFTgt_H2G_Max_OLT_Allowed_Response()
                {
                    MaxOfflineTickets = tgtSrc.MaxOfflineTickets
                };

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

            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction      tgtDest = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_RTE_Days_Response tgtSub  = new FFTgt_H2G_RTE_Days_Response()
                {
                    ExpirationDays = tgtSrc.ExpirationDays
                };

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

            if (tgtSrc != null)
            {
                FFTgt_B2B_GMUVarAction tgtDest             = new FFTgt_B2B_GMUVarAction();
                FFTgt_H2G_GVA_EFT_Withdraw_Response tgtSub = new FFTgt_H2G_GVA_EFT_Withdraw_Response()
                {
                    WithdrawalAmount_option1 = tgtSrc.WithdrawalAmount_option1,
                    WithdrawalAmount_option2 = tgtSrc.WithdrawalAmount_option2,
                    WithdrawalAmount_option3 = tgtSrc.WithdrawalAmount_option3,
                    WithdrawalAmount_option4 = tgtSrc.WithdrawalAmount_option4
                };

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