Exemple #1
0
        public static PaymentResult Decode(IByteReader stream)
        {
            PaymentResult decodedPaymentResult = new PaymentResult();

            decodedPaymentResult.Discriminant = PaymentResultCode.Decode(stream);
            switch (decodedPaymentResult.Discriminant.InnerValue)
            {
            case PaymentResultCode.PaymentResultCodeEnum.PAYMENT_SUCCESS:
                break;

            default:
                break;
            }
            return(decodedPaymentResult);
        }
Exemple #2
0
        public static PaymentResult Decode(XdrDataInputStream stream)
        {
            PaymentResult     decodedPaymentResult = new PaymentResult();
            PaymentResultCode discriminant         = PaymentResultCode.Decode(stream);

            decodedPaymentResult.Discriminant = discriminant;

            switch (decodedPaymentResult.Discriminant.InnerValue)
            {
            case PaymentResultCode.PaymentResultCodeEnum.PAYMENT_SUCCESS:
                break;
            }

            return(decodedPaymentResult);
        }