gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse

#include <turn_based_multiplayer_manager.h>

Data and ResponseStatus for TurnBasedMatches and invitations.

Summary

If IsSuccess() does not return true for ResponseStatus, then empty() returns true for a vector of invitations.

Public attributes

completed_matches
std::vector< TurnBasedMatch >
A vector of TurnBasedMatches with MatchStatusCOMPLETED.
data
struct gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::@0
The data field includes all MultiplayerInvitations and TurnBasedMatches, grouped for conventient display in UI.
invitations
std::vector< MultiplayerInvitation >
A vector of all MultiplayerInvitations.
my_turn_matches
std::vector< TurnBasedMatch >
A vector of TurnBasedMatches with MatchStatusMY_TURN or PENDING_COMPLETION.
status
The MultiplayerStatus of the operation that generated this Response.
their_turn_matches
std::vector< TurnBasedMatch >
A vector of TurnBasedMatches with MatchStatusTHEIR_TURN.

Public attributes

completed_matches

std::vector< TurnBasedMatch > gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::completed_matches

A vector of TurnBasedMatches with MatchStatusCOMPLETED.

Matches are sorted by last update time.

data

struct gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::@0 gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::data

The data field includes all MultiplayerInvitations and TurnBasedMatches, grouped for conventient display in UI.

This struct will only contain valid data if IsSuccess(status).

invitations

std::vector< MultiplayerInvitation > gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::invitations

A vector of all MultiplayerInvitations.

Invitations are sorted by last update time.

my_turn_matches

std::vector< TurnBasedMatch > gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::my_turn_matches

A vector of TurnBasedMatches with MatchStatusMY_TURN or PENDING_COMPLETION.

Matches are sorted by last update time.

status

MultiplayerStatus gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::status

The MultiplayerStatus of the operation that generated this Response.

their_turn_matches

std::vector< TurnBasedMatch > gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::their_turn_matches

A vector of TurnBasedMatches with MatchStatusTHEIR_TURN.

Matches are sorted by last update time.