Trendsic Platform Service

<back to all web services

AgentReminderRequest

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

class Reminder implements IConvertible
{
    String? ReminderId;
    String? TableName;
    String? FieldName;
    int? RecordId;
    DateTime? ReminderDate;
    String? ReminderNote;
    DateTime? CreatedDate;
    String? CreatedBy;
    DateTime? CompletedDate;

    Reminder({this.ReminderId,this.TableName,this.FieldName,this.RecordId,this.ReminderDate,this.ReminderNote,this.CreatedDate,this.CreatedBy,this.CompletedDate});
    Reminder.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ReminderId = json['ReminderId'];
        TableName = json['TableName'];
        FieldName = json['FieldName'];
        RecordId = json['RecordId'];
        ReminderDate = JsonConverters.fromJson(json['ReminderDate'],'DateTime',context!);
        ReminderNote = json['ReminderNote'];
        CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!);
        CreatedBy = json['CreatedBy'];
        CompletedDate = JsonConverters.fromJson(json['CompletedDate'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ReminderId': ReminderId,
        'TableName': TableName,
        'FieldName': FieldName,
        'RecordId': RecordId,
        'ReminderDate': JsonConverters.toJson(ReminderDate,'DateTime',context!),
        'ReminderNote': ReminderNote,
        'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!),
        'CreatedBy': CreatedBy,
        'CompletedDate': JsonConverters.toJson(CompletedDate,'DateTime',context!)
    };

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

class ReminderExtended extends Reminder implements IConvertible
{
    String? AgentName;
    String? RecordAgentName;
    int? RecordAgentID;
    bool? IsAdmin;
    int? AgentID;

    ReminderExtended({this.AgentName,this.RecordAgentName,this.RecordAgentID,this.IsAdmin,this.AgentID});
    ReminderExtended.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        AgentName = json['AgentName'];
        RecordAgentName = json['RecordAgentName'];
        RecordAgentID = json['RecordAgentID'];
        IsAdmin = json['IsAdmin'];
        AgentID = json['AgentID'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'AgentName': AgentName,
        'RecordAgentName': RecordAgentName,
        'RecordAgentID': RecordAgentID,
        'IsAdmin': IsAdmin,
        'AgentID': AgentID
    });

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

class ReminderResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<ReminderExtended>? Reminder = [];

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

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

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

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

class AgentReminderRequest implements IConvertible
{
    bool? IsAdmin;
    String? ReminderType;

    AgentReminderRequest({this.IsAdmin,this.ReminderType});
    AgentReminderRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        IsAdmin = json['IsAdmin'];
        ReminderType = json['ReminderType'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'IsAdmin': IsAdmin,
        'ReminderType': ReminderType
    };

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

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

Dart AgentReminderRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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

GET /v1/AgentReminder HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ReminderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Reminder>
    <ReminderExtended>
      <CompletedDate>0001-01-01T00:00:00</CompletedDate>
      <CreatedBy>String</CreatedBy>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <FieldName>String</FieldName>
      <RecordId>0</RecordId>
      <ReminderDate>0001-01-01T00:00:00</ReminderDate>
      <ReminderId>00000000-0000-0000-0000-000000000000</ReminderId>
      <ReminderNote>String</ReminderNote>
      <TableName>String</TableName>
      <AgentID>0</AgentID>
      <AgentName>String</AgentName>
      <IsAdmin>false</IsAdmin>
      <RecordAgentID>0</RecordAgentID>
      <RecordAgentName>String</RecordAgentName>
    </ReminderExtended>
  </Reminder>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</ReminderResponse>