public class Prompt extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_ANSWER |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_IS_EXPIRED |
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) |
PromptAnswer |
getAnswer()
Get answer
|
String |
getId()
A unique id for this prompt.
|
Boolean |
getIsExpired()
Whether the prompt can still be answered.
|
PromptMetadata |
getMetadata()
Get metadata
|
BigDecimal |
getSentAt()
The unix timestamp when this prompt was sent.
|
int |
hashCode() |
Prompt |
id(String id) |
Prompt |
isExpired(Boolean isExpired) |
Prompt |
metadata(PromptMetadata metadata) |
Prompt |
sentAt(BigDecimal sentAt) |
void |
setAnswer(PromptAnswer answer) |
void |
setId(String id) |
void |
setIsExpired(Boolean isExpired) |
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_IS_EXPIRED
public static final String SERIALIZED_NAME_ID
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 Boolean getIsExpired()
public void setIsExpired(Boolean isExpired)
public String getId()
public void setId(String id)
public Prompt metadata(PromptMetadata metadata)
public PromptMetadata getMetadata()
public void setMetadata(PromptMetadata metadata)
Copyright © 2019. All rights reserved.