Trendsic Platform Service

<back to all web services

CrewEquipmentSetRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/territory/crewequipment
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class CrewEquipmentSetRequest
    {
        public Integer CrewID = null;
        public ArrayList<Integer> EquipmentIDs = new ArrayList<Integer>();
        
        public Integer getCrewID() { return CrewID; }
        public CrewEquipmentSetRequest setCrewID(Integer value) { this.CrewID = value; return this; }
        public ArrayList<Integer> getEquipmentIDs() { return EquipmentIDs; }
        public CrewEquipmentSetRequest setEquipmentIDs(ArrayList<Integer> value) { this.EquipmentIDs = value; return this; }
    }

    public static class TerritoryResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<Territory> Territories = new ArrayList<Territory>();
        public ArrayList<TerritoryPropertyRow> Properties = new ArrayList<TerritoryPropertyRow>();
        public ArrayList<CrewEquipmentRow> CrewEquipment = new ArrayList<CrewEquipmentRow>();
        public ArrayList<AgreementNeedRow> AgreementNeeds = new ArrayList<AgreementNeedRow>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public TerritoryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<Territory> getTerritories() { return Territories; }
        public TerritoryResponse setTerritories(ArrayList<Territory> value) { this.Territories = value; return this; }
        public ArrayList<TerritoryPropertyRow> getProperties() { return Properties; }
        public TerritoryResponse setProperties(ArrayList<TerritoryPropertyRow> value) { this.Properties = value; return this; }
        public ArrayList<CrewEquipmentRow> getCrewEquipment() { return CrewEquipment; }
        public TerritoryResponse setCrewEquipment(ArrayList<CrewEquipmentRow> value) { this.CrewEquipment = value; return this; }
        public ArrayList<AgreementNeedRow> getAgreementNeeds() { return AgreementNeeds; }
        public TerritoryResponse setAgreementNeeds(ArrayList<AgreementNeedRow> value) { this.AgreementNeeds = value; return this; }
    }

    public static class Territory
    {
        public Integer TerritoryID = null;
        public String TerritoryUID = null;
        public String Name = null;
        public String Color = null;
        public String ZipCsv = null;
        public Integer CrewID = null;
        public String CrewName = null;
        public Boolean Active = null;
        
        public Integer getTerritoryID() { return TerritoryID; }
        public Territory setTerritoryID(Integer value) { this.TerritoryID = value; return this; }
        public String getTerritoryUID() { return TerritoryUID; }
        public Territory setTerritoryUID(String value) { this.TerritoryUID = value; return this; }
        public String getName() { return Name; }
        public Territory setName(String value) { this.Name = value; return this; }
        public String getColor() { return Color; }
        public Territory setColor(String value) { this.Color = value; return this; }
        public String getZipCsv() { return ZipCsv; }
        public Territory setZipCsv(String value) { this.ZipCsv = value; return this; }
        public Integer getCrewID() { return CrewID; }
        public Territory setCrewID(Integer value) { this.CrewID = value; return this; }
        public String getCrewName() { return CrewName; }
        public Territory setCrewName(String value) { this.CrewName = value; return this; }
        public Boolean isActive() { return Active; }
        public Territory setActive(Boolean value) { this.Active = value; return this; }
    }

    public static class TerritoryPropertyRow
    {
        public Integer TerritoryID = null;
        public Integer AgreementID = null;
        
        public Integer getTerritoryID() { return TerritoryID; }
        public TerritoryPropertyRow setTerritoryID(Integer value) { this.TerritoryID = value; return this; }
        public Integer getAgreementID() { return AgreementID; }
        public TerritoryPropertyRow setAgreementID(Integer value) { this.AgreementID = value; return this; }
    }

    public static class CrewEquipmentRow
    {
        public Integer CrewID = null;
        public Integer EquipmentID = null;
        public String EquipmentName = null;
        
        public Integer getCrewID() { return CrewID; }
        public CrewEquipmentRow setCrewID(Integer value) { this.CrewID = value; return this; }
        public Integer getEquipmentID() { return EquipmentID; }
        public CrewEquipmentRow setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
        public String getEquipmentName() { return EquipmentName; }
        public CrewEquipmentRow setEquipmentName(String value) { this.EquipmentName = value; return this; }
    }

    public static class AgreementNeedRow
    {
        public Integer AgreementID = null;
        public Integer EquipmentID = null;
        public String EquipmentName = null;
        
        public Integer getAgreementID() { return AgreementID; }
        public AgreementNeedRow setAgreementID(Integer value) { this.AgreementID = value; return this; }
        public Integer getEquipmentID() { return EquipmentID; }
        public AgreementNeedRow setEquipmentID(Integer value) { this.EquipmentID = value; return this; }
        public String getEquipmentName() { return EquipmentName; }
        public AgreementNeedRow setEquipmentName(String value) { this.EquipmentName = value; return this; }
    }

}

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

POST /v1/territory/crewequipment HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"CrewID":0,"EquipmentIDs":[0]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Territories":[{"TerritoryID":0,"TerritoryUID":"String","Name":"String","Color":"String","ZipCsv":"String","CrewID":0,"CrewName":"String","Active":false}],"Properties":[{"TerritoryID":0,"AgreementID":0}],"CrewEquipment":[{"CrewID":0,"EquipmentID":0,"EquipmentName":"String"}],"AgreementNeeds":[{"AgreementID":0,"EquipmentID":0,"EquipmentName":"String"}]}