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 .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'IEnumerable`1' using the custom 'csv' filter}Cannot dynamically create an instance of type 'System.Collections.Generic.IEnumerable`1[sfgboxapi.ServiceModel.TrackingLookupResponse]'. Reason: Cannot create an instance of an interface.