30 #ifndef GOOGLE_ANDROIDENTERPRISE_API_NOTIFICATION_H_ 31 #define GOOGLE_ANDROIDENTERPRISE_API_NOTIFICATION_H_ 34 #include "googleapis/base/integral_types.h" 35 #include "googleapis/base/macros.h" 36 #include "googleapis/client/data/jsoncpp_data.h" 37 #include "googleapis/strings/stringpiece.h" 39 #include "google/androidenterprise_api/app_restrictions_schema_change_event.h" 40 #include "google/androidenterprise_api/app_update_event.h" 41 #include "google/androidenterprise_api/device_report_update_event.h" 42 #include "google/androidenterprise_api/install_failure_event.h" 43 #include "google/androidenterprise_api/new_device_event.h" 44 #include "google/androidenterprise_api/new_permissions_event.h" 45 #include "google/androidenterprise_api/product_approval_event.h" 46 #include "google/androidenterprise_api/product_availability_change_event.h" 94 return StringPiece(
"google_androidenterprise_api::Notification");
105 return Storage().isMember(
"appRestrictionsSchemaChangeEvent");
112 MutableStorage()->removeMember(
"appRestrictionsSchemaChangeEvent");
138 return Storage().isMember(
"appUpdateEvent");
145 MutableStorage()->removeMember(
"appUpdateEvent");
172 return Storage().isMember(
"deviceReportUpdateEvent");
179 MutableStorage()->removeMember(
"deviceReportUpdateEvent");
205 return Storage().isMember(
"enterpriseId");
212 MutableStorage()->removeMember(
"enterpriseId");
220 const Json::Value& v = Storage(
"enterpriseId");
221 if (v == Json::Value::null)
return StringPiece(
"");
222 return StringPiece(v.asCString());
234 *MutableStorage(
"enterpriseId") = value.data();
243 return Storage().isMember(
"installFailureEvent");
250 MutableStorage()->removeMember(
"installFailureEvent");
276 return Storage().isMember(
"newDeviceEvent");
283 MutableStorage()->removeMember(
"newDeviceEvent");
309 return Storage().isMember(
"newPermissionsEvent");
316 MutableStorage()->removeMember(
"newPermissionsEvent");
342 return Storage().isMember(
"notificationType");
349 MutableStorage()->removeMember(
"notificationType");
357 const Json::Value& v = Storage(
"notificationType");
358 if (v == Json::Value::null)
return StringPiece(
"");
359 return StringPiece(v.asCString());
370 *MutableStorage(
"notificationType") = value.data();
379 return Storage().isMember(
"productApprovalEvent");
386 MutableStorage()->removeMember(
"productApprovalEvent");
414 return Storage().isMember(
"productAvailabilityChangeEvent");
421 MutableStorage()->removeMember(
"productAvailabilityChangeEvent");
447 return Storage().isMember(
"timestampMillis");
454 MutableStorage()->removeMember(
"timestampMillis");
462 const Json::Value& storage = Storage(
"timestampMillis");
463 return client::JsonValueToCppValueHelper<int64 >(storage);
475 client::SetJsonValueFromCppValueHelper<int64 >(
476 value, MutableStorage(
"timestampMillis"));
483 #endif // GOOGLE_ANDROIDENTERPRISE_API_NOTIFICATION_H_ Definition: device_report_update_event.h:52
void set_enterprise_id(const StringPiece &value)
Definition: notification.h:233
void clear_app_restrictions_schema_change_event()
Definition: notification.h:111
bool has_device_report_update_event() const
Definition: notification.h:171
void clear_install_failure_event()
Definition: notification.h:249
void set_notification_type(const StringPiece &value)
Definition: notification.h:369
int64 get_timestamp_millis() const
Definition: notification.h:461
void clear_notification_type()
Definition: notification.h:348
bool has_new_permissions_event() const
Definition: notification.h:308
void clear_enterprise_id()
Definition: notification.h:211
bool has_product_availability_change_event() const
Definition: notification.h:413
const StringPiece get_enterprise_id() const
Definition: notification.h:219
Definition: app_update_event.h:53
const StringPiece GetTypeName() const
Definition: notification.h:93
const StringPiece get_notification_type() const
Definition: notification.h:356
Definition: product_availability_change_event.h:50
bool has_product_approval_event() const
Definition: notification.h:378
void clear_app_update_event()
Definition: notification.h:144
Definition: new_device_event.h:50
Definition: install_failure_event.h:50
bool has_app_update_event() const
Definition: notification.h:137
void clear_product_approval_event()
Definition: notification.h:385
Definition: product_approval_event.h:50
bool has_notification_type() const
Definition: notification.h:341
Definition: app_restrictions_schema_change_event.h:52
void set_timestamp_millis(int64 value)
Definition: notification.h:474
void clear_new_permissions_event()
Definition: notification.h:315
bool has_app_restrictions_schema_change_event() const
Definition: notification.h:104
Definition: administrator.h:38
Definition: administrator.cc:40
Definition: new_permissions_event.h:50
void clear_timestamp_millis()
Definition: notification.h:453
bool has_install_failure_event() const
Definition: notification.h:242
void clear_product_availability_change_event()
Definition: notification.h:420
Definition: notification.h:60
bool has_timestamp_millis() const
Definition: notification.h:446
bool has_enterprise_id() const
Definition: notification.h:204
void clear_device_report_update_event()
Definition: notification.h:178
void clear_new_device_event()
Definition: notification.h:282
bool has_new_device_event() const
Definition: notification.h:275