internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_H2G_CodeDownload_ChangeVersion tgt = new FFTgt_H2G_CodeDownload_ChangeVersion();
     tgt.NewVersion = FreeformHelper.GetASCIIStringValue(buffer, 0, 7);
     tgt.OldVersion = FreeformHelper.GetASCIIStringValue(buffer, 7, 7);
     return tgt;
 }
示例#2
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_B2B_GIM tgt = new FFTgt_B2B_GIM();

            this.ParseBuffer(tgt, rootEntity, buffer, 0, buffer.Length);
            return(tgt);
        }
示例#3
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_EFT_TTimeOut_Response tgt = new FFTgt_H2G_GVA_EFT_TTimeOut_Response();

            tgt.TimeOut = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 1);
            return(tgt);
        }
示例#4
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            if (buffer.Length >= 3)
            {
                FF_AppId_GameMessage_ProtocolTypes   protocolType = buffer[0].GetAppId <FF_GmuId_GameMessage_ProtocolTypes, FF_AppId_GameMessage_ProtocolTypes>();
                FF_AppId_GameMessage_GameResponses   responseType = buffer[1].GetAppId <FF_GmuId_GameMessage_GameResponses, FF_AppId_GameMessage_GameResponses>();
                FFTgt_H2G_GameMessage_MessageRequest target2      = null;

                if (protocolType == FF_AppId_GameMessage_ProtocolTypes.SAS)
                {
                    int longPollCommand = (int)buffer[2];
                    if (_createCommands.ContainsKey(longPollCommand))
                    {
                        target2 = _createCommands[longPollCommand]();
                    }
                    target2.IsGameResponseExpected = responseType;
                    if (buffer.Length > 3)
                    {
                        target2.MessageData = buffer.CopyToBuffer(3, buffer.Length - 3);
                    }
                }
                else
                {
                    var target = new FFTgt_H2G_GameMessage_MessageRequest();
                    target2 = target;
                    target.IsGameResponseExpected = responseType;
                    target.MessageData            = buffer.CopyToBuffer(2, buffer.Length - 2);
                }
                return(target2);
            }
            return(null);
        }
示例#5
0
        internal override void ParseEntityInternal(IFreeformEntity entity, ref List <byte> buffer)
        {
            // parse the entity and add
            int iPollCode = (int)(entity as FFMsg_H2G).PollCode;

            buffer.AddRange(this.GetParserFromAppId(iPollCode).ParseEntity(entity));
        }
示例#6
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_EnablePrint_RT_Response tgt = new FFTgt_H2G_GVA_EnablePrint_RT_Response();

            tgt.EnableRestrictedTickets = buffer[0].GetAppId <FF_GmuId_PrintRestrictedTicket, FF_AppId_PrintRestrictedTicket>();
            return(tgt);
        }
示例#7
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_SystemPrinter_PrintString tgt = new FFTgt_H2G_SystemPrinter_PrintString();

            tgt.TextToPrint = buffer.GetASCIIStringValue();
            return(tgt);
        }
示例#8
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            // get and verify the session id
            bool isResponseRequired       = false;
            int  actualSessionId          = 0;
            FF_AppId_SessionIds sessionId = this.GetSessionId(buffer, FreeformConstants.IDX_SEND_SESSION_ID, ref actualSessionId, ref isResponseRequired);

            if (sessionId == FF_AppId_SessionIds.None)
            {
                Log.Warning("Invalid message passed (Invalid session)");
                return(null);
            }

            // create the message
            entity = this.CreateEntity();
            FFMsg_H2G msg = entity as FFMsg_H2G;

            if (msg != null)
            {
                int offset = 0;
                msg.IsResponseRequired = isResponseRequired;
                this.OnParseBufferPart1(msg, buffer, sessionId, ref offset);
                this.OnParseBufferPart2(msg, buffer, ref offset);
                this.OnParseBufferPart3(msg, buffer, ref offset);
            }

            msg.IsResponseRequired = isResponseRequired;
            msg.ActualSessionID    = actualSessionId;
            return(msg);
        }
示例#9
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_SystemPrinter_PrintStatus tgt = new FFTgt_G2H_SystemPrinter_PrintStatus();

            tgt.Status = (FF_AppId_SystemPrinter_PrinterStatus)buffer[0];
            return(tgt);
        }
