Portal

<back to all web services

BrowseTenderUserTenderRound

The following routes are available for this service:
GET/tender/{tenderid}/user/{userid}/round/{tenderroundid}
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;
}

abstract class ModifyRequestBase implements IConcurrencyStamp
{
    String? ConcurrencyStamp;

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

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

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

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

class TenderRoundSimple implements IConvertible
{
    int? Id;
    String? Name;
    bool? IsQuestionEnabled;
    DateTime? QuestionDeadline;
    DateTime? AnswerDeadline;
    DateTime? SubmissionDeadline;
    bool? IsSupplementaryEnabled;
    DateTime? SupplementaryRequestDeadline;
    DateTime? SupplementaryDeadline;
    DateTime? AnnouncementDateTime;
    int? Status;

    TenderRoundSimple({this.Id,this.Name,this.IsQuestionEnabled,this.QuestionDeadline,this.AnswerDeadline,this.SubmissionDeadline,this.IsSupplementaryEnabled,this.SupplementaryRequestDeadline,this.SupplementaryDeadline,this.AnnouncementDateTime,this.Status});
    TenderRoundSimple.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Name = json['Name'];
        IsQuestionEnabled = json['IsQuestionEnabled'];
        QuestionDeadline = JsonConverters.fromJson(json['QuestionDeadline'],'DateTime',context!);
        AnswerDeadline = JsonConverters.fromJson(json['AnswerDeadline'],'DateTime',context!);
        SubmissionDeadline = JsonConverters.fromJson(json['SubmissionDeadline'],'DateTime',context!);
        IsSupplementaryEnabled = json['IsSupplementaryEnabled'];
        SupplementaryRequestDeadline = JsonConverters.fromJson(json['SupplementaryRequestDeadline'],'DateTime',context!);
        SupplementaryDeadline = JsonConverters.fromJson(json['SupplementaryDeadline'],'DateTime',context!);
        AnnouncementDateTime = JsonConverters.fromJson(json['AnnouncementDateTime'],'DateTime',context!);
        Status = json['Status'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Name': Name,
        'IsQuestionEnabled': IsQuestionEnabled,
        'QuestionDeadline': JsonConverters.toJson(QuestionDeadline,'DateTime',context!),
        'AnswerDeadline': JsonConverters.toJson(AnswerDeadline,'DateTime',context!),
        'SubmissionDeadline': JsonConverters.toJson(SubmissionDeadline,'DateTime',context!),
        'IsSupplementaryEnabled': IsSupplementaryEnabled,
        'SupplementaryRequestDeadline': JsonConverters.toJson(SupplementaryRequestDeadline,'DateTime',context!),
        'SupplementaryDeadline': JsonConverters.toJson(SupplementaryDeadline,'DateTime',context!),
        'AnnouncementDateTime': JsonConverters.toJson(AnnouncementDateTime,'DateTime',context!),
        'Status': Status
    };

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

class TenderUserStatus
{
    static const TenderUserStatus FirstRound = const TenderUserStatus._(0);
    static const TenderUserStatus SecondRound = const TenderUserStatus._(1);
    static const TenderUserStatus ThirdRound = const TenderUserStatus._(2);
    static const TenderUserStatus Successful = const TenderUserStatus._(3);
    static const TenderUserStatus UnSuccessful = const TenderUserStatus._(4);

    final int _value;
    const TenderUserStatus._(this._value);
    int get value => _value;
    static List<TenderUserStatus> get values => const [FirstRound,SecondRound,ThirdRound,Successful,UnSuccessful];
}

class TenderUserDetails implements IConvertible
{
    int? Id;
    int? TenderId;
    int? UserId;
    int? ComplianceId;
    int? ProcurementId;
    TenderUserStatus? Status;
    Map<String,String?>? Meta;
    List<TenderUserTenderRoundDetails>? TenderUserTenderRounds;

