@gameye/sdk
Version:
Node.js SDK for Gameye
21 lines (20 loc) • 838 B
TypeScript
import * as models from "../models";
export declare type MatchItem = models.MatchQueryMatchItem;
/**
* Select a list of active matches.
* @param matchState match state
*/
export declare function selectMatchList(matchState: models.MatchQueryState): MatchItem[];
/**
* Select a list of active matches for a game.
* @param matchState match state
* @param gameKey identifier of the game to select matches for
*/
export declare function selectMatchListForGame(matchState: models.MatchQueryState, gameKey: string): MatchItem[];
/**
* Get details about a single match from a match-state as returned by
* the gameye api.
* @param matchState match state
* @param matchKey identifier of the match to get the details for
*/
export declare function selectMatchItem(matchState: models.MatchQueryState, matchKey: string): MatchItem | null;