Litle.Sdk.batchResponse.nextVendorDebitResponse C# (CSharp) Method

nextVendorDebitResponse() public method

public nextVendorDebitResponse ( ) : vendorDebitResponse
return vendorDebitResponse
        public virtual vendorDebitResponse nextVendorDebitResponse()
        {
            if (vendorDebitResponseReader.ReadState != ReadState.Closed)
            {
                string response = vendorDebitResponseReader.ReadOuterXml();
                XmlSerializer serializer = new XmlSerializer(typeof(vendorDebitResponse));
                StringReader reader = new StringReader(response);
                vendorDebitResponse i = (vendorDebitResponse)serializer.Deserialize(reader);

                if (!vendorDebitResponseReader.ReadToFollowing("vendorDebitResponse"))
                {
                    vendorDebitResponseReader.Close();
                }

                return i;
            }

            return null;
        }
batchResponse