public class Attachment extends Object implements Serializable
| Constructor and Description |
|---|
Attachment()
Instantiates a new attachment.
|
Attachment(AttachmentType type,
Payload payload)
Instantiates a new attachment.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Payload |
getPayload()
Gets the
payload. |
String |
getTitle()
Gets the
title. |
AttachmentType |
getType()
Gets the
type. |
String |
getUrl()
Gets the
url. |
int |
hashCode() |
void |
setPayload(Payload payload)
Sets the
payload. |
void |
setTitle(String title)
Sets the
title. |
void |
setType(AttachmentType type)
Sets the
type. |
void |
setUrl(String url)
Sets the
url. |
String |
toString() |
public Attachment()
public Attachment(AttachmentType type, Payload payload)
public AttachmentType getType()
type.type.public void setType(AttachmentType type)
type.type - the type to set.public void setPayload(Payload payload)
payload.payload - the payload to set.Copyright © 2017 BotMill. All rights reserved.