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, 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 を指定します。タイムアウトは任意のミリ秒数で指定します。