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); }
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); }