Mercedes.VehicleManagement.API

<back to all web services

GetDataProcessRequest

Requires Authentication
The following routes are available for this service:
GET/v1/GetDataProcess/{ProcessId}
import 'package:servicestack/servicestack.dart';

class DataProcessLog implements IConvertible
{
    int? id;
    int? dataProcess_Id;
    int? rowNumber;
    int? failureReasonId;
    String? failureReason;
    String? metaData;
    String? metaData2;
    bool? hasFailed;

    DataProcessLog({this.id,this.dataProcess_Id,this.rowNumber,this.failureReasonId,this.failureReason,this.metaData,this.metaData2,this.hasFailed});
    DataProcessLog.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        dataProcess_Id = json['dataProcess_Id'];
        rowNumber = json['rowNumber'];
        failureReasonId = json['failureReasonId'];
        failureReason = json['failureReason'];
        metaData = json['metaData'];
        metaData2 = json['metaData2'];
        hasFailed = json['hasFailed'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'dataProcess_Id': dataProcess_Id,
        'rowNumber': rowNumber,
        'failureReasonId': failureReasonId,
        'failureReason': failureReason,
        'metaData': metaData,
        'metaData2': metaData2,
        'hasFailed': hasFailed
    };

    getTypeName() => "DataProcessLog";
    TypeContext? context = _ctx;
}

class CurrentDataProcessResponse implements IConvertible
{
    int? id;
    int? type;
    int? status;
    String? statusName;
    int? totalRecords;
    int? processedRecords;
    String? fileName;
    String? originalFileName;
    String? dateCreated;
    String? dateStarted;
    String? dateFinished;
    String? gasId;
    List<DataProcessLog>? dataProcessResultLogs = [];
    int? failedCount;
    int? successCount;

    CurrentDataProcessResponse({this.id,this.type,this.status,this.statusName,this.totalRecords,this.processedRecords,this.fileName,this.originalFileName,this.dateCreated,this.dateStarted,this.dateFinished,this.gasId,this.dataProcessResultLogs,this.failedCount,this.successCount});
    CurrentDataProcessResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        type = json['type'];
        status = json['status'];
        statusName = json['statusName'];
        totalRecords = json['totalRecords'];
        processedRecords = json['processedRecords'];
        fileName = json['fileName'];
        originalFileName = json['originalFileName'];
        dateCreated = json['dateCreated'];
        dateStarted = json['dateStarted'];
        dateFinished = json['dateFinished'];
        gasId = json['gasId'];
        dataProcessResultLogs = JsonConverters.fromJson(json['dataProcessResultLogs'],'List<DataProcessLog>',context!);
        failedCount = json['failedCount'];
        successCount = json['successCount'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'type': type,
        'status': status,
        'statusName': statusName,
        'totalRecords': totalRecords,
        'processedRecords': processedRecords,
        'fileName': fileName,
        'originalFileName': originalFileName,
        'dateCreated': dateCreated,
        'dateStarted': dateStarted,
        'dateFinished': dateFinished,
        'gasId': gasId,
        'dataProcessResultLogs': JsonConverters.toJson(dataProcessResultLogs,'List<DataProcessLog>',context!),
        'failedCount': failedCount,
        'successCount': successCount
    };

    getTypeName() => "CurrentDataProcessResponse";
    TypeContext? context = _ctx;
}

class GetDataProcessRequest implements IGet, IConvertible
{
    int? processId;

    GetDataProcessRequest({this.processId});
    GetDataProcessRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        processId = json['processId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'processId': processId
    };

    getTypeName() => "GetDataProcessRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'uat_api_vehicle_mgt_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
    'DataProcessLog': TypeInfo(TypeOf.Class, create:() => DataProcessLog()),
    'CurrentDataProcessResponse': TypeInfo(TypeOf.Class, create:() => CurrentDataProcessResponse()),
    'List<DataProcessLog>': TypeInfo(TypeOf.Class, create:() => <DataProcessLog>[]),
    'GetDataProcessRequest': TypeInfo(TypeOf.Class, create:() => GetDataProcessRequest()),
});

Dart GetDataProcessRequest DTOs

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

HTTP + JSON

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

GET /v1/GetDataProcess/{ProcessId} HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id":0,"type":0,"status":0,"statusName":"String","totalRecords":0,"processedRecords":0,"fileName":"String","originalFileName":"String","dateCreated":"String","dateStarted":"String","dateFinished":"String","gasId":"String","dataProcessResultLogs":[{"id":0,"dataProcess_Id":0,"rowNumber":0,"failureReasonId":0,"failureReason":"String","metaData":"String","metaData2":"String","hasFailed":false}],"failedCount":0,"successCount":0}