Trendsic Platform Service

<back to all web services

SlotDistrictSearchRequest

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

public class dtos
{

    public static class SlotDistrictSearchRequest
    {
        public String State = null;
        public String County = null;
        public String City = null;
        public String Zip = null;
        public String Name = null;
        public Double Miles = null;
        public Boolean NLG = null;
        public Boolean Midland = null;
        public Boolean GreatAmerican = null;
        public Boolean VOYA = null;
        
        public String getState() { return State; }
        public SlotDistrictSearchRequest setState(String value) { this.State = value; return this; }
        public String getCounty() { return County; }
        public SlotDistrictSearchRequest setCounty(String value) { this.County = value; return this; }
        public String getCity() { return City; }
        public SlotDistrictSearchRequest setCity(String value) { this.City = value; return this; }
        public String getZip() { return Zip; }
        public SlotDistrictSearchRequest setZip(String value) { this.Zip = value; return this; }
        public String getName() { return Name; }
        public SlotDistrictSearchRequest setName(String value) { this.Name = value; return this; }
        public Double getMiles() { return Miles; }
        public SlotDistrictSearchRequest setMiles(Double value) { this.Miles = value; return this; }
        public Boolean isNlg() { return NLG; }
        public SlotDistrictSearchRequest setNlg(Boolean value) { this.NLG = value; return this; }
        public Boolean isMidland() { return Midland; }
        public SlotDistrictSearchRequest setMidland(Boolean value) { this.Midland = value; return this; }
        public Boolean isGreatAmerican() { return GreatAmerican; }
        public SlotDistrictSearchRequest setGreatAmerican(Boolean value) { this.GreatAmerican = value; return this; }
        public Boolean isVoya() { return VOYA; }
        public SlotDistrictSearchRequest setVoya(Boolean value) { this.VOYA = value; return this; }
    }

