| POST,OPTIONS | /v1/projects/{ProjectID}/bluebeam/import/commit |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class BluebeamCommitRequest
{
public Integer ProjectID = null;
public String FileName = null;
public ArrayList<BluebeamMappedRow> Rows = new ArrayList<BluebeamMappedRow>();
public UUID RfpDocumentUID = null;
public Integer getProjectID() { return ProjectID; }
public BluebeamCommitRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
public String getFileName() { return FileName; }
public BluebeamCommitRequest setFileName(String value) { this.FileName = value; return this; }
public ArrayList<BluebeamMappedRow> getRows() { return Rows; }
public BluebeamCommitRequest setRows(ArrayList<BluebeamMappedRow> value) { this.Rows = value; return this; }
public UUID getRfpDocumentUID() { return RfpDocumentUID; }
public BluebeamCommitRequest setRfpDocumentUID(UUID value) { this.RfpDocumentUID = 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; }
}
public static class BluebeamCommitResponse
{
public ResponseStatus ResponseStatus = null;
public BluebeamCommitResult Result = null;
public String QuantitiesCsv = null;
public Integer QuantitiesWritten = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public BluebeamCommitResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public BluebeamCommitResult getResult() { return Result; }
public BluebeamCommitResponse setResult(BluebeamCommitResult value) { this.Result = value; return this; }
public String getQuantitiesCsv() { return QuantitiesCsv; }
public BluebeamCommitResponse setQuantitiesCsv(String value) { this.QuantitiesCsv = value; return this; }
public Integer getQuantitiesWritten() { return QuantitiesWritten; }
public BluebeamCommitResponse setQuantitiesWritten(Integer value) { this.QuantitiesWritten = value; return this; }
}
public static class BluebeamCommitResult
{
public Integer PunchCreated = null;
public Integer RfisCreated = null;
public Integer Skipped = null;
public ArrayList<String> Created = new ArrayList<String>();
public ArrayList<BluebeamMappedRow> Quantities = new ArrayList<BluebeamMappedRow>();
public ArrayList<String> Errors = new ArrayList<String>();
public Integer getPunchCreated() { return PunchCreated; }
public BluebeamCommitResult setPunchCreated(Integer value) { this.PunchCreated = value; return this; }
public Integer getRfisCreated() { return RfisCreated; }
public BluebeamCommitResult setRfisCreated(Integer value) { this.RfisCreated = value; return this; }
public Integer getSkipped() { return Skipped; }
public BluebeamCommitResult setSkipped(Integer value) { this.Skipped = value; return this; }
public ArrayList<String> getCreated() { return Created; }
public BluebeamCommitResult setCreated(ArrayList<String> value) { this.Created = value; return this; }
public ArrayList<BluebeamMappedRow> getQuantities() { return Quantities; }
public BluebeamCommitResult setQuantities(ArrayList<BluebeamMappedRow> value) { this.Quantities = value; return this; }
public ArrayList<String> getErrors() { return Errors; }
public BluebeamCommitResult setErrors(ArrayList<String> value) { this.Errors = value; return this; }
}
}
Java BluebeamCommitRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/projects/{ProjectID}/bluebeam/import/commit HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ProjectID: 0,
FileName: String,
Rows:
[
{
RowNo: 0,
Target: String,
Title: String,
Description: String,
Area: String,
Trade: String,
AssignedSub: String,
Priority: String,
Quantity: 0,
QuantityKind: String,
Unit: String,
TaskSeq: 0,
Reason: String,
Source:
{
RowNo: 0,
Subject: String,
PageLabel: String,
PageIndex: 0,
Author: String,
Date: String,
Status: String,
Color: String,
Comments: String,
Label: String,
Layer: String,
Space: String,
Length: 0,
Area: 0,
Count: 0,
Volume: 0,
Measurement: String,
X: 0,
Y: 0,
Width: 0,
Height: 0,
Extras:
{
String: String
}
}
}
],
RfpDocumentUID: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Result:
{
PunchCreated: 0,
RfisCreated: 0,
Skipped: 0,
Created:
[
String
],
Quantities:
[
{
RowNo: 0,
Target: String,
Title: String,
Description: String,
Area: String,
Trade: String,
AssignedSub: String,
Priority: String,
Quantity: 0,
QuantityKind: String,
Unit: String,
TaskSeq: 0,
Reason: String,
Source:
{
RowNo: 0,
Subject: String,
PageLabel: String,
PageIndex: 0,
Author: String,
Date: String,
Status: String,
Color: String,
Comments: String,
Label: String,
Layer: String,
Space: String,
Length: 0,
Area: 0,
Count: 0,
Volume: 0,
Measurement: String,
X: 0,
Y: 0,
Width: 0,
Height: 0,
Extras:
{
String: String
}
}
}
],
Errors:
[
String
]
},
QuantitiesCsv: String,
QuantitiesWritten: 0
}