30 #ifndef GOOGLE_GAMES_API_EVENT_CHILD_H_ 31 #define GOOGLE_GAMES_API_EVENT_CHILD_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 64 explicit EventChild(
const Json::Value& storage);
84 return StringPiece(
"google_games_api::EventChild");
93 return Storage().isMember(
"childId");
100 MutableStorage()->removeMember(
"childId");
108 const Json::Value& v = Storage(
"childId");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
121 *MutableStorage(
"childId") = value.data();
130 return Storage().isMember(
"kind");
137 MutableStorage()->removeMember(
"kind");
145 const Json::Value& v = Storage(
"kind");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
159 *MutableStorage(
"kind") = value.data();
166 #endif // GOOGLE_GAMES_API_EVENT_CHILD_H_ void set_child_id(const StringPiece &value)
Definition: event_child.h:120
const StringPiece get_child_id() const
Definition: event_child.h:107
const StringPiece GetTypeName() const
Definition: event_child.h:83
void set_kind(const StringPiece &value)
Definition: event_child.h:158
bool has_kind() const
Definition: event_child.h:129
Definition: achievement_definition.cc:41
bool has_child_id() const
Definition: event_child.h:92
Definition: achievement_definition.h:39
Definition: event_child.h:50
void clear_child_id()
Definition: event_child.h:99
const StringPiece get_kind() const
Definition: event_child.h:144
void clear_kind()
Definition: event_child.h:136