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

<back to all web services

RegisterCallback

Requires Authentication
The following routes are available for this service:
All Verbs/RegisterCallback
import 'package:servicestack/servicestack.dart';

class RegisterCallback implements IConvertible
{
    /**
    * Callback on which to get registered (e.g. SetPosition)
    */
    // @ApiMember(Description="Callback on which to get registered (e.g. SetPosition)")
    String? Name;

    /**
    * Callback URL
    */
    // @ApiMember(Description="Callback URL")
    String? CallbackURL;

    /**
    * Optional: Callback username
    */
    // @ApiMember(Description="Optional: Callback username")
    String? CallbackUsername;

    /**
    * Optional: Callback password
    */
    // @ApiMember(Description="Optional: Callback password")
    String? CallbackPassword;

    /**
    * Optional: Callback authorization
    */
    // @ApiMember(Description="Optional: Callback authorization")
    String? CallbackAuthorization;

    /**
    * Optional: niveau de détail souhaité pour les événements touch (rétro-compatibilité), interprété comme un masque de bits (Gestures=1, Detailed=2). 0 = Legacy (défaut, payload historique string position) ; 1 = Gestures (JSON: Click/DoubleClick/LongPress + durationMs) ; 2 = Detailed (JSON: position, edge Down/Up, timestampUtc, seq) ; 3 = Both (Gestures + Detailed). Absent ou 0 => comportement inchangé pour les clients existants.
    */
    // @ApiMember(Description="Optional: niveau de détail souhaité pour les événements touch (rétro-compatibilité), interprété comme un masque de bits (Gestures=1, Detailed=2). 0 = Legacy (défaut, payload historique string position) ; 1 = Gestures (JSON: Click/DoubleClick/LongPress + durationMs) ; 2 = Detailed (JSON: position, edge Down/Up, timestampUtc, seq) ; 3 = Both (Gestures + Detailed). Absent ou 0 => comportement inchangé pour les clients existants.")
    int? DetailLevel;

    RegisterCallback({this.Name,this.CallbackURL,this.CallbackUsername,this.CallbackPassword,this.CallbackAuthorization,this.DetailLevel});
    RegisterCallback.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Name = json['Name'];
        CallbackURL = json['CallbackURL'];
        CallbackUsername = json['CallbackUsername'];
        CallbackPassword = json['CallbackPassword'];
        CallbackAuthorization = json['CallbackAuthorization'];
        DetailLevel = json['DetailLevel'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Name': Name,
        'CallbackURL': CallbackURL,
        'CallbackUsername': CallbackUsername,
        'CallbackPassword': CallbackPassword,
        'CallbackAuthorization': CallbackAuthorization,
        'DetailLevel': DetailLevel
    };

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

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

Dart RegisterCallback DTOs

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

HTTP + XML

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

POST /RegisterCallback HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<RegisterCallback xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoToLightAPI">
  <CallbackAuthorization>String</CallbackAuthorization>
  <CallbackPassword>String</CallbackPassword>
  <CallbackURL>String</CallbackURL>
  <CallbackUsername>String</CallbackUsername>
  <DetailLevel>0</DetailLevel>
  <Name>String</Name>
</RegisterCallback>