30 #ifndef GOOGLE_CALENDAR_API_FREE_BUSY_RESPONSE_H_ 31 #define GOOGLE_CALENDAR_API_FREE_BUSY_RESPONSE_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" 39 #include "google/calendar_api/free_busy_calendar.h" 40 #include "google/calendar_api/free_busy_group.h" 88 return StringPiece(
"google_calendar_api::FreeBusyResponse");
97 return Storage().isMember(
"calendars");
104 MutableStorage()->removeMember(
"calendars");
111 const client::JsonCppAssociativeArray<FreeBusyCalendar > get_calendars()
const;
121 client::JsonCppAssociativeArray<FreeBusyCalendar > mutable_calendars();
129 return Storage().isMember(
"groups");
136 MutableStorage()->removeMember(
"groups");
143 const client::JsonCppAssociativeArray<FreeBusyGroup > get_groups()
const;
152 client::JsonCppAssociativeArray<FreeBusyGroup > mutable_groups();
160 return Storage().isMember(
"kind");
167 MutableStorage()->removeMember(
"kind");
175 const Json::Value& v = Storage(
"kind");
176 if (v == Json::Value::null)
return StringPiece(
"");
177 return StringPiece(v.asCString());
188 *MutableStorage(
"kind") = value.data();
197 return Storage().isMember(
"timeMax");
204 MutableStorage()->removeMember(
"timeMax");
212 const Json::Value& storage = Storage(
"timeMax");
213 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
224 client::SetJsonValueFromCppValueHelper<client::DateTime >(
225 value, MutableStorage(
"timeMax"));
234 return Storage().isMember(
"timeMin");
241 MutableStorage()->removeMember(
"timeMin");
249 const Json::Value& storage = Storage(
"timeMin");
250 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
261 client::SetJsonValueFromCppValueHelper<client::DateTime >(
262 value, MutableStorage(
"timeMin"));
269 #endif // GOOGLE_CALENDAR_API_FREE_BUSY_RESPONSE_H_ const StringPiece get_kind() const
Definition: free_busy_response.h:174
Definition: free_busy_response.h:54
bool has_time_min() const
Definition: free_busy_response.h:233
client::DateTime get_time_min() const
Definition: free_busy_response.h:248
client::DateTime get_time_max() const
Definition: free_busy_response.h:211
void clear_calendars()
Definition: free_busy_response.h:103
void clear_kind()
Definition: free_busy_response.h:166
void set_time_max(client::DateTime value)
Definition: free_busy_response.h:223
bool has_groups() const
Definition: free_busy_response.h:128
void set_time_min(client::DateTime value)
Definition: free_busy_response.h:260
bool has_time_max() const
Definition: free_busy_response.h:196
void clear_groups()
Definition: free_busy_response.h:135
void clear_time_max()
Definition: free_busy_response.h:203
void set_kind(const StringPiece &value)
Definition: free_busy_response.h:187
bool has_kind() const
Definition: free_busy_response.h:159
const StringPiece GetTypeName() const
Definition: free_busy_response.h:87
void clear_time_min()
Definition: free_busy_response.h:240
bool has_calendars() const
Definition: free_busy_response.h:96