예제 #1
0
        /// <summary>
        /// Get taxa information about taxa that matches the data query.
        /// </summary>
        /// <param name="dataQuery">The data query.</param>
        /// <param name="taxonInformationType">Type of taxa information to get.</param>
        /// <returns>Taxa information.</returns>
        public static TaxonList GetTaxaByQuery(IDataQuery dataQuery,
                                               TaxonInformationType taxonInformationType)
        {
            List <WebTaxon> webTaxa;
            WebDataQuery    webDataQuery;

            // Check arguments.
            dataQuery.CheckNotNull("dataQuery");

            // Get data from web service.
            webDataQuery = GetDataQuery(dataQuery);
            webTaxa      = WebServiceClient.GetTaxaByQuery(webDataQuery, taxonInformationType);
            return(GetTaxa(webTaxa));
        }