30 #ifndef GOOGLE_YOUTUBE_API_COMMENT_H_ 31 #define GOOGLE_YOUTUBE_API_COMMENT_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/youtube_api/comment_snippet.h" 52 class Comment :
public client::JsonCppData {
66 explicit Comment(
const Json::Value& storage);
73 explicit Comment(Json::Value* storage);
86 return StringPiece(
"google_youtube_api::Comment");
95 return Storage().isMember(
"etag");
102 MutableStorage()->removeMember(
"etag");
110 const Json::Value& v = Storage(
"etag");
111 if (v == Json::Value::null)
return StringPiece(
"");
112 return StringPiece(v.asCString());
123 *MutableStorage(
"etag") = value.data();
132 return Storage().isMember(
"id");
139 MutableStorage()->removeMember(
"id");
147 const Json::Value& v = Storage(
"id");
148 if (v == Json::Value::null)
return StringPiece(
"");
149 return StringPiece(v.asCString());
160 *MutableStorage(
"id") = value.data();
169 return Storage().isMember(
"kind");
176 MutableStorage()->removeMember(
"kind");
184 const Json::Value& v = Storage(
"kind");
185 if (v == Json::Value::null)
return StringPiece(
"");
186 return StringPiece(v.asCString());
198 *MutableStorage(
"kind") = value.data();
207 return Storage().isMember(
"snippet");
214 MutableStorage()->removeMember(
"snippet");
233 void operator=(
const Comment&);
236 #endif // GOOGLE_YOUTUBE_API_COMMENT_H_
Definition: access_policy.cc:40
Definition: access_policy.h:38