Trendsic Platform Service

<back to all web services

SlotDistrictRequest

Requires Authentication
Required roles:Administrator, AdministratorRequires any of the roles:Agent, Administrator, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
PUT,DELETE,OPTIONS/v1/SlotDistrict/{ID}
POST,OPTIONS/v1/SlotDistrict
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class SlotDistrictRequest
    {
        public SlotDistrict SlotDistrict = null;
        public Integer ID = null;
        
        public SlotDistrict getSlotDistrict() { return SlotDistrict; }
        public SlotDistrictRequest setSlotDistrict(SlotDistrict value) { this.SlotDistrict = value; return this; }
        public Integer getId() { return ID; }
        public SlotDistrictRequest setId(Integer value) { this.ID = 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; }
    }

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

}

Java SlotDistrictRequest DTOs

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

HTTP + XML

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

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

<SlotDistrictRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ID>0</ID>
  <SlotDistrict>
    <Address_Mailing>String</Address_Mailing>
    <Address_Physical>String</Address_Physical>
    <City>String</City>
    <County>String</County>
    <DistrictId>0</DistrictId>
    <DistrictName>String</DistrictName>
    <HasComments>false</HasComments>
    <ID>0</ID>
    <MVP>0</MVP>
    <MilesAway>0</MilesAway>
    <Name>String</Name>
    <NumEmployees>0</NumEmployees>
    <NumSchools>0</NumSchools>
    <Phone>String</Phone>
    <RVP>0</RVP>
    <Schools>
      <SlotDistrictSchool>
        <AgentList>
          <SchoolAgent>
            <AgentId>0</AgentId>
            <AgentName>String</AgentName>
            <SlotDistrictApprovalID>0</SlotDistrictApprovalID>
          </SchoolAgent>
        </AgentList>
        <SchoolId>0</SchoolId>
        <SchoolName>String</SchoolName>
      </SlotDistrictSchool>
    </Schools>
    <State>String</State>
    <StateId>0</StateId>
    <Status_Great_American>false</Status_Great_American>
    <Status_Midland>false</Status_Midland>
    <Status_NLG>false</Status_NLG>
    <Status_VOYA>false</Status_VOYA>
    <Type>String</Type>
    <Zip>String</Zip>
    <Zip_4>String</Zip_4>
  </SlotDistrict>
</SlotDistrictRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SlotDistrictResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <SlotDistrict>
    <SlotDistrict>
      <Address_Mailing>String</Address_Mailing>
      <Address_Physical>String</Address_Physical>
      <City>String</City>
      <County>String</County>
      <DistrictId>0</DistrictId>
      <DistrictName>String</DistrictName>
      <HasComments>false</HasComments>
      <ID>0</ID>
      <MVP>0</MVP>
      <MilesAway>0</MilesAway>
      <Name>String</Name>
      <NumEmployees>0</NumEmployees>
      <NumSchools>0</NumSchools>
      <Phone>String</Phone>
      <RVP>0</RVP>
      <Schools>
        <SlotDistrictSchool>
          <AgentList>
            <SchoolAgent>
              <AgentId>0</AgentId>
              <AgentName>String</AgentName>
              <SlotDistrictApprovalID>0</SlotDistrictApprovalID>
            </SchoolAgent>
          </AgentList>
          <SchoolId>0</SchoolId>
          <SchoolName>String</SchoolName>
        </SlotDistrictSchool>
      </Schools>
      <State>String</State>
      <StateId>0</StateId>
      <Status_Great_American>false</Status_Great_American>
      <Status_Midland>false</Status_Midland>
      <Status_NLG>false</Status_NLG>
      <Status_VOYA>false</Status_VOYA>
      <Type>String</Type>
      <Zip>String</Zip>
      <Zip_4>String</Zip_4>
    </SlotDistrict>
  </SlotDistrict>
</SlotDistrictResponse>