Trendsic Platform Service

<back to all web services

BluebeamPreviewRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/projects/{ProjectID}/bluebeam/import/preview
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class BluebeamRow implements IConvertible
{
    int? RowNo;
    String? Subject;
    String? PageLabel;
    int? PageIndex;
    String? Author;
    String? Date;
    String? Status;
    String? Color;
    String? Comments;
    String? Label;
    String? Layer;
    String? Space;
    double? Length;
    double? Area;
    double? Count;
    double? Volume;
    String? Measurement;
    double? X;
    double? Y;
    double? Width;
    double? Height;
    Map<String,String?>? Extras = {};

    BluebeamRow({this.RowNo,this.Subject,this.PageLabel,this.PageIndex,this.Author,this.Date,this.Status,this.Color,this.Comments,this.Label,this.Layer,this.Space,this.Length,this.Area,this.Count,this.Volume,this.Measurement,this.X,this.Y,this.Width,this.Height,this.Extras});
    BluebeamRow.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        RowNo = json['RowNo'];
        Subject = json['Subject'];
        PageLabel = json['PageLabel'];
        PageIndex = json['PageIndex'];
        Author = json['Author'];
        Date = json['Date'];
        Status = json['Status'];
        Color = json['Color'];
        Comments = json['Comments'];
        Label = json['Label'];
        Layer = json['Layer'];
        Space = json['Space'];
        Length = JsonConverters.toDouble(json['Length']);
        Area = JsonConverters.toDouble(json['Area']);
        Count = JsonConverters.toDouble(json['Count']);
        Volume = JsonConverters.toDouble(json['Volume']);
        Measurement = json['Measurement'];
        X = JsonConverters.toDouble(json['X']);
        Y = JsonConverters.toDouble(json['Y']);
        Width = JsonConverters.toDouble(json['Width']);
        Height = JsonConverters.toDouble(json['Height']);
        Extras = JsonConverters.toStringMap(json['Extras']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'RowNo': RowNo,
        'Subject': Subject,
        'PageLabel': PageLabel,
        'PageIndex': PageIndex,
        'Author': Author,
        'Date': Date,
        'Status': Status,
        'Color': Color,
        'Comments': Comments,
        'Label': Label,
        'Layer': Layer,
        'Space': Space,
        'Length': Length,
        'Area': Area,
        'Count': Count,
        'Volume': Volume,
        'Measurement': Measurement,
        'X': X,
        'Y': Y,
        'Width': Width,
        'Height': Height,
        'Extras': Extras
    };

    getTypeName() => "BluebeamRow";
    TypeContext? context = _ctx;
}

class BluebeamMappedRow implements IConvertible
{
    int? RowNo;
    String? Target;
    String? Title;
    String? Description;
    String? Area;
    String? Trade;
    String? AssignedSub;
    String? Priority;
    double? Quantity;
    String? QuantityKind;
    String? Unit;
    int? TaskSeq;
    String? Reason;
    BluebeamRow? Source;

    BluebeamMappedRow({this.RowNo,this.Target,this.Title,this.Description,this.Area,this.Trade,this.AssignedSub,this.Priority,this.Quantity,this.QuantityKind,this.Unit,this.TaskSeq,this.Reason,this.Source});
    BluebeamMappedRow.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        RowNo = json['RowNo'];
        Target = json['Target'];
        Title = json['Title'];
        Description = json['Description'];
        Area = json['Area'];
        Trade = json['Trade'];
        AssignedSub = json['AssignedSub'];
        Priority = json['Priority'];
        Quantity = JsonConverters.toDouble(json['Quantity']);
        QuantityKind = json['QuantityKind'];
        Unit = json['Unit'];
        TaskSeq = json['TaskSeq'];
        Reason = json['Reason'];
        Source = JsonConverters.fromJson(json['Source'],'BluebeamRow',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'RowNo': RowNo,
        'Target': Target,
        'Title': Title,
        'Description': Description,
        'Area': Area,
        'Trade': Trade,
        'AssignedSub': AssignedSub,
        'Priority': Priority,
        'Quantity': Quantity,
        'QuantityKind': QuantityKind,
        'Unit': Unit,
        'TaskSeq': TaskSeq,
        'Reason': Reason,
        'Source': JsonConverters.toJson(Source,'BluebeamRow',context!)
    };

    getTypeName() => "BluebeamMappedRow";
    TypeContext? context = _ctx;
}

class BluebeamPreviewResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    String? FileName;
    int? RowCount;
    List<String>? Columns = [];
    List<BluebeamMappedRow>? Rows = [];
    int? PunchProposed;
    int? RfiProposed;
    int? QuantityProposed;
    int? SkipProposed;

    BluebeamPreviewResponse({this.ResponseStatus,this.FileName,this.RowCount,this.Columns,this.Rows,this.PunchProposed,this.RfiProposed,this.QuantityProposed,this.SkipProposed});
    BluebeamPreviewResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        FileName = json['FileName'];
        RowCount = json['RowCount'];
        Columns = JsonConverters.fromJson(json['Columns'],'List<String>',context!);
        Rows = JsonConverters.fromJson(json['Rows'],'List<BluebeamMappedRow>',context!);
        PunchProposed = json['PunchProposed'];
        RfiProposed = json['RfiProposed'];
        QuantityProposed = json['QuantityProposed'];
        SkipProposed = json['SkipProposed'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'FileName': FileName,
        'RowCount': RowCount,
        'Columns': JsonConverters.toJson(Columns,'List<String>',context!),
        'Rows': JsonConverters.toJson(Rows,'List<BluebeamMappedRow>',context!),
        'PunchProposed': PunchProposed,
        'RfiProposed': RfiProposed,
        'QuantityProposed': QuantityProposed,
        'SkipProposed': SkipProposed
    };

    getTypeName() => "BluebeamPreviewResponse";
    TypeContext? context = _ctx;
}

class BluebeamPreviewRequest implements IConvertible
{
    int? ProjectID;

    BluebeamPreviewRequest({this.ProjectID});
    BluebeamPreviewRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ProjectID = json['ProjectID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ProjectID': ProjectID
    };

    getTypeName() => "BluebeamPreviewRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'BluebeamRow': TypeInfo(TypeOf.Class, create:() => BluebeamRow()),
    'BluebeamMappedRow': TypeInfo(TypeOf.Class, create:() => BluebeamMappedRow()),
    'BluebeamPreviewResponse': TypeInfo(TypeOf.Class, create:() => BluebeamPreviewResponse()),
    'List<BluebeamMappedRow>': TypeInfo(TypeOf.Class, create:() => <BluebeamMappedRow>[]),
    'BluebeamPreviewRequest': TypeInfo(TypeOf.Class, create:() => BluebeamPreviewRequest()),
});

Dart BluebeamPreviewRequest 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/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>