FileConsentCard Class

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

public class FileConsentCard

File consent card 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
FileConsentCard()

Method Summary

Modifier and Type Method and Description
java.lang.Object getAcceptContext()

Gets context sent back to the Bot if user consented to upload.

java.lang.Object getDeclineContext()

Gets context sent back to the Bot if user declined.

java.lang.String getDescription()

Gets file description.

long getSizeInBytes()

Gets size of the file to be uploaded in Bytes.

void setAcceptContext(Object withAcceptContext)

Sets context sent back to the Bot if user consented to upload.

void setDeclineContext(Object withDeclineContext)

Sets context sent back to the Bot if user declined.

void setDescription(String withDescription)

Sets file description.

void setSizeInBytes(long withSizeInBytes)

Sets size of the file to be uploaded in Bytes.

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

FileConsentCard

public FileConsentCard()

Method Details

getAcceptContext

public Object getAcceptContext()

Gets context sent back to the Bot if user consented to upload. This is free flow schema and is sent back in Value field of Activity.

Returns:

The accept context.

getDeclineContext

public Object getDeclineContext()

Gets context sent back to the Bot if user declined. This is free flow schema and is sent back in Value field of Activity.

Returns:

The decline context.

getDescription

public String getDescription()

Gets file description.

Returns:

The file description.

getSizeInBytes

public long getSizeInBytes()

Gets size of the file to be uploaded in Bytes.

Returns:

The size in bytes.

setAcceptContext

public void setAcceptContext(Object withAcceptContext)

Sets context sent back to the Bot if user consented to upload. This is free flow schema and is sent back in Value field of Activity.

Parameters:

withAcceptContext - The new context.

setDeclineContext

public void setDeclineContext(Object withDeclineContext)

Sets context sent back to the Bot if user declined. This is free flow schema and is sent back in Value field of Activity.

Parameters:

withDeclineContext - The decline context.

setDescription

public void setDescription(String withDescription)

Sets file description.

Parameters:

withDescription - The new file description.

setSizeInBytes

public void setSizeInBytes(long withSizeInBytes)

Sets size of the file to be uploaded in Bytes.

Parameters:

withSizeInBytes - The new size in bytes.

Applies to