Class FilesListRequest
- All Implemented Interfaces:
SlackApiRequest
public class FilesListRequest extends java.lang.Object implements SlackApiRequest
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFilesListRequest.FilesListRequestBuilder -
Method Summary
Modifier and Type Method Description static FilesListRequest.FilesListRequestBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetChannel()Filter files appearing in a specific channel, indicated by its ID.java.lang.IntegergetCount()java.lang.IntegergetPage()java.lang.StringgetTeamId()Required for org-wide apps.java.lang.StringgetToken()Authentication token.java.lang.StringgetTsFrom()Filter files created after this timestamp (inclusive).java.lang.StringgetTsTo()Filter files created before this timestamp (inclusive).java.util.List<java.lang.String>getTypes()Filter files by type:\n\n* `all` - All filesjava.lang.StringgetUser()Filter files created by a single user.inthashCode()booleanisShowFilesHiddenByLimit()https://api.slack.com/changelog/2019-03-wild-west-for-files-no-morevoidsetChannel(java.lang.String channel)Filter files appearing in a specific channel, indicated by its ID.voidsetCount(java.lang.Integer count)voidsetPage(java.lang.Integer page)voidsetShowFilesHiddenByLimit(boolean showFilesHiddenByLimit)https://api.slack.com/changelog/2019-03-wild-west-for-files-no-morevoidsetTeamId(java.lang.String teamId)Required for org-wide apps.voidsetToken(java.lang.String token)Authentication token.voidsetTsFrom(java.lang.String tsFrom)Filter files created after this timestamp (inclusive).voidsetTsTo(java.lang.String tsTo)Filter files created before this timestamp (inclusive).voidsetTypes(java.util.List<java.lang.String> types)Filter files by type:\n\n* `all` - All filesvoidsetUser(java.lang.String user)Filter files created by a single user.java.lang.StringtoString()
-
Method Details
-
builder
-
getToken
public java.lang.String getToken()Authentication token. Requires scope: `files:read`- Specified by:
getTokenin interfaceSlackApiRequest
-
getUser
public java.lang.String getUser()Filter files created by a single user. -
getChannel
public java.lang.String getChannel()Filter files appearing in a specific channel, indicated by its ID. -
getTsFrom
public java.lang.String getTsFrom()Filter files created after this timestamp (inclusive). -
getTsTo
public java.lang.String getTsTo()Filter files created before this timestamp (inclusive). -
getTypes
public java.util.List<java.lang.String> getTypes()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.
-
getCount
public java.lang.Integer getCount() -
getPage
public java.lang.Integer getPage() -
isShowFilesHiddenByLimit
public boolean isShowFilesHiddenByLimit()https://api.slack.com/changelog/2019-03-wild-west-for-files-no-moreIn 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.
-
getTeamId
public java.lang.String getTeamId()Required for org-wide apps. -
setToken
public void setToken(java.lang.String token)Authentication token. Requires scope: `files:read` -
setUser
public void setUser(java.lang.String user)Filter files created by a single user. -
setChannel
public void setChannel(java.lang.String channel)Filter files appearing in a specific channel, indicated by its ID. -
setTsFrom
public void setTsFrom(java.lang.String tsFrom)Filter files created after this timestamp (inclusive). -
setTsTo
public void setTsTo(java.lang.String tsTo)Filter files created before this timestamp (inclusive). -
setTypes
public void setTypes(java.util.List<java.lang.String> types)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.
-
setCount
public void setCount(java.lang.Integer count) -
setPage
public void setPage(java.lang.Integer page) -
setShowFilesHiddenByLimit
public void setShowFilesHiddenByLimit(boolean showFilesHiddenByLimit)https://api.slack.com/changelog/2019-03-wild-west-for-files-no-moreIn 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.
-
setTeamId
public void setTeamId(java.lang.String teamId)Required for org-wide apps. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-