using Wayne.Lib.StateEngine; using WayneChina_IcCardReader_SinoChem.MessageEntity; using WayneChina_IcCardReader_SinoChem.MessageEntity.Outgoing; namespace SinochemInternetPlusApp.States.ICCardMode { public class SendCardBalanceToCardReader : SendCardReaderCommandBase { protected override void Enter(StateEntry stateEntry, ref Transition transition) { CreateCommand(); base.Enter(stateEntry, ref transition); transition = new Transition(this, TransitionType.Done); //Transition out directly. } protected override IcCardReaderMessageBase CreateCommand() { return new TcpCardOnlineVerificationResultRequest(VerificationResult.Success, (decimal)Main.CurrentEpsTrx.Model.balance_before_trx, ""); } protected override int TimeoutInterval => TimeoutValues.GetValueInMilliSec(TimeoutValues.FuelingPoint.ICCardMode_SendCardBalanceToCardReader, 10); } }