Nephila RiskStore

<back to all web services

ProcessHotPathRollupOutputPersistenceRequest

Requires Authentication
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

enum AnalysisType
{
    NotSet,
    Standard,
    RunOff,
}

enum SimulationLossPerspective
{
    NotSet,
    Agg,
    Occ,
}

enum ReinsurancePremiumLossType
{
    NotSet,
    Net,
    Gross,
}

enum ResultOutputLevel
{
    NotSet,
    PortfolioMetrics,
    Curve,
    YLT,
    TailIntensity,
    DealYlt,
    DealElt,
    DealEltWithIndustryLoss,
    PortfolioElt,
    PortfolioEltWithIndustryLoss,
    EventSetGeneration,
    PortfolioRaps,
    DealRaps,
    PortfolioSepyIndustryLoss,
    DealSepyIndustryLoss,
}

class AnalysisPortfolioEventSetResult implements IObjectWithId, IHasAnalysisId, IConvertible
{
    // @DataMember(Order=1)
    int? id;

    // @DataMember(Order=2)
    int? analysisId;

    // @DataMember(Order=3)
    int? analysisPortfolioEventSetConfigurationId;

    // @DataMember(Order=4)
    int? analysisResultId;

    // @DataMember(Order=5)
    String? portfolioName;

    // @DataMember(Order=6)
    String? rowIdentifier;

    AnalysisPortfolioEventSetResult({this.id,this.analysisId,this.analysisPortfolioEventSetConfigurationId,this.analysisResultId,this.portfolioName,this.rowIdentifier});
    AnalysisPortfolioEventSetResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        analysisId = json['analysisId'];
        analysisPortfolioEventSetConfigurationId = json['analysisPortfolioEventSetConfigurationId'];
        analysisResultId = json['analysisResultId'];
        portfolioName = json['portfolioName'];
        rowIdentifier = json['rowIdentifier'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'analysisId': analysisId,
        'analysisPortfolioEventSetConfigurationId': analysisPortfolioEventSetConfigurationId,
        'analysisResultId': analysisResultId,
        'portfolioName': portfolioName,
        'rowIdentifier': rowIdentifier
    };

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

// @DataContract
class AnalysisResult implements IObjectWithId, IConvertible
{
    // @DataMember(Order=1)
    int? id;

    // @DataMember(Order=2)
    int? analysisId;

    // @DataMember(Order=3)
    int? analysisConfigurationId;

    // @DataMember(Order=4)
    String? container;

    // @DataMember(Order=5)
    String? blobName;

    // @DataMember(Order=6)
    String? resultTableName;

    // @DataMember(Order=7)
    AnalysisType? analysisType;

    // @DataMember(Order=8)
    SimulationLossPerspective? simulationLossPerspective;

    // @DataMember(Order=9)
    ReinsurancePremiumLossType? reinsurancePremiumLossType;

    // @DataMember(Order=10)
    ResultOutputLevel? outputLevel;

    // @DataMember(Order=11)
    int? metaRiskId;

    // @DataMember(Order=12)
    List<AnalysisPortfolioEventSetResult>? analysisPortfolioEventSetResults;

    // @DataMember(Order=13)
    String? rowIdentifier;

    AnalysisResult({this.id,this.analysisId,this.analysisConfigurationId,this.container,this.blobName,this.resultTableName,this.analysisType,this.simulationLossPerspective,this.reinsurancePremiumLossType,this.outputLevel,this.metaRiskId,this.analysisPortfolioEventSetResults,this.rowIdentifier});
    AnalysisResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        analysisId = json['analysisId'];
        analysisConfigurationId = json['analysisConfigurationId'];
        container = json['container'];
        blobName = json['blobName'];
        resultTableName = json['resultTableName'];
        analysisType = JsonConverters.fromJson(json['analysisType'],'AnalysisType',context!);
        simulationLossPerspective = JsonConverters.fromJson(json['simulationLossPerspective'],'SimulationLossPerspective',context!);
        reinsurancePremiumLossType = JsonConverters.fromJson(json['reinsurancePremiumLossType'],'ReinsurancePremiumLossType',context!);
        outputLevel = JsonConverters.fromJson(json['outputLevel'],'ResultOutputLevel',context!);
        metaRiskId = json['metaRiskId'];
        analysisPortfolioEventSetResults = JsonConverters.fromJson(json['analysisPortfolioEventSetResults'],'List<AnalysisPortfolioEventSetResult>',context!);
        rowIdentifier = json['rowIdentifier'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'analysisId': analysisId,
        'analysisConfigurationId': analysisConfigurationId,
        'container': container,
        'blobName': blobName,
        'resultTableName': resultTableName,
        'analysisType': JsonConverters.toJson(analysisType,'AnalysisType',context!),
        'simulationLossPerspective': JsonConverters.toJson(simulationLossPerspective,'SimulationLossPerspective',context!),
        'reinsurancePremiumLossType': JsonConverters.toJson(reinsurancePremiumLossType,'ReinsurancePremiumLossType',context!),
        'outputLevel': JsonConverters.toJson(outputLevel,'ResultOutputLevel',context!),
        'metaRiskId': metaRiskId,
        'analysisPortfolioEventSetResults': JsonConverters.toJson(analysisPortfolioEventSetResults,'List<AnalysisPortfolioEventSetResult>',context!),
        'rowIdentifier': rowIdentifier
    };

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

class ProcessHotPathRollupOutputPersistenceRequest implements IConvertible
{
    String? id;
    List<AnalysisResult>? outputDetails;

