These queries require a target network site.
Inheritance: Query, ISiteQuery, IFilteredQuery
Exemple #1
0
 /// <summary>
 /// Makes a request to API method /info
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/info</para>
 /// </summary>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>Returns a collection of statistics about the site.</returns>
 public override IBridgeResponseItem<NetworkSiteStats> GetInfo(SiteQuery parameters = null)
 {
     return GetApiResultItem<NetworkSiteStats, SiteQuery>(ApiMethodEnum.Info, parameters);
 }
Exemple #2
0
 /// <summary>
 /// Makes a request to API method /errors/{id}
 /// <para>Documentation can be found following the link below:</para>
 /// <para>https://api.stackexchange.com/docs/simulate-error</para>
 /// </summary>
 /// <param name="id">The id of the error to simulate</param>
 /// <param name="parameters">The request parameters.</param>
 /// <returns>This method allows you to generate an error.</returns>
 public override IBridgeResponseItem<ApiException> SimulateError(int id, SiteQuery parameters = null)
 {
     return GetApiResultItem<ApiException, SiteQuery>(ApiMethodEnum.SimulateError, CreateIdVector(id), parameters);
 }