game-common / pragma.matchmaking / MatchmakingApi /

MatchmakingApi #

class MatchmakingApi(service: Service)

The backend entrypoint for sending service RPCs to the MatchmakingService.

Constructors #

MatchmakingApi

fun MatchmakingApi(service: Service)

Functions #

NameSummary

isInMatchmaking

suspend fun isInMatchmaking(playerId: <ERROR CLASS>): PragmaResult<Boolean, PragmaFailure>

Request to check whether a player is currently in matchmaking.

suspend fun isInMatchmaking(playerIds: List<<ERROR CLASS>>): PragmaResult<Map<<ERROR CLASS>, Boolean>, PragmaFailure>

Request to check whether a list of players are currently in matchmaking.