Example #1
0
        public static SetOptionsResult Decode(IByteReader stream)
        {
            SetOptionsResult decodedSetOptionsResult = new SetOptionsResult();

            decodedSetOptionsResult.Discriminant = SetOptionsResultCode.Decode(stream);
            switch (decodedSetOptionsResult.Discriminant.InnerValue)
            {
            case SetOptionsResultCode.SetOptionsResultCodeEnum.SET_OPTIONS_SUCCESS:
                break;

            default:
                break;
            }
            return(decodedSetOptionsResult);
        }
        public static SetOptionsResult Decode(XdrDataInputStream stream)
        {
            SetOptionsResult     decodedSetOptionsResult = new SetOptionsResult();
            SetOptionsResultCode discriminant            = SetOptionsResultCode.Decode(stream);

            decodedSetOptionsResult.Discriminant = discriminant;

            switch (decodedSetOptionsResult.Discriminant.InnerValue)
            {
            case SetOptionsResultCode.SetOptionsResultCodeEnum.SET_OPTIONS_SUCCESS:
                break;
            }

            return(decodedSetOptionsResult);
        }