30 #ifndef GOOGLE_GAMES_API_PARTICIPANT_RESULT_H_ 31 #define GOOGLE_GAMES_API_PARTICIPANT_RESULT_H_ 34 #include "googleapis/base/integral_types.h" 35 #include "googleapis/base/macros.h" 36 #include "googleapis/client/data/jsoncpp_data.h" 37 #include "googleapis/strings/stringpiece.h" 85 return StringPiece(
"google_games_api::ParticipantResult");
94 return Storage().isMember(
"kind");
101 MutableStorage()->removeMember(
"kind");
109 const Json::Value& v = Storage(
"kind");
110 if (v == Json::Value::null)
return StringPiece(
"");
111 return StringPiece(v.asCString());
123 *MutableStorage(
"kind") = value.data();
132 return Storage().isMember(
"participantId");
139 MutableStorage()->removeMember(
"participantId");
147 const Json::Value& v = Storage(
"participantId");
148 if (v == Json::Value::null)
return StringPiece(
"");
149 return StringPiece(v.asCString());
160 *MutableStorage(
"participantId") = value.data();
169 return Storage().isMember(
"placing");
176 MutableStorage()->removeMember(
"placing");
184 const Json::Value& storage = Storage(
"placing");
185 return client::JsonValueToCppValueHelper<int32 >(storage);
198 client::SetJsonValueFromCppValueHelper<int32 >(
199 value, MutableStorage(
"placing"));
208 return Storage().isMember(
"result");
215 MutableStorage()->removeMember(
"result");
223 const Json::Value& v = Storage(
"result");
224 if (v == Json::Value::null)
return StringPiece(
"");
225 return StringPiece(v.asCString());
253 *MutableStorage(
"result") = value.data();
260 #endif // GOOGLE_GAMES_API_PARTICIPANT_RESULT_H_ int32 get_placing() const
Definition: participant_result.h:183
const StringPiece get_kind() const
Definition: participant_result.h:108
void set_participant_id(const StringPiece &value)
Definition: participant_result.h:159
const StringPiece get_result() const
Definition: participant_result.h:222
void clear_result()
Definition: participant_result.h:214
const StringPiece get_participant_id() const
Definition: participant_result.h:146
void set_kind(const StringPiece &value)
Definition: participant_result.h:122
const StringPiece GetTypeName() const
Definition: participant_result.h:84
Definition: achievement_definition.cc:41
Definition: achievement_definition.h:39
void clear_placing()
Definition: participant_result.h:175
void clear_kind()
Definition: participant_result.h:100
bool has_result() const
Definition: participant_result.h:207
bool has_placing() const
Definition: participant_result.h:168
void set_result(const StringPiece &value)
Definition: participant_result.h:252
bool has_kind() const
Definition: participant_result.h:93
void set_placing(int32 value)
Definition: participant_result.h:197
void clear_participant_id()
Definition: participant_result.h:138
Definition: participant_result.h:51
bool has_participant_id() const
Definition: participant_result.h:131