Trendsic Platform Service

<back to all web services

SlotNoteRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/SlotNote
GET/v1/SlotNote/GetAllBySlotDistrictID/{SlotDistrictID}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class SlotNoteRequest
    {
        public Integer SlotDistrictID = null;
        public SlotNote SlotNote = null;
        
        public Integer getSlotDistrictID() { return SlotDistrictID; }
        public SlotNoteRequest setSlotDistrictID(Integer value) { this.SlotDistrictID = value; return this; }
        public SlotNote getSlotNote() { return SlotNote; }
        public SlotNoteRequest setSlotNote(SlotNote value) { this.SlotNote = value; return this; }
    }

    public static class SlotNote
    {
        public Integer ID = null;
        public Integer SlotDistrictID = null;
        public String Note = null;
        public Date DateCreated = null;
        public Integer CreatedBy = null;
        public String AgentName = null;
        public Boolean IsAdminNote = null;
        public Boolean ApprovalPending = null;
        
        public Integer getId() { return ID; }
        public SlotNote setId(Integer value) { this.ID = value; return this; }
        public Integer getSlotDistrictID() { return SlotDistrictID; }
        public SlotNote setSlotDistrictID(Integer value) { this.SlotDistrictID = value; return this; }
        public String getNote() { return Note; }
        public SlotNote setNote(String value) { this.Note = value; return this; }
        public Date getDateCreated() { return DateCreated; }
        public SlotNote setDateCreated(Date value) { this.DateCreated = value; return this; }
        public Integer getCreatedBy() { return CreatedBy; }
        public SlotNote setCreatedBy(Integer value) { this.CreatedBy = value; return this; }
        public String getAgentName() { return AgentName; }
        public SlotNote setAgentName(String value) { this.AgentName = value; return this; }
        public Boolean getIsAdminNote() { return IsAdminNote; }
        public SlotNote setIsAdminNote(Boolean value) { this.IsAdminNote = value; return this; }
        public Boolean isApprovalPending() { return ApprovalPending; }
        public SlotNote setApprovalPending(Boolean value) { this.ApprovalPending = value; return this; }
    }

    public static class SlotNoteResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<SlotNote> SlotNotes = new ArrayList<SlotNote>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public SlotNoteResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<SlotNote> getSlotNotes() { return SlotNotes; }
        public SlotNoteResponse setSlotNotes(ArrayList<SlotNote> value) { this.SlotNotes = value; return this; }
    }

}

Java SlotNoteRequest 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.

POST /v1/SlotNote HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"SlotDistrictID":0,"SlotNote":{"ID":0,"SlotDistrictID":0,"Note":"String","DateCreated":"0001-01-01T00:00:00.0000000","CreatedBy":0,"AgentName":"String","IsAdminNote":false,"ApprovalPending":false}}
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"}},"SlotNotes":[{"ID":0,"SlotDistrictID":0,"Note":"String","DateCreated":"0001-01-01T00:00:00.0000000","CreatedBy":0,"AgentName":"String","IsAdminNote":false,"ApprovalPending":false}]}