.expect(Http.Status.ACCEPTED)
.execute();
}
public List<Notification> allNotifications() throws IOException, APIException {
GetNotificationsResponse r = api.path(routes.NotificationsResource().listNotifications(), GetNotificationsResponse.class).execute();
List<Notification> notifications = Lists.newArrayList();
for (NotificationSummaryResponse notification : r.notifications) {
try {
notifications.add(new Notification(notification));