30 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_MODERATOR_SNIPPET_H_ 31 #define GOOGLE_YOUTUBE_API_LIVE_CHAT_MODERATOR_SNIPPET_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/channel_profile_details.h" 86 return StringPiece(
"google_youtube_api::LiveChatModeratorSnippet");
95 return Storage().isMember(
"liveChatId");
102 MutableStorage()->removeMember(
"liveChatId");
110 const Json::Value& v = Storage(
"liveChatId");
111 if (v == Json::Value::null)
return StringPiece(
"");
112 return StringPiece(v.asCString());
123 *MutableStorage(
"liveChatId") = value.data();
132 return Storage().isMember(
"moderatorDetails");
139 MutableStorage()->removeMember(
"moderatorDetails");
163 #endif // GOOGLE_YOUTUBE_API_LIVE_CHAT_MODERATOR_SNIPPET_H_ void clear_live_chat_id()
Definition: live_chat_moderator_snippet.h:101
Definition: access_policy.cc:40
bool has_moderator_details() const
Definition: live_chat_moderator_snippet.h:131
Definition: channel_profile_details.h:50
const StringPiece GetTypeName() const
Definition: live_chat_moderator_snippet.h:85
bool has_live_chat_id() const
Definition: live_chat_moderator_snippet.h:94
void set_live_chat_id(const StringPiece &value)
Definition: live_chat_moderator_snippet.h:122
void clear_moderator_details()
Definition: live_chat_moderator_snippet.h:138
Definition: access_policy.h:38
Definition: live_chat_moderator_snippet.h:52
const StringPiece get_live_chat_id() const
Definition: live_chat_moderator_snippet.h:109