sfgboxapi

<back to all web services

GrowersListLookup

Requires Authentication
The following routes are available for this service:
GET/growerslist
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    public static class GrowersListLookup
    {
        public Long id = null;
        public Long tenantsId = null;
        public String displayName = null;
        public String firstName = null;
        public String lastName = null;
        public String email = null;
        public String phoneNumber = null;
        public Long appUserId = null;
        public Boolean approved = null;
        public Date approvalDate = null;
        public Date applicationDate = null;
        public String identificationNumber = null;
        public String passportNumber = null;
        public String address = null;
        public String ethnicGroup = null;
        public String gender = null;
        public Boolean isDisabled = null;
        public Double latitude = null;
        public Double longitude = null;
        public String documentUrl = null;
        public Boolean isZoneMain = null;
        public Paging paging = null;
        
        public Long getId() { return id; }
        public GrowersListLookup setId(Long value) { this.id = value; return this; }
        public Long getTenantsId() { return tenantsId; }
        public GrowersListLookup setTenantsId(Long value) { this.tenantsId = value; return this; }
        public String getDisplayName() { return displayName; }
        public GrowersListLookup setDisplayName(String value) { this.displayName = value; return this; }
        public String getFirstName() { return firstName; }
        public GrowersListLookup setFirstName(String value) { this.firstName = value; return this; }
        public String getLastName() { return lastName; }
        public GrowersListLookup setLastName(String value) { this.lastName = value; return this; }
        public String getEmail() { return email; }
        public GrowersListLookup setEmail(String value) { this.email = value; return this; }
        public String getPhoneNumber() { return phoneNumber; }
        public GrowersListLookup setPhoneNumber(String value) { this.phoneNumber = value; return this; }
        public Long getAppUserId() { return appUserId; }
        public GrowersListLookup setAppUserId(Long value) { this.appUserId = value; return this; }
        public Boolean isApproved() { return approved; }
        public GrowersListLookup setApproved(Boolean value) { this.approved = value; return this; }
        public Date getApprovalDate() { return approvalDate; }
        public GrowersListLookup setApprovalDate(Date value) { this.approvalDate = value; return this; }
        public Date getApplicationDate() { return applicationDate; }
        public GrowersListLookup setApplicationDate(Date value) { this.applicationDate = value; return this; }
        public String getIdentificationNumber() { return identificationNumber; }
        public GrowersListLookup setIdentificationNumber(String value) { this.identificationNumber = value; return this; }
        public String getPassportNumber() { return passportNumber; }
        public GrowersListLookup setPassportNumber(String value) { this.passportNumber = value; return this; }
        public String getAddress() { return address; }
        public GrowersListLookup setAddress(String value) { this.address = value; return this; }
        public String getEthnicGroup() { return ethnicGroup; }
        public GrowersListLookup setEthnicGroup(String value) { this.ethnicGroup = value; return this; }
        public String getGender() { return gender; }
        public GrowersListLookup setGender(String value) { this.gender = value; return this; }
        public Boolean getIsDisabled() { return isDisabled; }
        public GrowersListLookup setIsDisabled(Boolean value) { this.isDisabled = value; return this; }
        public Double getLatitude() { return latitude; }
        public GrowersListLookup setLatitude(Double value) { this.latitude = value; return this; }
        public Double getLongitude() { return longitude; }
        public GrowersListLookup setLongitude(Double value) { this.longitude = value; return this; }
        public String getDocumentUrl() { return documentUrl; }
        public GrowersListLookup setDocumentUrl(String value) { this.documentUrl = value; return this; }
        public Boolean getIsZoneMain() { return isZoneMain; }
        public GrowersListLookup setIsZoneMain(Boolean value) { this.isZoneMain = value; return this; }
        public Paging getPaging() { return paging; }
        public GrowersListLookup setPaging(Paging value) { this.paging = value; return this; }
    }

    public static class Paging
    {
        public Integer pageNumber = null;
        public Integer pageSize = null;
        
        public Integer getPageNumber() { return pageNumber; }
        public Paging setPageNumber(Integer value) { this.pageNumber = value; return this; }
        public Integer getPageSize() { return pageSize; }
        public Paging setPageSize(Integer value) { this.pageSize = value; return this; }
    }

}

Java GrowersListLookup 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 /growerslist HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ArrayOfGrowersListLookupResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sfgboxapi.ServiceModel">
  <GrowersListLookupResponse>
    <Address>String</Address>
    <AppUserId>0</AppUserId>
    <ApplicationDate>0001-01-01T00:00:00</ApplicationDate>
    <ApprovalDate>0001-01-01T00:00:00</ApprovalDate>
    <Approved>false</Approved>
    <DisplayName>String</DisplayName>
    <DocumentUrl>String</DocumentUrl>
    <Email>String</Email>
    <EthnicGroup>String</EthnicGroup>
    <FirstName>String</FirstName>
    <Gender>String</Gender>
    <Id>0</Id>
    <IdentificationNumber>String</IdentificationNumber>
    <IsDisabled>false</IsDisabled>
    <IsZoneMain>false</IsZoneMain>
    <LastName>String</LastName>
    <Latitude>0</Latitude>
    <Longitude>0</Longitude>
    <PassportNumber>String</PassportNumber>
    <PhoneNumber>String</PhoneNumber>
    <ResponseStatus xmlns:d3p1="http://schemas.servicestack.net/types">
      <d3p1:ErrorCode>String</d3p1:ErrorCode>
      <d3p1:Message>String</d3p1:Message>
      <d3p1:StackTrace>String</d3p1:StackTrace>
      <d3p1:Errors>
        <d3p1:ResponseError>
          <d3p1:ErrorCode>String</d3p1:ErrorCode>
          <d3p1:FieldName>String</d3p1:FieldName>
          <d3p1:Message>String</d3p1:Message>
          <d3p1:Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value>String</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </d3p1:Meta>
        </d3p1:ResponseError>
      </d3p1:Errors>
      <d3p1:Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d3p1:Meta>
    </ResponseStatus>
    <TenantsId>0</TenantsId>
  </GrowersListLookupResponse>
</ArrayOfGrowersListLookupResponse>