FileUploadInfo Class

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

public class FileUploadInfo

Information about the file to be uploaded.

Constructor Summary

Constructor Description
FileUploadInfo()

Method Summary

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

Gets URL to file.

java.lang.String getFileType()

Gets type of file.

java.lang.String getName()

Gets name of the file.

java.lang.String getUniqueId()

Gets unique Id for the file.

java.lang.String getUploadUrl()

Gets URL to an upload session that the bot can use to set the file contents.

void setContentUrl(String withContentUrl)

Sets URL to file.

void setFileType(String withFileType)

Sets type of file.

void setName(String withName)

Sets name of the file.

void setUniqueId(String withUniqueId)

Sets unique Id for the file.

void setUploadUrl(String withUploadUrl)

Sets URL to an upload session that the bot can use to set the file contents.

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

Constructor Details

FileUploadInfo

public FileUploadInfo()

Method Details

getContentUrl

public String getContentUrl()

Gets URL to file.

Returns:

The url to the file content.

getFileType

public String getFileType()

Gets type of file.

Returns:

The type of the file.

getName

public String getName()

Gets name of the file.

Returns:

The file name.

getUniqueId

public String getUniqueId()

Gets unique Id for the file.

Returns:

The unique id of the download.

getUploadUrl

public String getUploadUrl()

Gets URL to an upload session that the bot can use to set the file contents.

Returns:

The url to the upload session.

setContentUrl

public void setContentUrl(String withContentUrl)

Sets URL to file.

Parameters:

withContentUrl - The url to the file content.

setFileType

public void setFileType(String withFileType)

Sets type of file.

Parameters:

withFileType - The type of the file.

setName

public void setName(String withName)

Sets name of the file.

Parameters:

withName - The file name.

setUniqueId

public void setUniqueId(String withUniqueId)

Sets unique Id for the file.

Parameters:

withUniqueId - The unique id of the download.

setUploadUrl

public void setUploadUrl(String withUploadUrl)

Sets URL to an upload session that the bot can use to set the file contents.

Parameters:

withUploadUrl - The url to the upload session.

Applies to