| GET | /Enquiries/History |
|---|
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 EnquiryHistoryViewModel
Public Sub New()
GetEnquiryHistoryForContact = New List(Of GetEnquiryHistoryForContactViewModel)
End Sub
Public Overridable Property GetEnquiryHistoryForContactFilters As GetEnquiryHistoryForContactFiltersViewModel
Public Overridable Property GetEnquiryHistoryForContact As List(Of GetEnquiryHistoryForContactViewModel)
End Class
Public Partial Class GetEnquiryHistoryForContactFiltersViewModel
Public Sub New()
Filters = New List(Of GetFilterValuesForContactEntityViewModel)
VesselsList = New List(Of SelectListItem)
PortOfSuppliesList = New List(Of SelectListItem)
EnquiriesWithList = New List(Of SelectListItem)
EnquiryStatusesList = New List(Of SelectListItem)
End Sub
Public Overridable Property JustMyEnquiries As Boolean
Public Overridable Property CanViewCompanyEnquiries As Boolean
Public Overridable Property VesselId As Nullable(Of Integer)
Public Overridable Property PortOfSupplyId As Nullable(Of Integer)
Public Overridable Property ClosedDealsOnly As Nullable(Of Boolean)
Public Overridable Property SupplierId As Nullable(Of Integer)
Public Overridable Property DateFrom As Nullable(Of Date)
Public Overridable Property DateTo As Nullable(Of Date)
Public Overridable Property Status As String
Public Overridable Property Filters As List(Of GetFilterValuesForContactEntityViewModel)
Public Overridable Property VesselsList As List(Of SelectListItem)
Public Overridable Property PortOfSuppliesList As List(Of SelectListItem)
Public Overridable Property EnquiriesWithList As List(Of SelectListItem)
Public Overridable Property EnquiryStatusesList As List(Of SelectListItem)
End Class
Public Partial Class GetEnquiryHistoryForContactViewModel
Public Sub New()
FlagRound = New Byte(){}
WorkedOnBy = New List(Of GetLiveEnquiriesForContactAndEntityBeingWorkedOnByListViewModel)
End Sub
Public Overridable Property EnquiryId As Integer
Public Overridable Property EnquiryGuid 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 RecapAccepted As Boolean
Public Overridable Property RecapFromCompany As String
Public Overridable Property RecapFromName As String
Public Overridable Property RecapFromEntityContactGuid As Nullable(Of Guid)
Public Overridable Property RecapToCompany As String
Public Overridable Property RecapToName As String
Public Overridable Property RecapToEntityContactGuid As Nullable(Of Guid)
Public Overridable Property DealWithCompanyAndContact As String
Public Overridable Property RecapGuid As Nullable(Of Guid)
Public Overridable Property RecapFromEntityContactImageGuid As Nullable(Of Guid)
Public Overridable Property RecapToEntityContactImageGuid As Nullable(Of Guid)
Public Overridable Property WorkedOnBy As List(Of GetLiveEnquiriesForContactAndEntityBeingWorkedOnByListViewModel)
End Class
Public Partial Class GetFilterValuesForContactEntityViewModel
Public Overridable Property Id As Integer
Public Overridable Property Type As String
Public Overridable Property Text As String
End Class
Public Partial Class GetLiveEnquiriesForContactAndEntityBeingWorkedOnByListViewModel
Public Overridable Property HandlingEnquiryName As String
End Class
End Namespace
Namespace Bridge.Private.Api.DTO
Public Partial Class EnquiriesHistory
Public Overridable Property JustMyEnquiries As Boolean
Public Overridable Property CanViewCompanyEnquiries As Boolean
Public Overridable Property VesselId As Nullable(Of Integer)
Public Overridable Property PortOfSupplyId As Nullable(Of Integer)
Public Overridable Property ClosedDealsOnly As Nullable(Of Boolean)
Public Overridable Property SupplierId As Nullable(Of Integer)
Public Overridable Property DateFrom As Nullable(Of Date)
Public Overridable Property DateTo As Nullable(Of Date)
Public Overridable Property Status As String
End Class
End Namespace
End Namespace
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 /Enquiries/History HTTP/1.1 Host: internal.thebunkerbridge.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"GetEnquiryHistoryForContactFilters":{"JustMyEnquiries":false,"CanViewCompanyEnquiries":false,"VesselId":0,"PortOfSupplyId":0,"ClosedDealsOnly":false,"SupplierId":0,"DateFrom":"0001-01-01T00:00:00.0000000","DateTo":"0001-01-01T00:00:00.0000000","Status":"String","Filters":[{"Id":0,"Type":"String","Text":"String"}],"VesselsList":[{"Disabled":false,"Group":{"Disabled":false,"Name":"String"},"Selected":false,"Text":"String","Value":"String"}],"PortOfSuppliesList":[{"Disabled":false,"Group":{"Disabled":false,"Name":"String"},"Selected":false,"Text":"String","Value":"String"}],"EnquiriesWithList":[{"Disabled":false,"Group":{"Disabled":false,"Name":"String"},"Selected":false,"Text":"String","Value":"String"}],"EnquiryStatusesList":[{"Disabled":false,"Group":{"Disabled":false,"Name":"String"},"Selected":false,"Text":"String","Value":"String"}]},"GetEnquiryHistoryForContact":[{"EnquiryId":0,"EnquiryGuid":"00000000000000000000000000000000","FlagRound":"AA==","CountryName":"String","PortName":"String","Latitude":0,"Longitude":0,"VesselName":"String","IMONumber":0,"DeliveryDate":"String","RecapAccepted":false,"RecapFromCompany":"String","RecapFromName":"String","RecapFromEntityContactGuid":"00000000000000000000000000000000","RecapToCompany":"String","RecapToName":"String","RecapToEntityContactGuid":"00000000000000000000000000000000","DealWithCompanyAndContact":"String","RecapGuid":"00000000000000000000000000000000","RecapFromEntityContactImageGuid":"00000000000000000000000000000000","RecapToEntityContactImageGuid":"00000000000000000000000000000000","WorkedOnBy":[{"HandlingEnquiryName":"String"}]}]}