/// <summary> /// Get all the contexts (group, set and photostream 'next' and 'previous' /// pictures) for a photo. /// </summary> /// <param name="photoId">The photo id of the photo to get the contexts for.</param> /// <returns>An instance of the <see cref="AllContexts"/> class.</returns> public AllContexts PhotosGetAllContexts(string photoId) { Hashtable parameters = new Hashtable(); parameters.Add("method", "flickr.photos.getAllContexts"); parameters.Add("photo_id", photoId); FlickrNet.Response response = GetResponseCache(parameters); if( response.Status == ResponseStatus.OK ) { AllContexts contexts = new AllContexts(response.AllElements); return contexts; } else { throw new FlickrException(response.Error); } }