import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ZonesCoordinatesAutoQueryAdd implements ICreateDb<ZonesCoordinates>
{
@DataMember(Order=2)
public Long zonesId = null;
@DataMember(Order=3)
public Integer position = null;
@DataMember(Order=4)
public Double latitude = null;
@DataMember(Order=5)
public Double longitude = null;
@DataMember(Order=7)
public ResponseStatus responseStatus = null;
public Long getZonesId() { return zonesId; }
public ZonesCoordinatesAutoQueryAdd setZonesId(Long value) { this.zonesId = value; return this; }
public Integer getPosition() { return position; }
public ZonesCoordinatesAutoQueryAdd setPosition(Integer value) { this.position = value; return this; }
public Double getLatitude() { return latitude; }
public ZonesCoordinatesAutoQueryAdd setLatitude(Double value) { this.latitude = value; return this; }
public Double getLongitude() { return longitude; }
public ZonesCoordinatesAutoQueryAdd setLongitude(Double value) { this.longitude = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public ZonesCoordinatesAutoQueryAdd setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
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 ZonesCoordinatesAutoQueryAdd DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/ZonesCoordinatesAutoQueryAdd HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
zonesId: 0,
position: 0,
latitude: 0,
longitude: 0,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: 0,
zonesId: 0,
position: 0,
latitude: 0,
longitude: 0
}