Skip to content

functions in entityservice for listening to gamesession and gamestate

Julian Ammouche Ottosen requested to merge 33-db-listeners into main

To test:

In androidLauncher, for use the listenToGameSession() function and change the gameSession in the db. Example:

service.listenToGameSession("9207", new FirestoreCallback() {
	@Override
	public void onSuccess(Object data) {
		Log.d("AndroidLauncher", "GameSessionData: " + data);
	}

	@Override
	public void onFailure(Exception e) {
		Log.d("AndroidLauncher", "Error: " + e.getMessage());
	}
});

Can do the same for gameState.

Closes #33 (closed)

Merge request reports

Loading