Trendsic Platform Service

<back to all web services

InspectorDailyReportRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/inspections/idr
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class IdrLine
            Public Overridable Property Label As String
            Public Overridable Property Detail As String
            Public Overridable Property Qty As Double?
            Public Overridable Property Unit As String
            Public Overridable Property Hours As Double?
        End Class

        Public Partial Class Inspection
            Public Overridable Property InspectionID As Integer
            Public Overridable Property InspectionUID As Guid
            Public Overridable Property ProjectID As Integer
            Public Overridable Property ProjectName As String
            Public Overridable Property JobID As Integer?
            Public Overridable Property JobName As String
            Public Overridable Property InspectionNo As String
            Public Overridable Property Type As String
            Public Overridable Property Title As String
            Public Overridable Property Status As String
            Public Overridable Property TemplateUID As Guid?
            Public Overridable Property TemplateVersionNo As Integer?
            Public Overridable Property ScheduledFor As Date?
            Public Overridable Property StartedAt As Date?
            Public Overridable Property CompletedAt As Date?
            Public Overridable Property ClosedAt As Date?
            Public Overridable Property InspectorContactID As Integer?
            Public Overridable Property InspectorName As String
            Public Overridable Property AgencyName As String
            Public Overridable Property PermitNo As String
            Public Overridable Property LocationText As String
            Public Overridable Property Notes As String
            Public Overridable Property WeatherJson As String
            Public Overridable Property ItemsTotal As Integer
            Public Overridable Property ItemsPassed As Integer
            Public Overridable Property ItemsFailed As Integer
            Public Overridable Property Outcome As String
            Public Overridable Property OutcomeNotes As String
            Public Overridable Property ReinspectionOfInspectionID As Integer?
            Public Overridable Property QcHoldPointID As Integer?
            Public Overridable Property ReportAttachmentId As Guid?
            Public Overridable Property RequestCount As Integer
            Public Overridable Property SignatureCount As Integer
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
            Public Overridable Property Items As List(Of InspectionItem) = New List(Of InspectionItem)
            Public Overridable Property Requests As List(Of InspectionRequest) = New List(Of InspectionRequest)
            Public Overridable Property Signatures As List(Of SignatureRecord) = New List(Of SignatureRecord)
            Public Overridable Property Actions As List(Of String) = New List(Of String)
        End Class

        Public Partial Class InspectionItem
            Public Overridable Property InspectionItemID As Integer
            Public Overridable Property InspectionID As Integer
            Public Overridable Property Seq As Integer
            Public Overridable Property Section As String
            Public Overridable Property Prompt As String
            Public Overridable Property ResponseType As String
            Public Overridable Property IsRequired As Boolean
            Public Overridable Property Unit As String
            Public Overridable Property Guidance As String
            Public Overridable Property Result As String
            Public Overridable Property Value As String
            Public Overridable Property Notes As String
            Public Overridable Property PhotoCount As Integer
            Public Overridable Property LinkedPunchItemID As Integer?
            Public Overridable Property LinkedPunchNo As String
            Public Overridable Property LinkedPunchStatus As String
            Public Overridable Property LinkedNcrID As Integer?
            Public Overridable Property LinkedNcrNo As String
            Public Overridable Property LinkedActionID As Integer?
            Public Overridable Property AnsweredBy As String
            Public Overridable Property AnsweredAt As Date?
            Public Overridable Property Photos As List(Of InspectionPhoto) = New List(Of InspectionPhoto)
        End Class

        Public Partial Class InspectionPhoto
            Public Overridable Property AttachmentId As Guid
            Public Overridable Property FileName As String
            Public Overridable Property Url As String
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedDate As Date?
            Public Overridable Property HasAnnotation As Boolean
            Public Overridable Property AnnotatedAttachmentId As Guid?
            Public Overridable Property AnnotatedUrl As String
        End Class

        Public Partial Class InspectionRequest
            Public Overridable Property InspectionRequestID As Integer
            Public Overridable Property InspectionID As Integer
            Public Overridable Property Agency As String
            Public Overridable Property ContactName As String
            Public Overridable Property ContactPhone As String
            Public Overridable Property PermitNo As String
            Public Overridable Property RequestedDate As Date?
            Public Overridable Property RequestedWindow As String
            Public Overridable Property Status As String
            Public Overridable Property ConfirmationNo As String
            Public Overridable Property Outcome As String
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
        End Class

        Public Partial Class InspectorDailyReportRequest
            Public Overridable Property ProjectID As Integer
            Public Overridable Property [Date] As String
        End Class

        Public Partial Class InspectorDailyReportResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property ProjectID As Integer
            Public Overridable Property ProjectName As String
            Public Overridable Property ReportDate As Date
            Public Overridable Property CompanyName As String
            Public Overridable Property Weather As String
            Public Overridable Property TempF As Integer?
            Public Overridable Property WeatherDelayHours As Double?
            Public Overridable Property HasFieldLog As Boolean
            Public Overridable Property FieldLogStatus As String
            Public Overridable Property FieldLogSubmittedBy As String
            Public Overridable Property Notes As String
            Public Overridable Property Crew As List(Of IdrLine) = New List(Of IdrLine)
            Public Overridable Property Subs As List(Of IdrLine) = New List(Of IdrLine)
            Public Overridable Property Equipment As List(Of IdrLine) = New List(Of IdrLine)
            Public Overridable Property Quantities As List(Of IdrLine) = New List(Of IdrLine)
            Public Overridable Property Deliveries As List(Of IdrLine) = New List(Of IdrLine)
            Public Overridable Property Incidents As List(Of IdrLine) = New List(Of IdrLine)
            Public Overridable Property CrewHoursTotal As Double
            Public Overridable Property Inspections As List(Of Inspection) = New List(Of Inspection)
            Public Overridable Property Signatures As List(Of SignatureRecord) = New List(Of SignatureRecord)
        End Class

        Public Partial Class SignatureRecord
            Public Overridable Property SignatureRecordID As Integer
            Public Overridable Property EntityType As String
            Public Overridable Property EntityID As Integer
            Public Overridable Property Role As String
            Public Overridable Property SignerName As String
            Public Overridable Property SignerContactID As Integer?
            Public Overridable Property SignerUserId As String
            Public Overridable Property Method As String
            Public Overridable Property ImageAttachmentId As Guid?
            Public Overridable Property ImageUrl As String
            Public Overridable Property ImageHash As String
            Public Overridable Property DocumentHash As String
            Public Overridable Property ConsentText As String
            Public Overridable Property IpAddress As String
            Public Overridable Property UserAgent As String
            Public Overridable Property SignedAt As Date?
        End Class
    End Namespace
