internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_H2G_GVA_OFFTKT_TxtLine2_Response tgt = new FFTgt_H2G_GVA_OFFTKT_TxtLine2_Response();

            tgt.Line2Text = FreeformHelper.GetASCIIStringValueTrim(buffer, 0, 30);
            return(tgt);
        }
Exemplo n.º 2
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FFTgt_G2H_GMUEvent_StdData tgt = new FFTgt_G2H_GMUEvent_StdData();

            tgt.ExceptionCode    = buffer[0].GetAppId <FF_GmuId_GMUEvent_XCodes, FF_AppId_GMUEvent_XCodes>();
            tgt.JackpotID        = buffer[1].GetAppId <FF_GmuId_GMUEvent_JackpotIDs, FF_AppId_GMUEvent_JackpotIDs>();
            tgt.EmployeeCardID   = FreeformHelper.GetHexStringValue(buffer, 2, 2);
            tgt.LastBet          = FreeformHelper.GetBCDValue <short>(buffer, 4, 2);
            tgt.DoorStatus       = FreeformHelper.GetBytesToNumberUInt8(buffer, 6, 1);
            tgt.OptionByte       = FreeformHelper.GetBytesToNumberUInt8(buffer, 7, 1);
            tgt.JackpotAmount    = FreeformHelper.GetBytesToBCDDouble(buffer, 8, 6);
            tgt.PlayerCard       = FreeformHelper.GetBCDValueString(buffer, 0, 14, 5);
            tgt.BonusPoints      = FreeformHelper.GetBCDValue <short>(buffer, 19, 2);
            tgt.LastBill         = FreeformHelper.GetBytesToNumberUInt8(buffer, 21, 1);
            tgt.SMICode          = FreeformHelper.GetASCIIStringValueTrim(buffer, 22, 8);
            tgt.GameDenomination = FreeformHelper.GetBCDValue <int>(buffer, 30, 4);
            tgt.CasinoID         = FreeformHelper.GetASCIIStringValueTrim(buffer, 34, 3);
            tgt.BonusCountdown   = FreeformHelper.GetBCDValue <short>(buffer, 37, 2);
            tgt.BonusPoints      = FreeformHelper.GetBCDValue <short>(buffer, 39, 2);
            return(tgt);
        }