All Verbs | /nodes/live-answer/chat-callback |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class LiveAnswerChatCallback
{
public String sessionId = null;
public String flowId = null;
public String nodeId = null;
public String clientId = null;
public String conversationId = null;
public Integer aiMinutes = null;
public String from = null;
public String to = null;
public ArrayList<LiveAnswerCallbackTranscriptMessage> transcript = null;
public Date startDate = null;
public Date endDate = null;
public ArrayList<LiveAnswerCallbackAttachment> attachments = null;
public String getSessionId() { return sessionId; }
public LiveAnswerChatCallback setSessionId(String value) { this.sessionId = value; return this; }
public String getFlowId() { return flowId; }
public LiveAnswerChatCallback setFlowId(String value) { this.flowId = value; return this; }
public String getNodeId() { return nodeId; }
public LiveAnswerChatCallback setNodeId(String value) { this.nodeId = value; return this; }
public String getClientId() { return clientId; }
public LiveAnswerChatCallback setClientId(String value) { this.clientId = value; return this; }
public String getConversationId() { return conversationId; }
public LiveAnswerChatCallback setConversationId(String value) { this.conversationId = value; return this; }
public Integer getAiMinutes() { return aiMinutes; }
public LiveAnswerChatCallback setAiMinutes(Integer value) { this.aiMinutes = value; return this; }
public String getFrom() { return from; }
public LiveAnswerChatCallback setFrom(String value) { this.from = value; return this; }
public String getTo() { return to; }
public LiveAnswerChatCallback setTo(String value) { this.to = value; return this; }
public ArrayList<LiveAnswerCallbackTranscriptMessage> getTranscript() { return transcript; }
public LiveAnswerChatCallback setTranscript(ArrayList<LiveAnswerCallbackTranscriptMessage> value) { this.transcript = value; return this; }
public Date getStartDate() { return startDate; }
public LiveAnswerChatCallback setStartDate(Date value) { this.startDate = value; return this; }
public Date getEndDate() { return endDate; }
public LiveAnswerChatCallback setEndDate(Date value) { this.endDate = value; return this; }
public ArrayList<LiveAnswerCallbackAttachment> getAttachments() { return attachments; }
public LiveAnswerChatCallback setAttachments(ArrayList<LiveAnswerCallbackAttachment> value) { this.attachments = value; return this; }
}
public static class LiveAnswerCallbackTranscriptMessage
{
public Date date = null;
public String role = null;
public String senderName = null;
public String targetName = null;
public String functionName = null;
public String functionArgs = null;
public String content = null;
public Date getDate() { return date; }
public LiveAnswerCallbackTranscriptMessage setDate(Date value) { this.date = value; return this; }
public String getRole() { return role; }
public LiveAnswerCallbackTranscriptMessage setRole(String value) { this.role = value; return this; }
public String getSenderName() { return senderName; }
public LiveAnswerCallbackTranscriptMessage setSenderName(String value) { this.senderName = value; return this; }
public String getTargetName() { return targetName; }
public LiveAnswerCallbackTranscriptMessage setTargetName(String value) { this.targetName = value; return this; }
public String getFunctionName() { return functionName; }
public LiveAnswerCallbackTranscriptMessage setFunctionName(String value) { this.functionName = value; return this; }
public String getFunctionArgs() { return functionArgs; }
public LiveAnswerCallbackTranscriptMessage setFunctionArgs(String value) { this.functionArgs = value; return this; }
public String getContent() { return content; }
public LiveAnswerCallbackTranscriptMessage setContent(String value) { this.content = value; return this; }
}
public static class LiveAnswerCallbackAttachment
{
public String fileName = null;
public String contentType = null;
public String uri = null;
public String data = null;
public String getFileName() { return fileName; }
public LiveAnswerCallbackAttachment setFileName(String value) { this.fileName = value; return this; }
public String getContentType() { return contentType; }
public LiveAnswerCallbackAttachment setContentType(String value) { this.contentType = value; return this; }
public String getUri() { return uri; }
public LiveAnswerCallbackAttachment setUri(String value) { this.uri = value; return this; }
public String getData() { return data; }
public LiveAnswerCallbackAttachment setData(String value) { this.data = value; return this; }
}
}
Java LiveAnswerChatCallback DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /nodes/live-answer/chat-callback HTTP/1.1
Host: team.evovoice.io
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<LiveAnswerChatCallback xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Nodes.AI">
<AIMinutes>0</AIMinutes>
<Attachments>
<LiveAnswerCallbackAttachment>
<ContentType>String</ContentType>
<Data>String</Data>
<FileName>String</FileName>
<Uri>String</Uri>
</LiveAnswerCallbackAttachment>
</Attachments>
<ClientId>String</ClientId>
<ConversationId>String</ConversationId>
<EndDate>0001-01-01T00:00:00</EndDate>
<FlowId>String</FlowId>
<From>String</From>
<NodeId>String</NodeId>
<SessionId>String</SessionId>
<StartDate>0001-01-01T00:00:00</StartDate>
<To>String</To>
<Transcript>
<LiveAnswerCallbackTranscriptMessage>
<Content>String</Content>
<Date>0001-01-01T00:00:00</Date>
<FunctionArgs>String</FunctionArgs>
<FunctionName>String</FunctionName>
<Role>String</Role>
<SenderName>String</SenderName>
<TargetName>String</TargetName>
</LiveAnswerCallbackTranscriptMessage>
</Transcript>
</LiveAnswerChatCallback>