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

Context FlickrNet::Flickr::GroupPoolGetContext ( string  photoId,
string  groupId 
) [inline]

Gets the context for a photo from within a group. This provides the id and thumbnail url for the next and previous photos in the group.

photoId The Photo ID for the photo you want the context for.
groupId The group ID for the group you want the context to be relevant to.
The Context of the photo in the group.

Definition at line 1271 of file Flickr.cs.

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

                  NameValueCollection parameters = new NameValueCollection();
                  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;
                        throw new FlickrException(response.Error);

Generated by  Doxygen 1.6.0   Back to index