TicketUserServices

<back to all web services

EventPublishDueRequest

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

class EventPublishDueRequest implements IConvertible
{
    bool? preview;

    EventPublishDueRequest({this.preview});
    EventPublishDueRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'preview': preview
    };

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

class EventPublishDueResponse implements IConvertible
{
    int? count;
    List<int>? eventIds;

    EventPublishDueResponse({this.count,this.eventIds});
    EventPublishDueResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'EventPublishDueRequest': TypeInfo(TypeOf.Class, create:() => EventPublishDueRequest()),
    'EventPublishDueResponse': TypeInfo(TypeOf.Class, create:() => EventPublishDueResponse()),
});

Dart EventPublishDueRequest 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 /Event/PublishDue HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"preview":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"count":0,"eventIds":[0]}