Logo Search packages:      
Sourcecode: f-spot version File versions

static internal Response FlickrNet::Utils::Deserialize ( string  responseString  )  [inline, static, private]

Converts the response string (in XML) into the Response object.

Parameters:
responseString The response from Flickr.
Returns:
A Response object containing the details of the

Definition at line 309 of file Utils.cs.

            {
                  XmlSerializer serializer = GetSerializer(typeof(FlickrNet.Response));
                  try
                  {
                        // Deserialise the web response into the Flickr response object
                        StringReader responseReader = new StringReader(responseString);
                        FlickrNet.Response response = (FlickrNet.Response)serializer.Deserialize(responseReader);
                        responseReader.Close();

                        return response;
                  }
                  catch(InvalidOperationException ex)
                  {
                        // Serialization error occurred!
                        throw new ResponseXmlException("Invalid response received from Flickr.", ex);
                  }
            }


Generated by  Doxygen 1.6.0   Back to index