Trendsic Platform Service

<back to all web services

RoutePlanPropertyBookRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/routeplan/propertybook
import 'package:servicestack/servicestack.dart';

class RoutePlanPropertyRow implements IConvertible
{
    int? AgreementID;
    String? Name;
    String? Zip;
    String? Area;
    int? DurationMin;
    String? Frequency;
    String? ServiceType;
    String? Acreage;
    int? Dow;

    RoutePlanPropertyRow({this.AgreementID,this.Name,this.Zip,this.Area,this.DurationMin,this.Frequency,this.ServiceType,this.Acreage,this.Dow});
    RoutePlanPropertyRow.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        AgreementID = json['AgreementID'];
        Name = json['Name'];
        Zip = json['Zip'];
        Area = json['Area'];
        DurationMin = json['DurationMin'];
        Frequency = json['Frequency'];
        ServiceType = json['ServiceType'];
        Acreage = json['Acreage'];
        Dow = json['Dow'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'AgreementID': AgreementID,
        'Name': Name,
        'Zip': Zip,
        'Area': Area,
        'DurationMin': DurationMin,
        'Frequency': Frequency,
        'ServiceType': ServiceType,
        'Acreage': Acreage,
        'Dow': Dow
    };

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

class RoutePlanPropertyBookResponse implements IConvertible
{
    List<RoutePlanPropertyRow>? Rows = [];
    ResponseStatus? ResponseStatus;

    RoutePlanPropertyBookResponse({this.Rows,this.ResponseStatus});
    RoutePlanPropertyBookResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

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

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'RoutePlanPropertyRow': TypeInfo(TypeOf.Class, create:() => RoutePlanPropertyRow()),
    'RoutePlanPropertyBookResponse': TypeInfo(TypeOf.Class, create:() => RoutePlanPropertyBookResponse()),
    'List<RoutePlanPropertyRow>': TypeInfo(TypeOf.Class, create:() => <RoutePlanPropertyRow>[]),
    'RoutePlanPropertyBookRequest': TypeInfo(TypeOf.Class, create:() => RoutePlanPropertyBookRequest()),
});

Dart RoutePlanPropertyBookRequest DTOs

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

HTTP + OTHER

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

GET /v1/routeplan/propertybook HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Rows":[{"AgreementID":0,"Name":"String","Zip":"String","Area":"String","DurationMin":0,"Frequency":"String","ServiceType":"String","Acreage":"String","Dow":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}