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

<back to all web services

SaveArea

Requires Authentication
The following routes are available for this service:
All Verbs/SaveArea/{Area}
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports GoToLightAPI

Namespace Global

    Namespace GoToLightAPI

        Public Partial Class Area
            Public Overridable Property AreaID As Integer
            Public Overridable Property Label As String
            Public Overridable Property StockroomID As Long?
            Public Overridable Property Content As List(Of AreaContent) = New List(Of AreaContent)
            Public Overridable Property NumberOfPixels As Integer
        End Class

        Public Partial Class AreaContent
            Public Overridable Property ID As Integer
            Public Overridable Property LCAddress As String
            Public Overridable Property PixelStart As Integer
            Public Overridable Property PixelStop As Integer
            Public Overridable Property AreaID As Integer
            Public Overridable Property Pos As Integer
            Public Overridable Property Reverse As Boolean
        End Class

        Public Partial Class SaveArea
            '''<Summary>
            '''Area
            '''</Summary>
            <ApiMember(Description:="Area", IsRequired:=true)>
            Public Overridable Property Area As Area
        End Class
    End Namespace
End Namespace

VB.NET SaveArea DTOs

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

HTTP + JSV

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

POST /SaveArea/{Area} HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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