Trendsic Platform Service

<back to all web services

VisitChecklistRequest

Requires Authentication
The following routes are available for this service:
GET/v1/visit/{AgreementJobID}/checklist
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class VisitChecklistRequest
    {
        public Integer AgreementJobID = null;
        
        public Integer getAgreementJobID() { return AgreementJobID; }
        public VisitChecklistRequest setAgreementJobID(Integer value) { this.AgreementJobID = value; return this; }
    }

    public static class VisitChecklistResponse
    {
        public ArrayList<VisitChecklistItem> Items = new ArrayList<VisitChecklistItem>();
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<VisitChecklistItem> getItems() { return Items; }
        public VisitChecklistResponse setItems(ArrayList<VisitChecklistItem> value) { this.Items = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public VisitChecklistResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class VisitChecklistItem
    {
        public Integer VisitChecklistItemID = null;
        public Integer AgreementJobID = null;
        public Integer ServiceTaskID = null;
        public String Name = null;
        public Integer Status = null;
        public String Note = null;
        public String QaResult = null;
        public Integer AttachmentId = null;
        public String CompletedBy = null;
        public Date CompletedAt = null;
        public Integer SortOrder = null;
        
        public Integer getVisitChecklistItemID() { return VisitChecklistItemID; }
        public VisitChecklistItem setVisitChecklistItemID(Integer value) { this.VisitChecklistItemID = value; return this; }
        public Integer getAgreementJobID() { return AgreementJobID; }
        public VisitChecklistItem setAgreementJobID(Integer value) { this.AgreementJobID = value; return this; }
        public Integer getServiceTaskID() { return ServiceTaskID; }
        public VisitChecklistItem setServiceTaskID(Integer value) { this.ServiceTaskID = value; return this; }
        public String getName() { return Name; }
        public VisitChecklistItem setName(String value) { this.Name = value; return this; }
        public Integer getStatus() { return Status; }
        public VisitChecklistItem setStatus(Integer value) { this.Status = value; return this; }
        public String getNote() { return Note; }
        public VisitChecklistItem setNote(String value) { this.Note = value; return this; }
        public String getQaResult() { return QaResult; }
        public VisitChecklistItem setQaResult(String value) { this.QaResult = value; return this; }
        public Integer getAttachmentId() { return AttachmentId; }
        public VisitChecklistItem setAttachmentId(Integer value) { this.AttachmentId = value; return this; }
        public String getCompletedBy() { return CompletedBy; }
        public VisitChecklistItem setCompletedBy(String value) { this.CompletedBy = value; return this; }
        public Date getCompletedAt() { return CompletedAt; }
        public VisitChecklistItem setCompletedAt(Date value) { this.CompletedAt = value; return this; }
        public Integer getSortOrder() { return SortOrder; }
        public VisitChecklistItem setSortOrder(Integer value) { this.SortOrder = value; return this; }
    }

}

Java VisitChecklistRequest DTOs

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

HTTP + OTHER

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

GET /v1/visit/{AgreementJobID}/checklist HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Items":[{"VisitChecklistItemID":0,"AgreementJobID":0,"ServiceTaskID":0,"Name":"String","Status":0,"Note":"String","QaResult":"String","AttachmentId":0,"CompletedBy":"String","CompletedAt":"0001-01-01T00:00:00.0000000","SortOrder":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}