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

Context FlickrNet::Flickr::PhotosetsGetContext ( string  photoId,
string  photosetId 
) [inline]

Gets the context of the specified photo within the photoset.

Parameters:
photoId The photo id of the photo in the set.
photosetId The id of the set.
Returns:
Context of the specified photo.

Definition at line 2622 of file Flickr.cs.

References FlickrNet::Context::Count, FlickrNet::Context::NextPhoto, and FlickrNet::Context::PreviousPhoto.

            {
                  NameValueCollection parameters = new NameValueCollection();
                  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);
                  }
            }


Generated by  Doxygen 1.6.0   Back to index