sfgboxapi

<back to all web services

TrackingLookup

Requires Authentication
The following routes are available for this service:
GET/tracking
import 'package:servicestack/servicestack.dart';

// @DataContract
class TrackingLookup implements IConvertible
{
    // @DataMember(Order=2)
    int? tenantsId;

    // @DataMember(Order=3)
    int? appUserId;

    // @DataMember(Order=4)
    int? mediaId;

    // @DataMember(Order=5)
    int? mediaPercentage;

    // @DataMember(Order=6)
    int? score;

    // @DataMember(Order=7)
    String? menuItems;

    // @DataMember(Order=8)
    String? entities;

    // @DataMember(Order=9)
    String? ipAddresses;

    // @DataMember(Order=10)
    String? country;

    // @DataMember(Order=11)
    DateTime? accessDateTime;

    TrackingLookup({this.tenantsId,this.appUserId,this.mediaId,this.mediaPercentage,this.score,this.menuItems,this.entities,this.ipAddresses,this.country,this.accessDateTime});
    TrackingLookup.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'];
        ipAddresses = json['ipAddresses'];
        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,
        'ipAddresses': ipAddresses,
        'country': country,
        'accessDateTime': JsonConverters.toJson(accessDateTime,'DateTime',context!)
    };

    getTypeName() => "TrackingLookup";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: <String, TypeInfo> {
    'TrackingLookup': TypeInfo(TypeOf.Class, create:() => TrackingLookup()),
});

Dart TrackingLookup 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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /tracking HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[{"tenantsId":0,"appUserId":0,"mediaId":0,"mediaPercentage":0,"score":0,"menuItems":"String","entities":"String","ipAddresses":"String","country":"String","accessDateTime":"\/Date(-62135596800000-0000)\/","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}]