30 #ifndef GOOGLE_YOUTUBE_API_COMMENT_THREAD_H_ 31 #define GOOGLE_YOUTUBE_API_COMMENT_THREAD_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_thread_replies.h" 39 #include "google/youtube_api/comment_thread_snippet.h" 89 return StringPiece(
"google_youtube_api::CommentThread");
98 return Storage().isMember(
"etag");
105 MutableStorage()->removeMember(
"etag");
113 const Json::Value& v = Storage(
"etag");
114 if (v == Json::Value::null)
return StringPiece(
"");
115 return StringPiece(v.asCString());
126 *MutableStorage(
"etag") = value.data();
135 return Storage().isMember(
"id");
142 MutableStorage()->removeMember(
"id");
150 const Json::Value& v = Storage(
"id");
151 if (v == Json::Value::null)
return StringPiece(
"");
152 return StringPiece(v.asCString());
163 *MutableStorage(
"id") = value.data();
172 return Storage().isMember(
"kind");
179 MutableStorage()->removeMember(
"kind");
187 const Json::Value& v = Storage(
"kind");
188 if (v == Json::Value::null)
return StringPiece(
"");
189 return StringPiece(v.asCString());
201 *MutableStorage(
"kind") = value.data();
210 return Storage().isMember(
"replies");
217 MutableStorage()->removeMember(
"replies");
242 return Storage().isMember(
"snippet");
249 MutableStorage()->removeMember(
"snippet");
272 #endif // GOOGLE_YOUTUBE_API_COMMENT_THREAD_H_ Definition: access_policy.cc:40
Definition: access_policy.h:38