public class Prompt extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_ANSWER |
static String |
SERIALIZED_NAME_EXPIRES_AT |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_METADATA |
static String |
SERIALIZED_NAME_SENT_AT |
| Constructor and Description |
|---|
Prompt() |
| Modifier and Type | Method and Description |
|---|---|
Prompt |
answer(PromptAnswer answer) |
boolean |
equals(Object o) |
Prompt |
expiresAt(BigDecimal expiresAt) |
PromptAnswer |
getAnswer()
Get answer
|
BigDecimal |
getExpiresAt()
The unix timestamp when this prompt can no longer be answered.
|
String |
getId()
A unique id for this prompt.
|
PromptMetadata |
getMetadata()
Get metadata
|
BigDecimal |
getSentAt()
The unix timestamp when this prompt was sent.
|
int |
hashCode() |
Prompt |
id(String id) |
Prompt |
metadata(PromptMetadata metadata) |
Prompt |
sentAt(BigDecimal sentAt) |
void |
setAnswer(PromptAnswer answer) |
void |
setExpiresAt(BigDecimal expiresAt) |
void |
setId(String id) |
void |
setMetadata(PromptMetadata metadata) |
void |
setSentAt(BigDecimal sentAt) |
String |
toString() |
public static final String SERIALIZED_NAME_ANSWER
public static final String SERIALIZED_NAME_SENT_AT
public static final String SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_EXPIRES_AT
public static final String SERIALIZED_NAME_METADATA
public Prompt answer(PromptAnswer answer)
public PromptAnswer getAnswer()
public void setAnswer(PromptAnswer answer)
public Prompt sentAt(BigDecimal sentAt)
public BigDecimal getSentAt()
public void setSentAt(BigDecimal sentAt)
public String getId()
public void setId(String id)
public Prompt expiresAt(BigDecimal expiresAt)
public BigDecimal getExpiresAt()
public void setExpiresAt(BigDecimal expiresAt)
public Prompt metadata(PromptMetadata metadata)
public PromptMetadata getMetadata()
public void setMetadata(PromptMetadata metadata)
Copyright © 2019. All rights reserved.