| 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; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<DefineAreas xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoToLightAPI">
<Areas>
<Area>
<AreaID>0</AreaID>
<Content>
<AreaContent>
<AreaID>0</AreaID>
<ID>0</ID>
<LCAddress>String</LCAddress>
<PixelStart>0</PixelStart>
<PixelStop>0</PixelStop>
<Pos>0</Pos>
<Reverse>false</Reverse>
</AreaContent>
</Content>
<Label>String</Label>
<StockroomID>0</StockroomID>
</Area>
</Areas>
</DefineAreas>