TicketUserServices

<back to all web services

EventsSearchIdsRequest

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

class EventIdsResult implements IConvertible
{
    List<int>? ids;
    int? statusCode;
    String? message;

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

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

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

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

class EventsSearchIdsRequest implements IConvertible
{
    String? name;
    String? externalID;
    String? externalIdType;

    EventsSearchIdsRequest({this.name,this.externalID,this.externalIdType});
    EventsSearchIdsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        name = json['name'];
        externalID = json['externalID'];
        externalIdType = json['externalIdType'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'name': name,
        'externalID': externalID,
        'externalIdType': externalIdType
    };

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

TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
    'EventIdsResult': TypeInfo(TypeOf.Class, create:() => EventIdsResult()),
    'EventsSearchIdsRequest': TypeInfo(TypeOf.Class, create:() => EventsSearchIdsRequest()),
});

Dart EventsSearchIdsRequest 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 /Event/SearchIds/ HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EventsSearchIdsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <ExternalID>String</ExternalID>
  <ExternalIdType>String</ExternalIdType>
  <Name>String</Name>
</EventsSearchIdsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventIdsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </Ids>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
</EventIdsResult>