| GET | /v1/CustomersInLine/{LocationId} | ||
|---|---|---|---|
| GET | /v1/CustomersInLine |
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class CustomerInLineObject implements IConvertible
{
String? Id;
String? Name;
String? FullName;
DateTime? SignInTime;
DateTime? AdjustedSignInTime;
int? Status;
int? TaskTime;
bool? Completed;
bool? SendReminders;
DateTime? CompletedTime;
String? EmployeeId;
String? Employee;
String? Line;
String? Description;
String? ServiceId;
String? StationId;
String? StationName;
CustomerInLineObject({this.Id,this.Name,this.FullName,this.SignInTime,this.AdjustedSignInTime,this.Status,this.TaskTime,this.Completed,this.SendReminders,this.CompletedTime,this.EmployeeId,this.Employee,this.Line,this.Description,this.ServiceId,this.StationId,this.StationName});
CustomerInLineObject.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Name = json['Name'];
FullName = json['FullName'];
SignInTime = JsonConverters.fromJson(json['SignInTime'],'DateTime',context!);
AdjustedSignInTime = JsonConverters.fromJson(json['AdjustedSignInTime'],'DateTime',context!);
Status = json['Status'];
TaskTime = json['TaskTime'];
Completed = json['Completed'];
SendReminders = json['SendReminders'];
CompletedTime = JsonConverters.fromJson(json['CompletedTime'],'DateTime',context!);
EmployeeId = json['EmployeeId'];
Employee = json['Employee'];
Line = json['Line'];
Description = json['Description'];
ServiceId = json['ServiceId'];
StationId = json['StationId'];
StationName = json['StationName'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Name': Name,
'FullName': FullName,
'SignInTime': JsonConverters.toJson(SignInTime,'DateTime',context!),
'AdjustedSignInTime': JsonConverters.toJson(AdjustedSignInTime,'DateTime',context!),
'Status': Status,
'TaskTime': TaskTime,
'Completed': Completed,
'SendReminders': SendReminders,
'CompletedTime': JsonConverters.toJson(CompletedTime,'DateTime',context!),
'EmployeeId': EmployeeId,
'Employee': Employee,
'Line': Line,
'Description': Description,
'ServiceId': ServiceId,
'StationId': StationId,
'StationName': StationName
};
getTypeName() => "CustomerInLineObject";
TypeContext? context = _ctx;
}
class CustomersInLineResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<CustomerInLineObject>? Customers = [];
CustomersInLineResponse({this.ResponseStatus,this.Customers});
CustomersInLineResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
Customers = JsonConverters.fromJson(json['Customers'],'List<CustomerInLineObject>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'Customers': JsonConverters.toJson(Customers,'List<CustomerInLineObject>',context!)
};
getTypeName() => "CustomersInLineResponse";
TypeContext? context = _ctx;
}
class CustomersInLine implements IConvertible
{
String? ApiKey;
String? LocationId;
bool? clientIsLoading;
CustomersInLine({this.ApiKey,this.LocationId,this.clientIsLoading});
CustomersInLine.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ApiKey = json['ApiKey'];
LocationId = json['LocationId'];
clientIsLoading = json['clientIsLoading'];
return this;
}
Map<String, dynamic> toJson() => {
'ApiKey': ApiKey,
'LocationId': LocationId,
'clientIsLoading': clientIsLoading
};
getTypeName() => "CustomersInLine";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'CustomerInLineObject': TypeInfo(TypeOf.Class, create:() => CustomerInLineObject()),
'CustomersInLineResponse': TypeInfo(TypeOf.Class, create:() => CustomersInLineResponse()),
'List<CustomerInLineObject>': TypeInfo(TypeOf.Class, create:() => <CustomerInLineObject>[]),
'CustomersInLine': TypeInfo(TypeOf.Class, create:() => CustomersInLine()),
});
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 /v1/CustomersInLine/{LocationId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Customers:
[
{
Id: 00000000000000000000000000000000,
Name: String,
FullName: String,
SignInTime: 0001-01-01,
AdjustedSignInTime: 0001-01-01,
Status: 0,
TaskTime: 0,
Completed: False,
SendReminders: False,
CompletedTime: 0001-01-01,
EmployeeId: 00000000000000000000000000000000,
Employee: String,
Line: String,
Description: String,
ServiceId: 00000000000000000000000000000000,
StationId: 00000000000000000000000000000000,
StationName: String
}
]
}