com.slack.api.methods.request.im.ImListRequest Maven / Gradle / Ivy
package com.slack.api.methods.request.im;
import com.slack.api.methods.SlackApiRequest;
import lombok.Builder;
import lombok.Data;
@Deprecated // https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api
@Data
@Builder
public class ImListRequest implements SlackApiRequest {
/**
* Authentication token. Requires scope: `im:read`
*/
private String token;
/**
* 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.
*/
private String cursor;
/**
* 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.
*/
private Integer limit;
}