Class ConversationsHistoryRequest
java.lang.Object
com.slack.api.methods.request.conversations.ConversationsHistoryRequest
- All Implemented Interfaces:
SlackApiRequest
public class ConversationsHistoryRequest extends Object implements SlackApiRequest
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConversationsHistoryRequest.ConversationsHistoryRequestBuilder -
Method Summary
Modifier and Type Method Description static ConversationsHistoryRequest.ConversationsHistoryRequestBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetChannel()Conversation ID to fetch history for.StringgetCursor()Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`.StringgetLatest()End of time range of messages to include in results.IntegergetLimit()The maximum number of items to return.StringgetOldest()Start of time range of messages to include in results.StringgetToken()Authentication token.inthashCode()booleanisInclusive()Include messages with latest or oldest timestamp in results only when either timestamp is specified.voidsetChannel(String channel)Conversation ID to fetch history for.voidsetCursor(String cursor)Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`.voidsetInclusive(boolean inclusive)Include messages with latest or oldest timestamp in results only when either timestamp is specified.voidsetLatest(String latest)End of time range of messages to include in results.voidsetLimit(Integer limit)The maximum number of items to return.voidsetOldest(String oldest)Start of time range of messages to include in results.voidsetToken(String token)Authentication token.StringtoString()
-
Method Details
-
builder
-
getToken
Authentication token. Requires scope: `conversations:history`- Specified by:
getTokenin interfaceSlackApiRequest
-
getChannel
Conversation ID to fetch history for. -
getCursor
Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`.Default value fetches the first \"page\" of the collection. See [pagination](/docs/pagination) for more detail.
-
getOldest
Start of time range of messages to include in results. -
getLatest
End of time range of messages to include in results. -
getLimit
The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached. -
isInclusive
public boolean isInclusive()Include messages with latest or oldest timestamp in results only when either timestamp is specified. -
setToken
Authentication token. Requires scope: `conversations:history` -
setChannel
Conversation ID to fetch history for. -
setCursor
Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`.Default value fetches the first \"page\" of the collection. See [pagination](/docs/pagination) for more detail.
-
setOldest
Start of time range of messages to include in results. -
setLatest
End of time range of messages to include in results. -
setLimit
The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached. -
setInclusive
public void setInclusive(boolean inclusive)Include messages with latest or oldest timestamp in results only when either timestamp is specified. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-