GET | /tenderuser/{tenderuserid} |
---|
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 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];
}
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 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 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 BrowseTenderUserResponse extends ResponseBase implements IConvertible
{
TenderUserDetails? TenderUser;
BrowseTenderUserResponse({this.TenderUser});
BrowseTenderUserResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
TenderUser = JsonConverters.fromJson(json['TenderUser'],'TenderUserDetails',context!);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'TenderUser': JsonConverters.toJson(TenderUser,'TenderUserDetails',context!)
});
getTypeName() => "BrowseTenderUserResponse";
TypeContext? context = _ctx;
}
class BrowseTenderUserByAdmin implements IGet, IConvertible
{
int? TenderUserId;
BrowseTenderUserByAdmin({this.TenderUserId});
BrowseTenderUserByAdmin.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
TenderUserId = json['TenderUserId'];
return this;
}
Map<String, dynamic> toJson() => {
'TenderUserId': TenderUserId
};
getTypeName() => "BrowseTenderUserByAdmin";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: <String, TypeInfo> {
'ResponseBase': TypeInfo(TypeOf.AbstractClass),
'TenderUserStatus': TypeInfo(TypeOf.Enum, enumValues:TenderUserStatus.values),
'ModifyRequestBase': TypeInfo(TypeOf.AbstractClass),
'TenderRoundSimple': TypeInfo(TypeOf.Class, create:() => TenderRoundSimple()),
'SupplementarySimple': TypeInfo(TypeOf.Class, create:() => SupplementarySimple()),
'TenderUserTenderRoundDetails': TypeInfo(TypeOf.Class, create:() => TenderUserTenderRoundDetails()),
'TenderUserDetails': TypeInfo(TypeOf.Class, create:() => TenderUserDetails()),
'List<TenderUserTenderRoundDetails>': TypeInfo(TypeOf.Class, create:() => <TenderUserTenderRoundDetails>[]),
'BrowseTenderUserResponse': TypeInfo(TypeOf.Class, create:() => BrowseTenderUserResponse()),
'BrowseTenderUserByAdmin': TypeInfo(TypeOf.Class, create:() => BrowseTenderUserByAdmin()),
});
Dart BrowseTenderUserByAdmin DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /tenderuser/{tenderuserid} HTTP/1.1 Host: szallitoiportal-be.veolia.hu Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"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":[{"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},"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"}}}