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 )
明確的建構函式。
PlayerId
const std::string & PlayerId() const
傳回玩家 ID。
有效
bool Valid() const
如果傳回的項目已填入資料,並且附上成功的回應狀態,則會傳回 true;若是使用者建立的項目,或是已填入資料,但具有失敗回應狀態,則為 false。
這個項目的 getter 函式 (PlayerId、Score 等) 必須為 true。
~項目
~Entry()