| GET | /Enquiries/Chat-List |
|---|
export class EnquiryChatList
{
public Id: string;
public constructor(init?: Partial<EnquiryChatList>) { (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); }
}
export class ChatListViewModel
{
public BannerText: string;
public GetEnquiryChatListForContactId: GetEnquiryChatListForContactIdViewModel[];
public constructor(init?: Partial<ChatListViewModel>) { (Object as any).assign(this, init); }
}
TypeScript EnquiryChatList 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 /Enquiries/Chat-List HTTP/1.1 Host: internal.thebunkerbridge.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
BannerText: String,
GetEnquiryChatListForContactId:
[
{
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
}
]
}