Package com.slack.api.methods.request.im
Class ImHistoryRequest.ImHistoryRequestBuilder
java.lang.Object
com.slack.api.methods.request.im.ImHistoryRequest.ImHistoryRequestBuilder
- Enclosing class:
- ImHistoryRequest
public static class ImHistoryRequest.ImHistoryRequestBuilder extends Object
-
Method Summary
Modifier and Type Method Description ImHistoryRequest
build()
ImHistoryRequest.ImHistoryRequestBuilder
channel(String channel)
Direct message channel to fetch history for.ImHistoryRequest.ImHistoryRequestBuilder
count(Integer count)
Number of messages to return, between 1 and 1000.ImHistoryRequest.ImHistoryRequestBuilder
inclusive(boolean inclusive)
Include messages with latest or oldest timestamp in results.ImHistoryRequest.ImHistoryRequestBuilder
latest(String latest)
End of time range of messages to include in results.ImHistoryRequest.ImHistoryRequestBuilder
oldest(String oldest)
Start of time range of messages to include in results.ImHistoryRequest.ImHistoryRequestBuilder
token(String token)
Authentication token.String
toString()
ImHistoryRequest.ImHistoryRequestBuilder
unreads(boolean unreads)
Include `unread_count_display` in the output?
-
Method Details
-
token
Authentication token. Requires scope: `im:history`- Returns:
this
.
-
channel
Direct message channel to fetch history for.- Returns:
this
.
-
oldest
Start of time range of messages to include in results.- Returns:
this
.
-
latest
End of time range of messages to include in results.- Returns:
this
.
-
inclusive
Include messages with latest or oldest timestamp in results.- Returns:
this
.
-
count
Number of messages to return, between 1 and 1000.- Returns:
this
.
-
unreads
Include `unread_count_display` in the output?- Returns:
this
.
-
build
-
toString
-