Power.Dev Hangfire Services

<back to all web services

BatteryArbitrageJobRequest

The following routes are available for this service:
POST/battery-arbitrage-job
import 'package:servicestack/servicestack.dart';

class BatteryArbitrageJobRequest implements IConvertible
{
    String? type;
    int? keyId;
    int? runPrepare;

    BatteryArbitrageJobRequest({this.type,this.keyId,this.runPrepare});
    BatteryArbitrageJobRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'type': type,
        'keyId': keyId,
        'runPrepare': runPrepare
    };

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

TypeContext _ctx = TypeContext(library: 'catalog_jobs_dev.power.dev', types: <String, TypeInfo> {
    'BatteryArbitrageJobRequest': TypeInfo(TypeOf.Class, create:() => BatteryArbitrageJobRequest()),
});

Dart BatteryArbitrageJobRequest 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.

POST /battery-arbitrage-job HTTP/1.1 
Host: catalog-jobs-dev.power.dev 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"type":"String","keyId":0,"runPrepare":0}