| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
| 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 .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
eventOwnerId: 0,
provider: String,
isActive: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
items:
[
{
id: 0,
eventOwnerId: 0,
provider: String,
publicId: String,
serverSideEnabled: False,
testEventCode: String,
isActive: False,
createdAt: 0001-01-01,
lastChanged: 0001-01-01
}
],
statusCode: 0,
message: String
}