| All Verbs | /RegisterCallback |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class RegisterCallback:
# @ApiMember(Description="Callback on which to get registered (e.g. SetPosition)")
name: Optional[str] = None
"""
Callback on which to get registered (e.g. SetPosition)
"""
# @ApiMember(Description="Callback URL")
callback_u_r_l: Optional[str] = None
"""
Callback URL
"""
# @ApiMember(Description="Optional: Callback username")
callback_username: Optional[str] = None
"""
Optional: Callback username
"""
# @ApiMember(Description="Optional: Callback password")
callback_password: Optional[str] = None
"""
Optional: Callback password
"""
# @ApiMember(Description="Optional: Callback authorization")
callback_authorization: Optional[str] = None
"""
Optional: Callback authorization
"""
# @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.")
detail_level: int = 0
"""
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.
"""
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Name":"String","CallbackURL":"String","CallbackUsername":"String","CallbackPassword":"String","CallbackAuthorization":"String","DetailLevel":0}