Trendsic Platform Service

<back to all web services

ApplicationListRequest

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

public class dtos
{

    public static class ApplicationListRequest
    {
        public Integer ProjectID = null;
        public Integer AgreementJobID = null;
        public String FromDate = null;
        public String ToDate = null;
        
        public Integer getProjectID() { return ProjectID; }
        public ApplicationListRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
        public Integer getAgreementJobID() { return AgreementJobID; }
        public ApplicationListRequest setAgreementJobID(Integer value) { this.AgreementJobID = value; return this; }
        public String getFromDate() { return FromDate; }
        public ApplicationListRequest setFromDate(String value) { this.FromDate = value; return this; }
        public String getToDate() { return ToDate; }
        public ApplicationListRequest setToDate(String value) { this.ToDate = value; return this; }
    }

    public static class ApplicationResponse
    {
        public ArrayList<ApplicationView> Applications = new ArrayList<ApplicationView>();
        public Integer ChemicalApplicationID = null;
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<ApplicationView> getApplications() { return Applications; }
        public ApplicationResponse setApplications(ArrayList<ApplicationView> value) { this.Applications = value; return this; }
        public Integer getChemicalApplicationID() { return ChemicalApplicationID; }
        public ApplicationResponse setChemicalApplicationID(Integer value) { this.ChemicalApplicationID = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ApplicationResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class ApplicationView
    {
        public Integer ChemicalApplicationID = null;
        public Date AppliedAt = null;
        public String AreaTreated = null;
        public String ProductName = null;
        public String EpaRegistrationNumber = null;
        public BigDecimal AmountApplied = null;
        public String AmountUnit = null;
        public String Concentration = null;
        public BigDecimal TreatedQuantity = null;
        public String TreatedUnit = null;
        public String TargetPest = null;
        public String ApplicatorName = null;
        public String ApplicatorLicence = null;
        public BigDecimal WindSpeedMph = null;
        public String WindDirection = null;
        public BigDecimal TemperatureF = null;
        public String Notes = null;
        public Date SubmittedAt = null;
        public Integer AmendsApplicationID = null;
        public Boolean IsAmended = null;
        
        public Integer getChemicalApplicationID() { return ChemicalApplicationID; }
        public ApplicationView setChemicalApplicationID(Integer value) { this.ChemicalApplicationID = value; return this; }
        public Date getAppliedAt() { return AppliedAt; }
        public ApplicationView setAppliedAt(Date value) { this.AppliedAt = value; return this; }
        public String getAreaTreated() { return AreaTreated; }
        public ApplicationView setAreaTreated(String value) { this.AreaTreated = value; return this; }
        public String getProductName() { return ProductName; }
        public ApplicationView setProductName(String value) { this.ProductName = value; return this; }
        public String getEpaRegistrationNumber() { return EpaRegistrationNumber; }
        public ApplicationView setEpaRegistrationNumber(String value) { this.EpaRegistrationNumber = value; return this; }
        public BigDecimal getAmountApplied() { return AmountApplied; }
        public ApplicationView setAmountApplied(BigDecimal value) { this.AmountApplied = value; return this; }
        public String getAmountUnit() { return AmountUnit; }
        public ApplicationView setAmountUnit(String value) { this.AmountUnit = value; return this; }
        public String getConcentration() { return Concentration; }
        public ApplicationView setConcentration(String value) { this.Concentration = value; return this; }
        public BigDecimal getTreatedQuantity() { return TreatedQuantity; }
        public ApplicationView setTreatedQuantity(BigDecimal value) { this.TreatedQuantity = value; return this; }
        public String getTreatedUnit() { return TreatedUnit; }
        public ApplicationView setTreatedUnit(String value) { this.TreatedUnit = value; return this; }
        public String getTargetPest() { return TargetPest; }
        public ApplicationView setTargetPest(String value) { this.TargetPest = value; return this; }
        public String getApplicatorName() { return ApplicatorName; }
        public ApplicationView setApplicatorName(String value) { this.ApplicatorName = value; return this; }
        public String getApplicatorLicence() { return ApplicatorLicence; }
        public ApplicationView setApplicatorLicence(String value) { this.ApplicatorLicence = value; return this; }
        public BigDecimal getWindSpeedMph() { return WindSpeedMph; }
        public ApplicationView setWindSpeedMph(BigDecimal value) { this.WindSpeedMph = value; return this; }
        public String getWindDirection() { return WindDirection; }
        public ApplicationView setWindDirection(String value) { this.WindDirection = value; return this; }
        public BigDecimal getTemperatureF() { return TemperatureF; }
        public ApplicationView setTemperatureF(BigDecimal value) { this.TemperatureF = value; return this; }
        public String getNotes() { return Notes; }
        public ApplicationView setNotes(String value) { this.Notes = value; return this; }
        public Date getSubmittedAt() { return SubmittedAt; }
        public ApplicationView setSubmittedAt(Date value) { this.SubmittedAt = value; return this; }
        public Integer getAmendsApplicationID() { return AmendsApplicationID; }
        public ApplicationView setAmendsApplicationID(Integer value) { this.AmendsApplicationID = value; return this; }
        public Boolean getIsAmended() { return IsAmended; }
        public ApplicationView setIsAmended(Boolean value) { this.IsAmended = value; return this; }
    }

}

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

GET /v1/field/applications HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ApplicationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Applications>
    <ApplicationView>
      <AmendsApplicationID>0</AmendsApplicationID>
      <AmountApplied>0</AmountApplied>
      <AmountUnit>String</AmountUnit>
      <ApplicatorLicence>String</ApplicatorLicence>
      <ApplicatorName>String</ApplicatorName>
      <AppliedAt>0001-01-01T00:00:00</AppliedAt>
      <AreaTreated>String</AreaTreated>
      <ChemicalApplicationID>0</ChemicalApplicationID>
      <Concentration>String</Concentration>
      <EpaRegistrationNumber>String</EpaRegistrationNumber>
      <IsAmended>false</IsAmended>
      <Notes>String</Notes>
      <ProductName>String</ProductName>
      <SubmittedAt>0001-01-01T00:00:00</SubmittedAt>
      <TargetPest>String</TargetPest>
      <TemperatureF>0</TemperatureF>
      <TreatedQuantity>0</TreatedQuantity>
      <TreatedUnit>String</TreatedUnit>
      <WindDirection>String</WindDirection>
      <WindSpeedMph>0</WindSpeedMph>
    </ApplicationView>
  </Applications>
  <ChemicalApplicationID>0</ChemicalApplicationID>
  <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>
</ApplicationResponse>