public class AttachmentPayload extends UrlPayload
Payload used for an Attachment.| Constructor and Description |
|---|
AttachmentPayload() |
AttachmentPayload(String url)
Instantiates a new AttachmentPayload.
|
AttachmentPayload(String url,
boolean isReusable)
Instantiates a new AttachmentPayload.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAttachmentId()
Gets the attachment id.
|
int |
hashCode() |
boolean |
isReusable()
Gets the
isReusable. |
void |
setAttachmentId(String attachmentId)
Sets the attachment id.
|
void |
setReusable(boolean isReusable)
Sets the
isReusable. |
String |
toString() |
getUrl, setUrlpublic AttachmentPayload()
public AttachmentPayload(String url)
url - the UrlPayload.url.public AttachmentPayload(String url, boolean isReusable)
url - the UrlPayload.url.isReusable - the isReusable.public boolean isReusable()
isReusable.isReusable.public void setReusable(boolean isReusable)
isReusable.isReusable - the isReusable to set.public String getAttachmentId()
public void setAttachmentId(String attachmentId)
attachmentId - the new attachment idpublic int hashCode()
hashCode in class UrlPayloadpublic boolean equals(Object obj)
equals in class UrlPayloadpublic String toString()
toString in class UrlPayloadCopyright © 2017 BotMill. All rights reserved.