| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
| GET | /extraInfo/form/{EventId}/admin |
|---|
import 'package:servicestack/servicestack.dart';
class ExtraInfoFieldInfo implements IConvertible
{
int? id;
String? fieldKey;
String? fieldType;
String? labelIs;
String? labelEn;
String? placeholderIs;
String? placeholderEn;
bool? isRequired;
int? maxLength;
String? optionsJson;
String? scope;
int? sortOrder;
bool? isSystem;
bool? isActive;
bool? hasAnswers;
ExtraInfoFieldInfo({this.id,this.fieldKey,this.fieldType,this.labelIs,this.labelEn,this.placeholderIs,this.placeholderEn,this.isRequired,this.maxLength,this.optionsJson,this.scope,this.sortOrder,this.isSystem,this.isActive,this.hasAnswers});
ExtraInfoFieldInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
fieldKey = json['fieldKey'];
fieldType = json['fieldType'];
labelIs = json['labelIs'];
labelEn = json['labelEn'];
placeholderIs = json['placeholderIs'];
placeholderEn = json['placeholderEn'];
isRequired = json['isRequired'];
maxLength = json['maxLength'];
optionsJson = json['optionsJson'];
scope = json['scope'];
sortOrder = json['sortOrder'];
isSystem = json['isSystem'];
isActive = json['isActive'];
hasAnswers = json['hasAnswers'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'fieldKey': fieldKey,
'fieldType': fieldType,
'labelIs': labelIs,
'labelEn': labelEn,
'placeholderIs': placeholderIs,
'placeholderEn': placeholderEn,
'isRequired': isRequired,
'maxLength': maxLength,
'optionsJson': optionsJson,
'scope': scope,
'sortOrder': sortOrder,
'isSystem': isSystem,
'isActive': isActive,
'hasAnswers': hasAnswers
};
getTypeName() => "ExtraInfoFieldInfo";
TypeContext? context = _ctx;
}
class ExtraInfoFormResult implements IConvertible
{
int? eventId;
bool? showAlert;
String? alertTitleIs;
String? alertTitleEn;
String? alertBodyIs;
String? alertBodyEn;
String? alertButtonIs;
String? alertButtonEn;
bool? isDefault;
List<ExtraInfoFieldInfo>? fields;
ExtraInfoFormResult({this.eventId,this.showAlert,this.alertTitleIs,this.alertTitleEn,this.alertBodyIs,this.alertBodyEn,this.alertButtonIs,this.alertButtonEn,this.isDefault,this.fields});
ExtraInfoFormResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
eventId = json['eventId'];
showAlert = json['showAlert'];
alertTitleIs = json['alertTitleIs'];
alertTitleEn = json['alertTitleEn'];
alertBodyIs = json['alertBodyIs'];
alertBodyEn = json['alertBodyEn'];
alertButtonIs = json['alertButtonIs'];
alertButtonEn = json['alertButtonEn'];
isDefault = json['isDefault'];
fields = JsonConverters.fromJson(json['fields'],'List<ExtraInfoFieldInfo>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'eventId': eventId,
'showAlert': showAlert,
'alertTitleIs': alertTitleIs,
'alertTitleEn': alertTitleEn,
'alertBodyIs': alertBodyIs,
'alertBodyEn': alertBodyEn,
'alertButtonIs': alertButtonIs,
'alertButtonEn': alertButtonEn,
'isDefault': isDefault,
'fields': JsonConverters.toJson(fields,'List<ExtraInfoFieldInfo>',context!)
};
getTypeName() => "ExtraInfoFormResult";
TypeContext? context = _ctx;
}
class GetExtraInfoFormAdmin implements IConvertible
{
int? eventId;
GetExtraInfoFormAdmin({this.eventId});
GetExtraInfoFormAdmin.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
eventId = json['eventId'];
return this;
}
Map<String, dynamic> toJson() => {
'eventId': eventId
};
getTypeName() => "GetExtraInfoFormAdmin";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'ExtraInfoFieldInfo': TypeInfo(TypeOf.Class, create:() => ExtraInfoFieldInfo()),
'ExtraInfoFormResult': TypeInfo(TypeOf.Class, create:() => ExtraInfoFormResult()),
'List<ExtraInfoFieldInfo>': TypeInfo(TypeOf.Class, create:() => <ExtraInfoFieldInfo>[]),
'GetExtraInfoFormAdmin': TypeInfo(TypeOf.Class, create:() => GetExtraInfoFormAdmin()),
});
Dart GetExtraInfoFormAdmin 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 /extraInfo/form/{EventId}/admin HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
eventId: 0,
showAlert: False,
alertTitleIs: String,
alertTitleEn: String,
alertBodyIs: String,
alertBodyEn: String,
alertButtonIs: String,
alertButtonEn: String,
isDefault: False,
fields:
[
{
id: 0,
fieldKey: String,
fieldType: String,
labelIs: String,
labelEn: String,
placeholderIs: String,
placeholderEn: String,
isRequired: False,
maxLength: 0,
optionsJson: String,
scope: String,
sortOrder: 0,
isSystem: False,
isActive: False,
hasAnswers: False
}
]
}