These queries require a target network site.
상속: Query, ISiteQuery, IFilteredQuery
예제 #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);
 }
예제 #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);
 }