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

static Response FlickrNet::Flickr::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 454 of file Flickr.cs.

            {
                  XmlSerializer serializer = _responseSerializer;
                  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 FlickrException(9998, "Invalid response received (" + ex.Message + ")");
                  }
            }


Generated by  Doxygen 1.6.0   Back to index