Portal

<back to all web services

BrowseSupplementaryByVeoliaAdmin

The following routes are available for this service:
GET/supplementary/{supplementaryid}
import 'package:servicestack/servicestack.dart';

abstract class ResponseBase
{
    ResponseStatus? ResponseStatus;

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

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

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

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

class SupplementarySimple implements IConvertible
{
    int? Id;
    int? TenderUserTenderRoundId;
    bool? IsViewed;
    DateTime? ViewingDateTime;
    bool? IsSubmitted;
    DateTime? SubmissionDateTime;

    SupplementarySimple({this.Id,this.TenderUserTenderRoundId,this.IsViewed,this.ViewingDateTime,this.IsSubmitted,this.SubmissionDateTime});
    SupplementarySimple.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        TenderUserTenderRoundId = json['TenderUserTenderRoundId'];
        IsViewed = json['IsViewed'];
        ViewingDateTime = JsonConverters.fromJson(json['ViewingDateTime'],'DateTime',context!);
        IsSubmitted = json['IsSubmitted'];
        SubmissionDateTime = JsonConverters.fromJson(json['SubmissionDateTime'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'TenderUserTenderRoundId': TenderUserTenderRoundId,
        'IsViewed': IsViewed,
        'ViewingDateTime': JsonConverters.toJson(ViewingDateTime,'DateTime',context!),
        'IsSubmitted': IsSubmitted,
        'SubmissionDateTime': JsonConverters.toJson(SubmissionDateTime,'DateTime',context!)
    };

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

abstract class BrowseFileResponseBase
{
    int? Id;
    int? FileContentId;
    String? FileName;
    int? Size;

    BrowseFileResponseBase({this.Id,this.FileContentId,this.FileName,this.Size});
    BrowseFileResponseBase.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        FileContentId = json['FileContentId'];
        FileName = json['FileName'];
        Size = json['Size'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'FileContentId': FileContentId,
        'FileName': FileName,
        'Size': Size
    };

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

class SupplementaryFileDirection
{
    static const SupplementaryFileDirection Request = const SupplementaryFileDirection._(0);
    static const SupplementaryFileDirection Response = const SupplementaryFileDirection._(1);

    final int _value;
    const SupplementaryFileDirection._(this._value);
    int get value => _value;
    static List<SupplementaryFileDirection> get values => const [Request,Response];
}

class SupplementaryFileDetails extends BrowseFileResponseBase implements IConvertible
{
    int? SupplementaryId;
    int? SupplementaryDocumentTypeId;
    String? SupplementaryDocumentType;
    SupplementaryFileDirection? Direction;

    SupplementaryFileDetails({this.SupplementaryId,this.SupplementaryDocumentTypeId,this.SupplementaryDocumentType,this.Direction});
    SupplementaryFileDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        SupplementaryId = json['SupplementaryId'];
        SupplementaryDocumentTypeId = json['SupplementaryDocumentTypeId'];
        SupplementaryDocumentType = json['SupplementaryDocumentType'];
        Direction = JsonConverters.fromJson(json['Direction'],'SupplementaryFileDirection',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'SupplementaryId': SupplementaryId,
        'SupplementaryDocumentTypeId': SupplementaryDocumentTypeId,
        'SupplementaryDocumentType': SupplementaryDocumentType,
        'Direction': JsonConverters.toJson(Direction,'SupplementaryFileDirection',context!)
    });

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

class SupplementaryDetails extends SupplementarySimple implements IConvertible
{
    int? TenderId;
    int? TenderUserId;
    int? UserId;
    int? TenderRoundId;
    int? ViewedById;
    int? SubmittedById;
    Map<String,String?>? Meta;
    List<SupplementaryFileDetails>? SupplementaryFiles;

    SupplementaryDetails({this.TenderId,this.TenderUserId,this.UserId,this.TenderRoundId,this.ViewedById,this.SubmittedById,this.Meta,this.SupplementaryFiles});
    SupplementaryDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        TenderId = json['TenderId'];
        TenderUserId = json['TenderUserId'];
        UserId = json['UserId'];
        TenderRoundId = json['TenderRoundId'];
        ViewedById = json['ViewedById'];
        SubmittedById = json['SubmittedById'];
        Meta = JsonConverters.toStringMap(json['Meta']);
        SupplementaryFiles = JsonConverters.fromJson(json['SupplementaryFiles'],'List<SupplementaryFileDetails>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'TenderId': TenderId,
        'TenderUserId': TenderUserId,
        'UserId': UserId,
        'TenderRoundId': TenderRoundId,
        'ViewedById': ViewedById,
        'SubmittedById': SubmittedById,
        'Meta': Meta,
        'SupplementaryFiles': JsonConverters.toJson(SupplementaryFiles,'List<SupplementaryFileDetails>',context!)
    });

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

class BrowseSupplementaryResponse extends ResponseBase implements IConvertible
{
    SupplementaryDetails? Supplementary;

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

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

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'Supplementary': JsonConverters.toJson(Supplementary,'SupplementaryDetails',context!)
    });

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

class BrowseSupplementaryByVeoliaAdmin implements IGet, IConvertible
{
    int? SupplementaryId;

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

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

    Map<String, dynamic> toJson() => {
        'SupplementaryId': SupplementaryId
    };

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

TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: <String, TypeInfo> {
    'ResponseBase': TypeInfo(TypeOf.AbstractClass),
    'SupplementarySimple': TypeInfo(TypeOf.Class, create:() => SupplementarySimple()),
    'BrowseFileResponseBase': TypeInfo(TypeOf.AbstractClass),
    'SupplementaryFileDirection': TypeInfo(TypeOf.Enum, enumValues:SupplementaryFileDirection.values),
    'SupplementaryFileDetails': TypeInfo(TypeOf.Class, create:() => SupplementaryFileDetails()),
    'SupplementaryDetails': TypeInfo(TypeOf.Class, create:() => SupplementaryDetails()),
    'List<SupplementaryFileDetails>': TypeInfo(TypeOf.Class, create:() => <SupplementaryFileDetails>[]),
    'BrowseSupplementaryResponse': TypeInfo(TypeOf.Class, create:() => BrowseSupplementaryResponse()),
    'BrowseSupplementaryByVeoliaAdmin': TypeInfo(TypeOf.Class, create:() => BrowseSupplementaryByVeoliaAdmin()),
});

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

GET /supplementary/{supplementaryid} HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BrowseSupplementaryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.ServiceDto">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Supplementary>
    <Id>0</Id>
    <IsSubmitted>false</IsSubmitted>
    <IsViewed>false</IsViewed>
    <SubmissionDateTime>0001-01-01T00:00:00</SubmissionDateTime>
    <TenderUserTenderRoundId>0</TenderUserTenderRoundId>
    <ViewingDateTime>0001-01-01T00:00:00</ViewingDateTime>
    <Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </Meta>
    <SubmittedById>0</SubmittedById>
    <SupplementaryFiles>
      <SupplementaryFileDetails>
        <FileContentId>0</FileContentId>
        <FileName>String</FileName>
        <Id>0</Id>
        <Size>0</Size>
        <Direction>Request</Direction>
        <SupplementaryDocumentType>String</SupplementaryDocumentType>
        <SupplementaryDocumentTypeId>0</SupplementaryDocumentTypeId>
        <SupplementaryId>0</SupplementaryId>
      </SupplementaryFileDetails>
    </SupplementaryFiles>
    <TenderId>0</TenderId>
    <TenderRoundId>0</TenderRoundId>
    <TenderUserId>0</TenderUserId>
    <UserId>0</UserId>
    <ViewedById>0</ViewedById>
  </Supplementary>
</BrowseSupplementaryResponse>