Go-to-Light Service 4.0.0.2397 - 121 - API License to Cloud Demo

<back to all web services

DefineAreas

Requires Authentication
The following routes are available for this service:
All Verbs/DefineAreas/{Areas}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class DefineAreas
    {
        /**
        * Areas
        */
        @ApiMember(Description="Areas", IsRequired=true)
        public ArrayList<Area> Areas = new ArrayList<Area>();
        
        public ArrayList<Area> getAreas() { return Areas; }
        public DefineAreas setAreas(ArrayList<Area> value) { this.Areas = value; return this; }
    }

    public static class Area
    {
        public Integer AreaID = null;
        public String Label = null;
        public Long StockroomID = null;
        public ArrayList<AreaContent> Content = new ArrayList<AreaContent>();
        public Integer NumberOfPixels = null;
        
        public Integer getAreaID() { return AreaID; }
        public Area setAreaID(Integer value) { this.AreaID = value; return this; }
        public String getLabel() { return Label; }
        public Area setLabel(String value) { this.Label = value; return this; }
        public Long getStockroomID() { return StockroomID; }
        public Area setStockroomID(Long value) { this.StockroomID = value; return this; }
        public ArrayList<AreaContent> getContent() { return Content; }
        public Area setContent(ArrayList<AreaContent> value) { this.Content = value; return this; }
        public Integer getNumberOfPixels() { return NumberOfPixels; }
        public Area setNumberOfPixels(Integer value) { this.NumberOfPixels = value; return this; }
    }

    public static class AreaContent
    {
        public Integer ID = null;
        public String LCAddress = null;
        public Integer PixelStart = null;
        public Integer PixelStop = null;
        public Integer AreaID = null;
        public Integer Pos = null;
        public Boolean Reverse = null;
        
        public Integer getId() { return ID; }
        public AreaContent setId(Integer value) { this.ID = value; return this; }
        public String getLcAddress() { return LCAddress; }
        public AreaContent setLcAddress(String value) { this.LCAddress = value; return this; }
        public Integer getPixelStart() { return PixelStart; }
        public AreaContent setPixelStart(Integer value) { this.PixelStart = value; return this; }
        public Integer getPixelStop() { return PixelStop; }
        public AreaContent setPixelStop(Integer value) { this.PixelStop = value; return this; }
        public Integer getAreaID() { return AreaID; }
        public AreaContent setAreaID(Integer value) { this.AreaID = value; return this; }
        public Integer getPos() { return Pos; }
        public AreaContent setPos(Integer value) { this.Pos = value; return this; }
        public Boolean isReverse() { return Reverse; }
        public AreaContent setReverse(Boolean value) { this.Reverse = value; return this; }
    }

}

Java DefineAreas DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /DefineAreas/{Areas} HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Areas":[{"AreaID":0,"Label":"String","StockroomID":0,"Content":[{"ID":0,"LCAddress":"String","PixelStart":0,"PixelStop":0,"AreaID":0,"Pos":0,"Reverse":false}],"NumberOfPixels":1}]}