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.

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

Definition at line 309 of file Utils.cs.

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

                        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