| GET | /Enquiries/Live |
|---|
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 EntityContactViewModel
Public Sub New()
AccessLevels = New List(Of GetAllAccessLevelsForEntityContactIdViewModel)
End Sub
Public Overridable Property Id As Integer
Public Overridable Property Guid As Guid
Public Overridable Property EntityId As Integer
Public Overridable Property FirstName As String
Public Overridable Property LastName As String
Public Overridable Property Initials As String
Public Overridable Property Password As String
Public Overridable Property EmailAddress As String
Public Overridable Property DarkMode As Boolean
Public Overridable Property Entity As EntityViewModel
Public Overridable Property LastActive As Nullable(Of Date)
Public Overridable Property ImageGuid As Guid
Public Overridable Property DialingCodeCountryId As Nullable(Of Integer)
Public Overridable Property TelephoneNumber As String
Public Overridable Property IsBridgeClient As Boolean
Public Overridable Property AccessLevels As List(Of GetAllAccessLevelsForEntityContactIdViewModel)
End Class
Public Partial Class EntityViewModel
Public Overridable Property Id As Integer
Public Overridable Property Guid As Guid
Public Overridable Property Type As String
Public Overridable Property Name As String
Public Overridable Property SuperTrader As Boolean
Public Overridable Property CompanyDomain As String
Public Overridable Property KYCStartedBy As Integer
Public Overridable Property KYCCompletedBy As Integer
Public Overridable Property ETSMOHAAccount As String
End Class
Public Partial Class GetAllAccessLevelsForEntityContactIdViewModel
Public Overridable Property Id As Integer
Public Overridable Property Allowed As Boolean
Public Overridable Property Name As String
Public Overridable Property Description As String
Public Overridable Property PrettyText As String
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
Public Partial Class GetLiveEnquiriesForContactAndEntityBeingWorkedOnByListViewModel
Public Overridable Property HandlingEnquiryName As String
End Class
Public Partial Class GetLiveEnquiriesForContactAndEntityCompaniesListViewModel
Public Overridable Property CompanyName As String
Public Overridable Property ChatGuid As Guid
Public Overridable Property EntityContactGuid As Guid
Public Overridable Property EntityContactImageGuid As Guid
Public Overridable Property EntityContactName As String
Public Overridable Property UnreadMessagesForEntityContact As Integer
End Class
Public Partial Class GetLiveEnquiriesForContactAndEntityViewModel
Public Sub New()
FlagRound = New Byte(){}
GetLiveEnquiriesForContactAndEntityCompaniesList = New List(Of GetLiveEnquiriesForContactAndEntityCompaniesListViewModel)
GetLiveEnquiriesForContactAndEntityBeingWorkedOnByList = New List(Of GetLiveEnquiriesForContactAndEntityBeingWorkedOnByListViewModel)
GetEnquiryChatListForContactId = New List(Of GetEnquiryChatListForContactIdViewModel)
GetLiveEnquiriesForContactAndEntityVolumeDescription = New List(Of GetLiveEnquiriesForContactAndEntityVolumeDescriptionViewModel)
End Sub
Public Overridable Property Id As Integer
Public Overridable Property Guid As Guid
Public Overridable Property FlagRound As Byte()
Public Overridable Property CountryName As String
Public Overridable Property PortName As String
Public Overridable Property Latitude As Double
Public Overridable Property Longitude As Double
Public Overridable Property VesselName As String
Public Overridable Property IMONumber As Integer
Public Overridable Property DeliveryDate As String
Public Overridable Property Companies As String
Public Overridable Property GetLiveEnquiriesForContactAndEntityCompaniesList As List(Of GetLiveEnquiriesForContactAndEntityCompaniesListViewModel)
Public Overridable Property GetLiveEnquiriesForContactAndEntityBeingWorkedOnByList As List(Of GetLiveEnquiriesForContactAndEntityBeingWorkedOnByListViewModel)
Public Overridable Property GetEnquiryChatListForContactId As List(Of GetEnquiryChatListForContactIdViewModel)
Public Overridable Property GetLiveEnquiriesForContactAndEntityVolumeDescription As List(Of GetLiveEnquiriesForContactAndEntityVolumeDescriptionViewModel)
End Class
Public Partial Class GetLiveEnquiriesForContactAndEntityVolumeDescriptionViewModel
Public Overridable Property VolDescription As String
End Class
Public Partial Class LiveEnquiriesForContactAndEntityViewModel
Public Sub New()
GetLiveEnquiriesForContactAndEntity = New List(Of GetLiveEnquiriesForContactAndEntityViewModel)
End Sub
Public Overridable Property JustMyEnquiries As Boolean
Public Overridable Property CanViewCompanyEnquiries As Boolean
Public Overridable Property EntityContactGuid As Guid
Public Overridable Property ShowCreateNewEnquiryButton As Boolean
Public Overridable Property EntityContact As EntityContactViewModel
Public Overridable Property GetLiveEnquiriesForContactAndEntity As List(Of GetLiveEnquiriesForContactAndEntityViewModel)
End Class
End Namespace
Namespace Bridge.Private.Api.DTO
Public Partial Class EnquiriesLive
Public Overridable Property JustMyEnquiries As Boolean
End Class
End Namespace
End Namespace
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 /Enquiries/Live HTTP/1.1 Host: internal.thebunkerbridge.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"JustMyEnquiries":false,"CanViewCompanyEnquiries":false,"EntityContactGuid":"00000000000000000000000000000000","ShowCreateNewEnquiryButton":false,"EntityContact":{"Id":0,"Guid":"00000000000000000000000000000000","EntityId":0,"FirstName":"String","LastName":"String","Initials":"String","Password":"String","EmailAddress":"String","DarkMode":false,"Entity":{"Id":0,"Guid":"00000000000000000000000000000000","Type":"String","Name":"String","SuperTrader":false,"CompanyDomain":"String","KYCStartedBy":0,"KYCCompletedBy":0,"ETSMOHAAccount":"String"},"LastActive":"0001-01-01T00:00:00.0000000","ImageGuid":"00000000000000000000000000000000","DialingCodeCountryId":0,"TelephoneNumber":"String","IsBridgeClient":false,"AccessLevels":[{"Id":0,"Allowed":false,"Name":"String","Description":"String","PrettyText":"String"}]},"GetLiveEnquiriesForContactAndEntity":[{"Id":0,"Guid":"00000000000000000000000000000000","FlagRound":"AA==","CountryName":"String","PortName":"String","Latitude":0,"Longitude":0,"VesselName":"String","IMONumber":0,"DeliveryDate":"String","Companies":"String","GetLiveEnquiriesForContactAndEntityCompaniesList":[{"CompanyName":"String","ChatGuid":"00000000000000000000000000000000","EntityContactGuid":"00000000000000000000000000000000","EntityContactImageGuid":"00000000000000000000000000000000","EntityContactName":"String","UnreadMessagesForEntityContact":0}],"GetLiveEnquiriesForContactAndEntityBeingWorkedOnByList":[{"HandlingEnquiryName":"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"}],"GetLiveEnquiriesForContactAndEntityVolumeDescription":[{"VolDescription":"String"}]}]}