gpg::StatsManager

#include <stats_manager.h>

다양한 통계 관련 데이터를 가져오고 설정합니다.

요약

공개 유형

FetchForPlayerCallback typedef
std::function< void(const FetchForPlayerResponse &)>
FetchForPlayerResponse를 수신하는 콜백 유형을 정의합니다.

공개 함수

FetchForPlayer(FetchForPlayerCallback callback)
void
비동기적으로 현재 로그인한 플레이어의 모든 통계 데이터를 로드합니다.
FetchForPlayer(DataSource data_source, FetchForPlayerCallback callback)
void
비동기적으로 현재 로그인한 플레이어의 모든 통계 데이터를 로드합니다.
FetchForPlayerBlocking()
동기식으로 현재 로그인한 플레이어의 모든 통계 데이터를 로드하여 FetchForPlayerResponse를 직접 반환합니다.
FetchForPlayerBlocking(DataSource data_source)
동기식으로 현재 로그인한 플레이어의 모든 통계 데이터를 로드하여 FetchForPlayerResponse를 직접 반환합니다.
FetchForPlayerBlocking(Timeout timeout)
동기식으로 현재 로그인한 플레이어의 모든 통계 데이터를 로드하여 FetchForPlayerResponse를 직접 반환합니다.
FetchForPlayerBlocking(DataSource data_source, Timeout timeout)
동기식으로 현재 로그인한 플레이어의 모든 통계 데이터를 로드하여 FetchForPlayerResponse를 직접 반환합니다.

구조체

gpg::StatsManager::FetchForPlayerResponse

응답 상태와 함께 모든 PlayerStats 데이터를 보유합니다.

공개 유형

FetchForPlayerCallback

std::function< void(const FetchForPlayerResponse &)> FetchForPlayerCallback

FetchForPlayerResponse를 수신하는 콜백 유형을 정의합니다.

이 콜백 유형은 아래 FetchForPlayer(*) 함수에 제공됩니다.

공개 함수

FetchForPlayer

void FetchForPlayer(
  FetchForPlayerCallback callback
)

비동기적으로 현재 로그인한 플레이어의 모든 통계 데이터를 로드합니다.

작업 완료 시 제공된 FetchForPlayerCallback을 호출합니다. data_source를 지정하지 않으면 data_source가 CACHE_OR_NETWORK로 지정된 FetchForPlayer(DataSource data_source, FetchForPlayerCallback callback)를 호출하는 것과 동일하게 이 함수 호출이 이루어집니다.

FetchForPlayer

void FetchForPlayer(
  DataSource data_source,
  FetchForPlayerCallback callback
)

비동기적으로 현재 로그인한 플레이어의 모든 통계 데이터를 로드합니다.

작업 완료 시 제공된 FetchForPlayerCallback을 호출합니다. data_source를 CACHE_OR_NETWORK 또는 NETWORK_ONLY로 지정합니다.

FetchForPlayerBlocking

FetchForPlayerResponse FetchForPlayerBlocking()

동기식으로 현재 로그인한 플레이어의 모든 통계 데이터를 로드하여 FetchForPlayerResponse를 직접 반환합니다.

data_source 또는 timeout를 지정하지 않으면 data_source는 CACHE_OR_NETWORK로, 제한 시간은 10년으로 지정하여 FetchForPlayerResponse FetchForPlayerBlocking(DataSource data_source, Timeout timeout)을 호출하는 것과 동일하게 됩니다.

FetchForPlayerBlocking

FetchForPlayerResponse FetchForPlayerBlocking(
  DataSource data_source
)

동기식으로 현재 로그인한 플레이어의 모든 통계 데이터를 로드하여 FetchForPlayerResponse를 직접 반환합니다.

data_source를 CACHE_OR_NETWORK 또는 NETWORK_ONLY로 지정합니다. 제한 시간을 지정하지 않으면 이 함수 호출은 지정된 data_source 값과 제한 시간을 10년으로 지정하여 FetchForPlayerResponse FetchForPlayerBlocking(DataSource data_source, 제한 시간 제한)을 호출하는 것과 동일합니다.

FetchForPlayerBlocking

FetchForPlayerResponse FetchForPlayerBlocking(
  Timeout timeout
)

동기식으로 현재 로그인한 플레이어의 모든 통계 데이터를 로드하여 FetchForPlayerResponse를 직접 반환합니다.

제한 시간을 임의의 밀리초 단위로 지정합니다. data_source를 지정하지 않으면 data_source를 CACHE_OR_NETWORK로 지정하고 지정된 값을 포함하는 timeout을 사용하여 FetchForPlayerResponse FetchForPlayerBlocking(DataSource data_source, Timeout timeout)을 호출하는 것과 동일하게 이 함수를 호출합니다.

FetchForPlayerBlocking

FetchForPlayerResponse FetchForPlayerBlocking(
  DataSource data_source,
  Timeout timeout
)

동기식으로 현재 로그인한 플레이어의 모든 통계 데이터를 로드하여 FetchForPlayerResponse를 직접 반환합니다.

data_source를 CACHE_OR_NETWORK 또는 NETWORK_ONLY로 지정합니다. 제한 시간을 임의의 밀리초 단위로 지정합니다.