End Namespace

VB.NET InspectorDailyReportRequest 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.

GET /v1/projects/{ProjectID}/inspections/idr HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<InspectorDailyReportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <CompanyName>String</CompanyName>
  <Crew>
    <IdrLine>
      <Detail>String</Detail>
      <Hours>0</Hours>
      <Label>String</Label>
      <Qty>0</Qty>
      <Unit>String</Unit>
    </IdrLine>
  </Crew>
  <CrewHoursTotal>0</CrewHoursTotal>
  <Deliveries>
    <IdrLine>
      <Detail>String</Detail>
      <Hours>0</Hours>
      <Label>String</Label>
      <Qty>0</Qty>
      <Unit>String</Unit>
    </IdrLine>
  </Deliveries>
  <Equipment>
    <IdrLine>
      <Detail>String</Detail>
      <Hours>0</Hours>
      <Label>String</Label>
      <Qty>0</Qty>
      <Unit>String</Unit>
    </IdrLine>
  </Equipment>
  <FieldLogStatus>String</FieldLogStatus>
  <FieldLogSubmittedBy>String</FieldLogSubmittedBy>
  <HasFieldLog>false</HasFieldLog>
  <Incidents>
    <IdrLine>
      <Detail>String</Detail>
      <Hours>0</Hours>
      <Label>String</Label>
      <Qty>0</Qty>
      <Unit>String</Unit>
    </IdrLine>
  </Incidents>
  <Inspections>
    <Inspection>
      <Actions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Actions>
      <AgencyName>String</AgencyName>
      <ClosedAt>0001-01-01T00:00:00</ClosedAt>
      <CompletedAt>0001-01-01T00:00:00</CompletedAt>
      <CreatedAt>0001-01-01T00:00:00</CreatedAt>
      <CreatedBy>String</CreatedBy>
      <InspectionID>0</InspectionID>
      <InspectionNo>String</InspectionNo>
      <InspectionUID>00000000-0000-0000-0000-000000000000</InspectionUID>
      <InspectorContactID>0</InspectorContactID>
      <InspectorName>String</InspectorName>
      <Items>
        <InspectionItem>
          <AnsweredAt>0001-01-01T00:00:00</AnsweredAt>
          <AnsweredBy>String</AnsweredBy>
          <Guidance>String</Guidance>
          <InspectionID>0</InspectionID>
          <InspectionItemID>0</InspectionItemID>
          <IsRequired>false</IsRequired>
          <LinkedActionID>0</LinkedActionID>
          <LinkedNcrID>0</LinkedNcrID>
          <LinkedNcrNo>String</LinkedNcrNo>
          <LinkedPunchItemID>0</LinkedPunchItemID>
          <LinkedPunchNo>String</LinkedPunchNo>
          <LinkedPunchStatus>String</LinkedPunchStatus>
          <Notes>String</Notes>
          <PhotoCount>0</PhotoCount>
          <Photos>
            <InspectionPhoto>
              <AnnotatedAttachmentId>00000000-0000-0000-0000-000000000000</AnnotatedAttachmentId>
              <AnnotatedUrl>String</AnnotatedUrl>
              <AttachmentId>00000000-0000-0000-0000-000000000000</AttachmentId>
              <CreatedBy>String</CreatedBy>
              <CreatedDate>0001-01-01T00:00:00</CreatedDate>
              <FileName>String</FileName>
              <HasAnnotation>false</HasAnnotation>
              <Url>String</Url>
            </InspectionPhoto>
          </Photos>
          <Prompt>String</Prompt>
          <ResponseType>String</ResponseType>
          <Result>String</Result>
          <Section>String</Section>
          <Seq>0</Seq>
          <Unit>String</Unit>
          <Value>String</Value>
        </InspectionItem>
      </Items>
      <ItemsFailed>0</ItemsFailed>
      <ItemsPassed>0</ItemsPassed>
      <ItemsTotal>0</ItemsTotal>
      <JobID>0</JobID>
      <JobName>String</JobName>
      <LocationText>String</LocationText>
      <Notes>String</Notes>
      <Outcome>String</Outcome>
      <OutcomeNotes>String</OutcomeNotes>
      <PermitNo>String</PermitNo>
      <ProjectID>0</ProjectID>
      <ProjectName>String</ProjectName>
      <QcHoldPointID>0</QcHoldPointID>
      <ReinspectionOfInspectionID>0</ReinspectionOfInspectionID>
      <ReportAttachmentId>00000000-0000-0000-0000-000000000000</ReportAttachmentId>
      <RequestCount>0</RequestCount>
      <Requests>
        <InspectionRequest>
          <Agency>String</Agency>
          <ConfirmationNo>String</ConfirmationNo>
          <ContactName>String</ContactName>
          <ContactPhone>String</ContactPhone>
          <CreatedAt>0001-01-01T00:00:00</CreatedAt>
          <CreatedBy>String</CreatedBy>
          <InspectionID>0</InspectionID>
          <InspectionRequestID>0</InspectionRequestID>
          <Outcome>String</Outcome>
          <PermitNo>String</PermitNo>
          <RequestedDate>0001-01-01T00:00:00</RequestedDate>
          <RequestedWindow>String</RequestedWindow>
          <Status>String</Status>
          <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
        </InspectionRequest>
      </Requests>
      <ScheduledFor>0001-01-01T00:00:00</ScheduledFor>
      <SignatureCount>0</SignatureCount>
      <Signatures>
        <SignatureRecord>
          <ConsentText>String</ConsentText>
          <DocumentHash>String</DocumentHash>
          <EntityID>0</EntityID>
          <EntityType>String</EntityType>
          <ImageAttachmentId>00000000-0000-0000-0000-000000000000</ImageAttachmentId>
          <ImageHash>String</ImageHash>
          <ImageUrl>String</ImageUrl>
          <IpAddress>String</IpAddress>
          <Method>String</Method>
          <Role>String</Role>
          <SignatureRecordID>0</SignatureRecordID>
          <SignedAt>0001-01-01T00:00:00</SignedAt>
          <SignerContactID>0</SignerContactID>
          <SignerName>String</SignerName>
          <SignerUserId>String</SignerUserId>
          <UserAgent>String</UserAgent>
        </SignatureRecord>
      </Signatures>
      <StartedAt>0001-01-01T00:00:00</StartedAt>
      <Status>String</Status>
      <TemplateUID>00000000-0000-0000-0000-000000000000</TemplateUID>
      <TemplateVersionNo>0</TemplateVersionNo>
      <Title>String</Title>
      <Type>String</Type>
      <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
      <WeatherJson>String</WeatherJson>
    </Inspection>
  </Inspections>
  <Notes>String</Notes>
  <ProjectID>0</ProjectID>
  <ProjectName>String</ProjectName>
  <Quantities>
    <IdrLine>
      <Detail>String</Detail>
      <Hours>0</Hours>
      <Label>String</Label>
      <Qty>0</Qty>
      <Unit>String</Unit>
    </IdrLine>
  </Quantities>
  <ReportDate>0001-01-01T00:00:00</ReportDate>
  <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>
  <Signatures>
    <SignatureRecord>
      <ConsentText>String</ConsentText>
      <DocumentHash>String</DocumentHash>
      <EntityID>0</EntityID>
      <EntityType>String</EntityType>
      <ImageAttachmentId>00000000-0000-0000-0000-000000000000</ImageAttachmentId>
      <ImageHash>String</ImageHash>
      <ImageUrl>String</ImageUrl>
      <IpAddress>String</IpAddress>
      <Method>String</Method>
      <Role>String</Role>
      <SignatureRecordID>0</SignatureRecordID>
      <SignedAt>0001-01-01T00:00:00</SignedAt>
      <SignerContactID>0</SignerContactID>
      <SignerName>String</SignerName>
      <SignerUserId>String</SignerUserId>
      <UserAgent>String</UserAgent>
    </SignatureRecord>
  </Signatures>
  <Subs>
    <IdrLine>
      <Detail>String</Detail>
      <Hours>0</Hours>
      <Label>String</Label>
      <Qty>0</Qty>
      <Unit>String</Unit>
    </IdrLine>
  </Subs>
  <TempF>0</TempF>
  <Weather>String</Weather>
  <WeatherDelayHours>0</WeatherDelayHours>
</InspectorDailyReportResponse>