| GET | /v1/ConversationByHeader/{HeaderId} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ConversationByHeaderRequest
{
public UUID HeaderId = null;
public UUID getHeaderId() { return HeaderId; }
public ConversationByHeaderRequest setHeaderId(UUID value) { this.HeaderId = value; return this; }
}
public static class ConversationResponse
{
public ResponseStatus ResponseStatus = null;
public Conversation Conversation = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ConversationResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public Conversation getConversation() { return Conversation; }
public ConversationResponse setConversation(Conversation value) { this.Conversation = value; return this; }
}
public static class Conversation extends ConversationHeader
{
public ArrayList<ConversationDetail> Details = new ArrayList<ConversationDetail>();
public ArrayList<ConversationDetail> getDetails() { return Details; }
public Conversation setDetails(ArrayList<ConversationDetail> value) { this.Details = value; return this; }
}
public static class ConversationHeader
{
public UUID ConversationHeaderId = null;
public String TableName = null;
public String FieldName = null;
public Integer RecordId = null;
public Boolean AgentHasRead = null;
public Boolean AdminHasRead = null;
public UUID getConversationHeaderId() { return ConversationHeaderId; }
public ConversationHeader setConversationHeaderId(UUID value) { this.ConversationHeaderId = value; return this; }
public String getTableName() { return TableName; }
public ConversationHeader setTableName(String value) { this.TableName = value; return this; }
public String getFieldName() { return FieldName; }
public ConversationHeader setFieldName(String value) { this.FieldName = value; return this; }
public Integer getRecordId() { return RecordId; }
public ConversationHeader setRecordId(Integer value) { this.RecordId = value; return this; }
public Boolean isAgentHasRead() { return AgentHasRead; }
public ConversationHeader setAgentHasRead(Boolean value) { this.AgentHasRead = value; return this; }
public Boolean isAdminHasRead() { return AdminHasRead; }
public ConversationHeader setAdminHasRead(Boolean value) { this.AdminHasRead = value; return this; }
}
public static class ConversationDetail
{
public UUID ConversationDetailId = null;
public UUID ConversationHeaderId = null;
public String Comment = null;
public Date DateCreated = null;
public UUID CreatedBy = null;
public String CreatedByName = null;
public UUID AttachmentId = null;
public Boolean IsAdminComment = null;
public Boolean IsDeletedComment = null;
public UUID getConversationDetailId() { return ConversationDetailId; }
public ConversationDetail setConversationDetailId(UUID value) { this.ConversationDetailId = value; return this; }
public UUID getConversationHeaderId() { return ConversationHeaderId; }
public ConversationDetail setConversationHeaderId(UUID value) { this.ConversationHeaderId = value; return this; }
public String getComment() { return Comment; }
public ConversationDetail setComment(String value) { this.Comment = value; return this; }
public Date getDateCreated() { return DateCreated; }
public ConversationDetail setDateCreated(Date value) { this.DateCreated = value; return this; }
public UUID getCreatedBy() { return CreatedBy; }
public ConversationDetail setCreatedBy(UUID value) { this.CreatedBy = value; return this; }
public String getCreatedByName() { return CreatedByName; }
public ConversationDetail setCreatedByName(String value) { this.CreatedByName = value; return this; }
public UUID getAttachmentId() { return AttachmentId; }
public ConversationDetail setAttachmentId(UUID value) { this.AttachmentId = value; return this; }
public Boolean getIsAdminComment() { return IsAdminComment; }
public ConversationDetail setIsAdminComment(Boolean value) { this.IsAdminComment = value; return this; }
public Boolean getIsDeletedComment() { return IsDeletedComment; }
public ConversationDetail setIsDeletedComment(Boolean value) { this.IsDeletedComment = value; return this; }
}
}
Java ConversationByHeaderRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/ConversationByHeader/{HeaderId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Conversation:
{
Details:
[
{
ConversationDetailId: 00000000000000000000000000000000,
ConversationHeaderId: 00000000000000000000000000000000,
Comment: String,
DateCreated: 0001-01-01T00:00:00.0000000+00:00,
CreatedBy: 00000000000000000000000000000000,
CreatedByName: String,
AttachmentId: 00000000000000000000000000000000,
IsAdminComment: False,
IsDeletedComment: False
}
],
ConversationHeaderId: 00000000000000000000000000000000,
TableName: String,
FieldName: String,
RecordId: 0,
AgentHasRead: False,
AdminHasRead: False
}
}