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를 지정하지 않으면 이 함수 호출이 FetchForPlayer(DataSource data_source, FetchForPlayerCallback callback) 호출과 같아집니다. 여기서 data_source는 CACHE_OR_NETWORK로 지정됩니다.

FetchForPlayer

void FetchForPlayer(
  DataSource data_source,
  FetchForPlayerCallback callback
)

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

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

FetchForPlayerBlocking

FetchForPlayerResponse FetchForPlayerBlocking()

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

data_source 또는 제한 시간을 지정하지 않으면 이 함수 호출이 FetchForPlayerResponse FetchForPlayerBlocking(DataSource data_source, TimeoutTimeout)을 호출하는 것과 같습니다. data_source는 CACHE_OR_NETWORK로 지정되고 제한 시간은 10년으로 지정됩니다.

FetchForPlayerBlocking

FetchForPlayerResponse FetchForPlayerBlocking(
  DataSource data_source
)

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

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

FetchForPlayerBlocking

FetchForPlayerResponse FetchForPlayerBlocking(
  Timeout timeout
)

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

제한 시간을 임의의 밀리초 단위로 지정합니다. data_source를 지정하지 않으면 이 함수 호출이 FetchForPlayerResponse FetchForPlayerBlocking(DataSource data_source, TimeoutTimeout)을 호출하는 것과 같습니다. data_source는 CACHE_OR_NETWORK로 지정되고 제한 시간에 지정된 값이 포함됩니다.

FetchForPlayerBlocking

FetchForPlayerResponse FetchForPlayerBlocking(
  DataSource data_source,
  Timeout timeout
)

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

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