    ProcessHotPathRollupOutputPersistenceRequest({this.id,this.outputDetails});
    ProcessHotPathRollupOutputPersistenceRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'riskstoreng_dev.nephila.com', types: <String, TypeInfo> {
    'AnalysisType': TypeInfo(TypeOf.Enum, enumValues:AnalysisType.values),
    'SimulationLossPerspective': TypeInfo(TypeOf.Enum, enumValues:SimulationLossPerspective.values),
    'ReinsurancePremiumLossType': TypeInfo(TypeOf.Enum, enumValues:ReinsurancePremiumLossType.values),
    'ResultOutputLevel': TypeInfo(TypeOf.Enum, enumValues:ResultOutputLevel.values),
    'AnalysisPortfolioEventSetResult': TypeInfo(TypeOf.Class, create:() => AnalysisPortfolioEventSetResult()),
    'AnalysisResult': TypeInfo(TypeOf.Class, create:() => AnalysisResult()),
    'List<AnalysisPortfolioEventSetResult>': TypeInfo(TypeOf.Class, create:() => <AnalysisPortfolioEventSetResult>[]),
    'ProcessHotPathRollupOutputPersistenceRequest': TypeInfo(TypeOf.Class, create:() => ProcessHotPathRollupOutputPersistenceRequest()),
    'List<AnalysisResult>': TypeInfo(TypeOf.Class, create:() => <AnalysisResult>[]),
});

Dart ProcessHotPathRollupOutputPersistenceRequest DTOs

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

HTTP + XML

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

POST /xml/oneway/ProcessHotPathRollupOutputPersistenceRequest HTTP/1.1 
Host: riskstoreng-dev.nephila.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ProcessHotPathRollupOutputPersistenceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Requests">
  <Id>00000000-0000-0000-0000-000000000000</Id>
  <OutputDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Types">
    <d2p1:AnalysisResult>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:AnalysisId>0</d2p1:AnalysisId>
      <d2p1:AnalysisConfigurationId>0</d2p1:AnalysisConfigurationId>
      <d2p1:Container>String</d2p1:Container>
      <d2p1:BlobName>String</d2p1:BlobName>
      <d2p1:ResultTableName>String</d2p1:ResultTableName>
      <d2p1:AnalysisType>NotSet</d2p1:AnalysisType>
      <d2p1:SimulationLossPerspective>NotSet</d2p1:SimulationLossPerspective>
      <d2p1:ReinsurancePremiumLossType>NotSet</d2p1:ReinsurancePremiumLossType>
      <d2p1:OutputLevel>NotSet</d2p1:OutputLevel>
      <d2p1:MetaRiskId>0</d2p1:MetaRiskId>
      <d2p1:AnalysisPortfolioEventSetResults>
        <d2p1:AnalysisPortfolioEventSetResult>
          <d2p1:AnalysisId>0</d2p1:AnalysisId>
          <d2p1:AnalysisPortfolioEventSetConfigurationId>0</d2p1:AnalysisPortfolioEventSetConfigurationId>
          <d2p1:AnalysisResultId>0</d2p1:AnalysisResultId>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:PortfolioName>String</d2p1:PortfolioName>
          <d2p1:RowIdentifier>00000000-0000-0000-0000-000000000000</d2p1:RowIdentifier>
        </d2p1:AnalysisPortfolioEventSetResult>
      </d2p1:AnalysisPortfolioEventSetResults>
      <d2p1:RowIdentifier>00000000-0000-0000-0000-000000000000</d2p1:RowIdentifier>
    </d2p1:AnalysisResult>
  </OutputDetails>
</ProcessHotPathRollupOutputPersistenceRequest>