Mercedes.VehicleManagement.API

<back to all web services

GetMarketingCodesJobsRequest

The following routes are available for this service:
GET/v1/MappedMarketingCodeJobsGet list of Mapped Marketing Code jobsGet list of Mapped Marketing Code jobs
import 'package:servicestack/servicestack.dart';

class GetMarketingCodesJobsRequest implements IGet, IConvertible
{
    GetMarketingCodesJobsRequest();
    GetMarketingCodesJobsRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "GetMarketingCodesJobsRequest";
    TypeContext? context = _ctx;
}

class DataProcessJob implements IConvertible
{
    int id = 0;
    String gasId = "";
    String dateCreated = "";
    int processedRecords = 0;
    int status = 0;
    String statusName = "";
    String fileName = "";

    DataProcessJob({this.id=0,this.gasId="",this.dateCreated="",this.processedRecords=0,this.status=0,this.statusName="",this.fileName=""});
    DataProcessJob.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'] ?? 0;
        gasId = json['gasId'] ?? "";
        dateCreated = json['dateCreated'] ?? "";
        processedRecords = json['processedRecords'] ?? 0;
        status = json['status'] ?? 0;
        statusName = json['statusName'] ?? "";
        fileName = json['fileName'] ?? "";
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'gasId': gasId,
        'dateCreated': dateCreated,
        'processedRecords': processedRecords,
        'status': status,
        'statusName': statusName,
        'fileName': fileName
    };

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

class GetDataProcessJobsResponse implements IConvertible
{
    List<DataProcessJob> dataProcesses = [];

    GetDataProcessJobsResponse({this.dataProcesses=const []});
    GetDataProcessJobsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        dataProcesses = JsonConverters.fromJson(json['dataProcesses'],'List<DataProcessJob>',context!) ?? [];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'dataProcesses': JsonConverters.toJson(dataProcesses,'List<DataProcessJob>',context!)
    };

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

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

Dart GetMarketingCodesJobsRequest 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 /v1/MappedMarketingCodeJobs HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"dataProcesses":[{"id":0,"gasId":"String","dateCreated":"String","processedRecords":0,"status":0,"statusName":"String","fileName":"String"}]}