/// <summary> /// Get a list of suggestions for a photo. /// </summary> /// <param name="photoId">The photo id of the photo to list the suggestions for.</param> /// <param name="status">The type of status to filter by.</param> /// <returns></returns> public SuggestionCollection PhotosSuggestionsGetList(string photoId, SuggestionStatus status) { CheckRequiresAuthentication(); var parameters = new Dictionary<string, string>(); parameters.Add("method", "flickr.photos.suggestions.getList"); parameters.Add("photo_id", photoId); parameters.Add("status_id", status.ToString("d")); return GetResponseCache<SuggestionCollection>(parameters); }
/// <summary> /// Get a list of suggestions for a photo. /// </summary> /// <param name="photoId">The photo id of the photo to list the suggestions for.</param> /// <param name="status">The type of status to filter by.</param> /// <param name="callback"></param> /// <returns></returns> public void PhotosSuggestionsGetListAsync(string photoId, SuggestionStatus status, Action<FlickrResult<SuggestionCollection>> callback) { CheckRequiresAuthentication(); var parameters = new Dictionary<string, string>(); parameters.Add("method", "flickr.photos.suggestions.getList"); parameters.Add("photo_id", photoId); parameters.Add("status_id", status.ToString("d")); GetResponseAsync<SuggestionCollection>(parameters, callback); }
/// <summary> /// Get a list of suggestions for a photo. /// </summary> /// <param name="photoId">The photo id of the photo to list the suggestions for.</param> /// <param name="status">The type of status to filter by.</param> /// <param name="callback"></param> /// <returns></returns> public void PhotosSuggestionsGetListAsync(string photoId, SuggestionStatus status, Action <FlickrResult <SuggestionCollection> > callback) { CheckRequiresAuthentication(); var parameters = new Dictionary <string, string>(); parameters.Add("method", "flickr.photos.suggestions.getList"); parameters.Add("photo_id", photoId); parameters.Add("status_id", status.ToString("d")); GetResponseAsync <SuggestionCollection>(parameters, callback); }
/// <summary> /// Get a list of suggestions for a photo. /// </summary> /// <param name="photoId">The photo id of the photo to list the suggestions for.</param> /// <param name="status">The type of status to filter by.</param> /// <returns></returns> public SuggestionCollection PhotosSuggestionsGetList(string photoId, SuggestionStatus status) { CheckRequiresAuthentication(); var parameters = new Dictionary <string, string>(); parameters.Add("method", "flickr.photos.suggestions.getList"); parameters.Add("photo_id", photoId); parameters.Add("status_id", status.ToString("d")); return(GetResponseCache <SuggestionCollection>(parameters)); }
public SuggestionCollection PhotosSuggestionsGetList(string photoId, SuggestionStatus status) { var dictionary = new Dictionary<string, string>(); dictionary.Add("method", "flickr.photos.suggestions.getList"); dictionary.Add("photo_id", photoId); dictionary.Add("status", status.ToString().ToLower()); return GetResponse<SuggestionCollection>(dictionary); }