| GET | /Enquiries/Chat-List |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EnquiryChatList
{
public UUID Id = null;
public UUID getId() { return Id; }
public EnquiryChatList setId(UUID value) { this.Id = value; return this; }
}
public static class ChatListViewModel
{
public String BannerText = null;
public ArrayList<GetEnquiryChatListForContactIdViewModel> GetEnquiryChatListForContactId = null;
public String getBannerText() { return BannerText; }
public ChatListViewModel setBannerText(String value) { this.BannerText = value; return this; }
public ArrayList<GetEnquiryChatListForContactIdViewModel> getGetEnquiryChatListForContactId() { return GetEnquiryChatListForContactId; }
public ChatListViewModel setGetEnquiryChatListForContactId(ArrayList<GetEnquiryChatListForContactIdViewModel> value) { this.GetEnquiryChatListForContactId = 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 .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Enquiries/Chat-List HTTP/1.1 Host: internal.thebunkerbridge.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ChatListViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
<BannerText>String</BannerText>
<GetEnquiryChatListForContactId>
<GetEnquiryChatListForContactIdViewModel>
<BannerText>String</BannerText>
<ChatGuid>00000000-0000-0000-0000-000000000000</ChatGuid>
<ChatId>0</ChatId>
<ChattingWithEntityContactFirstName>String</ChattingWithEntityContactFirstName>
<ChattingWithEntityContactGuid>00000000-0000-0000-0000-000000000000</ChattingWithEntityContactGuid>
<ChattingWithEntityContactId>0</ChattingWithEntityContactId>
<ChattingWithEntityContactImageGuid>00000000-0000-0000-0000-000000000000</ChattingWithEntityContactImageGuid>
<ChattingWithEntityContactLastName>String</ChattingWithEntityContactLastName>
<ChattingWithEntityContactName>String</ChattingWithEntityContactName>
<ChattingWithEntityContactNameAndEntity>String</ChattingWithEntityContactNameAndEntity>
<ChattingWithEntityContactRoleInChat>String</ChattingWithEntityContactRoleInChat>
<ChattingWithEntityId>0</ChattingWithEntityId>
<ChattingWithEntityName>String</ChattingWithEntityName>
<DealRecapCode>0</DealRecapCode>
<EntityContactFirstName>String</EntityContactFirstName>
<EntityContactId>0</EntityContactId>
<EntityContactLastName>String</EntityContactLastName>
<EntityContactName>String</EntityContactName>
<EntityContactRoleInChat>String</EntityContactRoleInChat>
<EntityId>0</EntityId>
<EntityName>String</EntityName>
<Guid>00000000-0000-0000-0000-000000000000</Guid>
<Id>0</Id>
<LastMessageDateTime>String</LastMessageDateTime>
<LastMessageDelivered>false</LastMessageDelivered>
<LastMessageRead>false</LastMessageRead>
<LastMessageText>String</LastMessageText>
<LastMessageWasFromMe>false</LastMessageWasFromMe>
<UnreadMessagesForEntityContact>0</UnreadMessagesForEntityContact>
</GetEnquiryChatListForContactIdViewModel>
</GetEnquiryChatListForContactId>
</ChatListViewModel>