30 #ifndef GOOGLE_CALENDAR_API_FREE_BUSY_CALENDAR_H_ 31 #define GOOGLE_CALENDAR_API_FREE_BUSY_CALENDAR_H_ 33 #include "googleapis/base/macros.h" 34 #include "googleapis/client/data/jsoncpp_data.h" 35 #include "googleapis/strings/stringpiece.h" 37 #include "google/calendar_api/error.h" 38 #include "google/calendar_api/time_period.h" 86 return StringPiece(
"google_calendar_api::FreeBusyCalendar");
95 return Storage().isMember(
"busy");
102 MutableStorage()->removeMember(
"busy");
109 const client::JsonCppArray<TimePeriod > get_busy()
const;
118 client::JsonCppArray<TimePeriod > mutable_busy();
126 return Storage().isMember(
"errors");
133 MutableStorage()->removeMember(
"errors");
140 const client::JsonCppArray<Error > get_errors()
const;
149 client::JsonCppArray<Error > mutable_errors();
155 #endif // GOOGLE_CALENDAR_API_FREE_BUSY_CALENDAR_H_ const StringPiece GetTypeName() const
Definition: free_busy_calendar.h:85
void clear_errors()
Definition: free_busy_calendar.h:132
void clear_busy()
Definition: free_busy_calendar.h:101
Definition: free_busy_calendar.h:52
bool has_errors() const
Definition: free_busy_calendar.h:125
bool has_busy() const
Definition: free_busy_calendar.h:94