Trendsic Platform Service

<back to all web services

BluebeamCommitRequest

Requires Authentication
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + 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/commit HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<BluebeamCommitRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <FileName>String</FileName>
  <ProjectID>0</ProjectID>
  <RfpDocumentUID>00000000-0000-0000-0000-000000000000</RfpDocumentUID>
  <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>
</BluebeamCommitRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BluebeamCommitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <QuantitiesCsv>String</QuantitiesCsv>
  <QuantitiesWritten>0</QuantitiesWritten>
  <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>
  <Result>
    <Created xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Created>
    <Errors xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Errors>
    <PunchCreated>0</PunchCreated>
    <Quantities>
      <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:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value>String</d6p1:Value>
            </d6p1: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>
    </Quantities>
    <RfisCreated>0</RfisCreated>
    <Skipped>0</Skipped>
  </Result>
</BluebeamCommitResponse>