Litle.Sdk.litleResponse.readXml C# (CSharp) Method

readXml() public method

public readXml ( XmlReader reader, string filePath ) : void
reader XmlReader
filePath string
return void
        public void readXml(XmlReader reader, string filePath)
        {
            if (reader.ReadToFollowing("litleResponse"))
            {
                version = reader.GetAttribute("version");
                message = reader.GetAttribute("message");
                response = reader.GetAttribute("response");

                string rawLitleSessionId = reader.GetAttribute("litleSessionId");
                if (rawLitleSessionId != null)
                {
                    litleSessionId = Int64.Parse(rawLitleSessionId);
                }
            }
            else
            {
                reader.Close();
            }

            this.originalXmlReader = reader;
            this.filePath = filePath;

            this.batchResponseReader = new XmlTextReader(filePath);
            if (!batchResponseReader.ReadToFollowing("batchResponse"))
            {
                batchResponseReader.Close();
            }

            this.rfrResponseReader = new XmlTextReader(filePath);
            if (!rfrResponseReader.ReadToFollowing("RFRResponse"))
            {
                rfrResponseReader.Close();
            }
        }