Trendsic Platform Service

<back to all web services

InspectionDueRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/inspections/due
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class InspectionDueRequest
    {
        public Integer ProjectID = null;
        
        public Integer getProjectID() { return ProjectID; }
        public InspectionDueRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
    }

    public static class InspectionListResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<Inspection> Inspections = new ArrayList<Inspection>();
        public InspectionSummary Summary = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public InspectionListResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<Inspection> getInspections() { return Inspections; }
        public InspectionListResponse setInspections(ArrayList<Inspection> value) { this.Inspections = value; return this; }
        public InspectionSummary getSummary() { return Summary; }
        public InspectionListResponse setSummary(InspectionSummary value) { this.Summary = value; return this; }
    }

    public static class Inspection
    {
        public Integer InspectionID = null;
        public UUID InspectionUID = null;
        public Integer ProjectID = null;
        public String ProjectName = null;
        public Integer JobID = null;
        public String JobName = null;
        public String InspectionNo = null;
        public String Type = null;
        public String Title = null;
        public String Status = null;
        public UUID TemplateUID = null;
        public Integer TemplateVersionNo = null;
        public Date ScheduledFor = null;
        public Date StartedAt = null;
        public Date CompletedAt = null;
        public Date ClosedAt = null;
        public Integer InspectorContactID = null;
        public String InspectorName = null;
        public String AgencyName = null;
        public String PermitNo = null;
        public String LocationText = null;
        public String Notes = null;
        public String WeatherJson = null;
        public Integer ItemsTotal = null;
        public Integer ItemsPassed = null;
        public Integer ItemsFailed = null;
        public String Outcome = null;
        public String OutcomeNotes = null;
        public Integer ReinspectionOfInspectionID = null;
        public Integer QcHoldPointID = null;
        public UUID ReportAttachmentId = null;
        public Integer RequestCount = null;
        public Integer SignatureCount = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        public ArrayList<InspectionItem> Items = new ArrayList<InspectionItem>();
        public ArrayList<InspectionRequest> Requests = new ArrayList<InspectionRequest>();
        public ArrayList<SignatureRecord> Signatures = new ArrayList<SignatureRecord>();
        public ArrayList<String> Actions = new ArrayList<String>();
        
        public Integer getInspectionID() { return InspectionID; }
        public Inspection setInspectionID(Integer value) { this.InspectionID = value; return this; }
        public UUID getInspectionUID() { return InspectionUID; }
        public Inspection setInspectionUID(UUID value) { this.InspectionUID = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public Inspection setProjectID(Integer value) { this.ProjectID = value; return this; }
        public String getProjectName() { return ProjectName; }
        public Inspection setProjectName(String value) { this.ProjectName = value; return this; }
        public Integer getJobID() { return JobID; }
        public Inspection setJobID(Integer value) { this.JobID = value; return this; }
        public String getJobName() { return JobName; }
        public Inspection setJobName(String value) { this.JobName = value; return this; }
        public String getInspectionNo() { return InspectionNo; }
        public Inspection setInspectionNo(String value) { this.InspectionNo = value; return this; }
        public String getType() { return Type; }
        public Inspection setType(String value) { this.Type = value; return this; }
        public String getTitle() { return Title; }
        public Inspection setTitle(String value) { this.Title = value; return this; }
        public String getStatus() { return Status; }
        public Inspection setStatus(String value) { this.Status = value; return this; }
        public UUID getTemplateUID() { return TemplateUID; }
        public Inspection setTemplateUID(UUID value) { this.TemplateUID = value; return this; }
        public Integer getTemplateVersionNo() { return TemplateVersionNo; }
        public Inspection setTemplateVersionNo(Integer value) { this.TemplateVersionNo = value; return this; }
        public Date getScheduledFor() { return ScheduledFor; }
        public Inspection setScheduledFor(Date value) { this.ScheduledFor = value; return this; }
        public Date getStartedAt() { return StartedAt; }
        public Inspection setStartedAt(Date value) { this.StartedAt = value; return this; }
        public Date getCompletedAt() { return CompletedAt; }
        public Inspection setCompletedAt(Date value) { this.CompletedAt = value; return this; }
        public Date getClosedAt() { return ClosedAt; }
        public Inspection setClosedAt(Date value) { this.ClosedAt = value; return this; }
        public Integer getInspectorContactID() { return InspectorContactID; }
        public Inspection setInspectorContactID(Integer value) { this.InspectorContactID = value; return this; }
        public String getInspectorName() { return InspectorName; }
        public Inspection setInspectorName(String value) { this.InspectorName = value; return this; }
        public String getAgencyName() { return AgencyName; }
        public Inspection setAgencyName(String value) { this.AgencyName = value; return this; }
        public String getPermitNo() { return PermitNo; }
        public Inspection setPermitNo(String value) { this.PermitNo = value; return this; }
        public String getLocationText() { return LocationText; }
        public Inspection setLocationText(String value) { this.LocationText = value; return this; }
        public String getNotes() { return Notes; }
        public Inspection setNotes(String value) { this.Notes = value; return this; }
        public String getWeatherJson() { return WeatherJson; }
        public Inspection setWeatherJson(String value) { this.WeatherJson = value; return this; }
        public Integer getItemsTotal() { return ItemsTotal; }
        public Inspection setItemsTotal(Integer value) { this.ItemsTotal = value; return this; }
        public Integer getItemsPassed() { return ItemsPassed; }
        public Inspection setItemsPassed(Integer value) { this.ItemsPassed = value; return this; }
        public Integer getItemsFailed() { return ItemsFailed; }
        public Inspection setItemsFailed(Integer value) { this.ItemsFailed = value; return this; }
        public String getOutcome() { return Outcome; }
        public Inspection setOutcome(String value) { this.Outcome = value; return this; }
        public String getOutcomeNotes() { return OutcomeNotes; }
        public Inspection setOutcomeNotes(String value) { this.OutcomeNotes = value; return this; }
        public Integer getReinspectionOfInspectionID() { return ReinspectionOfInspectionID; }
        public Inspection setReinspectionOfInspectionID(Integer value) { this.ReinspectionOfInspectionID = value; return this; }
        public Integer getQcHoldPointID() { return QcHoldPointID; }
        public Inspection setQcHoldPointID(Integer value) { this.QcHoldPointID = value; return this; }
        public UUID getReportAttachmentId() { return ReportAttachmentId; }
        public Inspection setReportAttachmentId(UUID value) { this.ReportAttachmentId = value; return this; }
        public Integer getRequestCount() { return RequestCount; }
        public Inspection setRequestCount(Integer value) { this.RequestCount = value; return this; }
        public Integer getSignatureCount() { return SignatureCount; }
        public Inspection setSignatureCount(Integer value) { this.SignatureCount = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public Inspection setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public Inspection setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public Inspection setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
        public ArrayList<InspectionItem> getItems() { return Items; }
        public Inspection setItems(ArrayList<InspectionItem> value) { this.Items = value; return this; }
        public ArrayList<InspectionRequest> getRequests() { return Requests; }
        public Inspection setRequests(ArrayList<InspectionRequest> value) { this.Requests = value; return this; }
        public ArrayList<SignatureRecord> getSignatures() { return Signatures; }
        public Inspection setSignatures(ArrayList<SignatureRecord> value) { this.Signatures = value; return this; }
        public ArrayList<String> getActions() { return Actions; }
        public Inspection setActions(ArrayList<String> value) { this.Actions = value; return this; }
    }

    public static class InspectionItem
    {
        public Integer InspectionItemID = null;
        public Integer InspectionID = null;
        public Integer Seq = null;
        public String Section = null;
        public String Prompt = null;
        public String ResponseType = null;
        public Boolean IsRequired = null;
        public String Unit = null;
        public String Guidance = null;
        public String Result = null;
        public String Value = null;
        public String Notes = null;
        public Integer PhotoCount = null;
        public Integer LinkedPunchItemID = null;
        public String LinkedPunchNo = null;
        public String LinkedPunchStatus = null;
        public Integer LinkedNcrID = null;
        public String LinkedNcrNo = null;
        public Integer LinkedActionID = null;
        public String AnsweredBy = null;
        public Date AnsweredAt = null;
        public ArrayList<InspectionPhoto> Photos = new ArrayList<InspectionPhoto>();
        
        public Integer getInspectionItemID() { return InspectionItemID; }
        public InspectionItem setInspectionItemID(Integer value) { this.InspectionItemID = value; return this; }
        public Integer getInspectionID() { return InspectionID; }
        public InspectionItem setInspectionID(Integer value) { this.InspectionID = value; return this; }
        public Integer getSeq() { return Seq; }
        public InspectionItem setSeq(Integer value) { this.Seq = value; return this; }
        public String getSection() { return Section; }
        public InspectionItem setSection(String value) { this.Section = value; return this; }
        public String getPrompt() { return Prompt; }
        public InspectionItem setPrompt(String value) { this.Prompt = value; return this; }
        public String getResponseType() { return ResponseType; }
        public InspectionItem setResponseType(String value) { this.ResponseType = value; return this; }
        public Boolean getIsRequired() { return IsRequired; }
        public InspectionItem setIsRequired(Boolean value) { this.IsRequired = value; return this; }
        public String getUnit() { return Unit; }
        public InspectionItem setUnit(String value) { this.Unit = value; return this; }
        public String getGuidance() { return Guidance; }
        public InspectionItem setGuidance(String value) { this.Guidance = value; return this; }
        public String getResult() { return Result; }
        public InspectionItem setResult(String value) { this.Result = value; return this; }
        public String getValue() { return Value; }
        public InspectionItem setValue(String value) { this.Value = value; return this; }
        public String getNotes() { return Notes; }
        public InspectionItem setNotes(String value) { this.Notes = value; return this; }
        public Integer getPhotoCount() { return PhotoCount; }
        public InspectionItem setPhotoCount(Integer value) { this.PhotoCount = value; return this; }
        public Integer getLinkedPunchItemID() { return LinkedPunchItemID; }
        public InspectionItem setLinkedPunchItemID(Integer value) { this.LinkedPunchItemID = value; return this; }
        public String getLinkedPunchNo() { return LinkedPunchNo; }
        public InspectionItem setLinkedPunchNo(String value) { this.LinkedPunchNo = value; return this; }
        public String getLinkedPunchStatus() { return LinkedPunchStatus; }
        public InspectionItem setLinkedPunchStatus(String value) { this.LinkedPunchStatus = value; return this; }
        public Integer getLinkedNcrID() { return LinkedNcrID; }
        public InspectionItem setLinkedNcrID(Integer value) { this.LinkedNcrID = value; return this; }
        public String getLinkedNcrNo() { return LinkedNcrNo; }
        public InspectionItem setLinkedNcrNo(String value) { this.LinkedNcrNo = value; return this; }
        public Integer getLinkedActionID() { return LinkedActionID; }
        public InspectionItem setLinkedActionID(Integer value) { this.LinkedActionID = value; return this; }
        public String getAnsweredBy() { return AnsweredBy; }
        public InspectionItem setAnsweredBy(String value) { this.AnsweredBy = value; return this; }
        public Date getAnsweredAt() { return AnsweredAt; }
        public InspectionItem setAnsweredAt(Date value) { this.AnsweredAt = value; return this; }
        public ArrayList<InspectionPhoto> getPhotos() { return Photos; }
        public InspectionItem setPhotos(ArrayList<InspectionPhoto> value) { this.Photos = value; return this; }
    }

    public static class InspectionPhoto
    {
        public UUID AttachmentId = null;
        public String FileName = null;
        public String Url = null;
        public String CreatedBy = null;
        public Date CreatedDate = null;
        public Boolean HasAnnotation = null;
        public UUID AnnotatedAttachmentId = null;
        public String AnnotatedUrl = null;
        
        public UUID getAttachmentId() { return AttachmentId; }
        public InspectionPhoto setAttachmentId(UUID value) { this.AttachmentId = value; return this; }
        public String getFileName() { return FileName; }
        public InspectionPhoto setFileName(String value) { this.FileName = value; return this; }
        public String getUrl() { return Url; }
        public InspectionPhoto setUrl(String value) { this.Url = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public InspectionPhoto setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedDate() { return CreatedDate; }
        public InspectionPhoto setCreatedDate(Date value) { this.CreatedDate = value; return this; }
        public Boolean isHasAnnotation() { return HasAnnotation; }
        public InspectionPhoto setHasAnnotation(Boolean value) { this.HasAnnotation = value; return this; }
        public UUID getAnnotatedAttachmentId() { return AnnotatedAttachmentId; }
        public InspectionPhoto setAnnotatedAttachmentId(UUID value) { this.AnnotatedAttachmentId = value; return this; }
        public String getAnnotatedUrl() { return AnnotatedUrl; }
        public InspectionPhoto setAnnotatedUrl(String value) { this.AnnotatedUrl = value; return this; }
    }

    public static class InspectionRequest
    {
        public Integer InspectionRequestID = null;
        public Integer InspectionID = null;
        public String Agency = null;
        public String ContactName = null;
        public String ContactPhone = null;
        public String PermitNo = null;
        public Date RequestedDate = null;
        public String RequestedWindow = null;
        public String Status = null;
        public String ConfirmationNo = null;
        public String Outcome = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        
        public Integer getInspectionRequestID() { return InspectionRequestID; }
        public InspectionRequest setInspectionRequestID(Integer value) { this.InspectionRequestID = value; return this; }
        public Integer getInspectionID() { return InspectionID; }
        public InspectionRequest setInspectionID(Integer value) { this.InspectionID = value; return this; }
        public String getAgency() { return Agency; }
        public InspectionRequest setAgency(String value) { this.Agency = value; return this; }
        public String getContactName() { return ContactName; }
        public InspectionRequest setContactName(String value) { this.ContactName = value; return this; }
        public String getContactPhone() { return ContactPhone; }
        public InspectionRequest setContactPhone(String value) { this.ContactPhone = value; return this; }
        public String getPermitNo() { return PermitNo; }
        public InspectionRequest setPermitNo(String value) { this.PermitNo = value; return this; }
        public Date getRequestedDate() { return RequestedDate; }
        public InspectionRequest setRequestedDate(Date value) { this.RequestedDate = value; return this; }
        public String getRequestedWindow() { return RequestedWindow; }
        public InspectionRequest setRequestedWindow(String value) { this.RequestedWindow = value; return this; }
        public String getStatus() { return Status; }
        public InspectionRequest setStatus(String value) { this.Status = value; return this; }
        public String getConfirmationNo() { return ConfirmationNo; }
        public InspectionRequest setConfirmationNo(String value) { this.ConfirmationNo = value; return this; }
        public String getOutcome() { return Outcome; }
        public InspectionRequest setOutcome(String value) { this.Outcome = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public InspectionRequest setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public InspectionRequest setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public InspectionRequest setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
    }

    public static class SignatureRecord
    {
        public Integer SignatureRecordID = null;
        public String EntityType = null;
        public Integer EntityID = null;
        public String Role = null;
        public String SignerName = null;
        public Integer SignerContactID = null;
        public String SignerUserId = null;
        public String Method = null;
        public UUID ImageAttachmentId = null;
        public String ImageUrl = null;
        public String ImageHash = null;
        public String DocumentHash = null;
        public String ConsentText = null;
        public String IpAddress = null;
        public String UserAgent = null;
        public Date SignedAt = null;
        
        public Integer getSignatureRecordID() { return SignatureRecordID; }
        public SignatureRecord setSignatureRecordID(Integer value) { this.SignatureRecordID = value; return this; }
        public String getEntityType() { return EntityType; }
        public SignatureRecord setEntityType(String value) { this.EntityType = value; return this; }
        public Integer getEntityID() { return EntityID; }
        public SignatureRecord setEntityID(Integer value) { this.EntityID = value; return this; }
        public String getRole() { return Role; }
        public SignatureRecord setRole(String value) { this.Role = value; return this; }
        public String getSignerName() { return SignerName; }
        public SignatureRecord setSignerName(String value) { this.SignerName = value; return this; }
        public Integer getSignerContactID() { return SignerContactID; }
        public SignatureRecord setSignerContactID(Integer value) { this.SignerContactID = value; return this; }
        public String getSignerUserId() { return SignerUserId; }
        public SignatureRecord setSignerUserId(String value) { this.SignerUserId = value; return this; }
        public String getMethod() { return Method; }
        public SignatureRecord setMethod(String value) { this.Method = value; return this; }
        public UUID getImageAttachmentId() { return ImageAttachmentId; }
        public SignatureRecord setImageAttachmentId(UUID value) { this.ImageAttachmentId = value; return this; }
        public String getImageUrl() { return ImageUrl; }
        public SignatureRecord setImageUrl(String value) { this.ImageUrl = value; return this; }
        public String getImageHash() { return ImageHash; }
        public SignatureRecord setImageHash(String value) { this.ImageHash = value; return this; }
        public String getDocumentHash() { return DocumentHash; }
        public SignatureRecord setDocumentHash(String value) { this.DocumentHash = value; return this; }
        public String getConsentText() { return ConsentText; }
        public SignatureRecord setConsentText(String value) { this.ConsentText = value; return this; }
        public String getIpAddress() { return IpAddress; }
        public SignatureRecord setIpAddress(String value) { this.IpAddress = value; return this; }
        public String getUserAgent() { return UserAgent; }
        public SignatureRecord setUserAgent(String value) { this.UserAgent = value; return this; }
        public Date getSignedAt() { return SignedAt; }
        public SignatureRecord setSignedAt(Date value) { this.SignedAt = value; return this; }
    }

    public static class InspectionSummary
    {
        public Integer Total = null;
        public Integer DueToday = null;
        public Integer Overdue = null;
        public Integer InProgress = null;
        public Integer Failed = null;
        public Integer Conditional = null;
        public Integer PassedOpen = null;
        public Integer Closed = null;
        public Integer Completed30d = null;
        public Integer Passed30d = null;
        public String Headline = null;
        
        public Integer getTotal() { return Total; }
        public InspectionSummary setTotal(Integer value) { this.Total = value; return this; }
        public Integer getDueToday() { return DueToday; }
        public InspectionSummary setDueToday(Integer value) { this.DueToday = value; return this; }
        public Integer getOverdue() { return Overdue; }
        public InspectionSummary setOverdue(Integer value) { this.Overdue = value; return this; }
        public Integer getInProgress() { return InProgress; }
        public InspectionSummary setInProgress(Integer value) { this.InProgress = value; return this; }
        public Integer getFailed() { return Failed; }
        public InspectionSummary setFailed(Integer value) { this.Failed = value; return this; }
        public Integer getConditional() { return Conditional; }
        public InspectionSummary setConditional(Integer value) { this.Conditional = value; return this; }
        public Integer getPassedOpen() { return PassedOpen; }
        public InspectionSummary setPassedOpen(Integer value) { this.PassedOpen = value; return this; }
        public Integer getClosed() { return Closed; }
        public InspectionSummary setClosed(Integer value) { this.Closed = value; return this; }
        public Integer getCompleted30d() { return Completed30d; }
        public InspectionSummary setCompleted30d(Integer value) { this.Completed30d = value; return this; }
        public Integer getPassed30d() { return Passed30d; }
        public InspectionSummary setPassed30d(Integer value) { this.Passed30d = value; return this; }
        public String getHeadline() { return Headline; }
        public InspectionSummary setHeadline(String value) { this.Headline = value; return this; }
    }

}

Java InspectionDueRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/inspections/due HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Inspections":[{"InspectionID":0,"InspectionUID":"00000000000000000000000000000000","ProjectID":0,"ProjectName":"String","JobID":0,"JobName":"String","InspectionNo":"String","Type":"String","Title":"String","Status":"String","TemplateUID":"00000000000000000000000000000000","TemplateVersionNo":0,"ScheduledFor":"0001-01-01T00:00:00.0000000","StartedAt":"0001-01-01T00:00:00.0000000","CompletedAt":"0001-01-01T00:00:00.0000000","ClosedAt":"0001-01-01T00:00:00.0000000","InspectorContactID":0,"InspectorName":"String","AgencyName":"String","PermitNo":"String","LocationText":"String","Notes":"String","WeatherJson":"String","ItemsTotal":0,"ItemsPassed":0,"ItemsFailed":0,"Outcome":"String","OutcomeNotes":"String","ReinspectionOfInspectionID":0,"QcHoldPointID":0,"ReportAttachmentId":"00000000000000000000000000000000","RequestCount":0,"SignatureCount":0,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","Items":[{"InspectionItemID":0,"InspectionID":0,"Seq":0,"Section":"String","Prompt":"String","ResponseType":"String","IsRequired":false,"Unit":"String","Guidance":"String","Result":"String","Value":"String","Notes":"String","PhotoCount":0,"LinkedPunchItemID":0,"LinkedPunchNo":"String","LinkedPunchStatus":"String","LinkedNcrID":0,"LinkedNcrNo":"String","LinkedActionID":0,"AnsweredBy":"String","AnsweredAt":"0001-01-01T00:00:00.0000000","Photos":[{"AttachmentId":"00000000000000000000000000000000","FileName":"String","Url":"String","CreatedBy":"String","CreatedDate":"0001-01-01T00:00:00.0000000","HasAnnotation":false,"AnnotatedAttachmentId":"00000000000000000000000000000000","AnnotatedUrl":"String"}]}],"Requests":[{"InspectionRequestID":0,"InspectionID":0,"Agency":"String","ContactName":"String","ContactPhone":"String","PermitNo":"String","RequestedDate":"0001-01-01T00:00:00.0000000","RequestedWindow":"String","Status":"String","ConfirmationNo":"String","Outcome":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Signatures":[{"SignatureRecordID":0,"EntityType":"String","EntityID":0,"Role":"String","SignerName":"String","SignerContactID":0,"SignerUserId":"String","Method":"String","ImageAttachmentId":"00000000000000000000000000000000","ImageUrl":"String","ImageHash":"String","DocumentHash":"String","ConsentText":"String","IpAddress":"String","UserAgent":"String","SignedAt":"0001-01-01T00:00:00.0000000"}],"Actions":["String"]}],"Summary":{"Total":0,"DueToday":0,"Overdue":0,"InProgress":0,"Failed":0,"Conditional":0,"PassedOpen":0,"Closed":0,"Completed30d":0,"Passed30d":0,"Headline":"String"}}