FileConsentCard Class
- java.
lang. Object - com.
microsoft. bot. schema. teams. FileConsentCard
- com.
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
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:
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:
getDescription
public String getDescription()
Gets file description.
Returns:
getSizeInBytes
public long getSizeInBytes()
Gets size of the file to be uploaded in Bytes.
Returns:
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:
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:
setDescription
public void setDescription(String withDescription)
Sets file description.
Parameters:
setSizeInBytes
public void setSizeInBytes(long withSizeInBytes)
Sets size of the file to be uploaded in Bytes.
Parameters: