Trendsic Platform Service

<back to all web services

PageLogRequest

Requires Authentication
Requires any of the roles:Worker, Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/PageLog
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class PageLogResponse implements IConvertible
{
    bool? Success;
    ResponseStatus? ResponseStatus;

    PageLogResponse({this.Success,this.ResponseStatus});
    PageLogResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Success = json['Success'];
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Success': Success,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

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

class PageLog implements IConvertible
{
    int? AgentId;
    String? PageName;
    int? Direction;

    PageLog({this.AgentId,this.PageName,this.Direction});
    PageLog.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        AgentId = json['AgentId'];
        PageName = json['PageName'];
        Direction = json['Direction'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'AgentId': AgentId,
        'PageName': PageName,
        'Direction': Direction
    };

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

class PageLogRequest implements IConvertible
{
    PageLog? PageLog;

    PageLogRequest({this.PageLog});
    PageLogRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        PageLog = JsonConverters.fromJson(json['PageLog'],'PageLog',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'PageLog': JsonConverters.toJson(PageLog,'PageLog',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'PageLogResponse': TypeInfo(TypeOf.Class, create:() => PageLogResponse()),
    'PageLog': TypeInfo(TypeOf.Class, create:() => PageLog()),
    'PageLogRequest': TypeInfo(TypeOf.Class, create:() => PageLogRequest()),
});

Dart PageLogRequest 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.

POST /v1/PageLog HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"PageLog":{"AgentId":0,"PageName":"String","Direction":0}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Success":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}