30 #ifndef GOOGLE_YOUTUBE_API_PROMOTED_ITEM_H_ 31 #define GOOGLE_YOUTUBE_API_PROMOTED_ITEM_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/invideo_timing.h" 39 #include "google/youtube_api/promoted_item_id.h" 87 return StringPiece(
"google_youtube_api::PromotedItem");
96 return Storage().isMember(
"customMessage");
103 MutableStorage()->removeMember(
"customMessage");
111 const Json::Value& v = Storage(
"customMessage");
112 if (v == Json::Value::null)
return StringPiece(
"");
113 return StringPiece(v.asCString());
125 *MutableStorage(
"customMessage") = value.data();
134 return Storage().isMember(
"id");
141 MutableStorage()->removeMember(
"id");
166 return Storage().isMember(
"promotedByContentOwner");
173 MutableStorage()->removeMember(
"promotedByContentOwner");
181 const Json::Value& storage = Storage(
"promotedByContentOwner");
182 return client::JsonValueToCppValueHelper<bool >(storage);
195 client::SetJsonValueFromCppValueHelper<bool >(
196 value, MutableStorage(
"promotedByContentOwner"));
205 return Storage().isMember(
"timing");
212 MutableStorage()->removeMember(
"timing");
235 #endif // GOOGLE_YOUTUBE_API_PROMOTED_ITEM_H_
Definition: invideo_timing.h:51
Definition: access_policy.cc:40
Definition: access_policy.h:38