| POST | /trackinglog |
|---|
import 'package:servicestack/servicestack.dart';
class TrackingLog implements IConvertible
{
int? tenantsId;
int? appUserId;
int? mediaId;
int? mediaPercentage;
int? score;
String? menuItems;
String? entities;
String? ipAddress;
String? country;
DateTime? accessDateTime;
TrackingLog({this.tenantsId,this.appUserId,this.mediaId,this.mediaPercentage,this.score,this.menuItems,this.entities,this.ipAddress,this.country,this.accessDateTime});
TrackingLog.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
tenantsId = json['tenantsId'];
appUserId = json['appUserId'];
mediaId = json['mediaId'];
mediaPercentage = json['mediaPercentage'];
score = json['score'];
menuItems = json['menuItems'];
entities = json['entities'];
ipAddress = json['ipAddress'];
country = json['country'];
accessDateTime = JsonConverters.fromJson(json['accessDateTime'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'tenantsId': tenantsId,
'appUserId': appUserId,
'mediaId': mediaId,
'mediaPercentage': mediaPercentage,
'score': score,
'menuItems': menuItems,
'entities': entities,
'ipAddress': ipAddress,
'country': country,
'accessDateTime': JsonConverters.toJson(accessDateTime,'DateTime',context!)
};
getTypeName() => "TrackingLog";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: <String, TypeInfo> {
'TrackingLog': TypeInfo(TypeOf.Class, create:() => TrackingLog()),
});
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 /trackinglog HTTP/1.1
Host: sfgboxapi.dev.scadsoftware.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"tenantsId":0,"appUserId":0,"mediaId":0,"mediaPercentage":0,"score":0,"menuItems":"String","entities":"String","ipAddress":"String","country":"String","accessDateTime":"\/Date(-62135596800000-0000)\/"}