public static PartialOptionsIntoArray ( |
||
options | The options to convert to an array. | |
parameters | string>.Dictionary | The |
리턴 | void |
/// <summary> /// Gets a list of photos that contain geo location information. /// </summary> /// <remarks> /// Note, this method doesn't actually return the location information with the photos, /// unless you specify the <see cref="PhotoSearchExtras.Geo"/> option in the <c>extras</c> parameter. /// </remarks> /// <param name="options">The options to filter/sort the results by.</param> /// <param name="callback">Callback method to call upon return of the response from Flickr.</param> public void PhotosGetWithGeoDataAsync(PartialSearchOptions options, Action <FlickrResult <PhotoCollection> > callback) { var parameters = new Dictionary <string, string>(); parameters.Add("method", "flickr.photos.getWithGeoData"); UtilityMethods.PartialOptionsIntoArray(options, parameters); GetResponseAsync <PhotoCollection>(parameters, callback); }
/// <summary> /// Gets a list of photos that contain geo location information. /// </summary> /// <remarks> /// Note, this method doesn't actually return the location information with the photos, /// unless you specify the <see cref="PhotoSearchExtras.Geo"/> option in the <c>extras</c> parameter. /// </remarks> /// <param name="options">The options to filter/sort the results by.</param> /// <returns>A list of photos that contain Location information.</returns> public PhotoCollection PhotosGetWithGeoData(PartialSearchOptions options) { Dictionary <string, string> parameters = new Dictionary <string, string>(); parameters.Add("method", "flickr.photos.getWithGeoData"); UtilityMethods.PartialOptionsIntoArray(options, parameters); return(GetResponseCache <PhotoCollection>(parameters)); }
/// <summary> /// Gets a list of photos that contain geo location information. /// </summary> /// <remarks> /// Note, this method doesn't actually return the location information with the photos, /// unless you specify the <see cref="PhotoSearchExtras.Geo"/> option in the <c>extras</c> parameter. /// </remarks> /// <param name="options">The options to filter/sort the results by.</param> /// <param name="callback">Callback method to call upon return of the response from Flickr.</param> public async Task <FlickrResult <PhotoCollection> > PhotosGetWithGeoDataAsync(PartialSearchOptions options) { Dictionary <string, string> parameters = new Dictionary <string, string>(); parameters.Add("method", "flickr.photos.getWithGeoData"); UtilityMethods.PartialOptionsIntoArray(options, parameters); return(await GetResponseAsync <PhotoCollection>(parameters)); }
/// <summary> /// Gets a list of the authenticated users photos which are not in a set. /// </summary> /// <param name="options">A selection of options to filter/sort by.</param> /// <returns>A collection of photos in the <see cref="PhotoCollection"/> class.</returns> public PhotoCollection PhotosGetNotInSet(PartialSearchOptions options) { CheckRequiresAuthentication(); var parameters = new Dictionary <string, string>(); parameters.Add("method", "flickr.photos.getNotInSet"); UtilityMethods.PartialOptionsIntoArray(options, parameters); return(GetResponseCache <PhotoCollection>(parameters)); }