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); }
public static void Encode(XdrDataOutputStream stream, PaymentResultCode value) { stream.WriteInt((int)value.InnerValue); }