Power.Dev Hangfire Services

<back to all web services

NewStageLmpSumRequest

The following routes are available for this service:
POST/new-state/lmp-sum
import 'package:servicestack/servicestack.dart';

enum PriceMarketType
{
    Undefined,
    Realtime,
    DayAhead,
    DART,
}

enum DataProvider
{
    Undefined,
    SPP,
    ERCOT,
    MISO,
    CAISO,
    PJM,
    ISONE,
    NYISO,
    NW,
    SW,
    SE,
    AESO,
    IESO,
    CENACE,
    NONISO,
    EIA,
    PNM,
    NREL,
    NOAA,
    ENTSOE,
    EPIAS,
    SELF,
}

enum DataSumType
{
    Undefined,
    Hourly,
    Daily,
    Weekly,
    Monthly,
    Yearly,
    SeasonalMonthHour,
    SolarWind,
}

enum JobScope
{
    Undefined,
    Lmp,
    SolarWind,
    TxBx,
    Parquet,
}

class NewStageLmpSumRequest implements IConvertible
{
    PriceMarketType? marketType;
    DataProvider? provider;
    DateTime? date;
    int? monthDuration;
    DataSumType? sumType;
    JobScope? jobScope;
    int? nodeId;
    bool? force;

    NewStageLmpSumRequest({this.marketType,this.provider,this.date,this.monthDuration,this.sumType,this.jobScope,this.nodeId,this.force});
    NewStageLmpSumRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        marketType = JsonConverters.fromJson(json['marketType'],'PriceMarketType',context!);
        provider = JsonConverters.fromJson(json['provider'],'DataProvider',context!);
        date = JsonConverters.fromJson(json['date'],'DateTime',context!);
        monthDuration = json['monthDuration'];
        sumType = JsonConverters.fromJson(json['sumType'],'DataSumType',context!);
        jobScope = JsonConverters.fromJson(json['jobScope'],'JobScope',context!);
        nodeId = json['nodeId'];
        force = json['force'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'marketType': JsonConverters.toJson(marketType,'PriceMarketType',context!),
        'provider': JsonConverters.toJson(provider,'DataProvider',context!),
        'date': JsonConverters.toJson(date,'DateTime',context!),
        'monthDuration': monthDuration,
        'sumType': JsonConverters.toJson(sumType,'DataSumType',context!),
        'jobScope': JsonConverters.toJson(jobScope,'JobScope',context!),
        'nodeId': nodeId,
        'force': force
    };

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

TypeContext _ctx = TypeContext(library: 'catalog_jobs_dev.power.dev', types: <String, TypeInfo> {
    'PriceMarketType': TypeInfo(TypeOf.Enum, enumValues:PriceMarketType.values),
    'DataProvider': TypeInfo(TypeOf.Enum, enumValues:DataProvider.values),
    'DataSumType': TypeInfo(TypeOf.Enum, enumValues:DataSumType.values),
    'JobScope': TypeInfo(TypeOf.Enum, enumValues:JobScope.values),
    'NewStageLmpSumRequest': TypeInfo(TypeOf.Class, create:() => NewStageLmpSumRequest()),
});

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

POST /new-state/lmp-sum HTTP/1.1 
Host: catalog-jobs-dev.power.dev 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"marketType":"Undefined","provider":"Undefined","date":"\/Date(-62135596800000-0000)\/","monthDuration":0,"sumType":"Undefined","jobScope":"Undefined","nodeId":0,"force":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{}