示例#1
0
 /// <summary>
 /// Queue a facet request for inclusion in the next multi request.
 /// </summary>
 /// <param name="table">the name of the table you wish to use a facet request against (e.g., "places")</param>
 /// <param name="query">the facet query to run against table.</param>
 public void QueueFetch(string table, FacetQuery query)
 {
     MultiQuery.AddQuery(UrlForFacets(table), query.ToUrlQuery());
 }
 /// <summary>
 /// Queue a facet request for inclusion in the next multi request.
 /// </summary>
 /// <param name="table">the name of the table you wish to use a facet request against (e.g., "places")</param>
 /// <param name="query">the facet query to run against table.</param>
 public void QueueFetch(string table, FacetQuery query)
 {
     MultiQuery.AddQuery(UrlForFacets(table), query.ToUrlQuery());
 }
示例#3
0
 /// <summary>
 /// Runs a facet read against the specified Factual table.
 /// </summary>
 /// <param name="tableName">the name of the table you wish to query for facets (e.g., "places")</param>
 /// <param name="query">the facet query to run against table</param>
 /// <returns>the response of running facet against Factual.</returns>
 public string Fetch(string tableName, FacetQuery query)
 {
     return RawQuery(UrlForFacets(tableName), query.ToUrlQuery());
 }
 /// <summary>
 /// Runs a facet read against the specified Factual table.
 /// </summary>
 /// <param name="tableName">the name of the table you wish to query for facets (e.g., "places")</param>
 /// <param name="query">the facet query to run against table</param>
 /// <returns>the response of running facet against Factual.</returns>
 public string Fetch(string tableName, FacetQuery query)
 {
     return(RawQuery(UrlForFacets(tableName), query.ToUrlQuery()));
 }