Portal

<back to all web services

BrowseTenderUserTenderRoundByVeoliaAdmin

Requires Authentication
Required role:VeoliaAdmin
The following routes are available for this service:
GET/tenderusertenderround/{tenderusertenderroundid}
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 BrowseTenderUserTenderRoundByVeoliaAdminResponse extends ResponseBase implements IConvertible
{
    TenderUserTenderRoundDetails? TenderUserTenderRound;

    BrowseTenderUserTenderRoundByVeoliaAdminResponse({this.TenderUserTenderRound});
    BrowseTenderUserTenderRoundByVeoliaAdminResponse.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() => "BrowseTenderUserTenderRoundByVeoliaAdminResponse";
    TypeContext? context = _ctx;
}

class BrowseTenderUserTenderRoundByVeoliaAdmin implements IGet, IConvertible
{
    int? TenderUserTenderRoundId;

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

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

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

    getTypeName() => "BrowseTenderUserTenderRoundByVeoliaAdmin";
    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()),
    'BrowseTenderUserTenderRoundByVeoliaAdminResponse': TypeInfo(TypeOf.Class, create:() => BrowseTenderUserTenderRoundByVeoliaAdminResponse()),
    'BrowseTenderUserTenderRoundByVeoliaAdmin': TypeInfo(TypeOf.Class, create:() => BrowseTenderUserTenderRoundByVeoliaAdmin()),
});

Dart BrowseTenderUserTenderRoundByVeoliaAdmin DTOs

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

HTTP + JSV

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

GET /tenderusertenderround/{tenderusertenderroundid} HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	TenderUserTenderRound: 
	{
		Id: 0,
		TenderUserId: 0,
		TenderRoundId: 0,
		SubmittedById: 0,
		SubmissionDateTime: 0001-01-01,
		IsSubmitted: False,
		CurrencyId: 0,
		Bid: 0,
		TenderRound: 
		{
			Id: 0,
			Name: String,
			IsQuestionEnabled: False,
			QuestionDeadline: 0001-01-01,
			AnswerDeadline: 0001-01-01,
			SubmissionDeadline: 0001-01-01,
			IsSupplementaryEnabled: False,
			SupplementaryRequestDeadline: 0001-01-01,
			SupplementaryDeadline: 0001-01-01,
			AnnouncementDateTime: 0001-01-01,
			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-01,
					IsSubmitted: False,
					CurrencyId: 0,
					Bid: 0,
					TenderRound: 
					{
						Id: 0,
						Name: String,
						IsQuestionEnabled: False,
						QuestionDeadline: 0001-01-01,
						AnswerDeadline: 0001-01-01,
						SubmissionDeadline: 0001-01-01,
						IsSupplementaryEnabled: False,
						SupplementaryRequestDeadline: 0001-01-01,
						SupplementaryDeadline: 0001-01-01,
						AnnouncementDateTime: 0001-01-01,
						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-01,
								IsSubmitted: False,
								CurrencyId: 0,
								Bid: 0,
								TenderRound: 
								{
									Id: 0,
									Name: String,
									IsQuestionEnabled: False,
									QuestionDeadline: 0001-01-01,
									AnswerDeadline: 0001-01-01,
									SubmissionDeadline: 0001-01-01,
									IsSupplementaryEnabled: False,
									SupplementaryRequestDeadline: 0001-01-01,
									SupplementaryDeadline: 0001-01-01,
									AnnouncementDateTime: 0001-01-01,
									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-01,
									IsSubmitted: False,
									SubmissionDateTime: 0001-01-01
								},
								ConcurrencyStamp: String
							}
						]
					},
					Supplementary: 
					{
						Id: 0,
						TenderUserTenderRoundId: 0,
						IsViewed: False,
						ViewingDateTime: 0001-01-01,
						IsSubmitted: False,
						SubmissionDateTime: 0001-01-01
					},
					ConcurrencyStamp: String
				}
			]
		},
		Supplementary: 
		{
			Id: 0,
			TenderUserTenderRoundId: 0,
			IsViewed: False,
			ViewingDateTime: 0001-01-01,
			IsSubmitted: False,
			SubmissionDateTime: 0001-01-01
		},
		ConcurrencyStamp: String
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}