/* Options: Date: 2026-09-22 23:31:00 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: InspectionReportRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/v1/inspections/{InspectionUID}/report", Verbs="GET,OPTIONS") public static class InspectionReportRequest implements IReturn { public UUID InspectionUID = null; public UUID getInspectionUID() { return InspectionUID; } public InspectionReportRequest setInspectionUID(UUID value) { this.InspectionUID = value; return this; } private static Object responseType = InspectionReportResponse.class; public Object getResponseType() { return responseType; } } public static class InspectionReportResponse { public ResponseStatus ResponseStatus = null; public Inspection Inspection = null; public String CompanyName = null; public String ProjectName = null; public String ProjectAddress = null; public String ClientName = null; public ArrayList Sections = new ArrayList(); public ArrayList Signatures = new ArrayList(); public String SnapshotHash = null; public Date GeneratedAt = null; public ResponseStatus getResponseStatus() { return ResponseStatus; } public InspectionReportResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } public Inspection getInspection() { return Inspection; } public InspectionReportResponse setInspection(Inspection value) { this.Inspection = value; return this; } public String getCompanyName() { return CompanyName; } public InspectionReportResponse setCompanyName(String value) { this.CompanyName = value; return this; } public String getProjectName() { return ProjectName; } public InspectionReportResponse setProjectName(String value) { this.ProjectName = value; return this; } public String getProjectAddress() { return ProjectAddress; } public InspectionReportResponse setProjectAddress(String value) { this.ProjectAddress = value; return this; } public String getClientName() { return ClientName; } public InspectionReportResponse setClientName(String value) { this.ClientName = value; return this; } public ArrayList getSections() { return Sections; } public InspectionReportResponse setSections(ArrayList value) { this.Sections = value; return this; } public ArrayList getSignatures() { return Signatures; } public InspectionReportResponse setSignatures(ArrayList value) { this.Signatures = value; return this; } public String getSnapshotHash() { return SnapshotHash; } public InspectionReportResponse setSnapshotHash(String value) { this.SnapshotHash = value; return this; } public Date getGeneratedAt() { return GeneratedAt; } public InspectionReportResponse setGeneratedAt(Date value) { this.GeneratedAt = 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 Photos = new ArrayList(); 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 getPhotos() { return Photos; } public InspectionItem setPhotos(ArrayList value) { this.Photos = 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 Items = new ArrayList(); public ArrayList Requests = new ArrayList(); public ArrayList Signatures = new ArrayList(); public ArrayList Actions = new ArrayList(); 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 getItems() { return Items; } public Inspection setItems(ArrayList value) { this.Items = value; return this; } public ArrayList getRequests() { return Requests; } public Inspection setRequests(ArrayList value) { this.Requests = value; return this; } public ArrayList getSignatures() { return Signatures; } public Inspection setSignatures(ArrayList value) { this.Signatures = value; return this; } public ArrayList getActions() { return Actions; } public Inspection setActions(ArrayList value) { this.Actions = 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 InspectionReportSection { public String Title = null; public ArrayList Items = new ArrayList(); public Integer Passed = null; public Integer Failed = null; public String getTitle() { return Title; } public InspectionReportSection setTitle(String value) { this.Title = value; return this; } public ArrayList getItems() { return Items; } public InspectionReportSection setItems(ArrayList value) { this.Items = value; return this; } public Integer getPassed() { return Passed; } public InspectionReportSection setPassed(Integer value) { this.Passed = value; return this; } public Integer getFailed() { return Failed; } public InspectionReportSection setFailed(Integer value) { this.Failed = 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 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; } } }