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

<back to all web services

AddNodeToArea

Requires Authentication
The following routes are available for this service:
All Verbs/AddNodeToArea/{Area}/{LCAddress}/{PixelStart}/{PixelStop}/{Index}
import 'package:servicestack/servicestack.dart';

class AddNodeToArea implements IConvertible
{
    /**
    * Area name
    */
    // @ApiMember(Description="Area name", IsRequired=true)
    String? Area;

    /**
    * LC address
    */
    // @ApiMember(Description="LC address", IsRequired=true)
    String? LCAddress;

    /**
    * Pixel start number
    */
    // @ApiMember(Description="Pixel start number", IsRequired=true)
    int? PixelStart;

    /**
    * Pixel stop number
    */
    // @ApiMember(Description="Pixel stop number", IsRequired=true)
    int? PixelStop;

    /**
    * Index of node in the group
    */
    // @ApiMember(Description="Index of node in the group", IsRequired=true)
    int? Index;

    /**
    * Optional: name of the stockroom where the area is located
    */
    // @ApiMember(Description="Optional: name of the stockroom where the area is located")
    String? StockroomName;

    /**
    * Optional: reverse direction
    */
    // @ApiMember(Description="Optional: reverse direction")
    bool? Reverse;

    AddNodeToArea({this.Area,this.LCAddress,this.PixelStart,this.PixelStop,this.Index,this.StockroomName,this.Reverse});
    AddNodeToArea.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Area = json['Area'];
        LCAddress = json['LCAddress'];
        PixelStart = json['PixelStart'];
        PixelStop = json['PixelStop'];
        Index = json['Index'];
        StockroomName = json['StockroomName'];
        Reverse = json['Reverse'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Area': Area,
        'LCAddress': LCAddress,
        'PixelStart': PixelStart,
        'PixelStop': PixelStop,
        'Index': Index,
        'StockroomName': StockroomName,
        'Reverse': Reverse
    };

    getTypeName() => "AddNodeToArea";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'clouddemo.pickeos.com', types: <String, TypeInfo> {
    'AddNodeToArea': TypeInfo(TypeOf.Class, create:() => AddNodeToArea()),
});

Dart AddNodeToArea 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 /AddNodeToArea/{Area}/{LCAddress}/{PixelStart}/{PixelStop}/{Index} HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Area: String,
	LCAddress: String,
	PixelStart: 0,
	PixelStop: 0,
	Index: 0,
	StockroomName: String,
	Reverse: False
}