Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
GET POST | /eventDetails/Reference/{ReferenceId} | ||
---|---|---|---|
GET POST | /eventDetails/{Id} |
import 'package:servicestack/servicestack.dart';
class EventDetails implements IConvertible
{
int? id;
String? name;
String? description;
String? externalReference;
DateTime? timeOfEvent;
int? eventLocationId;
int? eventSeriesId;
int? eventOwnerId;
bool? eventActive;
String? eventOwnerName;
String? externalOwnerId;
String? teamAwayId;
String? teamAwayName;
String? eventSeriesName;
String? eventLocationName;
double? latitude;
double? longitude;
String? defaultValues;
String? externalReferenceType;
bool? eventSeriesActive;
String? allowedKsiCard;
String? seriesId;
bool? seriesShowByDefault;
bool? postponedNoDate;
String? awayTeamExternalId;
String? sportGenderId;
String? externalIdType;
bool? seriesEventSaleSuspended;
DateTime? seriesSaleSuspensionEventStartDate;
DateTime? seriesSaleSuspensionEventEndDate;
bool? saleIsActive;
bool? hideEvent;
String? imageUrl2;
String? directAccessCode;
String? imageUrl;
String? detailedDescription;
String? ownerImageUrl;
String? ownerImageUrl2;
bool? ownerCardsNotAllowed;
String? seatingImageUrl;
DateTime? endOfEvent;
DateTime? endOfEventUTC;
String? timeZone;
DateTime? timeOfEventUTC;
EventDetails({this.id,this.name,this.description,this.externalReference,this.timeOfEvent,this.eventLocationId,this.eventSeriesId,this.eventOwnerId,this.eventActive,this.eventOwnerName,this.externalOwnerId,this.teamAwayId,this.teamAwayName,this.eventSeriesName,this.eventLocationName,this.latitude,this.longitude,this.defaultValues,this.externalReferenceType,this.eventSeriesActive,this.allowedKsiCard,this.seriesId,this.seriesShowByDefault,this.postponedNoDate,this.awayTeamExternalId,this.sportGenderId,this.externalIdType,this.seriesEventSaleSuspended,this.seriesSaleSuspensionEventStartDate,this.seriesSaleSuspensionEventEndDate,this.saleIsActive,this.hideEvent,this.imageUrl2,this.directAccessCode,this.imageUrl,this.detailedDescription,this.ownerImageUrl,this.ownerImageUrl2,this.ownerCardsNotAllowed,this.seatingImageUrl,this.endOfEvent,this.endOfEventUTC,this.timeZone,this.timeOfEventUTC});
EventDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
description = json['description'];
externalReference = json['externalReference'];
timeOfEvent = JsonConverters.fromJson(json['timeOfEvent'],'DateTime',context!);
eventLocationId = json['eventLocationId'];
eventSeriesId = json['eventSeriesId'];
eventOwnerId = json['eventOwnerId'];
eventActive = json['eventActive'];
eventOwnerName = json['eventOwnerName'];
externalOwnerId = json['externalOwnerId'];
teamAwayId = json['teamAwayId'];
teamAwayName = json['teamAwayName'];
eventSeriesName = json['eventSeriesName'];
eventLocationName = json['eventLocationName'];
latitude = JsonConverters.toDouble(json['latitude']);
longitude = JsonConverters.toDouble(json['longitude']);
defaultValues = json['defaultValues'];
externalReferenceType = json['externalReferenceType'];
eventSeriesActive = json['eventSeriesActive'];
allowedKsiCard = json['allowedKsiCard'];
seriesId = json['seriesId'];
seriesShowByDefault = json['seriesShowByDefault'];
postponedNoDate = json['postponedNoDate'];
awayTeamExternalId = json['awayTeamExternalId'];
sportGenderId = json['sportGenderId'];
externalIdType = json['externalIdType'];
seriesEventSaleSuspended = json['seriesEventSaleSuspended'];
seriesSaleSuspensionEventStartDate = JsonConverters.fromJson(json['seriesSaleSuspensionEventStartDate'],'DateTime',context!);
seriesSaleSuspensionEventEndDate = JsonConverters.fromJson(json['seriesSaleSuspensionEventEndDate'],'DateTime',context!);
saleIsActive = json['saleIsActive'];
hideEvent = json['hideEvent'];
imageUrl2 = json['imageUrl2'];
directAccessCode = json['directAccessCode'];
imageUrl = json['imageUrl'];
detailedDescription = json['detailedDescription'];
ownerImageUrl = json['ownerImageUrl'];
ownerImageUrl2 = json['ownerImageUrl2'];
ownerCardsNotAllowed = json['ownerCardsNotAllowed'];
seatingImageUrl = json['seatingImageUrl'];
endOfEvent = JsonConverters.fromJson(json['endOfEvent'],'DateTime',context!);
endOfEventUTC = JsonConverters.fromJson(json['endOfEventUTC'],'DateTime',context!);
timeZone = json['timeZone'];
timeOfEventUTC = JsonConverters.fromJson(json['timeOfEventUTC'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'description': description,
'externalReference': externalReference,
'timeOfEvent': JsonConverters.toJson(timeOfEvent,'DateTime',context!),
'eventLocationId': eventLocationId,
'eventSeriesId': eventSeriesId,
'eventOwnerId': eventOwnerId,
'eventActive': eventActive,
'eventOwnerName': eventOwnerName,
'externalOwnerId': externalOwnerId,
'teamAwayId': teamAwayId,
'teamAwayName': teamAwayName,
'eventSeriesName': eventSeriesName,
'eventLocationName': eventLocationName,
'latitude': latitude,
'longitude': longitude,
'defaultValues': defaultValues,
'externalReferenceType': externalReferenceType,
'eventSeriesActive': eventSeriesActive,
'allowedKsiCard': allowedKsiCard,
'seriesId': seriesId,
'seriesShowByDefault': seriesShowByDefault,
'postponedNoDate': postponedNoDate,
'awayTeamExternalId': awayTeamExternalId,
'sportGenderId': sportGenderId,
'externalIdType': externalIdType,
'seriesEventSaleSuspended': seriesEventSaleSuspended,
'seriesSaleSuspensionEventStartDate': JsonConverters.toJson(seriesSaleSuspensionEventStartDate,'DateTime',context!),
'seriesSaleSuspensionEventEndDate': JsonConverters.toJson(seriesSaleSuspensionEventEndDate,'DateTime',context!),
'saleIsActive': saleIsActive,
'hideEvent': hideEvent,
'imageUrl2': imageUrl2,
'directAccessCode': directAccessCode,
'imageUrl': imageUrl,
'detailedDescription': detailedDescription,
'ownerImageUrl': ownerImageUrl,
'ownerImageUrl2': ownerImageUrl2,
'ownerCardsNotAllowed': ownerCardsNotAllowed,
'seatingImageUrl': seatingImageUrl,
'endOfEvent': JsonConverters.toJson(endOfEvent,'DateTime',context!),
'endOfEventUTC': JsonConverters.toJson(endOfEventUTC,'DateTime',context!),
'timeZone': timeZone,
'timeOfEventUTC': JsonConverters.toJson(timeOfEventUTC,'DateTime',context!)
};
getTypeName() => "EventDetails";
TypeContext? context = _ctx;
}
class GetEventDetails implements IConvertible
{
int? id;
String? referenceId;
GetEventDetails({this.id,this.referenceId});
GetEventDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
referenceId = json['referenceId'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'referenceId': referenceId
};
getTypeName() => "GetEventDetails";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
'EventDetails': TypeInfo(TypeOf.Class, create:() => EventDetails()),
'GetEventDetails': TypeInfo(TypeOf.Class, create:() => GetEventDetails()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /eventDetails/Reference/{ReferenceId} HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"id":0,"referenceId":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"id":0,"name":"String","description":"String","externalReference":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","eventLocationId":0,"eventSeriesId":0,"eventOwnerId":0,"eventActive":false,"eventOwnerName":"String","externalOwnerId":"String","teamAwayId":"String","teamAwayName":"String","eventSeriesName":"String","eventLocationName":"String","latitude":0,"longitude":0,"defaultValues":"String","externalReferenceType":"String","eventSeriesActive":false,"allowedKsiCard":"String","seriesId":"String","seriesShowByDefault":false,"postponedNoDate":false,"awayTeamExternalId":"String","sportGenderId":"String","externalIdType":"String","seriesEventSaleSuspended":false,"seriesSaleSuspensionEventStartDate":"0001-01-01T00:00:00.0000000","seriesSaleSuspensionEventEndDate":"0001-01-01T00:00:00.0000000","saleIsActive":false,"hideEvent":false,"imageUrl2":"String","directAccessCode":"String","imageUrl":"String","detailedDescription":"String","ownerImageUrl":"String","ownerImageUrl2":"String","ownerCardsNotAllowed":false,"seatingImageUrl":"String","endOfEvent":"0001-01-01T00:00:00.0000000","endOfEventUTC":"0001-01-01T00:00:00.0000000","timeZone":"String","timeOfEventUTC":"0001-01-01T00:00:00.0000000"}