30 #ifndef GOOGLE_GAMES_API_SNAPSHOT_IMAGE_H_ 31 #define GOOGLE_GAMES_API_SNAPSHOT_IMAGE_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::SnapshotImage");
94 return Storage().isMember(
"height");
101 MutableStorage()->removeMember(
"height");
109 const Json::Value& storage = Storage(
"height");
110 return client::JsonValueToCppValueHelper<int32 >(storage);
121 client::SetJsonValueFromCppValueHelper<int32 >(
122 value, MutableStorage(
"height"));
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(
"mime_type");
176 MutableStorage()->removeMember(
"mime_type");
184 const Json::Value& v = Storage(
"mime_type");
185 if (v == Json::Value::null)
return StringPiece(
"");
186 return StringPiece(v.asCString());
197 *MutableStorage(
"mime_type") = value.data();
206 return Storage().isMember(
"url");
213 MutableStorage()->removeMember(
"url");
221 const Json::Value& v = Storage(
"url");
222 if (v == Json::Value::null)
return StringPiece(
"");
223 return StringPiece(v.asCString());
235 *MutableStorage(
"url") = value.data();
244 return Storage().isMember(
"width");
251 MutableStorage()->removeMember(
"width");
259 const Json::Value& storage = Storage(
"width");
260 return client::JsonValueToCppValueHelper<int32 >(storage);
271 client::SetJsonValueFromCppValueHelper<int32 >(
272 value, MutableStorage(
"width"));
279 #endif // GOOGLE_GAMES_API_SNAPSHOT_IMAGE_H_ void set_width(int32 value)
Definition: snapshot_image.h:270
void clear_url()
Definition: snapshot_image.h:212
void set_kind(const StringPiece &value)
Definition: snapshot_image.h:159
bool has_mime_type() const
Definition: snapshot_image.h:168
int32 get_height() const
Definition: snapshot_image.h:108
const StringPiece get_mime_type() const
Definition: snapshot_image.h:183
bool has_width() const
Definition: snapshot_image.h:243
bool has_url() const
Definition: snapshot_image.h:205
void set_url(const StringPiece &value)
Definition: snapshot_image.h:234
const StringPiece get_kind() const
Definition: snapshot_image.h:145
void clear_height()
Definition: snapshot_image.h:100
Definition: achievement_definition.cc:41
Definition: achievement_definition.h:39
void clear_width()
Definition: snapshot_image.h:250
void clear_kind()
Definition: snapshot_image.h:137
void clear_mime_type()
Definition: snapshot_image.h:175
bool has_kind() const
Definition: snapshot_image.h:130
int32 get_width() const
Definition: snapshot_image.h:258
Definition: snapshot_image.h:51
void set_height(int32 value)
Definition: snapshot_image.h:120
const StringPiece get_url() const
Definition: snapshot_image.h:220
void set_mime_type(const StringPiece &value)
Definition: snapshot_image.h:196
const StringPiece GetTypeName() const
Definition: snapshot_image.h:84
bool has_height() const
Definition: snapshot_image.h:93