/// <summary>
        /// Search for a set of photos, based on the value of the <see cref="PhotoSearchOptions"/> parameters.
        /// </summary>
        /// <param name="options">The parameters to search for.</param>
        /// <returns>A collection of photos contained within a <see cref="PhotoCollection"/> object.</returns>
        public PhotoCollection PhotosSearch(PhotoSearchOptions options)
        {
            var parameters = new Dictionary <string, string>();

            parameters.Add("method", "flickr.photos.search");

            options.AddToDictionary(parameters);

            return(GetResponseCache <PhotoCollection>(parameters));
        }
예제 #2
0
 internal PartialSearchOptions(PhotoSearchOptions options)
 {
     Extras        = options.Extras;
     MaxTakenDate  = options.MaxTakenDate;
     MinTakenDate  = options.MinTakenDate;
     MaxUploadDate = options.MaxUploadDate;
     MinUploadDate = options.MinUploadDate;
     Page          = options.Page;
     PerPage       = options.PerPage;
     PrivacyFilter = options.PrivacyFilter;
 }