30 #ifndef GOOGLE_CALENDAR_API_CALENDAR_LIST_H_ 31 #define GOOGLE_CALENDAR_API_CALENDAR_LIST_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/calendar_api/calendar_list_entry.h" 86 return StringPiece(
"google_calendar_api::CalendarList");
95 return Storage().isMember(
"etag");
102 MutableStorage()->removeMember(
"etag");
110 const Json::Value& v = Storage(
"etag");
111 if (v == Json::Value::null)
return StringPiece(
"");
112 return StringPiece(v.asCString());
123 *MutableStorage(
"etag") = value.data();
132 return Storage().isMember(
"items");
139 MutableStorage()->removeMember(
"items");
146 const client::JsonCppArray<CalendarListEntry > get_items()
const;
155 client::JsonCppArray<CalendarListEntry > mutable_items();
163 return Storage().isMember(
"kind");
170 MutableStorage()->removeMember(
"kind");
178 const Json::Value& v = Storage(
"kind");
179 if (v == Json::Value::null)
return StringPiece(
"");
180 return StringPiece(v.asCString());
191 *MutableStorage(
"kind") = value.data();
200 return Storage().isMember(
"nextPageToken");
207 MutableStorage()->removeMember(
"nextPageToken");
215 const Json::Value& v = Storage(
"nextPageToken");
216 if (v == Json::Value::null)
return StringPiece(
"");
217 return StringPiece(v.asCString());
229 *MutableStorage(
"nextPageToken") = value.data();
238 return Storage().isMember(
"nextSyncToken");
245 MutableStorage()->removeMember(
"nextSyncToken");
253 const Json::Value& v = Storage(
"nextSyncToken");
254 if (v == Json::Value::null)
return StringPiece(
"");
255 return StringPiece(v.asCString());
268 *MutableStorage(
"nextSyncToken") = value.data();
275 #endif // GOOGLE_CALENDAR_API_CALENDAR_LIST_H_ const StringPiece get_etag() const
Definition: calendar_list.h:109
bool has_next_page_token() const
Definition: calendar_list.h:199
Definition: calendar_list.h:52
bool has_kind() const
Definition: calendar_list.h:162
bool has_next_sync_token() const
Definition: calendar_list.h:237
void clear_next_sync_token()
Definition: calendar_list.h:244
bool has_etag() const
Definition: calendar_list.h:94
void clear_kind()
Definition: calendar_list.h:169
void set_etag(const StringPiece &value)
Definition: calendar_list.h:122
bool has_items() const
Definition: calendar_list.h:131
void set_next_page_token(const StringPiece &value)
Definition: calendar_list.h:228
void clear_next_page_token()
Definition: calendar_list.h:206
void set_next_sync_token(const StringPiece &value)
Definition: calendar_list.h:267
void clear_etag()
Definition: calendar_list.h:101
const StringPiece get_kind() const
Definition: calendar_list.h:177
void set_kind(const StringPiece &value)
Definition: calendar_list.h:190
void clear_items()
Definition: calendar_list.h:138
const StringPiece GetTypeName() const
Definition: calendar_list.h:85
const StringPiece get_next_page_token() const
Definition: calendar_list.h:214
const StringPiece get_next_sync_token() const
Definition: calendar_list.h:252