30 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_CONTENT_OWNER_DETAILS_H_ 31 #define GOOGLE_YOUTUBE_API_CHANNEL_CONTENT_OWNER_DETAILS_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/client/util/date_time.h" 37 #include "googleapis/strings/stringpiece.h" 86 return StringPiece(
"google_youtube_api::ChannelContentOwnerDetails");
95 return Storage().isMember(
"contentOwner");
102 MutableStorage()->removeMember(
"contentOwner");
110 const Json::Value& v = Storage(
"contentOwner");
111 if (v == Json::Value::null)
return StringPiece(
"");
112 return StringPiece(v.asCString());
123 *MutableStorage(
"contentOwner") = value.data();
132 return Storage().isMember(
"timeLinked");
139 MutableStorage()->removeMember(
"timeLinked");
147 const Json::Value& storage = Storage(
"timeLinked");
148 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
160 client::SetJsonValueFromCppValueHelper<client::DateTime >(
161 value, MutableStorage(
"timeLinked"));
168 #endif // GOOGLE_YOUTUBE_API_CHANNEL_CONTENT_OWNER_DETAILS_H_ Definition: access_policy.cc:40
void set_content_owner(const StringPiece &value)
Definition: channel_content_owner_details.h:122
bool has_time_linked() const
Definition: channel_content_owner_details.h:131
Definition: channel_content_owner_details.h:52
void clear_content_owner()
Definition: channel_content_owner_details.h:101
const StringPiece GetTypeName() const
Definition: channel_content_owner_details.h:85
Definition: access_policy.h:38
bool has_content_owner() const
Definition: channel_content_owner_details.h:94
void set_time_linked(client::DateTime value)
Definition: channel_content_owner_details.h:159
void clear_time_linked()
Definition: channel_content_owner_details.h:138
const StringPiece get_content_owner() const
Definition: channel_content_owner_details.h:109
client::DateTime get_time_linked() const
Definition: channel_content_owner_details.h:146