30 #ifndef GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_VOTED_DETAILS_H_ 31 #define GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_VOTED_DETAILS_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_youtube_api::LiveChatPollVotedDetails");
93 return Storage().isMember(
"itemId");
100 MutableStorage()->removeMember(
"itemId");
108 const Json::Value& v = Storage(
"itemId");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
121 *MutableStorage(
"itemId") = value.data();
130 return Storage().isMember(
"pollId");
137 MutableStorage()->removeMember(
"pollId");
145 const Json::Value& v = Storage(
"pollId");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
158 *MutableStorage(
"pollId") = value.data();
165 #endif // GOOGLE_YOUTUBE_API_LIVE_CHAT_POLL_VOTED_DETAILS_H_ Definition: access_policy.cc:40
bool has_poll_id() const
Definition: live_chat_poll_voted_details.h:129
void clear_item_id()
Definition: live_chat_poll_voted_details.h:99
void set_poll_id(const StringPiece &value)
Definition: live_chat_poll_voted_details.h:157
bool has_item_id() const
Definition: live_chat_poll_voted_details.h:92
Definition: live_chat_poll_voted_details.h:50
const StringPiece get_poll_id() const
Definition: live_chat_poll_voted_details.h:144
const StringPiece GetTypeName() const
Definition: live_chat_poll_voted_details.h:83
void clear_poll_id()
Definition: live_chat_poll_voted_details.h:136
const StringPiece get_item_id() const
Definition: live_chat_poll_voted_details.h:107
Definition: access_policy.h:38
void set_item_id(const StringPiece &value)
Definition: live_chat_poll_voted_details.h:120