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 .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 /supplementary/{supplementaryid} HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Supplementary":{"TenderId":0,"TenderUserId":0,"UserId":0,"TenderRoundId":0,"ViewedById":0,"SubmittedById":0,"Meta":{"String":"String"},"SupplementaryFiles":[{"SupplementaryId":0,"SupplementaryDocumentTypeId":0,"SupplementaryDocumentType":"String","Direction":0,"Id":0,"FileContentId":0,"FileName":"String","Size":0}],"Id":0,"TenderUserTenderRoundId":0,"IsViewed":false,"ViewingDateTime":"0001-01-01T00:00:00.0000000","IsSubmitted":false,"SubmissionDateTime":"0001-01-01T00:00:00.0000000"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}