All Verbs | /mobile/maps/layer |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetLayerMapsRQ
{
public String Layer = null;
public String Access = null;
public String getLayer() { return Layer; }
public GetLayerMapsRQ setLayer(String value) { this.Layer = value; return this; }
public String getAccess() { return Access; }
public GetLayerMapsRQ setAccess(String value) { this.Access = value; return this; }
}
public static class GetLayerMapsRS
{
public String Code = null;
public String ErrorMessage = null;
public ArrayList<LayerData> Data = null;
public String getCode() { return Code; }
public GetLayerMapsRS setCode(String value) { this.Code = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public GetLayerMapsRS setErrorMessage(String value) { this.ErrorMessage = value; return this; }
public ArrayList<LayerData> getData() { return Data; }
public GetLayerMapsRS setData(ArrayList<LayerData> value) { this.Data = value; return this; }
}
public static class LayerData
{
public Integer code = null;
public String name = null;
public Double latitude = null;
public Double longitude = null;
public String complexinfo = null;
public Integer getCode() { return code; }
public LayerData setCode(Integer value) { this.code = value; return this; }
public String getName() { return name; }
public LayerData setName(String value) { this.name = value; return this; }
public Double getLatitude() { return latitude; }
public LayerData setLatitude(Double value) { this.latitude = value; return this; }
public Double getLongitude() { return longitude; }
public LayerData setLongitude(Double value) { this.longitude = value; return this; }
public String getComplexinfo() { return complexinfo; }
public LayerData setComplexinfo(String value) { this.complexinfo = value; return this; }
}
}
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 /mobile/maps/layer HTTP/1.1
Host: ws.jimsnwa.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Layer: String,
Access: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Code: String, ErrorMessage: String, Data: [ { code: 0, name: String, latitude: 0, longitude: 0, complexinfo: String } ] }