Package cz.quanti.mailq.resources.v2
Class NotificationResource
- java.lang.Object
-
- cz.quanti.mailq.resources.v2.BaseResource
-
- cz.quanti.mailq.resources.v2.NotificationResource
-
public class NotificationResource extends BaseResource
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationEntitycreateNotification(NotificationEntity notification)voiddeleteNotification(Long notificationId)NotificationEntitygetNotification(Long notificationId)NotificationDataEntitygetNotificationData(Long notificationId, String notificationDataId)NotificationsEntitygetNotifications(Pagination pagination)NotificationsDataEntitygetNotificationsData(Long notificationId, String email, Pagination pagination)NotificationDataEntitysendNotification(Long notificationId, NotificationDataEntity notification)voidupdateNotification(NotificationEntity notification)-
Methods inherited from class cz.quanti.mailq.resources.v2.BaseResource
getConnector
-
-
-
-
Method Detail
-
getNotifications
public NotificationsEntity getNotifications(Pagination pagination) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
createNotification
public NotificationEntity createNotification(NotificationEntity notification) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
getNotification
public NotificationEntity getNotification(Long notificationId) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
updateNotification
public void updateNotification(NotificationEntity notification) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
deleteNotification
public void deleteNotification(Long notificationId) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
sendNotification
public NotificationDataEntity sendNotification(Long notificationId, NotificationDataEntity notification) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
getNotificationsData
public NotificationsDataEntity getNotificationsData(Long notificationId, String email, Pagination pagination) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
getNotificationData
public NotificationDataEntity getNotificationData(Long notificationId, String notificationDataId) throws ApiException, InvalidRequestException
- Throws:
ApiExceptionInvalidRequestException
-
-