| GET | /Chats/Details |
|---|
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 ChatDetailsViewModel
Public Overridable Property VesselId As Integer
Public Overridable Property EntityContactId As Integer
Public Overridable Property EntityContactGuid As Guid
Public Overridable Property EntityContactImageGuid As Guid
Public Overridable Property EntityContactFirstName As String
Public Overridable Property EntityContactLastName As String
Public Overridable Property ChatGuid As Guid
Public Overridable Property ChattingWithEntityContactFirstName As String
Public Overridable Property ChattingWithEntityContactLastName As String
Public Overridable Property ChattingWithEntityContactJobTitle As String
Public Overridable Property ChattingWithEntityName As String
Public Overridable Property SingleChat As Boolean
Public Overridable Property ChattingWithEntityContactId As Integer
Public Overridable Property ChattingWithEntityContactGuid As Guid
Public Overridable Property ChattingWithEntityContactRole As String
Public Overridable Property ChattingWithEntityId As Integer
Public Overridable Property ChattingWithEntityContactEmailAddress As String
Public Overridable Property NominateSellerAlreadyUsed As Boolean
Public Overridable Property ActiveChatAuthorIds As String
Public Overridable Property BannerText As String
Public Overridable Property ChattingWithEntityContactImageGuid As Guid
End Class
End Namespace
Namespace Bridge.Private.Api.DTO
Public Partial Class EnquiryChatDetails
Public Overridable Property Id As Guid
Public Overridable Property SingleChat As Boolean
End Class
End Namespace
End Namespace
VB.NET EnquiryChatDetails DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Chats/Details HTTP/1.1 Host: internal.thebunkerbridge.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"VesselId":0,"EntityContactId":0,"EntityContactGuid":"00000000000000000000000000000000","EntityContactImageGuid":"00000000000000000000000000000000","EntityContactFirstName":"String","EntityContactLastName":"String","ChatGuid":"00000000000000000000000000000000","ChattingWithEntityContactFirstName":"String","ChattingWithEntityContactLastName":"String","ChattingWithEntityContactJobTitle":"String","ChattingWithEntityName":"String","SingleChat":false,"ChattingWithEntityContactId":0,"ChattingWithEntityContactGuid":"00000000000000000000000000000000","ChattingWithEntityContactRole":"String","ChattingWithEntityId":0,"ChattingWithEntityContactEmailAddress":"String","NominateSellerAlreadyUsed":false,"ActiveChatAuthorIds":"String","BannerText":"String","ChattingWithEntityContactImageGuid":"00000000000000000000000000000000"}