    TenderUserDetails({this.Id,this.TenderId,this.UserId,this.ComplianceId,this.ProcurementId,this.Status,this.Meta,this.TenderUserTenderRounds});
    TenderUserDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        TenderId = json['TenderId'];
        UserId = json['UserId'];
        ComplianceId = json['ComplianceId'];
        ProcurementId = json['ProcurementId'];
        Status = JsonConverters.fromJson(json['Status'],'TenderUserStatus',context!);
        Meta = JsonConverters.toStringMap(json['Meta']);
        TenderUserTenderRounds = JsonConverters.fromJson(json['TenderUserTenderRounds'],'List<TenderUserTenderRoundDetails>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'TenderId': TenderId,
        'UserId': UserId,
        'ComplianceId': ComplianceId,
        'ProcurementId': ProcurementId,
        'Status': JsonConverters.toJson(Status,'TenderUserStatus',context!),
        'Meta': Meta,
        'TenderUserTenderRounds': JsonConverters.toJson(TenderUserTenderRounds,'List<TenderUserTenderRoundDetails>',context!)
    };

    getTypeName() => "TenderUserDetails";
    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;
}

class TenderUserTenderRoundDetails extends ModifyRequestBase implements IConvertible
{
    int? Id;
    int? TenderUserId;
    int? TenderRoundId;
    int? SubmittedById;
    DateTime? SubmissionDateTime;
    bool? IsSubmitted;
    int? CurrencyId;
    double? Bid;
    TenderRoundSimple? TenderRound;
    TenderUserDetails? TenderUser;
    SupplementarySimple? Supplementary;

    TenderUserTenderRoundDetails({this.Id,this.TenderUserId,this.TenderRoundId,this.SubmittedById,this.SubmissionDateTime,this.IsSubmitted,this.CurrencyId,this.Bid,this.TenderRound,this.TenderUser,this.Supplementary});
    TenderUserTenderRoundDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        Id = json['Id'];
        TenderUserId = json['TenderUserId'];
        TenderRoundId = json['TenderRoundId'];
        SubmittedById = json['SubmittedById'];
        SubmissionDateTime = JsonConverters.fromJson(json['SubmissionDateTime'],'DateTime',context!);
        IsSubmitted = json['IsSubmitted'];
        CurrencyId = json['CurrencyId'];
        Bid = JsonConverters.toDouble(json['Bid']);
        TenderRound = JsonConverters.fromJson(json['TenderRound'],'TenderRoundSimple',context!);
        TenderUser = JsonConverters.fromJson(json['TenderUser'],'TenderUserDetails',context!);
        Supplementary = JsonConverters.fromJson(json['Supplementary'],'SupplementarySimple',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'Id': Id,
        'TenderUserId': TenderUserId,
        'TenderRoundId': TenderRoundId,
        'SubmittedById': SubmittedById,
        'SubmissionDateTime': JsonConverters.toJson(SubmissionDateTime,'DateTime',context!),
        'IsSubmitted': IsSubmitted,
        'CurrencyId': CurrencyId,
        'Bid': Bid,
        'TenderRound': JsonConverters.toJson(TenderRound,'TenderRoundSimple',context!),
        'TenderUser': JsonConverters.toJson(TenderUser,'TenderUserDetails',context!),
        'Supplementary': JsonConverters.toJson(Supplementary,'SupplementarySimple',context!)
    });

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

class BrowseTenderUserTenderRoundResponse extends ResponseBase implements IConvertible
{
    TenderUserTenderRoundDetails? TenderUserTenderRound;

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

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

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

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

class BrowseTenderUserTenderRound implements IGet, IConvertible
{
    int? TenderId;
    int? UserId;
    int? TenderRoundId;

