30 #ifndef GOOGLE_GAMES_API_ACHIEVEMENT_UNLOCK_RESPONSE_H_ 31 #define GOOGLE_GAMES_API_ACHIEVEMENT_UNLOCK_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::AchievementUnlockResponse");
93 return Storage().isMember(
"kind");
100 MutableStorage()->removeMember(
"kind");
108 const Json::Value& v = Storage(
"kind");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
122 *MutableStorage(
"kind") = value.data();
131 return Storage().isMember(
"newlyUnlocked");
138 MutableStorage()->removeMember(
"newlyUnlocked");
146 const Json::Value& storage = Storage(
"newlyUnlocked");
147 return client::JsonValueToCppValueHelper<bool >(storage);
159 client::SetJsonValueFromCppValueHelper<bool >(
160 value, MutableStorage(
"newlyUnlocked"));
167 #endif // GOOGLE_GAMES_API_ACHIEVEMENT_UNLOCK_RESPONSE_H_ void clear_kind()
Definition: achievement_unlock_response.h:99
void set_kind(const StringPiece &value)
Definition: achievement_unlock_response.h:121
const StringPiece get_kind() const
Definition: achievement_unlock_response.h:107
const StringPiece GetTypeName() const
Definition: achievement_unlock_response.h:83
bool get_newly_unlocked() const
Definition: achievement_unlock_response.h:145
Definition: achievement_definition.cc:41
void set_newly_unlocked(bool value)
Definition: achievement_unlock_response.h:158
Definition: achievement_definition.h:39
bool has_newly_unlocked() const
Definition: achievement_unlock_response.h:130
void clear_newly_unlocked()
Definition: achievement_unlock_response.h:137
bool has_kind() const
Definition: achievement_unlock_response.h:92
Definition: achievement_unlock_response.h:50