示例#1
0
        public override object ReadObject(XmlReader reader)
        {
            keepAliveResponse keepAliveResponseField = null;

            if (IsParentStartElement(reader, false, true))
            {
                keepAliveResponseField = new keepAliveResponse();
                reader.Read();
                if (IsChildStartElement(reader, "keepAliveResult", false, false))
                {
                    reader.Read();
                    keepAliveResponseField.keepAliveResult = XmlConvert.ToBoolean(reader.ReadString());
                    reader.ReadEndElement();
                }
                reader.ReadEndElement();
            }
            return(keepAliveResponseField);
        }
示例#2
0
        public override object ReadObject(XmlReader reader)
        {
            isValidResponse isValidResponseField = null;

            if (IsParentStartElement(reader, false, true))
            {
                isValidResponseField = new isValidResponse();
                reader.Read();
                if (IsChildStartElement(reader, "isValidResult", false, false))
                {
                    reader.Read();
                    isValidResponseField.isValidResult = XmlConvert.ToBoolean(reader.ReadString());
                    reader.ReadEndElement();
                }
                reader.ReadEndElement();
            }
            return(isValidResponseField);
        }
        public override object ReadObject(XmlReader reader)
        {
            TypeCheckResponse TypeCheckResponseField = null;

            if (IsParentStartElement(reader, false, true))
            {
                TypeCheckResponseField         = new TypeCheckResponse();
                TypeCheckResponseField.AnyAttr = ReadAnyAttribute(reader);
                reader.Read();
                if (IsChildStartElement(reader, "BoolCheck", false, true))
                {
                    reader.Read();
                    TypeCheckResponseField.BoolCheck = XmlConvert.ToBoolean(reader.ReadString());
                    reader.ReadEndElement();
                }
                if (IsChildStartElement(reader, "DecimalCheck", false, true))
                {
                    reader.Read();
                    TypeCheckResponseField.DecimalCheck = reader.ReadString();
                    reader.ReadEndElement();
                }
                if (IsChildStartElement(reader, "FloatCheck", false, true))
                {
                    reader.Read();
                    TypeCheckResponseField.FloatCheck = XmlConvert.ToSingle(reader.ReadString());
                    reader.ReadEndElement();
                }
                if (IsChildStartElement(reader, "UriListCheck", false, true))
                {
                    reader.Read();
                    string[] tempList = reader.ReadString().Split();
                    TypeCheckResponseField.UriListCheck = new string[tempList.Length];
                    int i;
                    for (i = 0; (i < tempList.Length); i = (i + 1))
                    {
                        TypeCheckResponseField.UriListCheck[i] = tempList[i];
                    }
                    reader.ReadEndElement();
                }
                TypeCheckResponseField.Any = ReadAnyElement(reader, false);
                reader.ReadEndElement();
            }
            return(TypeCheckResponseField);
        }