コード例 #1
0
ファイル: SteamRequest.cs プロジェクト: chaoscode/SteamSharp
 /// <summary>
 /// Initializes SteamRequest with a resource constructed via the Steam Interface, Steam API Method, and Steam API Version
 /// </summary>
 /// <param name="steamInterface">Steam API Interface to access (i.e. ISteamNews)</param>
 /// <param name="steamApi">Method within the Steam API to use (i.e. GetNewsForApp)</param>
 /// <param name="version">Version of the API being requested (i.e. v0001)</param>
 /// <param name="method">HTTP Method to use for this request</param>
 public SteamRequest( SteamAPIInterface steamInterface, string steamApi, SteamMethodVersion version, HttpMethod method )
     : this(( Enum.GetName( typeof( SteamAPIInterface ), steamInterface ) + "/" + steamApi + "/" + Enum.GetName( typeof( SteamMethodVersion ), version ) ), method)
 {
     SteamInterface = steamInterface;
     SteamApiMethod = steamApi;
     SteamMethodVersion = version;
 }
コード例 #2
0
ファイル: SteamRequest.cs プロジェクト: chaoscode/SteamSharp
 /// <summary>
 /// Initializes SteamRequest with a GET resource constructed via the Steam Interface, Steam API Method, and Steam API Version
 /// </summary>
 /// <param name="steamInterface">Steam API Interface to access (i.e. ISteamNews)</param>
 /// <param name="steamApi">Method within the Steam API to use (i.e. GetNewsForApp)</param>
 /// <param name="version">Version of the API being requested (i.e. v0001)</param>
 public SteamRequest( SteamAPIInterface steamInterface, string steamApi, SteamMethodVersion version )
     : this(steamInterface, steamApi, version, HttpMethod.Get)
 {
 }