Interface BatchService
-
- All Implemented Interfaces:
public interface BatchService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBatchService.WithRawResponseA view of BatchService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract BatchService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. List<Message>archive(BatchArchiveParams params)Marks the given messages as archived. abstract List<Message>archive(BatchArchiveParams params, RequestOptions requestOptions)List<BatchGetContentResponse>getContent(BatchGetContentParams params)Get the contents of multiple messages in a single request. abstract List<BatchGetContentResponse>getContent(BatchGetContentParams params, RequestOptions requestOptions)List<Message>markAsInteracted(BatchMarkAsInteractedParams params)Marks the given messages as interacted with by the user. abstract List<Message>markAsInteracted(BatchMarkAsInteractedParams params, RequestOptions requestOptions)List<Message>markAsRead(BatchMarkAsReadParams params)Marks the given messages as read.abstract List<Message>markAsRead(BatchMarkAsReadParams params, RequestOptions requestOptions)List<Message>markAsSeen(BatchMarkAsSeenParams params)Marks the given messages as seen.abstract List<Message>markAsSeen(BatchMarkAsSeenParams params, RequestOptions requestOptions)List<Message>markAsUnread(BatchMarkAsUnreadParams params)Marks the given messages as unread.abstract List<Message>markAsUnread(BatchMarkAsUnreadParams params, RequestOptions requestOptions)List<Message>markAsUnseen(BatchMarkAsUnseenParams params)Marks the given messages as unseen.abstract List<Message>markAsUnseen(BatchMarkAsUnseenParams params, RequestOptions requestOptions)List<Message>unarchive(BatchUnarchiveParams params)Marks the given messages as unarchived. abstract List<Message>unarchive(BatchUnarchiveParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract BatchService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
archive
List<Message> archive(BatchArchiveParams params)
Marks the given messages as archived. Archived messages are hidden from the default message list in the feed but can still be accessed and unarchived later.
-
archive
abstract List<Message> archive(BatchArchiveParams params, RequestOptions requestOptions)
-
getContent
List<BatchGetContentResponse> getContent(BatchGetContentParams params)
Get the contents of multiple messages in a single request.
-
getContent
abstract List<BatchGetContentResponse> getContent(BatchGetContentParams params, RequestOptions requestOptions)
-
markAsInteracted
List<Message> markAsInteracted(BatchMarkAsInteractedParams params)
Marks the given messages as interacted with by the user. This can include any user action on the message, with optional metadata about the specific interaction. Cannot include more than 5 key-value pairs, must not contain nested data. Read more about message engagement statuses /send-notifications/message-statuses#engagement-status.
-
markAsInteracted
abstract List<Message> markAsInteracted(BatchMarkAsInteractedParams params, RequestOptions requestOptions)
-
markAsRead
List<Message> markAsRead(BatchMarkAsReadParams params)
Marks the given messages as
read. Read more about message engagement statuses /send-notifications/message-statuses#engagement-status.
-
markAsRead
abstract List<Message> markAsRead(BatchMarkAsReadParams params, RequestOptions requestOptions)
-
markAsSeen
List<Message> markAsSeen(BatchMarkAsSeenParams params)
Marks the given messages as
seen. This indicates that the user has viewed the message in their feed or inbox. Read more about message engagement statuses /send-notifications/message-statuses#engagement-status.
-
markAsSeen
abstract List<Message> markAsSeen(BatchMarkAsSeenParams params, RequestOptions requestOptions)
-
markAsUnread
List<Message> markAsUnread(BatchMarkAsUnreadParams params)
Marks the given messages as
unread. This reverses thereadstate. Read more about message engagement statuses /send-notifications/message-statuses#engagement-status.
-
markAsUnread
abstract List<Message> markAsUnread(BatchMarkAsUnreadParams params, RequestOptions requestOptions)
-
markAsUnseen
List<Message> markAsUnseen(BatchMarkAsUnseenParams params)
Marks the given messages as
unseen. This reverses theseenstate. Read more about message engagement statuses /send-notifications/message-statuses#engagement-status.
-
markAsUnseen
abstract List<Message> markAsUnseen(BatchMarkAsUnseenParams params, RequestOptions requestOptions)
-
unarchive
List<Message> unarchive(BatchUnarchiveParams params)
Marks the given messages as unarchived. This reverses the
archivedstate. Archived messages are hidden from the default message list in the feed but can still be accessed and unarchived later.
-
unarchive
abstract List<Message> unarchive(BatchUnarchiveParams params, RequestOptions requestOptions)
-
-
-
-