| GET | /Chats/Single |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EnquiryChatSingle
{
public UUID EnquiryGuid = null;
public UUID ChatGuid = null;
public UUID getEnquiryGuid() { return EnquiryGuid; }
public EnquiryChatSingle setEnquiryGuid(UUID value) { this.EnquiryGuid = value; return this; }
public UUID getChatGuid() { return ChatGuid; }
public EnquiryChatSingle setChatGuid(UUID value) { this.ChatGuid = value; return this; }
}
public static class GetEnquiryChatListForContactIdViewModel
{
public Integer Id = null;
public UUID Guid = null;
public UUID ChatGuid = null;
public Integer EntityId = null;
public String EntityName = null;
public Integer EntityContactId = null;
public String EntityContactFirstName = null;
public String EntityContactLastName = null;
public String EntityContactName = null;
public String EntityContactRoleInChat = null;
public Integer ChattingWithEntityId = null;
public String ChattingWithEntityName = null;
public Integer ChattingWithEntityContactId = null;
public String ChattingWithEntityContactFirstName = null;
public String ChattingWithEntityContactLastName = null;
public String ChattingWithEntityContactName = null;
public String ChattingWithEntityContactNameAndEntity = null;
public String ChattingWithEntityContactRoleInChat = null;
public Integer UnreadMessagesForEntityContact = null;
public String LastMessageDateTime = null;
public String LastMessageText = null;
public Integer ChatId = null;
public Boolean LastMessageWasFromMe = null;
public Boolean LastMessageDelivered = null;
public Boolean LastMessageRead = null;
public UUID ChattingWithEntityContactGuid = null;
public Integer DealRecapCode = null;
public String BannerText = null;
public UUID ChattingWithEntityContactImageGuid = null;
public Integer getId() { return Id; }
public GetEnquiryChatListForContactIdViewModel setId(Integer value) { this.Id = value; return this; }
public UUID getGuid() { return Guid; }
public GetEnquiryChatListForContactIdViewModel setGuid(UUID value) { this.Guid = value; return this; }
public UUID getChatGuid() { return ChatGuid; }
public GetEnquiryChatListForContactIdViewModel setChatGuid(UUID value) { this.ChatGuid = value; return this; }
public Integer getEntityId() { return EntityId; }
public GetEnquiryChatListForContactIdViewModel setEntityId(Integer value) { this.EntityId = value; return this; }
public String getEntityName() { return EntityName; }
public GetEnquiryChatListForContactIdViewModel setEntityName(String value) { this.EntityName = value; return this; }
public Integer getEntityContactId() { return EntityContactId; }
public GetEnquiryChatListForContactIdViewModel setEntityContactId(Integer value) { this.EntityContactId = value; return this; }
public String getEntityContactFirstName() { return EntityContactFirstName; }
public GetEnquiryChatListForContactIdViewModel setEntityContactFirstName(String value) { this.EntityContactFirstName = value; return this; }
public String getEntityContactLastName() { return EntityContactLastName; }
public GetEnquiryChatListForContactIdViewModel setEntityContactLastName(String value) { this.EntityContactLastName = value; return this; }
public String getEntityContactName() { return EntityContactName; }
public GetEnquiryChatListForContactIdViewModel setEntityContactName(String value) { this.EntityContactName = value; return this; }
public String getEntityContactRoleInChat() { return EntityContactRoleInChat; }
public GetEnquiryChatListForContactIdViewModel setEntityContactRoleInChat(String value) { this.EntityContactRoleInChat = value; return this; }
public Integer getChattingWithEntityId() { return ChattingWithEntityId; }
public GetEnquiryChatListForContactIdViewModel setChattingWithEntityId(Integer value) { this.ChattingWithEntityId = value; return this; }
public String getChattingWithEntityName() { return ChattingWithEntityName; }
public GetEnquiryChatListForContactIdViewModel setChattingWithEntityName(String value) { this.ChattingWithEntityName = value; return this; }
public Integer getChattingWithEntityContactId() { return ChattingWithEntityContactId; }
public GetEnquiryChatListForContactIdViewModel setChattingWithEntityContactId(Integer value) { this.ChattingWithEntityContactId = value; return this; }
public String getChattingWithEntityContactFirstName() { return ChattingWithEntityContactFirstName; }
public GetEnquiryChatListForContactIdViewModel setChattingWithEntityContactFirstName(String value) { this.ChattingWithEntityContactFirstName = value; return this; }
public String getChattingWithEntityContactLastName() { return ChattingWithEntityContactLastName; }
public GetEnquiryChatListForContactIdViewModel setChattingWithEntityContactLastName(String value) { this.ChattingWithEntityContactLastName = value; return this; }
public String getChattingWithEntityContactName() { return ChattingWithEntityContactName; }
public GetEnquiryChatListForContactIdViewModel setChattingWithEntityContactName(String value) { this.ChattingWithEntityContactName = value; return this; }
public String getChattingWithEntityContactNameAndEntity() { return ChattingWithEntityContactNameAndEntity; }
public GetEnquiryChatListForContactIdViewModel setChattingWithEntityContactNameAndEntity(String value) { this.ChattingWithEntityContactNameAndEntity = value; return this; }
public String getChattingWithEntityContactRoleInChat() { return ChattingWithEntityContactRoleInChat; }
public GetEnquiryChatListForContactIdViewModel setChattingWithEntityContactRoleInChat(String value) { this.ChattingWithEntityContactRoleInChat = value; return this; }
public Integer getUnreadMessagesForEntityContact() { return UnreadMessagesForEntityContact; }
public GetEnquiryChatListForContactIdViewModel setUnreadMessagesForEntityContact(Integer value) { this.UnreadMessagesForEntityContact = value; return this; }
public String getLastMessageDateTime() { return LastMessageDateTime; }
public GetEnquiryChatListForContactIdViewModel setLastMessageDateTime(String value) { this.LastMessageDateTime = value; return this; }
public String getLastMessageText() { return LastMessageText; }
public GetEnquiryChatListForContactIdViewModel setLastMessageText(String value) { this.LastMessageText = value; return this; }
public Integer getChatId() { return ChatId; }
public GetEnquiryChatListForContactIdViewModel setChatId(Integer value) { this.ChatId = value; return this; }
public Boolean isLastMessageWasFromMe() { return LastMessageWasFromMe; }
public GetEnquiryChatListForContactIdViewModel setLastMessageWasFromMe(Boolean value) { this.LastMessageWasFromMe = value; return this; }
public Boolean isLastMessageDelivered() { return LastMessageDelivered; }
public GetEnquiryChatListForContactIdViewModel setLastMessageDelivered(Boolean value) { this.LastMessageDelivered = value; return this; }
public Boolean isLastMessageRead() { return LastMessageRead; }
public GetEnquiryChatListForContactIdViewModel setLastMessageRead(Boolean value) { this.LastMessageRead = value; return this; }
public UUID getChattingWithEntityContactGuid() { return ChattingWithEntityContactGuid; }
public GetEnquiryChatListForContactIdViewModel setChattingWithEntityContactGuid(UUID value) { this.ChattingWithEntityContactGuid = value; return this; }
public Integer getDealRecapCode() { return DealRecapCode; }
public GetEnquiryChatListForContactIdViewModel setDealRecapCode(Integer value) { this.DealRecapCode = value; return this; }
public String getBannerText() { return BannerText; }
public GetEnquiryChatListForContactIdViewModel setBannerText(String value) { this.BannerText = value; return this; }
public UUID getChattingWithEntityContactImageGuid() { return ChattingWithEntityContactImageGuid; }
public GetEnquiryChatListForContactIdViewModel setChattingWithEntityContactImageGuid(UUID value) { this.ChattingWithEntityContactImageGuid = value; return this; }
}
}
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 /Chats/Single HTTP/1.1 Host: internal.thebunkerbridge.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
Guid: 00000000000000000000000000000000,
ChatGuid: 00000000000000000000000000000000,
EntityId: 0,
EntityName: String,
EntityContactId: 0,
EntityContactFirstName: String,
EntityContactLastName: String,
EntityContactName: String,
EntityContactRoleInChat: String,
ChattingWithEntityId: 0,
ChattingWithEntityName: String,
ChattingWithEntityContactId: 0,
ChattingWithEntityContactFirstName: String,
ChattingWithEntityContactLastName: String,
ChattingWithEntityContactName: String,
ChattingWithEntityContactNameAndEntity: String,
ChattingWithEntityContactRoleInChat: String,
UnreadMessagesForEntityContact: 0,
LastMessageDateTime: String,
LastMessageText: String,
ChatId: 0,
LastMessageWasFromMe: False,
LastMessageDelivered: False,
LastMessageRead: False,
ChattingWithEntityContactGuid: 00000000000000000000000000000000,
DealRecapCode: 0,
BannerText: String,
ChattingWithEntityContactImageGuid: 00000000000000000000000000000000
}