| GET | /Chats/Details |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EnquiryChatDetails
{
public UUID Id = null;
public Boolean SingleChat = null;
public UUID getId() { return Id; }
public EnquiryChatDetails setId(UUID value) { this.Id = value; return this; }
public Boolean isSingleChat() { return SingleChat; }
public EnquiryChatDetails setSingleChat(Boolean value) { this.SingleChat = value; return this; }
}
public static class ChatDetailsViewModel
{
public Integer VesselId = null;
public Integer EntityContactId = null;
public UUID EntityContactGuid = null;
public UUID EntityContactImageGuid = null;
public String EntityContactFirstName = null;
public String EntityContactLastName = null;
public UUID ChatGuid = null;
public String ChattingWithEntityContactFirstName = null;
public String ChattingWithEntityContactLastName = null;
public String ChattingWithEntityContactJobTitle = null;
public String ChattingWithEntityName = null;
public Boolean SingleChat = null;
public Integer ChattingWithEntityContactId = null;
public UUID ChattingWithEntityContactGuid = null;
public String ChattingWithEntityContactRole = null;
public Integer ChattingWithEntityId = null;
public String ChattingWithEntityContactEmailAddress = null;
public Boolean NominateSellerAlreadyUsed = null;
public String ActiveChatAuthorIds = null;
public String BannerText = null;
public UUID ChattingWithEntityContactImageGuid = null;
public Integer getVesselId() { return VesselId; }
public ChatDetailsViewModel setVesselId(Integer value) { this.VesselId = value; return this; }
public Integer getEntityContactId() { return EntityContactId; }
public ChatDetailsViewModel setEntityContactId(Integer value) { this.EntityContactId = value; return this; }
public UUID getEntityContactGuid() { return EntityContactGuid; }
public ChatDetailsViewModel setEntityContactGuid(UUID value) { this.EntityContactGuid = value; return this; }
public UUID getEntityContactImageGuid() { return EntityContactImageGuid; }
public ChatDetailsViewModel setEntityContactImageGuid(UUID value) { this.EntityContactImageGuid = value; return this; }
public String getEntityContactFirstName() { return EntityContactFirstName; }
public ChatDetailsViewModel setEntityContactFirstName(String value) { this.EntityContactFirstName = value; return this; }
public String getEntityContactLastName() { return EntityContactLastName; }
public ChatDetailsViewModel setEntityContactLastName(String value) { this.EntityContactLastName = value; return this; }
public UUID getChatGuid() { return ChatGuid; }
public ChatDetailsViewModel setChatGuid(UUID value) { this.ChatGuid = value; return this; }
public String getChattingWithEntityContactFirstName() { return ChattingWithEntityContactFirstName; }
public ChatDetailsViewModel setChattingWithEntityContactFirstName(String value) { this.ChattingWithEntityContactFirstName = value; return this; }
public String getChattingWithEntityContactLastName() { return ChattingWithEntityContactLastName; }
public ChatDetailsViewModel setChattingWithEntityContactLastName(String value) { this.ChattingWithEntityContactLastName = value; return this; }
public String getChattingWithEntityContactJobTitle() { return ChattingWithEntityContactJobTitle; }
public ChatDetailsViewModel setChattingWithEntityContactJobTitle(String value) { this.ChattingWithEntityContactJobTitle = value; return this; }
public String getChattingWithEntityName() { return ChattingWithEntityName; }
public ChatDetailsViewModel setChattingWithEntityName(String value) { this.ChattingWithEntityName = value; return this; }
public Boolean isSingleChat() { return SingleChat; }
public ChatDetailsViewModel setSingleChat(Boolean value) { this.SingleChat = value; return this; }
public Integer getChattingWithEntityContactId() { return ChattingWithEntityContactId; }
public ChatDetailsViewModel setChattingWithEntityContactId(Integer value) { this.ChattingWithEntityContactId = value; return this; }
public UUID getChattingWithEntityContactGuid() { return ChattingWithEntityContactGuid; }
public ChatDetailsViewModel setChattingWithEntityContactGuid(UUID value) { this.ChattingWithEntityContactGuid = value; return this; }
public String getChattingWithEntityContactRole() { return ChattingWithEntityContactRole; }
public ChatDetailsViewModel setChattingWithEntityContactRole(String value) { this.ChattingWithEntityContactRole = value; return this; }
public Integer getChattingWithEntityId() { return ChattingWithEntityId; }
public ChatDetailsViewModel setChattingWithEntityId(Integer value) { this.ChattingWithEntityId = value; return this; }
public String getChattingWithEntityContactEmailAddress() { return ChattingWithEntityContactEmailAddress; }
public ChatDetailsViewModel setChattingWithEntityContactEmailAddress(String value) { this.ChattingWithEntityContactEmailAddress = value; return this; }
public Boolean isNominateSellerAlreadyUsed() { return NominateSellerAlreadyUsed; }
public ChatDetailsViewModel setNominateSellerAlreadyUsed(Boolean value) { this.NominateSellerAlreadyUsed = value; return this; }
public String getActiveChatAuthorIds() { return ActiveChatAuthorIds; }
public ChatDetailsViewModel setActiveChatAuthorIds(String value) { this.ActiveChatAuthorIds = value; return this; }
public String getBannerText() { return BannerText; }
public ChatDetailsViewModel setBannerText(String value) { this.BannerText = value; return this; }
public UUID getChattingWithEntityContactImageGuid() { return ChattingWithEntityContactImageGuid; }
public ChatDetailsViewModel setChattingWithEntityContactImageGuid(UUID value) { this.ChattingWithEntityContactImageGuid = value; return this; }
}
}
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.
GET /Chats/Details HTTP/1.1 Host: internal.thebunkerbridge.com Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ChatDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels"> <ActiveChatAuthorIds>String</ActiveChatAuthorIds> <BannerText>String</BannerText> <ChatGuid>00000000-0000-0000-0000-000000000000</ChatGuid> <ChattingWithEntityContactEmailAddress>String</ChattingWithEntityContactEmailAddress> <ChattingWithEntityContactFirstName>String</ChattingWithEntityContactFirstName> <ChattingWithEntityContactGuid>00000000-0000-0000-0000-000000000000</ChattingWithEntityContactGuid> <ChattingWithEntityContactId>0</ChattingWithEntityContactId> <ChattingWithEntityContactImageGuid>00000000-0000-0000-0000-000000000000</ChattingWithEntityContactImageGuid> <ChattingWithEntityContactJobTitle>String</ChattingWithEntityContactJobTitle> <ChattingWithEntityContactLastName>String</ChattingWithEntityContactLastName> <ChattingWithEntityContactRole>String</ChattingWithEntityContactRole> <ChattingWithEntityId>0</ChattingWithEntityId> <ChattingWithEntityName>String</ChattingWithEntityName> <EntityContactFirstName>String</EntityContactFirstName> <EntityContactGuid>00000000-0000-0000-0000-000000000000</EntityContactGuid> <EntityContactId>0</EntityContactId> <EntityContactImageGuid>00000000-0000-0000-0000-000000000000</EntityContactImageGuid> <EntityContactLastName>String</EntityContactLastName> <NominateSellerAlreadyUsed>false</NominateSellerAlreadyUsed> <SingleChat>false</SingleChat> <VesselId>0</VesselId> </ChatDetailsViewModel>