Show / Hide Table of Contents

Class SteamService

Inheritance
System.Object
SteamService
Namespace: CommonBotLibrary.Services
Assembly: cs.temp.dll.dll
Syntax
public class SteamService : IWebpageService, ISearchable<IWebpage>

Methods

GetCurrentPlayersAsync(UInt32)

Gets the number of current players for an app from the Steam Web API.

Declaration
public Task<uint> GetCurrentPlayersAsync(uint appId)
Parameters
Type Name Description
System.UInt32 appId

The ID of the app to retrieve players for.

Returns
Type Description
Task<System.UInt32>

The number of current players.

GetSteamSpyDataAsync(UInt32)

Searches steamspy.com for statistics about a game.

Declaration
public Task<SteamSpyData> GetSteamSpyDataAsync(uint appId)
Parameters
Type Name Description
System.UInt32 appId

The game id to fetch stats for.

Returns
Type Description
Task<SteamSpyData>

Owner and player data for the matched game.

See Also
TOS

SearchAsync(String, String)

Searches steampowered.com for games that match a given title.

Declaration
public Task<IEnumerable<SteamResult>> SearchAsync(string title, string currency = "USD")
Parameters
Type Name Description
System.String title

The game title to search for.

System.String currency

The currency to retrieve prices in.

Returns
Type Description
Task<IEnumerable<SteamResult>>

A collection of relevant games.

Back to top © 2017 - Borja Canseco