| GET | /pulsit/modulestatus |
|---|
import 'package:servicestack/servicestack.dart';
class ApiServiceRequest implements IServiceRequest, IHasApiKey, IConvertible
{
/**
* The API Key required for authentication
*/
// @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true)
String? ApiKey;
ApiServiceRequest({this.ApiKey});
ApiServiceRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ApiKey = json['ApiKey'];
return this;
}
Map<String, dynamic> toJson() => {
'ApiKey': ApiKey
};
getTypeName() => "ApiServiceRequest";
TypeContext? context = _ctx;
}
class ApiServiceResponse implements IServiceResponse, IConvertible
{
String? Description;
String? Heading;
bool? WasSuccessful;
dynamic? ModelState;
ApiServiceResponse({this.Description,this.Heading,this.WasSuccessful,this.ModelState});
ApiServiceResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Description = json['Description'];
Heading = json['Heading'];
WasSuccessful = json['WasSuccessful'];
ModelState = JsonConverters.fromJson(json['ModelState'],'dynamic',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Description': Description,
'Heading': Heading,
'WasSuccessful': WasSuccessful,
'ModelState': JsonConverters.toJson(ModelState,'dynamic',context!)
};
getTypeName() => "ApiServiceResponse";
TypeContext? context = _ctx;
}
class PulsitModuleStatusItem implements IConvertible
{
String? PulsitModuleId;
double? Latitude;
double? Longitude;
String? EventDescription;
DateTime? EventTime;
String? Status;
int? PulsitStartId;
PulsitModuleStatusItem({this.PulsitModuleId,this.Latitude,this.Longitude,this.EventDescription,this.EventTime,this.Status,this.PulsitStartId});
PulsitModuleStatusItem.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
PulsitModuleId = json['PulsitModuleId'];
Latitude = JsonConverters.toDouble(json['Latitude']);
Longitude = JsonConverters.toDouble(json['Longitude']);
EventDescription = json['EventDescription'];
EventTime = JsonConverters.fromJson(json['EventTime'],'DateTime',context!);
Status = json['Status'];
PulsitStartId = json['PulsitStartId'];
return this;
}
Map<String, dynamic> toJson() => {
'PulsitModuleId': PulsitModuleId,
'Latitude': Latitude,
'Longitude': Longitude,
'EventDescription': EventDescription,
'EventTime': JsonConverters.toJson(EventTime,'DateTime',context!),
'Status': Status,
'PulsitStartId': PulsitStartId
};
getTypeName() => "PulsitModuleStatusItem";
TypeContext? context = _ctx;
}
class PulsitModuleStatusResponse extends ApiServiceResponse implements IConvertible
{
List<PulsitModuleStatusItem>? ModuleStatuses;
PulsitModuleStatusResponse({this.ModuleStatuses});
PulsitModuleStatusResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
ModuleStatuses = JsonConverters.fromJson(json['ModuleStatuses'],'List<PulsitModuleStatusItem>',context!);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'ModuleStatuses': JsonConverters.toJson(ModuleStatuses,'List<PulsitModuleStatusItem>',context!)
});
getTypeName() => "PulsitModuleStatusResponse";
TypeContext? context = _ctx;
}
class PulsitModuleStatusRequest extends ApiServiceRequest implements IConvertible
{
List<String>? PulsitModuleIds;
PulsitModuleStatusRequest({this.PulsitModuleIds});
PulsitModuleStatusRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
PulsitModuleIds = JsonConverters.fromJson(json['PulsitModuleIds'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'PulsitModuleIds': JsonConverters.toJson(PulsitModuleIds,'List<String>',context!)
});
getTypeName() => "PulsitModuleStatusRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'galaxymobile.api.client.prod.86degrees.com', types: <String, TypeInfo> {
'ApiServiceRequest': TypeInfo(TypeOf.Class, create:() => ApiServiceRequest()),
'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()),
'PulsitModuleStatusItem': TypeInfo(TypeOf.Class, create:() => PulsitModuleStatusItem()),
'PulsitModuleStatusResponse': TypeInfo(TypeOf.Class, create:() => PulsitModuleStatusResponse()),
'List<PulsitModuleStatusItem>': TypeInfo(TypeOf.Class, create:() => <PulsitModuleStatusItem>[]),
'PulsitModuleStatusRequest': TypeInfo(TypeOf.Class, create:() => PulsitModuleStatusRequest()),
});
Dart PulsitModuleStatusRequest 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.
GET /pulsit/modulestatus HTTP/1.1 Host: galaxymobile.api.client.prod.86degrees.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ModuleStatuses":[{"PulsitModuleId":"String","Latitude":0,"Longitude":0,"EventDescription":"String","EventTime":"0001-01-01T00:00:00.0000000","Status":"String","PulsitStartId":0}],"Description":"String","Heading":"String","WasSuccessful":false,"ModelState":{}}