Exemplo n.º 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());
 }
Exemplo n.º 2
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());
 }
Exemplo n.º 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());
 }
Exemplo n.º 4
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()));
 }