gpg::ScorePage::Entry

#include <score_page.h>

可在得分頁面上建立項目的類別。

摘要

建構函式和解構函式

Entry()
Entry(std::shared_ptr< const EntryImpl > impl)
明確的建構函式。
Entry(const Entry & copy_from)
複製現有項目到新項目的建構函式。
Entry(Entry && move_from)
將現有項目移至新項目的建構函式。
~Entry()

公用函式

LastModified() const 已淘汰。 偏好 LastModifiedTime。
LastModifiedTime() const
傳回項目上次修改時間 (以毫秒為單位,自 Unix 紀元開始算起)。
PlayerId() const
const std::string &
傳回玩家 ID。
Score() const
const gpg::Score &
傳回玩家得分。
Valid() const
bool
如果傳回的項目已填入資料,並且伴隨成功的回應狀態,則傳回 true;如果是未填入的使用者建立項目,或是已填入的項目包含失敗回應狀態,則為 false。
operator=(const Entry & copy_from)
Entry &
可從其他項目指派這個項目的值的指派運算子。
operator=(Entry && move_from)
Entry &
可從其他項目指派這個項目的值的指派運算子。

公用函式

項目

 Entry()

項目

 Entry(
  std::shared_ptr< const EntryImpl > impl
)

明確的建構函式。

項目

 Entry(
  const Entry & copy_from
)

複製現有項目到新項目的建構函式。

項目

 Entry(
  Entry && move_from
)

將現有項目移至新項目的建構函式。

r-value-reference 版本。

LastModified

Timestamp LastModified() const 

已淘汰。 偏好 LastModifiedTime。

LastModifiedTime

Timestamp LastModifiedTime() const 

傳回項目上次修改時間 (以毫秒為單位,自 Unix 紀元開始算起)。

PlayerId

const std::string & PlayerId() const 

傳回玩家 ID。

分數

const gpg::Score & Score() const 

傳回玩家得分。

有效

bool Valid() const 

如果傳回的項目已填入資料,並且伴隨成功的回應狀態,則傳回 true;如果是未填入的使用者建立項目,或是已填入的項目包含失敗回應狀態,則為 false。

此項目中的 getter 函式 (PlayerId、Score 等) 必須設為 true 才能使用。

運算子=

Entry & operator=(
  const Entry & copy_from
)

可從其他項目指派這個項目的值的指派運算子。

運算子=

Entry & operator=(
  Entry && move_from
)

可從其他項目指派這個項目的值的指派運算子。

r-value-reference 版本。

~項目

 ~Entry()