示例#10
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_SystemPrinter_SetPrintCompValue tgt = new FFTgt_H2G_SystemPrinter_SetPrintCompValue();

            tgt.Values = buffer;
            return(tgt);
        }
示例#11
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_SystemPrinter_PrintStringEnd tgt = new FFTgt_H2G_SystemPrinter_PrintStringEnd();

            tgt.Response = (FF_AppId_SystemPrinter_PrinterResponse)buffer[0];
            return(tgt);
        }
示例#12
0
        public byte[] ParseTarget(IFreeformEntity entity)
        {
            using (ILogMethod method = Log.LogMethod(this.DYN_MODULE_NAME, "ParseTarget"))
            {
                List <byte> result = new List <byte>();

                try
                {
                    if (entity.Targets != null &&
                        entity.Targets.Count > 0)
                    {
                        foreach (var target in entity.Targets)
                        {
                            byte[] data = this.ParseEntity(target);
                            if (data != null)
                            {
                                result.AddRange(data);
                            }
                        }
                    }
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                }

                return(result.ToArray());
            }
        }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FF_AppId_SystemToEPI_MessageTypes messageType = (FF_AppId_SystemToEPI_MessageTypes)buffer[0];
            FFTgt_H2G_SystemToEPI_Data tgt = null;

            switch (messageType)
            {

                case FF_AppId_SystemToEPI_MessageTypes.TicketPrint:
                    tgt = new FFTgt_H2G_SystemToEPI_TicketPrint();
                    break;
                case FF_AppId_SystemToEPI_MessageTypes.TicketRedeem:
                    tgt = new FFTgt_H2G_SystemToEPI_TicketRedeem();
                    break;
                case FF_AppId_SystemToEPI_MessageTypes.TicketError:
                    tgt = new FFTgt_H2G_SystemToEPI_TicketError();
                    break;
                case FF_AppId_SystemToEPI_MessageTypes.Promo:
                    tgt = new FFTgt_H2G_SystemToEPI_Promo();
                    break;
                case FF_AppId_SystemToEPI_MessageTypes.Sports:
                    tgt = new FFTgt_H2G_SystemToEPI_Sports();
                    break;
                case FF_AppId_SystemToEPI_MessageTypes.F5:
                    tgt = new FFTgt_H2G_SystemToEPI_F5();
                    break;

            }
            tgt.TextLength = buffer[1];
            tgt.Text = FreeformHelper.GetASCIIStringValue(FreeformHelper.CopyToBuffer(buffer, 2, buffer.Length - 2));
            return tgt;

        }
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_H2G_LP_ForcePeriodic tgt = new FFTgt_H2G_LP_ForcePeriodic();
     tgt.Data1 = buffer[0];
     tgt.Data2 = buffer[1];
     return tgt;
 }
示例#15
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_CodeDownload_CRCResults tgt = new FFTgt_H2G_CodeDownload_CRCResults();

            tgt.CRCResults = buffer;
            return(tgt);
        }
示例#16
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_EFT_CHAR_Status tgt = new FFTgt_G2H_EFT_CHAR_Status();

            tgt.Status = buffer[0].GetAppId <FF_GmuId_ResponseStatus_Types, FF_AppId_ResponseStatus_Types>();
            return(tgt);
        }
示例#17
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_GMUEvent_TicketData tgt = new FFTgt_G2H_GMUEvent_TicketData();
     tgt.BarcodeNumber = FreeformHelper.GetBytesToBCDDouble(buffer, 0, 9);
     tgt.ErrorCode = FreeformHelper.GetBytesToNumberUInt8(buffer, 9, 1);
     return tgt;
 }
示例#18
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_EFT_Phishing tgt = new FFTgt_G2H_EFT_Phishing();
     tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5);
     tgt.Type = buffer[5];
     return tgt;
 }
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_B2B_Security_Indexed_KeyExchange_End tgt = new FFTgt_B2B_Security_Indexed_KeyExchange_End();
     tgt.KeyIndex = (FF_AppId_KeyExchange)buffer[0];
     tgt.Key = FreeformHelper.CopyToBuffer(buffer, 1, 9);
     return tgt;
 }
示例#20
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_AccountingMeters tgt = new FFTgt_G2H_AccountingMeters();

            this.ParseBuffer(tgt, rootEntity, buffer, 1, buffer.Length);
            return(tgt);
        }