    BrowseTenderUserTenderRound({this.TenderId,this.UserId,this.TenderRoundId});
    BrowseTenderUserTenderRound.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'TenderId': TenderId,
        'UserId': UserId,
        'TenderRoundId': TenderRoundId
    };

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

TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: <String, TypeInfo> {
    'ResponseBase': TypeInfo(TypeOf.AbstractClass),
    'ModifyRequestBase': TypeInfo(TypeOf.AbstractClass),
    'TenderRoundSimple': TypeInfo(TypeOf.Class, create:() => TenderRoundSimple()),
    'TenderUserStatus': TypeInfo(TypeOf.Enum, enumValues:TenderUserStatus.values),
    'TenderUserDetails': TypeInfo(TypeOf.Class, create:() => TenderUserDetails()),
    'List<TenderUserTenderRoundDetails>': TypeInfo(TypeOf.Class, create:() => <TenderUserTenderRoundDetails>[]),
    'TenderUserTenderRoundDetails': TypeInfo(TypeOf.Class, create:() => TenderUserTenderRoundDetails()),
    'SupplementarySimple': TypeInfo(TypeOf.Class, create:() => SupplementarySimple()),
    'BrowseTenderUserTenderRoundResponse': TypeInfo(TypeOf.Class, create:() => BrowseTenderUserTenderRoundResponse()),
    'BrowseTenderUserTenderRound': TypeInfo(TypeOf.Class, create:() => BrowseTenderUserTenderRound()),
});

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

GET /tender/{tenderid}/user/{userid}/round/{tenderroundid} HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"TenderUserTenderRound":{"Id":0,"TenderUserId":0,"TenderRoundId":0,"SubmittedById":0,"SubmissionDateTime":"0001-01-01T00:00:00.0000000","IsSubmitted":false,"CurrencyId":0,"Bid":0,"TenderRound":{"Id":0,"Name":"String","IsQuestionEnabled":false,"QuestionDeadline":"0001-01-01T00:00:00.0000000","AnswerDeadline":"0001-01-01T00:00:00.0000000","SubmissionDeadline":"0001-01-01T00:00:00.0000000","IsSupplementaryEnabled":false,"SupplementaryRequestDeadline":"0001-01-01T00:00:00.0000000","SupplementaryDeadline":"0001-01-01T00:00:00.0000000","AnnouncementDateTime":"0001-01-01T00:00:00.0000000","Status":0},"TenderUser":{"Id":0,"TenderId":0,"UserId":0,"ComplianceId":0,"ProcurementId":0,"Status":0,"Meta":{"String":"String"},"TenderUserTenderRounds":[{"Id":0,"TenderUserId":0,"TenderRoundId":0,"SubmittedById":0,"SubmissionDateTime":"0001-01-01T00:00:00.0000000","IsSubmitted":false,"CurrencyId":0,"Bid":0,"TenderRound":{"Id":0,"Name":"String","IsQuestionEnabled":false,"QuestionDeadline":"0001-01-01T00:00:00.0000000","AnswerDeadline":"0001-01-01T00:00:00.0000000","SubmissionDeadline":"0001-01-01T00:00:00.0000000","IsSupplementaryEnabled":false,"SupplementaryRequestDeadline":"0001-01-01T00:00:00.0000000","SupplementaryDeadline":"0001-01-01T00:00:00.0000000","AnnouncementDateTime":"0001-01-01T00:00:00.0000000","Status":0},"TenderUser":{"Id":0,"TenderId":0,"UserId":0,"ComplianceId":0,"ProcurementId":0,"Status":0,"Meta":{"String":"String"},"TenderUserTenderRounds":[{"Id":0,"TenderUserId":0,"TenderRoundId":0,"SubmittedById":0,"SubmissionDateTime":"0001-01-01T00:00:00.0000000","IsSubmitted":false,"CurrencyId":0,"Bid":0,"TenderRound":{"Id":0,"Name":"String","IsQuestionEnabled":false,"QuestionDeadline":"0001-01-01T00:00:00.0000000","AnswerDeadline":"0001-01-01T00:00:00.0000000","SubmissionDeadline":"0001-01-01T00:00:00.0000000","IsSupplementaryEnabled":false,"SupplementaryRequestDeadline":"0001-01-01T00:00:00.0000000","SupplementaryDeadline":"0001-01-01T00:00:00.0000000","AnnouncementDateTime":"0001-01-01T00:00:00.0000000","Status":0},"TenderUser":{"Id":0,"TenderId":0,"UserId":0,"ComplianceId":0,"ProcurementId":0,"Status":0,"Meta":{"String":"String"},"TenderUserTenderRounds":[{}]},"Supplementary":{"Id":0,"TenderUserTenderRoundId":0,"IsViewed":false,"ViewingDateTime":"0001-01-01T00:00:00.0000000","IsSubmitted":false,"SubmissionDateTime":"0001-01-01T00:00:00.0000000"},"ConcurrencyStamp":"String"}]},"Supplementary":{"Id":0,"TenderUserTenderRoundId":0,"IsViewed":false,"ViewingDateTime":"0001-01-01T00:00:00.0000000","IsSubmitted":false,"SubmissionDateTime":"0001-01-01T00:00:00.0000000"},"ConcurrencyStamp":"String"}]},"Supplementary":{"Id":0,"TenderUserTenderRoundId":0,"IsViewed":false,"ViewingDateTime":"0001-01-01T00:00:00.0000000","IsSubmitted":false,"SubmissionDateTime":"0001-01-01T00:00:00.0000000"},"ConcurrencyStamp":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}