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

nextSubmerchantCreditResponse() public method

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

                if (!submerchantCreditResponseReader.ReadToFollowing("submerchantCreditResponse"))
                {
                    submerchantCreditResponseReader.Close();
                }

                return i;
            }

            return null;
        }
batchResponse