示例#21
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_TSSlotID_Response tgt = new FFTgt_H2G_GVA_TSSlotID_Response();

            tgt.SlotID = FreeformHelper.GetBytesToBCDInt32(buffer, 0, 3);
            return(tgt);
        }
 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;
 }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_TicketingEnablement_Request tgt = new FFTgt_H2G_TicketingEnablement_Request();

            tgt.Command = buffer[0].GetAppId <FF_GmuId_TicketEnablement_Request_Command, FF_AppId_TicketEnablement_Request_Command>();
            return(tgt);
        }
示例#24
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_GMUEvent_EFTData tgt = new FFTgt_G2H_GMUEvent_EFTData();
     tgt.TransactionID = buffer[0];
     tgt.ErrorCode = buffer[1];
     return tgt;
 }
示例#25
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_EFT_BalanceRequest tgt = new FFTgt_G2H_EFT_BalanceRequest();
     tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5);
     tgt.Pin = FreeformHelper.GetBCDValueString(buffer, 0, 5, 2);
     return tgt;
 }
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_H2G_GIM_AuxNetworkEnableDisable tgt = new FFTgt_H2G_GIM_AuxNetworkEnableDisable();
     tgt.EnableDisable = buffer[0].ConvertToBoolean();
     tgt.Display = FreeformHelper.GetASCIIStringValue(buffer, 1, 0);
     return tgt;
 }
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_B2B_Security_BMCAuthentication tgt = new FFTgt_B2B_Security_BMCAuthentication();
     tgt.AuthenticationByte = buffer[0];
     tgt.EntityData = FreeformHelper.CopyToBuffer(buffer, 1, buffer.Length);//want to decrypt
     return tgt;
 }
示例#28
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_Roulette tgt = new FFTgt_G2H_Roulette();
     entity = tgt;
     this.ParseBuffer(tgt, rootEntity, buffer, 0, buffer.Length);
     return tgt;
 }
     internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_B2B_GMUVarAction tgt = new FFTgt_B2B_GMUVarAction();
     entity = tgt;
     this.ParseBuffer(tgt, rootEntity, buffer, 0, buffer.Length);
     return tgt;
 }
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_TicketAttribute tgt = new FFTgt_G2H_TicketAttribute();
     tgt.TicketPrintDateTime = buffer.GetBytesToBCDDateTime(0, 6);
     tgt.OfflineStatus = buffer[6].GetAppId<FF_GmuId_TicketOfflineStatus, FF_AppId_TicketOfflineStatus>();
     return tgt;
 }
示例#31
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_Ticket_Void tgt = new FFTgt_G2H_Ticket_Void();
     tgt.Barcode = buffer.GetBCDValueString(0, 0, 9);
     tgt.Error = buffer[9].GetAppId<FF_GmuId_TicketPrintStatus, FF_AppId_TicketPrintStatus>();         
     return tgt;
 }
示例#32
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_CodeDownload_ChangeBaudRate tgt = new FFTgt_H2G_CodeDownload_ChangeBaudRate();

            tgt.BaudRate = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
            return(tgt);
        }
 internal override byte[] CreateBufferInternal(IFreeformEntity entity)
 {
     if (entity is IFreeformEntity_MsgTgt)
         return _targetParser.ParseEntity(entity);
     else
         return _messageParser.ParseEntity(entity);
 }
示例#34
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_GMUEvent_PrinterData tgt = new FFTgt_G2H_GMUEvent_PrinterData();
     tgt.ActionID = buffer[0];
     tgt.StatusCode = buffer[1].GetAppId<FF_GmuId_GMUEvent_PrinterStatusCodes, FF_AppId_GMUEvent_PrinterStatusCodes>();
     return tgt;
 }
示例#35
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_CodeDownload_BaudRateTest tgt = new FFTgt_H2G_CodeDownload_BaudRateTest();

            tgt.DataValue = buffer;
            return(tgt);
        }
示例#36
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_H2G_GVA_EFT_Char_Response tgt = new FFTgt_H2G_GVA_EFT_Char_Response();
     // Check wih Vinoth For Adding Boolean
   
     return tgt;
 }
示例#37
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, byte[] buffer)
 {
     FFTgt_B2B_GIM tgt = new FFTgt_B2B_GIM();
     entity = tgt;
     tgt.SubTargetID = (FF_GIM_SubTargets)buffer[0];
     this.ParseBuffer(entity, buffer, 0, 0);
     return tgt;
 }
