GET | /tender/{tenderid}/announcement |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class BrowseTenderAnnouncement implements IGet
{
public Integer TenderId = null;
public Integer getTenderId() { return TenderId; }
public BrowseTenderAnnouncement setTenderId(Integer value) { this.TenderId = value; return this; }
}
public static class BrowseTenderAnnouncementResponse extends ResponseBase
{
public TenderAnnouncementDetails Tender = null;
public TenderAnnouncementDetails getTender() { return Tender; }
public BrowseTenderAnnouncementResponse setTender(TenderAnnouncementDetails value) { this.Tender = value; return this; }
}
public static class ResponseBase
{
public ResponseStatus ResponseStatus = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ResponseBase setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class TenderAnnouncementDetails extends TenderAnnouncement
{
public ArrayList<TenderFileDetails> TenderFiles = null;
public ArrayList<TenderRoundSimple> TenderRounds = null;
public ArrayList<TenderFileDetails> getTenderFiles() { return TenderFiles; }
public TenderAnnouncementDetails setTenderFiles(ArrayList<TenderFileDetails> value) { this.TenderFiles = value; return this; }
public ArrayList<TenderRoundSimple> getTenderRounds() { return TenderRounds; }
public TenderAnnouncementDetails setTenderRounds(ArrayList<TenderRoundSimple> value) { this.TenderRounds = value; return this; }
}
public static class TenderAnnouncement
{
public Integer TenderId = null;
public String TenderIdentifier = null;
public ProcedureType ProcedureType = null;
public String Subject = null;
public Date SubmissionDeadline = null;
public TenderType TenderType = null;
public TenderStatus TenderStatus = null;
public Boolean IsUnderPublish = null;
public Date PublishStartDateTime = null;
public Date PublishEndDateTime = null;
public Integer PublishedById = null;
public Boolean IsProcurementEnabled = null;
public Boolean IsComplianceEnabled = null;
public Integer getTenderId() { return TenderId; }
public TenderAnnouncement setTenderId(Integer value) { this.TenderId = value; return this; }
public String getTenderIdentifier() { return TenderIdentifier; }
public TenderAnnouncement setTenderIdentifier(String value) { this.TenderIdentifier = value; return this; }
public ProcedureType getProcedureType() { return ProcedureType; }
public TenderAnnouncement setProcedureType(ProcedureType value) { this.ProcedureType = value; return this; }
public String getSubject() { return Subject; }
public TenderAnnouncement setSubject(String value) { this.Subject = value; return this; }
public Date getSubmissionDeadline() { return SubmissionDeadline; }
public TenderAnnouncement setSubmissionDeadline(Date value) { this.SubmissionDeadline = value; return this; }
public TenderType getTenderType() { return TenderType; }
public TenderAnnouncement setTenderType(TenderType value) { this.TenderType = value; return this; }
public TenderStatus getTenderStatus() { return TenderStatus; }
public TenderAnnouncement setTenderStatus(TenderStatus value) { this.TenderStatus = value; return this; }
public Boolean getIsUnderPublish() { return IsUnderPublish; }
public TenderAnnouncement setIsUnderPublish(Boolean value) { this.IsUnderPublish = value; return this; }
public Date getPublishStartDateTime() { return PublishStartDateTime; }
public TenderAnnouncement setPublishStartDateTime(Date value) { this.PublishStartDateTime = value; return this; }
public Date getPublishEndDateTime() { return PublishEndDateTime; }
public TenderAnnouncement setPublishEndDateTime(Date value) { this.PublishEndDateTime = value; return this; }
public Integer getPublishedById() { return PublishedById; }
public TenderAnnouncement setPublishedById(Integer value) { this.PublishedById = value; return this; }
public Boolean getIsProcurementEnabled() { return IsProcurementEnabled; }
public TenderAnnouncement setIsProcurementEnabled(Boolean value) { this.IsProcurementEnabled = value; return this; }
public Boolean getIsComplianceEnabled() { return IsComplianceEnabled; }
public TenderAnnouncement setIsComplianceEnabled(Boolean value) { this.IsComplianceEnabled = value; return this; }
}
public static enum ProcedureType
{
@SerializedName("0") Competition(0),
@SerializedName("1") Simplified(1);
private final int value;
ProcedureType(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static enum TenderType
{
@SerializedName("0") Private(0),
@SerializedName("1") Public(1);
private final int value;
TenderType(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static enum TenderStatus
{
@SerializedName("0") FirstRound(0),
@SerializedName("1") SecondRound(1),
@SerializedName("2") ThirdRound(2),
@SerializedName("3") Successful(3),
@SerializedName("4") UnSuccessful(4),
@SerializedName("5") Revoked(5);
private final int value;
TenderStatus(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class TenderFileDetails extends BrowseFileResponseBase
{
public Integer TenderId = null;
public String DocumentType = null;
public Boolean IsTenderAnnouncement = null;
public Integer getTenderId() { return TenderId; }
public TenderFileDetails setTenderId(Integer value) { this.TenderId = value; return this; }
public String getDocumentType() { return DocumentType; }
public TenderFileDetails setDocumentType(String value) { this.DocumentType = value; return this; }
public Boolean getIsTenderAnnouncement() { return IsTenderAnnouncement; }
public TenderFileDetails setIsTenderAnnouncement(Boolean value) { this.IsTenderAnnouncement = value; return this; }
}
public static class BrowseFileResponseBase
{
public Integer Id = null;
public Integer FileContentId = null;
public String FileName = null;
public Long Size = null;
public Integer getId() { return Id; }
public BrowseFileResponseBase setId(Integer value) { this.Id = value; return this; }
public Integer getFileContentId() { return FileContentId; }
public BrowseFileResponseBase setFileContentId(Integer value) { this.FileContentId = value; return this; }
public String getFileName() { return FileName; }
public BrowseFileResponseBase setFileName(String value) { this.FileName = value; return this; }
public Long getSize() { return Size; }
public BrowseFileResponseBase setSize(Long value) { this.Size = value; return this; }
}
public static class TenderRoundSimple
{
public Integer Id = null;
public String Name = null;
public Boolean IsQuestionEnabled = null;
public Date QuestionDeadline = null;
public Date AnswerDeadline = null;
public Date SubmissionDeadline = null;
public Boolean IsSupplementaryEnabled = null;
public Date SupplementaryRequestDeadline = null;
public Date SupplementaryDeadline = null;
public Date AnnouncementDateTime = null;
public Integer Status = null;
public Integer getId() { return Id; }
public TenderRoundSimple setId(Integer value) { this.Id = value; return this; }
public String getName() { return Name; }
public TenderRoundSimple setName(String value) { this.Name = value; return this; }
public Boolean getIsQuestionEnabled() { return IsQuestionEnabled; }
public TenderRoundSimple setIsQuestionEnabled(Boolean value) { this.IsQuestionEnabled = value; return this; }
public Date getQuestionDeadline() { return QuestionDeadline; }
public TenderRoundSimple setQuestionDeadline(Date value) { this.QuestionDeadline = value; return this; }
public Date getAnswerDeadline() { return AnswerDeadline; }
public TenderRoundSimple setAnswerDeadline(Date value) { this.AnswerDeadline = value; return this; }
public Date getSubmissionDeadline() { return SubmissionDeadline; }
public TenderRoundSimple setSubmissionDeadline(Date value) { this.SubmissionDeadline = value; return this; }
public Boolean getIsSupplementaryEnabled() { return IsSupplementaryEnabled; }
public TenderRoundSimple setIsSupplementaryEnabled(Boolean value) { this.IsSupplementaryEnabled = value; return this; }
public Date getSupplementaryRequestDeadline() { return SupplementaryRequestDeadline; }
public TenderRoundSimple setSupplementaryRequestDeadline(Date value) { this.SupplementaryRequestDeadline = value; return this; }
public Date getSupplementaryDeadline() { return SupplementaryDeadline; }
public TenderRoundSimple setSupplementaryDeadline(Date value) { this.SupplementaryDeadline = value; return this; }
public Date getAnnouncementDateTime() { return AnnouncementDateTime; }
public TenderRoundSimple setAnnouncementDateTime(Date value) { this.AnnouncementDateTime = value; return this; }
public Integer getStatus() { return Status; }
public TenderRoundSimple setStatus(Integer value) { this.Status = value; return this; }
}
}
Java BrowseTenderAnnouncement DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /tender/{tenderid}/announcement HTTP/1.1 Host: szallitoiportal-be.veolia.hu Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <BrowseTenderAnnouncementResponse 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> <Tender> <IsComplianceEnabled>false</IsComplianceEnabled> <IsProcurementEnabled>false</IsProcurementEnabled> <IsUnderPublish>false</IsUnderPublish> <ProcedureType>Competition</ProcedureType> <PublishEndDateTime>0001-01-01T00:00:00</PublishEndDateTime> <PublishStartDateTime>0001-01-01T00:00:00</PublishStartDateTime> <PublishedById>0</PublishedById> <Subject>String</Subject> <SubmissionDeadline>0001-01-01T00:00:00</SubmissionDeadline> <TenderId>0</TenderId> <TenderIdentifier>String</TenderIdentifier> <TenderStatus>FirstRound</TenderStatus> <TenderType>Private</TenderType> <TenderFiles> <TenderFileDetails> <FileContentId>0</FileContentId> <FileName>String</FileName> <Id>0</Id> <Size>0</Size> <DocumentType>String</DocumentType> <IsTenderAnnouncement>false</IsTenderAnnouncement> <TenderId>0</TenderId> </TenderFileDetails> </TenderFiles> <TenderRounds> <TenderRoundSimple> <AnnouncementDateTime>0001-01-01T00:00:00</AnnouncementDateTime> <AnswerDeadline>0001-01-01T00:00:00</AnswerDeadline> <Id>0</Id> <IsQuestionEnabled>false</IsQuestionEnabled> <IsSupplementaryEnabled>false</IsSupplementaryEnabled> <Name>String</Name> <QuestionDeadline>0001-01-01T00:00:00</QuestionDeadline> <Status>0</Status> <SubmissionDeadline>0001-01-01T00:00:00</SubmissionDeadline> <SupplementaryDeadline>0001-01-01T00:00:00</SupplementaryDeadline> <SupplementaryRequestDeadline>0001-01-01T00:00:00</SupplementaryRequestDeadline> </TenderRoundSimple> </TenderRounds> </Tender> </BrowseTenderAnnouncementResponse>