| All Verbs | /query/inter_livraisons |
|---|
import 'package:servicestack/servicestack.dart';
// @DataContract
abstract class QueryBase
{
// @DataMember(Order=1)
int? skip;
// @DataMember(Order=2)
int? take;
// @DataMember(Order=3)
String? orderBy;
// @DataMember(Order=4)
String? orderByDesc;
// @DataMember(Order=5)
String? include;
// @DataMember(Order=6)
String? fields;
// @DataMember(Order=7)
Map<String,String?>? meta;
QueryBase({this.skip,this.take,this.orderBy,this.orderByDesc,this.include,this.fields,this.meta});
QueryBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
skip = json['skip'];
take = json['take'];
orderBy = json['orderBy'];
orderByDesc = json['orderByDesc'];
include = json['include'];
fields = json['fields'];
meta = JsonConverters.toStringMap(json['meta']);
return this;
}
Map<String, dynamic> toJson() => {
'skip': skip,
'take': take,
'orderBy': orderBy,
'orderByDesc': orderByDesc,
'include': include,
'fields': fields,
'meta': meta
};
getTypeName() => "QueryBase";
TypeContext? context = _ctx;
}
abstract class QueryDb<T> extends QueryBase
{
QueryDb();
QueryDb.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() => "QueryDb<$T>";
TypeContext? context = _ctx;
}
class SecuredQueryDb<T> extends QueryDb<T> implements IConvertible
{
SecuredQueryDb();
SecuredQueryDb.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() => "SecuredQueryDb<$T>";
TypeContext? context = _ctx;
}
class inter_livraisons implements IConvertible
{
String? id_operateur;
String? id_tournee;
String? date;
double? latitude;
double? longitude;
String? id_client_termine;
int? satisfaction;
String? id_client_suivant;
String? signature;
inter_livraisons({this.id_operateur,this.id_tournee,this.date,this.latitude,this.longitude,this.id_client_termine,this.satisfaction,this.id_client_suivant,this.signature});
inter_livraisons.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
date = json['date'];
latitude = JsonConverters.toDouble(json['latitude']);
longitude = JsonConverters.toDouble(json['longitude']);
id_client_termine = json['id_client_termine'];
satisfaction = json['satisfaction'];
id_client_suivant = json['id_client_suivant'];
signature = json['signature'];
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'date': date,
'latitude': latitude,
'longitude': longitude,
'id_client_termine': id_client_termine,
'satisfaction': satisfaction,
'id_client_suivant': id_client_suivant,
'signature': signature
};
getTypeName() => "inter_livraisons";
TypeContext? context = _ctx;
}
class query_inter_livraisons extends SecuredQueryDb<inter_livraisons> implements IConvertible
{
String? tourneesId;
query_inter_livraisons({this.tourneesId});
query_inter_livraisons.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
tourneesId = json['tourneesId'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'tourneesId': tourneesId
});
getTypeName() => "query_inter_livraisons";
TypeContext? context = _ctx;
}
class tournees implements IConvertible
{
String? id_operateur;
String? id_tournee;
String? libelle;
tournees({this.id_operateur,this.id_tournee,this.libelle});
tournees.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
libelle = json['libelle'];
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'libelle': libelle
};
getTypeName() => "tournees";
TypeContext? context = _ctx;
}
// @DataContract
class QueryResponse<tournees> implements IConvertible
{
// @DataMember(Order=1)
int? offset;
// @DataMember(Order=2)
int? total;
// @DataMember(Order=3)
List<tournees>? results;
// @DataMember(Order=4)
Map<String,String?>? meta;
// @DataMember(Order=5)
ResponseStatus? responseStatus;
QueryResponse({this.offset,this.total,this.results,this.meta,this.responseStatus});
QueryResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
offset = json['offset'];
total = json['total'];
results = JsonConverters.fromJson(json['results'],'List<${runtimeGenericTypeDefs(this,[0]).join(",")}>',context!);
meta = JsonConverters.toStringMap(json['meta']);
responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'offset': offset,
'total': total,
'results': JsonConverters.toJson(results,'List<tournees>',context!),
'meta': meta,
'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
};
getTypeName() => "QueryResponse<$tournees>";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'freemotion_staging.milliet.paris', types: <String, TypeInfo> {
'SecuredQueryDb<T>': TypeInfo(TypeOf.Class, create:() => SecuredQueryDb<T>()),
'List<T>': TypeInfo(TypeOf.Class, create:() => <T>[]),
'inter_livraisons': TypeInfo(TypeOf.Class, create:() => inter_livraisons()),
'query_inter_livraisons': TypeInfo(TypeOf.Class, create:() => query_inter_livraisons()),
'tournees': TypeInfo(TypeOf.Class, create:() => tournees()),
'QueryResponse<tournees>': TypeInfo(TypeOf.Class, create:() => QueryResponse<tournees>()),
});
Dart query_inter_livraisons DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /query/inter_livraisons HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: application/json
Content-Type: application/json
Content-Length: length
{"tourneesId":"String","skip":0,"take":0,"orderBy":"String","orderByDesc":"String","include":"String","fields":"String","meta":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"offset":0,"total":0,"results":[{"id_operateur":"String","id_tournee":"String","date":"String","latitude":0,"longitude":0,"id_client_termine":"String","satisfaction":0,"id_client_suivant":"String","signature":"String"}],"meta":{"String":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}