示例#38
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_EFT_Char_Response tgt = new FFTgt_H2G_GVA_EFT_Char_Response();

            // Check wih Vinoth For Adding Boolean

            return(tgt);
        }
示例#39
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_B2B_Security_BMCAuthentication tgt = new FFTgt_B2B_Security_BMCAuthentication();

            tgt.AuthenticationByte = buffer[0];
            tgt.EntityData         = FreeformHelper.CopyToBuffer(buffer, 1, buffer.Length);//want to decrypt
            return(tgt);
        }
示例#40
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_GMUEvent_PrinterData tgt = new FFTgt_G2H_GMUEvent_PrinterData();

            tgt.ActionID   = buffer[0];
            tgt.StatusCode = buffer[1].GetAppId <FF_GmuId_GMUEvent_PrinterStatusCodes, FF_AppId_GMUEvent_PrinterStatusCodes>();
            return(tgt);
        }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_TicketAttribute tgt = new FFTgt_G2H_TicketAttribute();

            tgt.TicketPrintDateTime = buffer.GetBytesToBCDDateTime(0, 6);
            tgt.OfflineStatus       = buffer[6].GetAppId <FF_GmuId_TicketOfflineStatus, FF_AppId_TicketOfflineStatus>();
            return(tgt);
        }
示例#42
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     byte[] buffer2 = FreeformEntityFactory.EncryptionFactory.Decrypt(rootEntity as IFreeformEntity_Msg, buffer);
     return new FFTgt_B2B_Encrypted()
     {
         DecryptedData = buffer2,
     };
 }
示例#43
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_EFT_CashlessAccountLookup tgt = new FFTgt_G2H_EFT_CashlessAccountLookup();
     tgt.EGMAssetNumber = FreeformHelper.GetBytesToNumberInt32(buffer, 0, 4);
     tgt.CashlessAccountNumberLength = buffer[4];
     tgt.CashlessAccountNumber = FreeformHelper.GetASCIIStringValue(buffer, 5, 40);
     return tgt;
 }
示例#44
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_EFT_PinCheck_Request tgt = new FFTgt_G2H_EFT_PinCheck_Request();

            tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5);
            tgt.Pin = FreeformHelper.GetBCDValueString(buffer, 0, 5, 2);
            return(tgt);
        }
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_B2B_Security_EncryptAuthentication tgt = new FFTgt_B2B_Security_EncryptAuthentication();
     tgt.EncryptionAlgorithm = buffer[0];
     tgt.KeyIndex = buffer[1];
     tgt.EntityData = FreeformHelper.CopyToBuffer(buffer, 2, buffer.Length);
     return tgt;
 }
示例#46
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_GVA_VV_Data_Request tgt = new FFTgt_G2H_GVA_VV_Data_Request();

            tgt.ValidationRequestID = FreeformHelper.GetValue <int>(buffer, 0, 9);
            tgt.NumValidationID     = FreeformHelper.GetValue <int>(buffer, 9, 1);
            return(tgt);
        }
示例#47
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_VV_Data_Response tgt = new FFTgt_H2G_GVA_VV_Data_Response();

            tgt.ValidationRequestID = FreeformHelper.GetValue <int>(buffer, 0, 9);
            tgt.ValidationIDs       = FreeformHelper.CopyToBuffer(buffer, 9, buffer.Length - 9);
            return(tgt);
        }
示例#48
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_TED_Response tgt = new FFTgt_H2G_GVA_TED_Response();

            tgt.Date       = buffer.GetBytesToBCDDateTimeUSTimeZone(0, 3);
            tgt.ExipreDays = FreeformHelper.GetBytesToBCDInt16(buffer, 3, 2);
            return(tgt);
        }
示例#49
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_VP_Response tgt = new FFTgt_H2G_GVA_VP_Response();

            tgt.MaxValidationID      = FreeformHelper.GetValue <int>(buffer, 0, 1);
            tgt.MinLevelValidationID = FreeformHelper.GetValue <int>(buffer, 1, 2);
            return(tgt);
        }
