TicketUserServices

<back to all web services

GetExtraInfoForm

The following routes are available for this service:
GET/extraInfo/form/{EventId}
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 GetExtraInfoForm implements IConvertible
{
    int? eventId;

    GetExtraInfoForm({this.eventId});
    GetExtraInfoForm.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        eventId = json['eventId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'eventId': eventId
    };

    getTypeName() => "GetExtraInfoForm";
    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>[]),
    'GetExtraInfoForm': TypeInfo(TypeOf.Class, create:() => GetExtraInfoForm()),
});

Dart GetExtraInfoForm DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /extraInfo/form/{EventId} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ExtraInfoFormResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <AlertBodyEn>String</AlertBodyEn>
  <AlertBodyIs>String</AlertBodyIs>
  <AlertButtonEn>String</AlertButtonEn>
  <AlertButtonIs>String</AlertButtonIs>
  <AlertTitleEn>String</AlertTitleEn>
  <AlertTitleIs>String</AlertTitleIs>
  <EventId>0</EventId>
  <Fields>
    <ExtraInfoFieldInfo>
      <FieldKey>String</FieldKey>
      <FieldType>String</FieldType>
      <HasAnswers>false</HasAnswers>
      <Id>0</Id>
      <IsActive>false</IsActive>
      <IsRequired>false</IsRequired>
      <IsSystem>false</IsSystem>
      <LabelEn>String</LabelEn>
      <LabelIs>String</LabelIs>
      <MaxLength>0</MaxLength>
      <OptionsJson>String</OptionsJson>
      <PlaceholderEn>String</PlaceholderEn>
      <PlaceholderIs>String</PlaceholderIs>
      <Scope>String</Scope>
      <SortOrder>0</SortOrder>
    </ExtraInfoFieldInfo>
  </Fields>
  <IsDefault>false</IsDefault>
  <ShowAlert>false</ShowAlert>
</ExtraInfoFormResult>