gpg::ScoreSummary

#include <score_summary.h>

允许您访问得分信息摘要的单一数据结构。

摘要

构造函数和析构函数

ScoreSummary()
ScoreSummary(std::shared_ptr< const ScoreSummaryImpl > impl)
构造从 shared_ptrScoreSummaryImplScoreSummary
ScoreSummary(const ScoreSummary & copy_from)
创建现有 ScoreSummary 的副本。
ScoreSummary(ScoreSummary && move_from)
移动现有的 ScoreSummary
~ScoreSummary()

公共函数

ApproximateNumberOfScores() const
uint64_t
返回得分页面上的大致得分数量。
Collection() const
返回排行榜所属的集合。
CurrentPlayerScore() const
const Score &
返回当前已登录玩家的得分。
LeaderboardId() const
const std::string &
返回 Google Play 管理中心事先生成的唯一字符串。
TimeSpan() const
返回排行榜时间范围。
Valid() const
bool
如果此 ScoreSummary 填充有数据,则返回 true。
operator=(const ScoreSummary & copy_from)
通过从其他实例复制来分配此ScoreSummary
operator=(ScoreSummary && move_from)
通过将另一个对象移入ScoreSummary来分配此对象。

公共函数

ApproximateNumberOfScores

uint64_t ApproximateNumberOfScores() const 

返回得分页面上的大致得分数量。

如果未请求任何分数 (max_results = 0),则返回错误;如果分数过多,则将其限定为 25。

集合

LeaderboardCollection Collection() const 

返回排行榜所属的集合。

可能的值为 PUBLIC 和 SOCIAL。

CurrentPlayerScore

const Score & CurrentPlayerScore() const 

返回当前已登录玩家的得分。

LeaderboardId

const std::string & LeaderboardId() const 

返回 Google Play 管理中心事先生成的唯一字符串。

可以用它来引用游戏客户端中的排行榜。只有在 Leaderboard::Valid() 返回 true 时才能调用此方法。

ScoreSummary

 ScoreSummary()

ScoreSummary

 ScoreSummary(
  std::shared_ptr< const ScoreSummaryImpl > impl
)

构造从 shared_ptrScoreSummaryImplScoreSummary

供 API 内部使用。

ScoreSummary

 ScoreSummary(
  const ScoreSummary & copy_from
)

创建现有 ScoreSummary 的副本。

ScoreSummary

 ScoreSummary(
  ScoreSummary && move_from
)

移动现有的 ScoreSummary

TimeSpan

LeaderboardTimeSpan TimeSpan() const 

返回排行榜时间范围。

可能的值包括 DAILY、WEEKLY 或 ALL_TIME。

有效

bool Valid() const 

如果此 ScoreSummary 填充有数据,则返回 true。

必须返回 true 才能使 ScoreSummary 对象(LeaderboardIdTimeSpan 等)的 getter 函数可用。

运算符=

ScoreSummary & operator=(
  const ScoreSummary & copy_from
)

通过从其他实例复制来分配此ScoreSummary

运算符=

ScoreSummary & operator=(
  ScoreSummary && move_from
)

通过将另一个对象移入ScoreSummary来分配此对象。

~ScoreSummary

 ~ScoreSummary()