| GET | /Chats/Single |
|---|
export class EnquiryChatSingle
{
public EnquiryGuid: string;
public ChatGuid: string;
public constructor(init?: Partial<EnquiryChatSingle>) { (Object as any).assign(this, init); }
}
export class GetEnquiryChatListForContactIdViewModel
{
public Id: number;
public Guid: string;
public ChatGuid: string;
public EntityId: number;
public EntityName: string;
public EntityContactId: number;
public EntityContactFirstName: string;
public EntityContactLastName: string;
public EntityContactName: string;
public EntityContactRoleInChat: string;
public ChattingWithEntityId: number;
public ChattingWithEntityName: string;
public ChattingWithEntityContactId: number;
public ChattingWithEntityContactFirstName: string;
public ChattingWithEntityContactLastName: string;
public ChattingWithEntityContactName: string;
public ChattingWithEntityContactNameAndEntity: string;
public ChattingWithEntityContactRoleInChat: string;
public UnreadMessagesForEntityContact: number;
public LastMessageDateTime: string;
public LastMessageText: string;
public ChatId: number;
public LastMessageWasFromMe: boolean;
public LastMessageDelivered: boolean;
public LastMessageRead: boolean;
public ChattingWithEntityContactGuid: string;
public DealRecapCode: number;
public BannerText: string;
public ChattingWithEntityContactImageGuid: string;
public constructor(init?: Partial<GetEnquiryChatListForContactIdViewModel>) { (Object as any).assign(this, init); }
}
TypeScript EnquiryChatSingle DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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"}