FIBUdataServiceStack

<back to all web services

OnlinehandelTreffertypenRequest

The following routes are available for this service:
GET, POST/fibuscan/OnlinehandelTreffertypen
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class onlinehandel_treffertypen implements IPrimaryKey, IMandnr, IDel, ITableBase, IConvertible
{
    int? id;
    String? guid;
    int? mandant;
    int? del;
    int? parent_id;
    int? soll_parsen;
    String? bezeichnung;
    DateTime? _erstellt;
    DateTime? _aenderung;
    int? suchfeld1;
    String? suchfeld1_text;
    int? suchfeld2;
    String? suchfeld2_text;
    // @Ignore()
    int? PrimaryKey;

    onlinehandel_treffertypen({this.id,this.guid,this.mandant,this.del,this.parent_id,this.soll_parsen,this.bezeichnung,this._erstellt,this._aenderung,this.suchfeld1,this.suchfeld1_text,this.suchfeld2,this.suchfeld2_text,this.PrimaryKey});
    onlinehandel_treffertypen.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        guid = json['guid'];
        mandant = json['mandant'];
        del = json['del'];
        parent_id = json['parent_id'];
        soll_parsen = json['soll_parsen'];
        bezeichnung = json['bezeichnung'];
        _erstellt = JsonConverters.fromJson(json['_erstellt'],'DateTime',context!);
        _aenderung = JsonConverters.fromJson(json['_aenderung'],'DateTime',context!);
        suchfeld1 = json['suchfeld1'];
        suchfeld1_text = json['suchfeld1_text'];
        suchfeld2 = json['suchfeld2'];
        suchfeld2_text = json['suchfeld2_text'];
        PrimaryKey = json['PrimaryKey'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'guid': guid,
        'mandant': mandant,
        'del': del,
        'parent_id': parent_id,
        'soll_parsen': soll_parsen,
        'bezeichnung': bezeichnung,
        '_erstellt': JsonConverters.toJson(_erstellt,'DateTime',context!),
        '_aenderung': JsonConverters.toJson(_aenderung,'DateTime',context!),
        'suchfeld1': suchfeld1,
        'suchfeld1_text': suchfeld1_text,
        'suchfeld2': suchfeld2,
        'suchfeld2_text': suchfeld2_text,
        'PrimaryKey': PrimaryKey
    };

    getTypeName() => "onlinehandel_treffertypen";
    TypeContext? context = _ctx;
}

class OnlinehandelTreffertypenResponse implements IConvertible
{
    List<onlinehandel_treffertypen>? Liste;

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

    fromMap(Map<String, dynamic> json) {
        Liste = JsonConverters.fromJson(json['Liste'],'List<onlinehandel_treffertypen>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Liste': JsonConverters.toJson(Liste,'List<onlinehandel_treffertypen>',context!)
    };

    getTypeName() => "OnlinehandelTreffertypenResponse";
    TypeContext? context = _ctx;
}

class OnlinehandelTreffertypenRequest implements IConvertible
{
    String? expression;
    int? limit;

    OnlinehandelTreffertypenRequest({this.expression,this.limit});
    OnlinehandelTreffertypenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

    getTypeName() => "OnlinehandelTreffertypenRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
    'onlinehandel_treffertypen': TypeInfo(TypeOf.Class, create:() => onlinehandel_treffertypen()),
    'OnlinehandelTreffertypenResponse': TypeInfo(TypeOf.Class, create:() => OnlinehandelTreffertypenResponse()),
    'List<onlinehandel_treffertypen>': TypeInfo(TypeOf.Class, create:() => <onlinehandel_treffertypen>[]),
    'OnlinehandelTreffertypenRequest': TypeInfo(TypeOf.Class, create:() => OnlinehandelTreffertypenRequest()),
});

Dart OnlinehandelTreffertypenRequest 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.

POST /fibuscan/OnlinehandelTreffertypen HTTP/1.1 
Host: ws4.fibudata.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<OnlinehandelTreffertypenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
  <expression>String</expression>
  <limit>0</limit>
</OnlinehandelTreffertypenRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<OnlinehandelTreffertypenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
  <Liste xmlns:d2p1="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Models">
    <d2p1:onlinehandel_treffertypen>
      <d2p1:PrimaryKey>0</d2p1:PrimaryKey>
      <d2p1:_aenderung>0001-01-01T00:00:00</d2p1:_aenderung>
      <d2p1:_erstellt>0001-01-01T00:00:00</d2p1:_erstellt>
      <d2p1:bezeichnung>String</d2p1:bezeichnung>
      <d2p1:del>0</d2p1:del>
      <d2p1:guid>String</d2p1:guid>
      <d2p1:id>0</d2p1:id>
      <d2p1:mandant>0</d2p1:mandant>
      <d2p1:parent_id>0</d2p1:parent_id>
      <d2p1:soll_parsen>0</d2p1:soll_parsen>
      <d2p1:suchfeld1>0</d2p1:suchfeld1>
      <d2p1:suchfeld1_text>String</d2p1:suchfeld1_text>
      <d2p1:suchfeld2>0</d2p1:suchfeld2>
      <d2p1:suchfeld2_text>String</d2p1:suchfeld2_text>
    </d2p1:onlinehandel_treffertypen>
  </Liste>
</OnlinehandelTreffertypenResponse>