FileConsentCardResponse Class

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

public class FileConsentCardResponse

Represents the value of the invoke activity sent when the user acts on a file consent card.

Constructor Summary

Constructor Description
FileConsentCardResponse()

Method Summary

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

Gets the action the user took.

java.lang.Object getContext()

Gets the context associated with the action.

FileUploadInfo getUploadInfo()

Gets if the user accepted the file, contains information about the file to be uploaded.

void setAction(String withAction)

Sets the action the user took.

void setContext(Object withContext)

Sets the context associated with the action.

void setUploadInfo(FileUploadInfo withUploadInfo)

Sets if the user accepted the file, contains information about the file to be uploaded.

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

FileConsentCardResponse

public FileConsentCardResponse()

Method Details

getAction

public String getAction()

Gets the action the user took.

Returns:

Possible values include 'accept', 'decline'

getContext

public Object getContext()

Gets the context associated with the action.

Returns:

The context value.

getUploadInfo

public FileUploadInfo getUploadInfo()

Gets if the user accepted the file, contains information about the file to be uploaded.

Returns:

The file upload info.

setAction

public void setAction(String withAction)

Sets the action the user took.

Parameters:

withAction - Possible values include 'accept', 'decline'

setContext

public void setContext(Object withContext)

Sets the context associated with the action.

Parameters:

withContext - The new context.

setUploadInfo

public void setUploadInfo(FileUploadInfo withUploadInfo)

Sets if the user accepted the file, contains information about the file to be uploaded.

Parameters:

withUploadInfo - The file upload info.

Applies to