30 #ifndef GOOGLE_GAMES_API_ROOM_AUTO_MATCH_STATUS_H_ 31 #define GOOGLE_GAMES_API_ROOM_AUTO_MATCH_STATUS_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::RoomAutoMatchStatus");
94 return Storage().isMember(
"kind");
101 MutableStorage()->removeMember(
"kind");
109 const Json::Value& v = Storage(
"kind");
110 if (v == Json::Value::null)
return StringPiece(
"");
111 return StringPiece(v.asCString());
123 *MutableStorage(
"kind") = value.data();
132 return Storage().isMember(
"waitEstimateSeconds");
139 MutableStorage()->removeMember(
"waitEstimateSeconds");
147 const Json::Value& storage = Storage(
"waitEstimateSeconds");
148 return client::JsonValueToCppValueHelper<int32 >(storage);
160 client::SetJsonValueFromCppValueHelper<int32 >(
161 value, MutableStorage(
"waitEstimateSeconds"));
168 #endif // GOOGLE_GAMES_API_ROOM_AUTO_MATCH_STATUS_H_ Definition: room_auto_match_status.h:51
const StringPiece GetTypeName() const
Definition: room_auto_match_status.h:84
bool has_wait_estimate_seconds() const
Definition: room_auto_match_status.h:131
int32 get_wait_estimate_seconds() const
Definition: room_auto_match_status.h:146
bool has_kind() const
Definition: room_auto_match_status.h:93
Definition: achievement_definition.cc:41
Definition: achievement_definition.h:39
void set_kind(const StringPiece &value)
Definition: room_auto_match_status.h:122
const StringPiece get_kind() const
Definition: room_auto_match_status.h:108
void clear_kind()
Definition: room_auto_match_status.h:100
void set_wait_estimate_seconds(int32 value)
Definition: room_auto_match_status.h:159
void clear_wait_estimate_seconds()
Definition: room_auto_match_status.h:138