    public static class SlotDistrictSearchResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<SlotDistrict> SlotDistrict = new ArrayList<SlotDistrict>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public SlotDistrictSearchResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<SlotDistrict> getSlotDistrict() { return SlotDistrict; }
        public SlotDistrictSearchResponse setSlotDistrict(ArrayList<SlotDistrict> value) { this.SlotDistrict = value; return this; }
    }

    public static class SlotDistrict
    {
        public Integer ID = null;
        public String Name = null;
        public String County = null;
        public Integer DistrictId = null;
        public String DistrictName = null;
        public String Address_Physical = null;
        public String Address_Mailing = null;
        public String City = null;
        public String Zip = null;
        public String Zip_4 = null;
        public Integer StateId = null;
        public String State = null;
        public String Phone = null;
        public BigDecimal NumEmployees = null;
        public Integer NumSchools = null;
        public String Type = null;
        public Boolean Status_NLG = null;
        public Boolean Status_Midland = null;
        public Boolean Status_Great_American = null;
        public Boolean Status_VOYA = null;
        public Integer MVP = null;
        public Integer RVP = null;
        public ArrayList<SlotDistrictSchool> Schools = new ArrayList<SlotDistrictSchool>();
        public Double MilesAway = null;
        public Boolean HasComments = null;
        
        public Integer getId() { return ID; }
        public SlotDistrict setId(Integer value) { this.ID = value; return this; }
        public String getName() { return Name; }
        public SlotDistrict setName(String value) { this.Name = value; return this; }
        public String getCounty() { return County; }
        public SlotDistrict setCounty(String value) { this.County = value; return this; }
        public Integer getDistrictId() { return DistrictId; }
        public SlotDistrict setDistrictId(Integer value) { this.DistrictId = value; return this; }
        public String getDistrictName() { return DistrictName; }
        public SlotDistrict setDistrictName(String value) { this.DistrictName = value; return this; }
        public String getAddressPhysical() { return Address_Physical; }
        public SlotDistrict setAddressPhysical(String value) { this.Address_Physical = value; return this; }
        public String getAddressMailing() { return Address_Mailing; }
        public SlotDistrict setAddressMailing(String value) { this.Address_Mailing = value; return this; }
        public String getCity() { return City; }
        public SlotDistrict setCity(String value) { this.City = value; return this; }
        public String getZip() { return Zip; }
        public SlotDistrict setZip(String value) { this.Zip = value; return this; }
        public String getZip4() { return Zip_4; }
        public SlotDistrict setZip4(String value) { this.Zip_4 = value; return this; }
        public Integer getStateId() { return StateId; }
        public SlotDistrict setStateId(Integer value) { this.StateId = value; return this; }
        public String getState() { return State; }
        public SlotDistrict setState(String value) { this.State = value; return this; }
        public String getPhone() { return Phone; }
        public SlotDistrict setPhone(String value) { this.Phone = value; return this; }
        public BigDecimal getNumEmployees() { return NumEmployees; }
        public SlotDistrict setNumEmployees(BigDecimal value) { this.NumEmployees = value; return this; }
        public Integer getNumSchools() { return NumSchools; }
        public SlotDistrict setNumSchools(Integer value) { this.NumSchools = value; return this; }
        public String getType() { return Type; }
        public SlotDistrict setType(String value) { this.Type = value; return this; }
        public Boolean isStatusNlg() { return Status_NLG; }
        public SlotDistrict setStatusNlg(Boolean value) { this.Status_NLG = value; return this; }
        public Boolean isStatusMidland() { return Status_Midland; }
        public SlotDistrict setStatusMidland(Boolean value) { this.Status_Midland = value; return this; }
        public Boolean isStatusGreatAmerican() { return Status_Great_American; }
        public SlotDistrict setStatusGreatAmerican(Boolean value) { this.Status_Great_American = value; return this; }
        public Boolean isStatusVoya() { return Status_VOYA; }
        public SlotDistrict setStatusVoya(Boolean value) { this.Status_VOYA = value; return this; }
        public Integer getMvp() { return MVP; }
        public SlotDistrict setMvp(Integer value) { this.MVP = value; return this; }
        public Integer getRvp() { return RVP; }
        public SlotDistrict setRvp(Integer value) { this.RVP = value; return this; }
        public ArrayList<SlotDistrictSchool> getSchools() { return Schools; }
        public SlotDistrict setSchools(ArrayList<SlotDistrictSchool> value) { this.Schools = value; return this; }
        public Double getMilesAway() { return MilesAway; }
        public SlotDistrict setMilesAway(Double value) { this.MilesAway = value; return this; }
        public Boolean isHasComments() { return HasComments; }
        public SlotDistrict setHasComments(Boolean value) { this.HasComments = value; return this; }
    }

    public static class SlotDistrictSchool
    {
        public Long SchoolId = null;
        public String SchoolName = null;
        public ArrayList<SchoolAgent> AgentList = new ArrayList<SchoolAgent>();
        
        public Long getSchoolId() { return SchoolId; }
        public SlotDistrictSchool setSchoolId(Long value) { this.SchoolId = value; return this; }
        public String getSchoolName() { return SchoolName; }
        public SlotDistrictSchool setSchoolName(String value) { this.SchoolName = value; return this; }
        public ArrayList<SchoolAgent> getAgentList() { return AgentList; }
        public SlotDistrictSchool setAgentList(ArrayList<SchoolAgent> value) { this.AgentList = value; return this; }
    }

    public static class SchoolAgent
    {
        public Integer AgentId = null;
        public String AgentName = null;
        public Integer SlotDistrictApprovalID = null;
        
        public Integer getAgentId() { return AgentId; }
        public SchoolAgent setAgentId(Integer value) { this.AgentId = value; return this; }
        public String getAgentName() { return AgentName; }
        public SchoolAgent setAgentName(String value) { this.AgentName = value; return this; }
        public Integer getSlotDistrictApprovalID() { return SlotDistrictApprovalID; }
        public SchoolAgent setSlotDistrictApprovalID(Integer value) { this.SlotDistrictApprovalID = value; return this; }
    }

}

Java SlotDistrictSearchRequest 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/SlotDistrict/Search 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"}},"SlotDistrict":[{"ID":0,"Name":"String","County":"String","DistrictId":0,"DistrictName":"String","Address_Physical":"String","Address_Mailing":"String","City":"String","Zip":"String","Zip_4":"String","StateId":0,"State":"String","Phone":"String","NumEmployees":0,"NumSchools":0,"Type":"String","Status_NLG":false,"Status_Midland":false,"Status_Great_American":false,"Status_VOYA":false,"MVP":0,"RVP":0,"Schools":[{"SchoolId":0,"SchoolName":"String","AgentList":[{"AgentId":0,"AgentName":"String","SlotDistrictApprovalID":0}]}],"MilesAway":0,"HasComments":false}]}