Ejemplo n.º 1
0
        public static ChangeTrustResult Decode(IByteReader stream)
        {
            ChangeTrustResult decodedChangeTrustResult = new ChangeTrustResult();

            decodedChangeTrustResult.Discriminant = ChangeTrustResultCode.Decode(stream);
            switch (decodedChangeTrustResult.Discriminant.InnerValue)
            {
            case ChangeTrustResultCode.ChangeTrustResultCodeEnum.CHANGE_TRUST_SUCCESS:
                break;

            default:
                break;
            }
            return(decodedChangeTrustResult);
        }
        public static ChangeTrustResult Decode(XdrDataInputStream stream)
        {
            ChangeTrustResult     decodedChangeTrustResult = new ChangeTrustResult();
            ChangeTrustResultCode discriminant             = ChangeTrustResultCode.Decode(stream);

            decodedChangeTrustResult.Discriminant = discriminant;

            switch (decodedChangeTrustResult.Discriminant.InnerValue)
            {
            case ChangeTrustResultCode.ChangeTrustResultCodeEnum.CHANGE_TRUST_SUCCESS:
                break;
            }

            return(decodedChangeTrustResult);
        }
Ejemplo n.º 3
0
 public static void Encode(IByteWriter stream, ChangeTrustResultCode value)
 {
     XdrEncoding.EncodeInt32((int)value.InnerValue, stream);
 }
		public static void Encode(IByteWriter stream, ChangeTrustResultCode value) {
		  XdrEncoding.EncodeInt32((int)value.InnerValue, stream);
		}