| POST,OPTIONS | /v1/projects/{ProjectID}/bluebeam/import/preview |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class BluebeamPreviewRequest
{
public Integer ProjectID = null;
public Integer getProjectID() { return ProjectID; }
public BluebeamPreviewRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
}
public static class BluebeamPreviewResponse
{
public ResponseStatus ResponseStatus = null;
public String FileName = null;
public Integer RowCount = null;
public ArrayList<String> Columns = new ArrayList<String>();
public ArrayList<BluebeamMappedRow> Rows = new ArrayList<BluebeamMappedRow>();
public Integer PunchProposed = null;
public Integer RfiProposed = null;
public Integer QuantityProposed = null;
public Integer SkipProposed = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public BluebeamPreviewResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public String getFileName() { return FileName; }
public BluebeamPreviewResponse setFileName(String value) { this.FileName = value; return this; }
public Integer getRowCount() { return RowCount; }
public BluebeamPreviewResponse setRowCount(Integer value) { this.RowCount = value; return this; }
public ArrayList<String> getColumns() { return Columns; }
public BluebeamPreviewResponse setColumns(ArrayList<String> value) { this.Columns = value; return this; }
public ArrayList<BluebeamMappedRow> getRows() { return Rows; }
public BluebeamPreviewResponse setRows(ArrayList<BluebeamMappedRow> value) { this.Rows = value; return this; }
public Integer getPunchProposed() { return PunchProposed; }
public BluebeamPreviewResponse setPunchProposed(Integer value) { this.PunchProposed = value; return this; }
public Integer getRfiProposed() { return RfiProposed; }
public BluebeamPreviewResponse setRfiProposed(Integer value) { this.RfiProposed = value; return this; }
public Integer getQuantityProposed() { return QuantityProposed; }
public BluebeamPreviewResponse setQuantityProposed(Integer value) { this.QuantityProposed = value; return this; }
public Integer getSkipProposed() { return SkipProposed; }
public BluebeamPreviewResponse setSkipProposed(Integer value) { this.SkipProposed = value; return this; }
}
public static class BluebeamMappedRow
{
public Integer RowNo = null;
public String Target = null;
public String Title = null;
public String Description = null;
public String Area = null;
public String Trade = null;
public String AssignedSub = null;
public String Priority = null;
public Double Quantity = null;
public String QuantityKind = null;
public String Unit = null;
public Integer TaskSeq = null;
public String Reason = null;
public BluebeamRow Source = null;
public Integer getRowNo() { return RowNo; }
public BluebeamMappedRow setRowNo(Integer value) { this.RowNo = value; return this; }
public String getTarget() { return Target; }
public BluebeamMappedRow setTarget(String value) { this.Target = value; return this; }
public String getTitle() { return Title; }
public BluebeamMappedRow setTitle(String value) { this.Title = value; return this; }
public String getDescription() { return Description; }
public BluebeamMappedRow setDescription(String value) { this.Description = value; return this; }
public String getArea() { return Area; }
public BluebeamMappedRow setArea(String value) { this.Area = value; return this; }
public String getTrade() { return Trade; }
public BluebeamMappedRow setTrade(String value) { this.Trade = value; return this; }
public String getAssignedSub() { return AssignedSub; }
public BluebeamMappedRow setAssignedSub(String value) { this.AssignedSub = value; return this; }
public String getPriority() { return Priority; }
public BluebeamMappedRow setPriority(String value) { this.Priority = value; return this; }
public Double getQuantity() { return Quantity; }
public BluebeamMappedRow setQuantity(Double value) { this.Quantity = value; return this; }
public String getQuantityKind() { return QuantityKind; }
public BluebeamMappedRow setQuantityKind(String value) { this.QuantityKind = value; return this; }
public String getUnit() { return Unit; }
public BluebeamMappedRow setUnit(String value) { this.Unit = value; return this; }
public Integer getTaskSeq() { return TaskSeq; }
public BluebeamMappedRow setTaskSeq(Integer value) { this.TaskSeq = value; return this; }
public String getReason() { return Reason; }
public BluebeamMappedRow setReason(String value) { this.Reason = value; return this; }
public BluebeamRow getSource() { return Source; }
public BluebeamMappedRow setSource(BluebeamRow value) { this.Source = value; return this; }
}
public static class BluebeamRow
{
public Integer RowNo = null;
public String Subject = null;
public String PageLabel = null;
public Integer PageIndex = null;
public String Author = null;
public String Date = null;
public String Status = null;
public String Color = null;
public String Comments = null;
public String Label = null;
public String Layer = null;
public String Space = null;
public Double Length = null;
public Double Area = null;
public Double Count = null;
public Double Volume = null;
public String Measurement = null;
public Double X = null;
public Double Y = null;
public Double Width = null;
public Double Height = null;
public HashMap<String,String> Extras = new HashMap<String,String>();
public Integer getRowNo() { return RowNo; }
public BluebeamRow setRowNo(Integer value) { this.RowNo = value; return this; }
public String getSubject() { return Subject; }
public BluebeamRow setSubject(String value) { this.Subject = value; return this; }
public String getPageLabel() { return PageLabel; }
public BluebeamRow setPageLabel(String value) { this.PageLabel = value; return this; }
public Integer getPageIndex() { return PageIndex; }
public BluebeamRow setPageIndex(Integer value) { this.PageIndex = value; return this; }
public String getAuthor() { return Author; }
public BluebeamRow setAuthor(String value) { this.Author = value; return this; }
public String getDate() { return Date; }
public BluebeamRow setDate(String value) { this.Date = value; return this; }
public String getStatus() { return Status; }
public BluebeamRow setStatus(String value) { this.Status = value; return this; }
public String getColor() { return Color; }
public BluebeamRow setColor(String value) { this.Color = value; return this; }
public String getComments() { return Comments; }
public BluebeamRow setComments(String value) { this.Comments = value; return this; }
public String getLabel() { return Label; }
public BluebeamRow setLabel(String value) { this.Label = value; return this; }
public String getLayer() { return Layer; }
public BluebeamRow setLayer(String value) { this.Layer = value; return this; }
public String getSpace() { return Space; }
public BluebeamRow setSpace(String value) { this.Space = value; return this; }
public Double getLength() { return Length; }
public BluebeamRow setLength(Double value) { this.Length = value; return this; }
public Double getArea() { return Area; }
public BluebeamRow setArea(Double value) { this.Area = value; return this; }
public Double getCount() { return Count; }
public BluebeamRow setCount(Double value) { this.Count = value; return this; }
public Double getVolume() { return Volume; }
public BluebeamRow setVolume(Double value) { this.Volume = value; return this; }
public String getMeasurement() { return Measurement; }
public BluebeamRow setMeasurement(String value) { this.Measurement = value; return this; }
public Double getX() { return X; }
public BluebeamRow setX(Double value) { this.X = value; return this; }
public Double getY() { return Y; }
public BluebeamRow setY(Double value) { this.Y = value; return this; }
public Double getWidth() { return Width; }
public BluebeamRow setWidth(Double value) { this.Width = value; return this; }
public Double getHeight() { return Height; }
public BluebeamRow setHeight(Double value) { this.Height = value; return this; }
public HashMap<String,String> getExtras() { return Extras; }
public BluebeamRow setExtras(HashMap<String,String> value) { this.Extras = value; return this; }
}
}
Java BluebeamPreviewRequest 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.
POST /v1/projects/{ProjectID}/bluebeam/import/preview HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<BluebeamPreviewRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ProjectID>0</ProjectID>
</BluebeamPreviewRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<BluebeamPreviewResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Columns xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Columns>
<FileName>String</FileName>
<PunchProposed>0</PunchProposed>
<QuantityProposed>0</QuantityProposed>
<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>
<RfiProposed>0</RfiProposed>
<RowCount>0</RowCount>
<Rows>
<BluebeamMappedRow>
<Area>String</Area>
<AssignedSub>String</AssignedSub>
<Description>String</Description>
<Priority>String</Priority>
<Quantity>0</Quantity>
<QuantityKind>String</QuantityKind>
<Reason>String</Reason>
<RowNo>0</RowNo>
<Source>
<Area>0</Area>
<Author>String</Author>
<Color>String</Color>
<Comments>String</Comments>
<Count>0</Count>
<Date>String</Date>
<Extras xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</Extras>
<Height>0</Height>
<Label>String</Label>
<Layer>String</Layer>
<Length>0</Length>
<Measurement>String</Measurement>
<PageIndex>0</PageIndex>
<PageLabel>String</PageLabel>
<RowNo>0</RowNo>
<Space>String</Space>
<Status>String</Status>
<Subject>String</Subject>
<Volume>0</Volume>
<Width>0</Width>
<X>0</X>
<Y>0</Y>
</Source>
<Target>String</Target>
<TaskSeq>0</TaskSeq>
<Title>String</Title>
<Trade>String</Trade>
<Unit>String</Unit>
</BluebeamMappedRow>
</Rows>
<SkipProposed>0</SkipProposed>
</BluebeamPreviewResponse>