com.slack.api.methods.request.files.FilesListRequest Maven / Gradle / Ivy
package com.slack.api.methods.request.files;
import com.slack.api.methods.SlackApiRequest;
import lombok.Builder;
import lombok.Data;
import java.util.List;
/**
* https://api.slack.com/methods/files.list
*/
@Data
@Builder
public class FilesListRequest implements SlackApiRequest {
/**
* Authentication token. Requires scope: `files:read`
*/
private String token;
/**
* Filter files created by a single user.
*/
private String user;
/**
* Filter files appearing in a specific channel, indicated by its ID.
*/
private String channel;
/**
* Filter files created after this timestamp (inclusive).
*/
private String tsFrom;
/**
* Filter files created before this timestamp (inclusive).
*/
private String tsTo;
/**
* Filter files by type:\n\n* `all` - All files
*
* `spaces` - Posts\n* `snippets` - Snippets
* `images` - Image files
* `gdocs` - Google Docs
* `zips` - Zip files
* `pdfs` - PDF files
*
* You can pass multiple values in the types argument, like `types=spaces,snippets`.
* The default value is `all`, which does not filter the list.
*/
private List types;
private Integer count;
private Integer page;
/**
* https://api.slack.com/changelog/2019-03-wild-west-for-files-no-more
*
* In order to gather information on tombstoned files in Free workspaces,
* so that you can delete or revoke them, pass the show_files_hidden_by_limit parameter.
* While the yielded files will still be redacted,
* you'll gain the id of the files so that you can delete or revoke them.
*/
private boolean showFilesHiddenByLimit;
/**
* Required for org-wide apps.
*/
private String teamId;
}