30 #ifndef GOOGLE_CALENDAR_API_CALENDAR_NOTIFICATION_H_ 31 #define GOOGLE_CALENDAR_API_CALENDAR_NOTIFICATION_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_calendar_api::CalendarNotification");
93 return Storage().isMember(
"method");
100 MutableStorage()->removeMember(
"method");
108 const Json::Value& v = Storage(
"method");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
123 *MutableStorage(
"method") = value.data();
132 return Storage().isMember(
"type");
139 MutableStorage()->removeMember(
"type");
147 const Json::Value& v = Storage(
"type");
148 if (v == Json::Value::null)
return StringPiece(
"");
149 return StringPiece(v.asCString());
173 *MutableStorage(
"type") = value.data();
180 #endif // GOOGLE_CALENDAR_API_CALENDAR_NOTIFICATION_H_ bool has_method() const
Definition: calendar_notification.h:92
Definition: calendar_notification.h:50
bool has_type() const
Definition: calendar_notification.h:131
const StringPiece GetTypeName() const
Definition: calendar_notification.h:83
const StringPiece get_type() const
Definition: calendar_notification.h:146
void clear_method()
Definition: calendar_notification.h:99
void clear_type()
Definition: calendar_notification.h:138
void set_method(const StringPiece &value)
Definition: calendar_notification.h:122
void set_type(const StringPiece &value)
Definition: calendar_notification.h:172
const StringPiece get_method() const
Definition: calendar_notification.h:107