Cleverciti RestAPI Version 2.0

<back to all web services

FloatingNewView

The following routes are available for this service:
POST/ccs/city/view/floating/new
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class FloatingNewView
    {
        /**
        * UserID that access the Service
        */
        @ApiMember(Description="UserID that access the Service", IsRequired=true)
        public String userid = null;

        /**
        * Viewarea Longitude x1
        */
        @ApiMember(Description="Viewarea Longitude x1", IsRequired=true)
        public Double ax = null;

        /**
        * Viewarea Latitude y1
        */
        @ApiMember(Description="Viewarea Latitude y1", IsRequired=true)
        public Double ay = null;

        /**
        * Viewarea Longitude x2
        */
        @ApiMember(Description="Viewarea Longitude x2", IsRequired=true)
        public Double bx = null;

        /**
        * Viewarea Latitude y2
        */
        @ApiMember(Description="Viewarea Latitude y2", IsRequired=true)
        public Double by = null;

        /**
        * Viewarea Longitude x3
        */
        @ApiMember(Description="Viewarea Longitude x3", IsRequired=true)
        public Double cx = null;

        /**
        * Viewarea Latitude y3
        */
        @ApiMember(Description="Viewarea Latitude y3", IsRequired=true)
        public Double cy = null;

        /**
        * Viewarea Longitude x4
        */
        @ApiMember(Description="Viewarea Longitude x4", IsRequired=true)
        public Double dx = null;

        /**
        * Viewarea Latitude y4
        */
        @ApiMember(Description="Viewarea Latitude y4", IsRequired=true)
        public Double dy = null;

        /**
        * Name of the Service
        */
        @ApiMember(Description="Name of the Service", IsRequired=true)
        public String name = null;

        /**
        * Comment of the Service
        */
        @ApiMember(Description="Comment of the Service", IsRequired=true)
        public String comment = null;

        /**
        * Color of the current view
        */
        @ApiMember(Description="Color of the current view", IsRequired=true)
        public String color = null;

        /**
        * Passable information
        */
        @ApiMember(Description="Passable information", IsRequired=true)
        public JPassable passable = null;

        /**
        * Altitude Reference
        */
        @ApiMember(Description="Altitude Reference")
        public String AltitudeRef = null;

        /**
        * Altitude
        */
        @ApiMember(Description="Altitude")
        public Double Altitude = null;
        
        public String getUserid() { return userid; }
        public FloatingNewView setUserid(String value) { this.userid = value; return this; }
        public Double getAx() { return ax; }
        public FloatingNewView setAx(Double value) { this.ax = value; return this; }
        public Double getAy() { return ay; }
        public FloatingNewView setAy(Double value) { this.ay = value; return this; }
        public Double getBx() { return bx; }
        public FloatingNewView setBx(Double value) { this.bx = value; return this; }
        public Double getBy() { return by; }
        public FloatingNewView setBy(Double value) { this.by = value; return this; }
        public Double getCx() { return cx; }
        public FloatingNewView setCx(Double value) { this.cx = value; return this; }
        public Double getCy() { return cy; }
        public FloatingNewView setCy(Double value) { this.cy = value; return this; }
        public Double getDx() { return dx; }
        public FloatingNewView setDx(Double value) { this.dx = value; return this; }
        public Double getDy() { return dy; }
        public FloatingNewView setDy(Double value) { this.dy = value; return this; }
        public String getName() { return name; }
        public FloatingNewView setName(String value) { this.name = value; return this; }
        public String getComment() { return comment; }
        public FloatingNewView setComment(String value) { this.comment = value; return this; }
        public String getColor() { return color; }
        public FloatingNewView setColor(String value) { this.color = value; return this; }
        public JPassable getPassable() { return passable; }
        public FloatingNewView setPassable(JPassable value) { this.passable = value; return this; }
        public String getAltitudeRef() { return AltitudeRef; }
        public FloatingNewView setAltitudeRef(String value) { this.AltitudeRef = value; return this; }
        public Double getAltitude() { return Altitude; }
        public FloatingNewView setAltitude(Double value) { this.Altitude = value; return this; }
    }

    @DataContract
    public static class JPassable
    {
        
    }

}

Java FloatingNewView DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /ccs/city/view/floating/new HTTP/1.1 
Host: 188.138.100.94 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"userid":"String","ax":0,"ay":0,"bx":0,"by":0,"cx":0,"cy":0,"dx":0,"dy":0,"name":"String","comment":"String","color":"String","passable":{"All":{"From":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0},"To":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0}},"Friday":{"From":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0},"To":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0}},"Monday":{"From":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0},"To":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0}},"Saturday":{"From":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0},"To":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0}},"Sunday":{"From":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0},"To":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0}},"Thursday":{"From":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0},"To":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0}},"Tuesday":{"From":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0},"To":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0}},"Wednesday":{"From":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0},"To":{"Active":false,"Hours":0,"Minutes":0,"Seconds":0}}},"AltitudeRef":"String","Altitude":0}