FlickrNet.Flickr.GroupPoolGetContext C# (CSharp) Method

GroupPoolGetContext() public method

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.
public GroupPoolGetContext ( string photoId, string groupId ) : Context
photoId string The Photo ID for the photo you want the context for.
groupId string The group ID for the group you want the context to be relevant to.
return Context
        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);
            }
        }
Flickr