| GET | /Chats/Single |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Bridge.Private.Api.DTO
Imports Bridge.Core.ViewModels
Namespace Global
Namespace Bridge.Core.ViewModels
Public Partial Class GetEnquiryChatListForContactIdViewModel
Public Overridable Property Id As Integer
Public Overridable Property Guid As Guid
Public Overridable Property ChatGuid As Guid
Public Overridable Property EntityId As Integer
Public Overridable Property EntityName As String
Public Overridable Property EntityContactId As Integer
Public Overridable Property EntityContactFirstName As String
Public Overridable Property EntityContactLastName As String
Public Overridable Property EntityContactName As String
Public Overridable Property EntityContactRoleInChat As String
Public Overridable Property ChattingWithEntityId As Integer
Public Overridable Property ChattingWithEntityName As String
Public Overridable Property ChattingWithEntityContactId As Integer
Public Overridable Property ChattingWithEntityContactFirstName As String
Public Overridable Property ChattingWithEntityContactLastName As String
Public Overridable Property ChattingWithEntityContactName As String
Public Overridable Property ChattingWithEntityContactNameAndEntity As String
Public Overridable Property ChattingWithEntityContactRoleInChat As String
Public Overridable Property UnreadMessagesForEntityContact As Integer
Public Overridable Property LastMessageDateTime As String
Public Overridable Property LastMessageText As String
Public Overridable Property ChatId As Integer
Public Overridable Property LastMessageWasFromMe As Boolean
Public Overridable Property LastMessageDelivered As Boolean
Public Overridable Property LastMessageRead As Boolean
Public Overridable Property ChattingWithEntityContactGuid As Guid
Public Overridable Property DealRecapCode As Integer
Public Overridable Property BannerText As String
Public Overridable Property ChattingWithEntityContactImageGuid As Guid
End Class
End Namespace
Namespace Bridge.Private.Api.DTO
Public Partial Class EnquiryChatSingle
Public Overridable Property EnquiryGuid As Guid
Public Overridable Property ChatGuid As Guid
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}