30 #ifndef GOOGLE_GAMES_API_ACHIEVEMENT_INCREMENT_RESPONSE_H_ 31 #define GOOGLE_GAMES_API_ACHIEVEMENT_INCREMENT_RESPONSE_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::AchievementIncrementResponse");
94 return Storage().isMember(
"currentSteps");
101 MutableStorage()->removeMember(
"currentSteps");
109 const Json::Value& storage = Storage(
"currentSteps");
110 return client::JsonValueToCppValueHelper<int32 >(storage);
121 client::SetJsonValueFromCppValueHelper<int32 >(
122 value, MutableStorage(
"currentSteps"));
131 return Storage().isMember(
"kind");
138 MutableStorage()->removeMember(
"kind");
146 const Json::Value& v = Storage(
"kind");
147 if (v == Json::Value::null)
return StringPiece(
"");
148 return StringPiece(v.asCString());
160 *MutableStorage(
"kind") = value.data();
169 return Storage().isMember(
"newlyUnlocked");
176 MutableStorage()->removeMember(
"newlyUnlocked");
184 const Json::Value& storage = Storage(
"newlyUnlocked");
185 return client::JsonValueToCppValueHelper<bool >(storage);
197 client::SetJsonValueFromCppValueHelper<bool >(
198 value, MutableStorage(
"newlyUnlocked"));
205 #endif // GOOGLE_GAMES_API_ACHIEVEMENT_INCREMENT_RESPONSE_H_ void clear_newly_unlocked()
Definition: achievement_increment_response.h:175
void set_current_steps(int32 value)
Definition: achievement_increment_response.h:120
const StringPiece GetTypeName() const
Definition: achievement_increment_response.h:84
void clear_kind()
Definition: achievement_increment_response.h:137
Definition: achievement_increment_response.h:51
const StringPiece get_kind() const
Definition: achievement_increment_response.h:145
bool has_newly_unlocked() const
Definition: achievement_increment_response.h:168
void set_newly_unlocked(bool value)
Definition: achievement_increment_response.h:196
void clear_current_steps()
Definition: achievement_increment_response.h:100
Definition: achievement_definition.cc:41
Definition: achievement_definition.h:39
int32 get_current_steps() const
Definition: achievement_increment_response.h:108
bool has_kind() const
Definition: achievement_increment_response.h:130
bool get_newly_unlocked() const
Definition: achievement_increment_response.h:183
void set_kind(const StringPiece &value)
Definition: achievement_increment_response.h:159
bool has_current_steps() const
Definition: achievement_increment_response.h:93