Mercedes.VehicleManagement.API

<back to all web services

CurrentDataProcessRequest

Requires Authentication
The following routes are available for this service:
GET/v1/GetUserCurrentDataProcess
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Mercedes.VehicleManagement.API.ServiceModel.DataProcess
Imports Mercedes.VehicleManagement.API.Shared.POCO.DataProcess

Namespace Global

    Namespace Mercedes.VehicleManagement.API.ServiceModel.DataProcess

        Public Partial Class CurrentDataProcessRequest
            Implements IGet
        End Class
    End Namespace

    Namespace Mercedes.VehicleManagement.API.Shared.POCO.DataProcess

        Public Partial Class CurrentDataProcessResponse
            Public Overridable Property Id As Integer
            Public Overridable Property Type As Integer
            Public Overridable Property Status As Integer
            Public Overridable Property StatusName As String
            Public Overridable Property TotalRecords As Integer
            Public Overridable Property ProcessedRecords As Integer
            Public Overridable Property FileName As String
            Public Overridable Property OriginalFileName As String
            Public Overridable Property DateCreated As String
            Public Overridable Property DateStarted As String
            Public Overridable Property DateFinished As String
            Public Overridable Property GasId As String
            Public Overridable Property DataProcessResultLogs As List(Of DataProcessLog) = New List(Of DataProcessLog)
            Public Overridable Property FailedCount As Integer
            Public Overridable Property SuccessCount As Integer
        End Class

        Public Partial Class DataProcessLog
            Public Overridable Property Id As Integer
            Public Overridable Property DataProcess_Id As Integer
            Public Overridable Property RowNumber As Integer
            Public Overridable Property FailureReasonId As Integer
            Public Overridable Property FailureReason As String
            Public Overridable Property MetaData As String
            Public Overridable Property MetaData2 As String
            Public Overridable Property HasFailed As Boolean
        End Class
    End Namespace
End Namespace

VB.NET CurrentDataProcessRequest DTOs

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

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/GetUserCurrentDataProcess HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CurrentDataProcessResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO.DataProcess">
  <DataProcessResultLogs>
    <DataProcessLog>
      <DataProcess_Id>0</DataProcess_Id>
      <FailureReason>String</FailureReason>
      <FailureReasonId>0</FailureReasonId>
      <HasFailed>false</HasFailed>
      <Id>0</Id>
      <MetaData>String</MetaData>
      <MetaData2>String</MetaData2>
      <RowNumber>0</RowNumber>
    </DataProcessLog>
  </DataProcessResultLogs>
  <DateCreated>String</DateCreated>
  <DateFinished>String</DateFinished>
  <DateStarted>String</DateStarted>
  <FailedCount>0</FailedCount>
  <FileName>String</FileName>
  <GasId>String</GasId>
  <Id>0</Id>
  <OriginalFileName>String</OriginalFileName>
  <ProcessedRecords>0</ProcessedRecords>
  <Status>0</Status>
  <StatusName>String</StatusName>
  <SuccessCount>0</SuccessCount>
  <TotalRecords>0</TotalRecords>
  <Type>0</Type>
</CurrentDataProcessResponse>