示例#50
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_Ticket_Void tgt = new FFTgt_G2H_Ticket_Void();

            tgt.Barcode = buffer.GetBCDValueString(0, 0, 9);
            tgt.Error   = buffer[9].GetAppId <FF_GmuId_TicketPrintStatus, FF_AppId_TicketPrintStatus>();
            return(tgt);
        }
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_Ticket_Printed_Request tgt = new FFTgt_G2H_Ticket_Printed_Request();
     tgt.BarCode = buffer.GetBCDValueString(0, 0, 9);
     tgt.Amount = buffer.GetBytesToBCDDouble(9, 4);
     tgt.Type = buffer[13].GetAppId<FF_GmuId_TicketTypes, FF_AppId_TicketTypes>();
     return tgt;
 }
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GIM_AuxNetworkEnableDisable tgt = new FFTgt_H2G_GIM_AuxNetworkEnableDisable();

            tgt.EnableDisable = buffer[0].ConvertToBoolean();
            tgt.Display       = FreeformHelper.GetASCIIStringValue(buffer, 1, 0);
            return(tgt);
        }
示例#53
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_Roulette tgt = new FFTgt_G2H_Roulette();

            entity = tgt;
            this.ParseBuffer(tgt, rootEntity, buffer, 0, buffer.Length);
            return(tgt);
        }
示例#54
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_H2G_EPI_Info tgt = new FFTgt_H2G_EPI_Info();
     tgt.DeviceAddress = buffer[0];
     tgt.EPICommand = buffer[1];
     tgt.EPIMessages = FreeformHelper.CopyToBuffer(buffer, 2, buffer.Length);
     return tgt;
 }
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_TicketSeqNoUpdate tgt = new FFTgt_G2H_TicketSeqNoUpdate();
     tgt.Barcode = buffer.GetBCDValueString(0, 0, 9);
     tgt.Error = buffer[9].GetAppId<FF_GmuId_TicketSeqNoUpdate_Error, FF_AppId_TicketSeqNoUpdate_Error>();
     tgt.GameTicketSequence = buffer.GetBytesToBCDInt16(10, 2);
     return tgt;
 }
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_H2G_CodeDownload_FileDownload tgt = new FFTgt_H2G_CodeDownload_FileDownload();
     tgt.FileType = buffer[0].GetAppId<FF_GmuId_FileDownloadFileType, FF_AppId_FileDownloadFileType>();
     tgt.Length = FreeformHelper.GetBytesToNumberInt32(buffer, 1, 4);
     tgt.CompressedFile = buffer.CopyToBuffer(5, tgt.Length);
     tgt.CRC = FreeformHelper.GetValue<short>(buffer, tgt.Length + 5, 2);
     return tgt;
 }
示例#57
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_H2G_EFT_BalanceResponse tgt = new FFTgt_H2G_EFT_BalanceResponse();
     tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5);
     tgt.PlayerFlags.BytesValue = FreeformHelper.GetRange(buffer, 5, 3);
     tgt.DisplayMessageLength = FreeformHelper.GetBytesToNumberUInt8(buffer, 8, 1);
     tgt.DisplayMessage = FreeformHelper.GetBCDValueString(buffer, 0, 9, 128);
     return tgt;
 }
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, byte[] buffer)
 {
     FFTgt_H2G_AD_Amount_Request tgt = new FFTgt_H2G_EFT_WithdrawalAuthorization();
     tgt.ErrorCode = buffer[0];
     tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 1, 5);
     tgt.DisplayMessageLength = FreeformHelper.GetBytesToNumberInt32(buffer, 6, 1);
     tgt.DisplayMessage = FreeformHelper.GetBCDValueString(buffer, 0, 7, 128);
     return tgt;
 }
示例#59
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_EFT_WithdrawalRequest tgt = new FFTgt_G2H_EFT_WithdrawalRequest();
     tgt.AccountType = buffer[0].GetAppId<FF_GmuId_EFT_AccountTypes, FF_AppId_EFT_AccountTypes>();
     tgt.AmountRequested = FreeformHelper.GetBytesToBCDDouble(buffer, 1, 4);
     tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 5, 5);
     tgt.Pin = FreeformHelper.GetBCDValueString(buffer, 0, 10, 2);
     return tgt;
 }
示例#60
0
 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_EFT_WithdrawalComplete tgt = new FFTgt_G2H_EFT_WithdrawalComplete();
     tgt.NonCashableAmount = FreeformHelper.GetBytesToBCDDouble(buffer, 0, 4);
     tgt.CashableAmount = FreeformHelper.GetBytesToBCDDouble(buffer, 4, 4);
     tgt.ErrorCode = buffer[8];
     tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 9, 5);
     return tgt;
 }