internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, byte[] buffer)
 {
     FFTgt_G2H_ATU_AmountRequest tgt = new FFTgt_G2H_ATU_AmountRequest();
     tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5);
     tgt.Status = (FF_GmuId_EFT_AutoTopUp_Status)buffer[5];
     tgt.AccountType = (FF_GmuId_EFT_AutoDownload_TopUp_AccountTypes)buffer[6];
     tgt.AutoDownloadMaxAmount = FreeformHelper.GetBCDValue<double>(buffer, 0, 7, 4);
     tgt.AutoTopUpTrigger = FreeformHelper.GetBCDValue<double>(buffer, 0, 11, 4);
     return tgt;
 }
Exemple #2
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, byte[] buffer)
        {
            FFTgt_G2H_ATU_AmountRequest tgt = new FFTgt_G2H_ATU_AmountRequest();

            tgt.PlayerCardNumber      = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5);
            tgt.Status                = (FF_GmuId_EFT_AutoTopUp_Status)buffer[5];
            tgt.AccountType           = (FF_GmuId_EFT_AutoDownload_TopUp_AccountTypes)buffer[6];
            tgt.AutoDownloadMaxAmount = FreeformHelper.GetBCDValue <double>(buffer, 0, 7, 4);
            tgt.AutoTopUpTrigger      = FreeformHelper.GetBCDValue <double>(buffer, 0, 11, 4);
            return(tgt);
        }