Example #1
0
        public static CreateAccountResult Decode(XdrDataInputStream stream)
        {
            CreateAccountResult     decodedCreateAccountResult = new CreateAccountResult();
            CreateAccountResultCode discriminant = CreateAccountResultCode.Decode(stream);

            decodedCreateAccountResult.Discriminant = discriminant;

            switch (decodedCreateAccountResult.Discriminant.InnerValue)
            {
            case CreateAccountResultCode.CreateAccountResultCodeEnum.CREATE_ACCOUNT_SUCCESS:
                break;
            }

            return(decodedCreateAccountResult);
        }
Example #2
0
        public static CreateAccountResult Decode(IByteReader stream)
        {
            CreateAccountResult decodedCreateAccountResult = new CreateAccountResult();

            decodedCreateAccountResult.Discriminant = CreateAccountResultCode.Decode(stream);
            switch (decodedCreateAccountResult.Discriminant.InnerValue)
            {
            case CreateAccountResultCode.CreateAccountResultCodeEnum.CREATE_ACCOUNT_SUCCESS:
                break;

            default:
                break;
            }
            return(decodedCreateAccountResult);
        }