@Path(value="/users") @Consumes(value="application/json") @Produces(value="application/vnd.ilandcloud.api.v1.0+json") public interface UserInboxResource extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
batchInboxUpdate(String username,
BatchInboxUpdateRequest batchUpdate)
Batch update operation for multiple messages.
|
InboxMessageResponse |
deleteMessage(String username,
String uuid)
Delete an inbox message given its uuid.
|
InboxMessageResponse |
getMessage(String username,
String uuid)
Returns an inbox message given its uuid.
|
InboxMessageListResponse |
getMessageHeaders(String username,
InboxMessageFilterParams filters)
Returns user's message headers (does not return message content) for the
given folder.
|
MessageCountResponse |
getUnreadMessageCount(String username,
MessageFolder folder)
Returns the number of unread messages for a given user.
|
void |
markAllMessagesAsRead(String username,
InboxMarkAllAsReadRequest request)
Mark all messages in a folder as read.
|
InboxMessageResponse |
markMessageAsRead(String username,
String uuid)
Mark a message as read given its uuid.
|
InboxMessageResponse |
moveMessage(String username,
String uuid,
MoveMessageRequest spec)
Move a user message to the specified folder.
|
@POST
@Path(value="/{username}/messages/{uuid}/actions/move")
@Consumes(value="application/json")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
InboxMessageResponse moveMessage(@PathParam(value="username")
String username,
@PathParam(value="uuid")
String uuid,
MoveMessageRequest spec)
username - unique username as seen by iland ADuuid - unique message identifierspec - specification for moving the inbox message@GET
@Path(value="/{username}/messages/{uuid}")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
InboxMessageResponse getMessage(@PathParam(value="username")
String username,
@PathParam(value="uuid")
String uuid)
username - unique username as seen by iland ADuuid - unique message identifier@POST
@Path(value="/{username}/messages/{uuid}/actions/mark-as-read")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
InboxMessageResponse markMessageAsRead(@PathParam(value="username")
String username,
@PathParam(value="uuid")
String uuid)
username - unique username as seen by iland ADuuid - unique message identifier@POST
@Consumes(value="application/json")
@Path(value="/{username}/messages/actions/batch-update")
void batchInboxUpdate(@PathParam(value="username")
String username,
BatchInboxUpdateRequest batchUpdate)
username - users username@POST
@Path(value="/{username}/messages/actions/mark-all-as-read")
void markAllMessagesAsRead(@PathParam(value="username")
String username,
InboxMarkAllAsReadRequest request)
username - users usernamerequest - request specifying folder to operate on@DELETE
@Path(value="/{username}/messages/{uuid}")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
InboxMessageResponse deleteMessage(@PathParam(value="username")
String username,
@PathParam(value="uuid")
String uuid)
username - unique username as seen by iland ADuuid - unique message identifier@GET
@Path(value="/{username}/unread-message-count")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
MessageCountResponse getUnreadMessageCount(@PathParam(value="username")
String username,
@QueryParam(value="folder")
MessageFolder folder)
username - String usernamefolder - String folder nameMessageCountResponse message count@GET
@Path(value="/{username}/messages")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
InboxMessageListResponse getMessageHeaders(@PathParam(value="username")
String username,
@BeanParam
InboxMessageFilterParams filters)
username - unique username as seen by iland ADCopyright © 2020 iland Internet Solutions, Corp. All rights reserved.