Bridge

<back to all web services

EnquiryChatList

Enquiries
The following routes are available for this service:
GET/Enquiries/Chat-List
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 ChatListViewModel
            Public Sub New()
                GetEnquiryChatListForContactId = New List(Of GetEnquiryChatListForContactIdViewModel)
            End Sub

            Public Overridable Property BannerText As String
            Public Overridable Property GetEnquiryChatListForContactId As List(Of GetEnquiryChatListForContactIdViewModel)
        End Class

        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 EnquiryChatList
            Public Overridable Property Id As Guid
        End Class
    End Namespace
End Namespace

VB.NET EnquiryChatList DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}]}