sfgboxapi

<back to all web services

ZonesCoordinatesAutoQueryEdit

import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ZonesCoordinatesAutoQueryEdit extends ZonesCoordinates implements IUpdateDb<ZonesCoordinates>
    {
        
    }

    public static class ZonesCoordinates
    {
        @DataMember(Order=1)
        @Required()
        public Long id = null;

        @DataMember(Order=2)
        @Required()
        @References(Zones.class)
        public Long zonesId = null;

        @DataMember(Order=3)
        @Required()
        public Integer position = null;

        @DataMember(Order=4)
        @Required()
        public Double latitude = null;

        @DataMember(Order=5)
        @Required()
        public Double longitude = null;
        
        public Long getId() { return id; }
        public ZonesCoordinates setId(Long value) { this.id = value; return this; }
        public Long getZonesId() { return zonesId; }
        public ZonesCoordinates setZonesId(Long value) { this.zonesId = value; return this; }
        public Integer getPosition() { return position; }
        public ZonesCoordinates setPosition(Integer value) { this.position = value; return this; }
        public Double getLatitude() { return latitude; }
        public ZonesCoordinates setLatitude(Double value) { this.latitude = value; return this; }
        public Double getLongitude() { return longitude; }
        public ZonesCoordinates setLongitude(Double value) { this.longitude = value; return this; }
    }

}

Java ZonesCoordinatesAutoQueryEdit 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 /jsonl/reply/ZonesCoordinatesAutoQueryEdit HTTP/1.1 
Host: api-stage.smartfarmertech.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":0,"zonesId":0,"position":0,"latitude":0,"longitude":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id":0,"zonesId":0,"position":0,"latitude":0,"longitude":0}