| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CustomersInLineResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Customers>
<CustomerInLineObject>
<AdjustedSignInTime>0001-01-01T00:00:00</AdjustedSignInTime>
<Completed>false</Completed>
<CompletedTime>0001-01-01T00:00:00</CompletedTime>
<Description>String</Description>
<Employee>String</Employee>
<EmployeeId>00000000-0000-0000-0000-000000000000</EmployeeId>
<FullName>String</FullName>
<Id>00000000-0000-0000-0000-000000000000</Id>
<Line>String</Line>
<Name>String</Name>
<SendReminders>false</SendReminders>
<ServiceId>00000000-0000-0000-0000-000000000000</ServiceId>
<SignInTime>0001-01-01T00:00:00</SignInTime>
<StationId>00000000-0000-0000-0000-000000000000</StationId>
<StationName>String</StationName>
<Status>0</Status>
<TaskTime>0</TaskTime>
</CustomerInLineObject>
</Customers>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</CustomersInLineResponse>