コード例 #1
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;

            default:
                break;
            }

            return(decodedPaymentResult);
        }
コード例 #2
0
 public static void Encode(XdrDataOutputStream stream, PaymentResultCode value)
 {
     stream.WriteInt((int)value.InnerValue);
 }