Class NotificationEndpoint
java.lang.Object
com.maplander.backend.controller.endpoint.opi.NotificationEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDelete a NotificationlistNotifications
(Long userId, Integer limit, String cursor) saveNotificationData
(Notification notification) Save notification
-
Constructor Details
-
NotificationEndpoint
public NotificationEndpoint()
-
-
Method Details
-
saveNotificationData
Save notification- Parameters:
notification
- notification to be created with type of notification:NotificationTypeEnum
- Returns:
- EntityResponse with property created
HttpStatusCode.OK
-
deleteNotification
Delete a Notification- Parameters:
id
- Notification to be delete- Returns:
- DefaultResponse with notification deleted
HttpStatusCode.BAD_REQUEST
,HttpStatusCode.NOT_EXISTS
,HttpStatusCode.OK
,HttpStatusCode.INTERNAL_SERVER_ERROR
-
listNotifications
public EntityCollectionResponse<Notification> listNotifications(Long userId, Integer limit, String cursor)
-