PartialOptionsIntoArray() 공개 정적인 메소드

Adds the partial options to the passed in Hashtable.
public static PartialOptionsIntoArray ( PartialSearchOptions options, string>.Dictionary parameters ) : void
options PartialSearchOptions The options to convert to an array.
parameters string>.Dictionary The to add the option key value pairs to.
리턴 void
예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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));
        }
예제 #3
0
        /// <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));
        }
예제 #4
0
        /// <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));
        }