30 #ifndef GOOGLE_GAMES_API_ACHIEVEMENT_REVEAL_RESPONSE_H_ 31 #define GOOGLE_GAMES_API_ACHIEVEMENT_REVEAL_RESPONSE_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_games_api::AchievementRevealResponse");
93 return Storage().isMember(
"currentState");
100 MutableStorage()->removeMember(
"currentState");
108 const Json::Value& v = Storage(
"currentState");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
130 *MutableStorage(
"currentState") = value.data();
139 return Storage().isMember(
"kind");
146 MutableStorage()->removeMember(
"kind");
154 const Json::Value& v = Storage(
"kind");
155 if (v == Json::Value::null)
return StringPiece(
"");
156 return StringPiece(v.asCString());
168 *MutableStorage(
"kind") = value.data();
175 #endif // GOOGLE_GAMES_API_ACHIEVEMENT_REVEAL_RESPONSE_H_ void set_kind(const StringPiece &value)
Definition: achievement_reveal_response.h:167
void set_current_state(const StringPiece &value)
Definition: achievement_reveal_response.h:129
const StringPiece get_kind() const
Definition: achievement_reveal_response.h:153
void clear_kind()
Definition: achievement_reveal_response.h:145
void clear_current_state()
Definition: achievement_reveal_response.h:99
Definition: achievement_definition.cc:41
Definition: achievement_definition.h:39
bool has_current_state() const
Definition: achievement_reveal_response.h:92
const StringPiece GetTypeName() const
Definition: achievement_reveal_response.h:83
bool has_kind() const
Definition: achievement_reveal_response.h:138
const StringPiece get_current_state() const
Definition: achievement_reveal_response.h:107
Definition: achievement_reveal_response.h:50