| POST | /{Brand}/question/{TemplateGuid}/{QuestionGuid}/{PickListGuid}/listCheck | ||
|---|---|---|---|
| All Verbs | /{Brand}/question/{TemplateGuid}/{QuestionGuid}/{PickListGuid}/{listCount} | ||
| All Verbs | /{Brand}/question/{TemplateGuid}/{QuestionGuid}/{PickListGuid}/{listCount}/{searchString} |
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
enum Brand
{
Desktop,
Hp,
Kyocera,
NeaScan,
Samsung,
FujiXerox,
Ta,
Utax,
Epson,
ScanFront400,
Sharp,
Ricoh,
FujiFilm,
}
class DtoBase implements IConvertible
{
Brand? Brand;
DtoBase({this.Brand});
DtoBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Brand = JsonConverters.fromJson(json['Brand'],'Brand',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Brand': JsonConverters.toJson(Brand,'Brand',context!)
};
getTypeName() => "DtoBase";
TypeContext? context = _ctx;
}
class RequestBase extends DtoBase implements IConvertible
{
RequestBase();
RequestBase.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "RequestBase";
TypeContext? context = _ctx;
}
class QuestionRequestDto extends RequestBase implements IConvertible
{
String? TemplateGuid;
String? QuestionGuid;
String? Parent;
String? FolderBrowser;
QuestionRequestDto({this.TemplateGuid,this.QuestionGuid,this.Parent,this.FolderBrowser});
QuestionRequestDto.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
TemplateGuid = json['TemplateGuid'];
QuestionGuid = json['QuestionGuid'];
Parent = json['Parent'];
FolderBrowser = json['FolderBrowser'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'TemplateGuid': TemplateGuid,
'QuestionGuid': QuestionGuid,
'Parent': Parent,
'FolderBrowser': FolderBrowser
});
getTypeName() => "QuestionRequestDto";
TypeContext? context = _ctx;
}
class QuestionPickList extends QuestionRequestDto implements IConvertible
{
String? PickListGuid;
String? listCount;
String? searchString;
QuestionPickList({this.PickListGuid,this.listCount,this.searchString});
QuestionPickList.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
PickListGuid = json['PickListGuid'];
listCount = json['listCount'];
searchString = json['searchString'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'PickListGuid': PickListGuid,
'listCount': listCount,
'searchString': searchString
});
getTypeName() => "QuestionPickList";
TypeContext? context = _ctx;
}
class QuestionPickListValue extends QuestionPickList implements IConvertible
{
String? PickListSelectedValue;
QuestionPickListValue({this.PickListSelectedValue});
QuestionPickListValue.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
PickListSelectedValue = json['PickListSelectedValue'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'PickListSelectedValue': PickListSelectedValue
});
getTypeName() => "QuestionPickListValue";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'buildmax.org', types: <String, TypeInfo> {
'Brand': TypeInfo(TypeOf.Enum, enumValues:Brand.values),
'DtoBase': TypeInfo(TypeOf.Class, create:() => DtoBase()),
'RequestBase': TypeInfo(TypeOf.Class, create:() => RequestBase()),
'QuestionRequestDto': TypeInfo(TypeOf.Class, create:() => QuestionRequestDto()),
'QuestionPickList': TypeInfo(TypeOf.Class, create:() => QuestionPickList()),
'QuestionPickListValue': TypeInfo(TypeOf.Class, create:() => QuestionPickListValue()),
});
Dart QuestionPickListValue 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 /{Brand}/question/{TemplateGuid}/{QuestionGuid}/{PickListGuid}/listCheck HTTP/1.1
Host: buildmax.org
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<QuestionPickListValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ScannerVision.WebService.ServiceModel">
<Brand>Desktop</Brand>
<FolderBrowser>String</FolderBrowser>
<Parent>String</Parent>
<QuestionGuid>String</QuestionGuid>
<TemplateGuid>String</TemplateGuid>
<PickListGuid>String</PickListGuid>
<listCount>String</listCount>
<searchString>String</searchString>
<PickListSelectedValue>String</PickListSelectedValue>
</QuestionPickListValue>