GamesMetadataClient

public interface GamesMetadataClient

A client to receive GamesMetadata.

Public Method Summary

abstract Task<Game>
getCurrentGame()
Returns a Task which asynchronously loads the Game metadata for the current game from the local cache.
abstract Task<AnnotatedData<Game>>
loadGame()
Returns a Task which asynchronously loads an annotated Game metadata for the current game.

Public Methods

public abstract Task<Game> getCurrentGame ()

Returns a Task which asynchronously loads the Game metadata for the current game from the local cache.

The Task returned will not be null, but the Game returned from the Task may be null if the metadata is not available locally.

Required Scopes: SCOPE_GAMES_LITE

public abstract Task<AnnotatedData<Game>> loadGame ()

Returns a Task which asynchronously loads an annotated Game metadata for the current game.

Required Scopes: SCOPE_GAMES_LITE