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 として指定します。

FetchForPlayerBlocked

FetchForPlayerResponse FetchForPlayerBlocking()

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

data_source や timeout を指定しないと、data_source を CACHE_OR_NETWORK、タイムアウトを 10 年と指定して、FetchForPlayerResponse の FetchForPlayerBlocked(DataSource data_source, Timeout timeout) を呼び出すのと同等になります。

FetchForPlayerBlocked

FetchForPlayerResponse FetchForPlayerBlocking(
  DataSource data_source
)

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

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

FetchForPlayerBlocked

FetchForPlayerResponse FetchForPlayerBlocking(
  Timeout timeout
)

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

タイムアウトをミリ秒単位で指定します。data_source を指定しないと、data_source を CACHE_OR_NETWORK として指定し、タイムアウトを指定された値で指定して、FetchForPlayerResponse の FetchForPlayerBlocked(DataSource data_source, Timeout timeout) を呼び出した場合と同等の関数が呼び出されます。

FetchForPlayerBlocked

FetchForPlayerResponse FetchForPlayerBlocking(
  DataSource data_source,
  Timeout timeout
)

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

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