| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| GET | /Events/InSameSeries/{EventId} |
|---|
import 'package:servicestack/servicestack.dart';
class EventInSeriesSummary implements IConvertible
{
int? id;
String? name;
DateTime? timeOfEvent;
bool? eventActive;
EventInSeriesSummary({this.id,this.name,this.timeOfEvent,this.eventActive});
EventInSeriesSummary.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
timeOfEvent = JsonConverters.fromJson(json['timeOfEvent'],'DateTime',context!);
eventActive = json['eventActive'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'timeOfEvent': JsonConverters.toJson(timeOfEvent,'DateTime',context!),
'eventActive': eventActive
};
getTypeName() => "EventInSeriesSummary";
TypeContext? context = _ctx;
}
class EventsInSameSeriesResult implements IConvertible
{
int? statusCode;
String? message;
int? eventSeriesId;
List<EventInSeriesSummary>? events;
EventsInSameSeriesResult({this.statusCode,this.message,this.eventSeriesId,this.events});
EventsInSameSeriesResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
statusCode = json['statusCode'];
message = json['message'];
eventSeriesId = json['eventSeriesId'];
events = JsonConverters.fromJson(json['events'],'List<EventInSeriesSummary>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'statusCode': statusCode,
'message': message,
'eventSeriesId': eventSeriesId,
'events': JsonConverters.toJson(events,'List<EventInSeriesSummary>',context!)
};
getTypeName() => "EventsInSameSeriesResult";
TypeContext? context = _ctx;
}
class EventsInSameSeriesRequest implements IConvertible
{
int? eventId;
EventsInSameSeriesRequest({this.eventId});
EventsInSameSeriesRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
eventId = json['eventId'];
return this;
}
Map<String, dynamic> toJson() => {
'eventId': eventId
};
getTypeName() => "EventsInSameSeriesRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'EventInSeriesSummary': TypeInfo(TypeOf.Class, create:() => EventInSeriesSummary()),
'EventsInSameSeriesResult': TypeInfo(TypeOf.Class, create:() => EventsInSameSeriesResult()),
'List<EventInSeriesSummary>': TypeInfo(TypeOf.Class, create:() => <EventInSeriesSummary>[]),
'EventsInSameSeriesRequest': TypeInfo(TypeOf.Class, create:() => EventsInSameSeriesRequest()),
});
Dart EventsInSameSeriesRequest 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.
GET /Events/InSameSeries/{EventId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
statusCode: 0,
message: String,
eventSeriesId: 0,
events:
[
{
id: 0,
name: String,
timeOfEvent: 0001-01-01,
eventActive: False
}
]
}