public Context PhotosetsGetContext(string photoId, string photosetId)
{
Hashtable parameters = new Hashtable();
parameters.Add("method", "flickr.photosets.getContext");
parameters.Add("photo_id", photoId);
parameters.Add("photoset_id", photosetId);
FlickrNet.Response response = GetResponseCache(parameters);
if( response.Status == ResponseStatus.OK )
{
Context c = new Context();
c.Count = response.ContextCount.Count;
c.NextPhoto = response.ContextNextPhoto;
c.PreviousPhoto = response.ContextPrevPhoto;
return c;
}
else
{
throw new FlickrException(response.Error);
}
}