| All Verbs | /CompanyLocations/Summary/{CompanyId} | ||
|---|---|---|---|
| All Verbs | /CompanyLocations/Summary/{CompanyId}/{UserId} |
import 'package:servicestack/servicestack.dart';
class LocationSummaryRequest implements IConvertible
{
int companyId = 0;
String? userId;
LocationSummaryRequest({this.companyId,this.userId});
LocationSummaryRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
companyId = json['companyId'];
userId = json['userId'];
return this;
}
Map<String, dynamic> toJson() => {
'companyId': companyId,
'userId': userId
};
getTypeName() => "LocationSummaryRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'cip_reporting_dev.chargeitpro.com', types: <String, TypeInfo> {
'LocationSummaryRequest': TypeInfo(TypeOf.Class, create:() => LocationSummaryRequest()),
});
Dart LocationSummaryRequest 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 /CompanyLocations/Summary/{CompanyId} HTTP/1.1
Host: cip-reporting-dev.chargeitpro.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"companyId":0,"userId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
[{"locationName":"String","locationKey":0,"count":0,"allCards":0,"allCC":0,"db":0,"vsmcdc":0,"ax":0,"vs":0,"mc":0,"dc":0,"jc":0,"cu":0,"xx":0,"deviceSummaries":[{"serialNumber":"String","count":0,"allCards":0,"allCC":0,"db":0,"vsmcdc":0,"ax":0,"vs":0,"mc":0,"dc":0,"jc":0,"cu":0,"xx":0}]}]