Mercedes.VehicleManagement.API

<back to all web services

GetOutOfMarketAreaCommsJobsRequest

Requires Authentication
The following routes are available for this service:
GET/v1/OutOfMarketAreaGet list of all Out Of Market Area Commission Number importsGet list of all Out Of Market Area Commission Number imports
import 'package:servicestack/servicestack.dart';

class OutOfMarketAreaCommsJob implements IConvertible
{
    int? id;
    String? gasId;
    String? dateCreated;
    int? processedRecords;
    int? status;
    String? fileName;

    OutOfMarketAreaCommsJob({this.id,this.gasId,this.dateCreated,this.processedRecords,this.status,this.fileName});
    OutOfMarketAreaCommsJob.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class OutOfMarketAreaCommsJobsResponse implements IConvertible
{
    List<OutOfMarketAreaCommsJob>? dataProcesses = [];

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

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

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

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

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

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

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

Dart GetOutOfMarketAreaCommsJobsRequest DTOs

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

HTTP + JSV

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

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

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