FileDownloadInfo Class

  • java.lang.Object
    • com.microsoft.bot.schema.teams.FileDownloadInfo

public class FileDownloadInfo

File download info attachment.

Field Summary

Modifier and Type Field and Description
static final java.lang.String CONTENT_TYPE

Content type to be used in the type property.

Constructor Summary

Constructor Description
FileDownloadInfo()

Method Summary

Modifier and Type Method and Description
java.lang.String getDownloadUrl()

Gets file download url.

java.lang.Object getEtag()

Gets eTag for the file.

java.lang.String getFileType()

Gets type of file.

java.lang.String getUniqueId()

Gets unique Id for the file.

void setDownloadUrl(String withDownloadUrl)

Sets file download url.

void setEtag(Object withEtag)

Sets eTag for the file.

void setFileType(String withFileType)

Sets type of file.

void setUniqueId(String withUniqueId)

Sets unique Id for the file.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Field Details

CONTENT_TYPE

public static final String CONTENT_TYPE

Content type to be used in the type property.

Constructor Details

FileDownloadInfo

public FileDownloadInfo()

Method Details

getDownloadUrl

public String getDownloadUrl()

Gets file download url.

Returns:

The download url.

getEtag

public Object getEtag()

Gets eTag for the file.

Returns:

The eTag.

getFileType

public String getFileType()

Gets type of file.

Returns:

The type of the file.

getUniqueId

public String getUniqueId()

Gets unique Id for the file.

Returns:

The unique id of the download.

setDownloadUrl

public void setDownloadUrl(String withDownloadUrl)

Sets file download url.

Parameters:

withDownloadUrl - The new file download url.

setEtag

public void setEtag(Object withEtag)

Sets eTag for the file.

Parameters:

withEtag - The eTag value.

setFileType

public void setFileType(String withFileType)

Sets type of file.

Parameters:

withFileType - The type of the file.

setUniqueId

public void setUniqueId(String withUniqueId)

Sets unique Id for the file.

Parameters:

withUniqueId - The unique id of the download.

Applies to