TicketUserServices

<back to all web services

EventOwnerTrackingDestinationsSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
POST/EventOwnerTrackingDestination/Search
import 'package:servicestack/servicestack.dart';

class EventOwnerTrackingDestination implements IConvertible
{
    int? id;
    int? eventOwnerId;
    // @StringLength(32)
    String? provider;

    // @StringLength(64)
    String? publicId;

    bool? serverSideEnabled;
    // @StringLength(32)
    String? testEventCode;

    bool? isActive;
    DateTime? createdAt;
    DateTime? lastChanged;

    EventOwnerTrackingDestination({this.id,this.eventOwnerId,this.provider,this.publicId,this.serverSideEnabled,this.testEventCode,this.isActive,this.createdAt,this.lastChanged});
    EventOwnerTrackingDestination.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        eventOwnerId = json['eventOwnerId'];
        provider = json['provider'];
        publicId = json['publicId'];
        serverSideEnabled = json['serverSideEnabled'];
        testEventCode = json['testEventCode'];
        isActive = json['isActive'];
        createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!);
        lastChanged = JsonConverters.fromJson(json['lastChanged'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'eventOwnerId': eventOwnerId,
        'provider': provider,
        'publicId': publicId,
        'serverSideEnabled': serverSideEnabled,
        'testEventCode': testEventCode,
        'isActive': isActive,
        'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!),
        'lastChanged': JsonConverters.toJson(lastChanged,'DateTime',context!)
    };

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

class EventOwnerTrackingDestinationsResult implements IConvertible
{
    List<EventOwnerTrackingDestination>? items;
    int? statusCode;
    String? message;

    EventOwnerTrackingDestinationsResult({this.items,this.statusCode,this.message});
    EventOwnerTrackingDestinationsResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        items = JsonConverters.fromJson(json['items'],'List<EventOwnerTrackingDestination>',context!);
        statusCode = json['statusCode'];
        message = json['message'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'items': JsonConverters.toJson(items,'List<EventOwnerTrackingDestination>',context!),
        'statusCode': statusCode,
        'message': message
    };

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

class EventOwnerTrackingDestinationsSearchRequest implements IConvertible
{
    int? eventOwnerId;
    String? provider;
    bool? isActive;

    EventOwnerTrackingDestinationsSearchRequest({this.eventOwnerId,this.provider,this.isActive});
    EventOwnerTrackingDestinationsSearchRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        eventOwnerId = json['eventOwnerId'];
        provider = json['provider'];
        isActive = json['isActive'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'eventOwnerId': eventOwnerId,
        'provider': provider,
        'isActive': isActive
    };

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

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'EventOwnerTrackingDestination': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestination()),
    'EventOwnerTrackingDestinationsResult': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestinationsResult()),
    'List<EventOwnerTrackingDestination>': TypeInfo(TypeOf.Class, create:() => <EventOwnerTrackingDestination>[]),
    'EventOwnerTrackingDestinationsSearchRequest': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestinationsSearchRequest()),
});

Dart EventOwnerTrackingDestinationsSearchRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /EventOwnerTrackingDestination/Search HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"eventOwnerId":0,"provider":"String","isActive":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"items":[{"id":0,"eventOwnerId":0,"provider":"String","publicId":"String","serverSideEnabled":false,"testEventCode":"String","isActive":false,"createdAt":"0001-01-01T00:00:00.0000000","lastChanged":"0001-01-01T00:00:00.0000000"}],"statusCode":0,"message":"String"}