| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
| POST | /EventOwnerTrackingDestination |
|---|
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 EventOwnerTrackingDestinationResult implements IConvertible
{
EventOwnerTrackingDestination? item;
int? statusCode;
String? message;
EventOwnerTrackingDestinationResult({this.item,this.statusCode,this.message});
EventOwnerTrackingDestinationResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
item = JsonConverters.fromJson(json['item'],'EventOwnerTrackingDestination',context!);
statusCode = json['statusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'item': JsonConverters.toJson(item,'EventOwnerTrackingDestination',context!),
'statusCode': statusCode,
'message': message
};
getTypeName() => "EventOwnerTrackingDestinationResult";
TypeContext? context = _ctx;
}
class EventOwnerTrackingDestinationCreateRequest implements IConvertible
{
EventOwnerTrackingDestination? item;
EventOwnerTrackingDestinationCreateRequest({this.item});
EventOwnerTrackingDestinationCreateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
item = JsonConverters.fromJson(json['item'],'EventOwnerTrackingDestination',context!);
return this;
}
Map<String, dynamic> toJson() => {
'item': JsonConverters.toJson(item,'EventOwnerTrackingDestination',context!)
};
getTypeName() => "EventOwnerTrackingDestinationCreateRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'EventOwnerTrackingDestination': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestination()),
'EventOwnerTrackingDestinationResult': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestinationResult()),
'EventOwnerTrackingDestinationCreateRequest': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestinationCreateRequest()),
});
Dart EventOwnerTrackingDestinationCreateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /EventOwnerTrackingDestination HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<EventOwnerTrackingDestinationCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
<d2p1:EventOwnerId>0</d2p1:EventOwnerId>
<d2p1:ID>0</d2p1:ID>
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:LastChanged>0001-01-01T00:00:00</d2p1:LastChanged>
<d2p1:Provider>String</d2p1:Provider>
<d2p1:PublicId>String</d2p1:PublicId>
<d2p1:ServerSideEnabled>false</d2p1:ServerSideEnabled>
<d2p1:TestEventCode>String</d2p1:TestEventCode>
</Item>
</EventOwnerTrackingDestinationCreateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<EventOwnerTrackingDestinationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
<d2p1:EventOwnerId>0</d2p1:EventOwnerId>
<d2p1:ID>0</d2p1:ID>
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:LastChanged>0001-01-01T00:00:00</d2p1:LastChanged>
<d2p1:Provider>String</d2p1:Provider>
<d2p1:PublicId>String</d2p1:PublicId>
<d2p1:ServerSideEnabled>false</d2p1:ServerSideEnabled>
<d2p1:TestEventCode>String</d2p1:TestEventCode>
</Item>
<Message>String</Message>
<StatusCode>0</StatusCode>
</EventOwnerTrackingDestinationResult>