- * Creates a JSON object that only contains the ID and the last-updated time
- * of the given notification.
- *
- * @see Notification#getId()
- * @see Notification#getLastUpdatedTime()
- * @param notification
- * The notification
- * @return A JSON object containing the notification ID and last-updated
- * time
- */
- private JsonObject createJsonNotificationInformation(Notification notification) {
- JsonObject jsonNotification = new JsonObject();
- jsonNotification.put("id", notification.getId());
- jsonNotification.put("lastUpdatedTime", notification.getLastUpdatedTime());
- return jsonNotification;
- }
-
- /**