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 を指定しないと、この関数の呼び出しは FetchForPlayerResponse の FetchForPlayerBlocking(DataSource data_source, Timeout timeout) と同等になります。その際、data_source を CACHE_OR_NETWORK に、timeout を 10 年として指定します。

FetchForPlayerBlocking

FetchForPlayerResponse FetchForPlayerBlocking(
  DataSource data_source
)

現在ログインしているプレーヤーの統計データをすべて同期的に読み込み、FetchForPlayerResponse を直接返します。

data_source を CACHE_OR_NETWORK または NETWORK_ONLY として指定します。タイムアウトを指定しないと、この関数呼び出しは FetchForPlayerResponse の FetchForPlayerBlocked(DataSource data_source, Timeout timeout) を、指定した data_source 値に指定し、タイムアウトを 10 年として呼び出すのと同じになります。

FetchForPlayerBlocking

FetchForPlayerResponse FetchForPlayerBlocking(
  Timeout timeout
)

現在ログインしているプレーヤーの統計データをすべて同期的に読み込み、FetchForPlayerResponse を直接返します。

タイムアウトを任意のミリ秒数で指定します。data_source を指定しないと、この関数の呼び出しは FetchForPlayerResponse FetchForPlayerBlocking(DataSource data_source, Timeout timeout) を、CACHE_OR_NETWORK として data_source を指定し、指定された値を含むタイムアウトを呼び出す場合と同等になります。

FetchForPlayerBlocking

FetchForPlayerResponse FetchForPlayerBlocking(
  DataSource data_source,
  Timeout timeout
)

現在ログインしているプレーヤーの統計データをすべて同期的に読み込み、FetchForPlayerResponse を直接返します。

data_source を CACHE_OR_NETWORK または NETWORK_ONLY として指定します。タイムアウトを任意のミリ秒数で指定します。