Trendsic Platform Service

<back to all web services

ActivityTrackerReportRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/ActivityTracker/Report/{StartDate}/{EndDate}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class ActivityTracker_Report implements IConvertible
{
    String? AgentName;
    int? SetAppt;
    int? FirstAppt;
    int? FollowAppt;
    int? FirstContact;
    int? Referral;
    int? ClientUpdate;
    int? SecondAppointment;
    int? Appl;
    double? LifeAP;
    double? AnnuityFlow;
    double? AnnuityTransfer;

    ActivityTracker_Report({this.AgentName,this.SetAppt,this.FirstAppt,this.FollowAppt,this.FirstContact,this.Referral,this.ClientUpdate,this.SecondAppointment,this.Appl,this.LifeAP,this.AnnuityFlow,this.AnnuityTransfer});
    ActivityTracker_Report.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        AgentName = json['AgentName'];
        SetAppt = json['SetAppt'];
        FirstAppt = json['FirstAppt'];
        FollowAppt = json['FollowAppt'];
        FirstContact = json['FirstContact'];
        Referral = json['Referral'];
        ClientUpdate = json['ClientUpdate'];
        SecondAppointment = json['SecondAppointment'];
        Appl = json['Appl'];
        LifeAP = JsonConverters.toDouble(json['LifeAP']);
        AnnuityFlow = JsonConverters.toDouble(json['AnnuityFlow']);
        AnnuityTransfer = JsonConverters.toDouble(json['AnnuityTransfer']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'AgentName': AgentName,
        'SetAppt': SetAppt,
        'FirstAppt': FirstAppt,
        'FollowAppt': FollowAppt,
        'FirstContact': FirstContact,
        'Referral': Referral,
        'ClientUpdate': ClientUpdate,
        'SecondAppointment': SecondAppointment,
        'Appl': Appl,
        'LifeAP': LifeAP,
        'AnnuityFlow': AnnuityFlow,
        'AnnuityTransfer': AnnuityTransfer
    };

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

class ActivityTrackerReportResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<ActivityTracker_Report>? ReportData = [];

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

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

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

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

class ActivityTrackerReportRequest implements IConvertible
{
    DateTime? StartDate;
    DateTime? EndDate;

    ActivityTrackerReportRequest({this.StartDate,this.EndDate});
    ActivityTrackerReportRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'ActivityTracker_Report': TypeInfo(TypeOf.Class, create:() => ActivityTracker_Report()),
    'ActivityTrackerReportResponse': TypeInfo(TypeOf.Class, create:() => ActivityTrackerReportResponse()),
    'List<ActivityTracker_Report>': TypeInfo(TypeOf.Class, create:() => <ActivityTracker_Report>[]),
    'ActivityTrackerReportRequest': TypeInfo(TypeOf.Class, create:() => ActivityTrackerReportRequest()),
});

Dart ActivityTrackerReportRequest 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 /v1/ActivityTracker/Report/{StartDate}/{EndDate} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ReportData":[{"AgentName":"String","SetAppt":0,"FirstAppt":0,"FollowAppt":0,"FirstContact":0,"Referral":0,"ClientUpdate":0,"SecondAppointment":0,"Appl":0,"LifeAP":0,"AnnuityFlow":0,"AnnuityTransfer":0}]}