30 #ifndef GOOGLE_GAMES_API_EVENT_PERIOD_UPDATE_H_ 31 #define GOOGLE_GAMES_API_EVENT_PERIOD_UPDATE_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/games_api/event_period_range.h" 39 #include "google/games_api/event_update_request.h" 87 return StringPiece(
"google_games_api::EventPeriodUpdate");
96 return Storage().isMember(
"kind");
103 MutableStorage()->removeMember(
"kind");
111 const Json::Value& v = Storage(
"kind");
112 if (v == Json::Value::null)
return StringPiece(
"");
113 return StringPiece(v.asCString());
125 *MutableStorage(
"kind") = value.data();
134 return Storage().isMember(
"timePeriod");
141 MutableStorage()->removeMember(
"timePeriod");
166 return Storage().isMember(
"updates");
173 MutableStorage()->removeMember(
"updates");
180 const client::JsonCppArray<EventUpdateRequest > get_updates()
const;
189 client::JsonCppArray<EventUpdateRequest > mutable_updates();
195 #endif // GOOGLE_GAMES_API_EVENT_PERIOD_UPDATE_H_ bool has_time_period() const
Definition: event_period_update.h:133
bool has_kind() const
Definition: event_period_update.h:95
Definition: event_period_range.h:51
Definition: event_period_update.h:53
void clear_updates()
Definition: event_period_update.h:172
Definition: achievement_definition.cc:41
Definition: achievement_definition.h:39
const StringPiece GetTypeName() const
Definition: event_period_update.h:86
void set_kind(const StringPiece &value)
Definition: event_period_update.h:124
const StringPiece get_kind() const
Definition: event_period_update.h:110
void clear_time_period()
Definition: event_period_update.h:140
void clear_kind()
Definition: event_period_update.h:102
bool has_updates() const
Definition: event_period_update.h:165