C# Class DotaMatches.MatchFetcher

Mostrar archivo Open project: spew/dota-matches

Public Methods

Method Description
FetchGame ( ulong matchId ) : byte[]
FetchGames ( ulong matchIds, bool retryFailures = false ) : DotaMatches.MatchFetchResult[]

For best performance you will want to call this method with 15-20 match ids and retryFailures set to false. With these settings you can achieve 15+ matches downloaded per second.

MatchFetcher ( SteamMessenger messenger ) : System

Private Methods

Method Description
BuildMessage ( ulong matchId ) : byte[]

Method Details

FetchGame() public method

public FetchGame ( ulong matchId ) : byte[]
matchId ulong
return byte[]

FetchGames() public method

For best performance you will want to call this method with 15-20 match ids and retryFailures set to false. With these settings you can achieve 15+ matches downloaded per second.
public FetchGames ( ulong matchIds, bool retryFailures = false ) : DotaMatches.MatchFetchResult[]
matchIds ulong List of match ids to retrieve
retryFailures bool If true then we retry all hte failures and return why they failed
return DotaMatches.MatchFetchResult[]

MatchFetcher() public method

public MatchFetcher ( SteamMessenger messenger ) : System
messenger SteamMessenger
return System