public Context GroupPoolGetContext(string photoId, string groupId)
{
Hashtable parameters = new Hashtable();
parameters.Add("method", "flickr.groups.pools.getContext");
parameters.Add("photo_id", photoId);
parameters.Add("group_id", groupId);
FlickrNet.Response response = GetResponseCache(parameters);
if( response.Status == ResponseStatus.OK )
{
Context context = new Context();
context.Count = response.ContextCount.Count;
context.NextPhoto = response.ContextNextPhoto;
context.PreviousPhoto = response.ContextPrevPhoto;
return context;
}
else
{
throw new FlickrException(response.Error);
}
}