Trendsic Platform Service

<back to all web services

PeraContactTrackingRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/Report/PeraContactTracking/{ParamStartDate}/{ParamEndDate}/{AgentID}
GET,OPTIONS/v1/Report/PeraContactTracking/{ParamStartDate}/{ParamEndDate}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class PeraContactTrackingRequest
    {
        public Date ParamStartDate = null;
        public Date ParamEndDate = null;
        public Integer AgentID = null;
        
        public Date getParamStartDate() { return ParamStartDate; }
        public PeraContactTrackingRequest setParamStartDate(Date value) { this.ParamStartDate = value; return this; }
        public Date getParamEndDate() { return ParamEndDate; }
        public PeraContactTrackingRequest setParamEndDate(Date value) { this.ParamEndDate = value; return this; }
        public Integer getAgentID() { return AgentID; }
        public PeraContactTrackingRequest setAgentID(Integer value) { this.AgentID = value; return this; }
    }

    public static class PeraContactTrackingResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<PeraContactTracking> AFPeraContact = new ArrayList<PeraContactTracking>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public PeraContactTrackingResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<PeraContactTracking> getAfPeraContact() { return AFPeraContact; }
        public PeraContactTrackingResponse setAfPeraContact(ArrayList<PeraContactTracking> value) { this.AFPeraContact = value; return this; }
    }

    public static class PeraContactTracking extends AFPeraContact
    {
        public String Agent = null;
        public Date FollowUpDate = null;
        public String District = null;
        public String Note = null;
        public String EventTypeName = null;
        public String AVP = null;
        public String RVP = null;
        public String MVP = null;
        public String Sale = null;
        
        public String getAgent() { return Agent; }
        public PeraContactTracking setAgent(String value) { this.Agent = value; return this; }
        public Date getFollowUpDate() { return FollowUpDate; }
        public PeraContactTracking setFollowUpDate(Date value) { this.FollowUpDate = value; return this; }
        public String getDistrict() { return District; }
        public PeraContactTracking setDistrict(String value) { this.District = value; return this; }
        public String getNote() { return Note; }
        public PeraContactTracking setNote(String value) { this.Note = value; return this; }
        public String getEventTypeName() { return EventTypeName; }
        public PeraContactTracking setEventTypeName(String value) { this.EventTypeName = value; return this; }
        public String getAvp() { return AVP; }
        public PeraContactTracking setAvp(String value) { this.AVP = value; return this; }
        public String getRvp() { return RVP; }
        public PeraContactTracking setRvp(String value) { this.RVP = value; return this; }
        public String getMvp() { return MVP; }
        public PeraContactTracking setMvp(String value) { this.MVP = value; return this; }
        public String getSale() { return Sale; }
        public PeraContactTracking setSale(String value) { this.Sale = value; return this; }
    }

    public static class AFPeraContact
    {
        public Integer PeraContactId = null;
        public String FirstName = null;
        public String LastName = null;
        public Date AppointmentDateTime = null;
        public Date DateCreated = null;
        public Integer AgentId = null;
        
        public Integer getPeraContactId() { return PeraContactId; }
        public AFPeraContact setPeraContactId(Integer value) { this.PeraContactId = value; return this; }
        public String getFirstName() { return FirstName; }
        public AFPeraContact setFirstName(String value) { this.FirstName = value; return this; }
        public String getLastName() { return LastName; }
        public AFPeraContact setLastName(String value) { this.LastName = value; return this; }
        public Date getAppointmentDateTime() { return AppointmentDateTime; }
        public AFPeraContact setAppointmentDateTime(Date value) { this.AppointmentDateTime = value; return this; }
        public Date getDateCreated() { return DateCreated; }
        public AFPeraContact setDateCreated(Date value) { this.DateCreated = value; return this; }
        public Integer getAgentId() { return AgentId; }
        public AFPeraContact setAgentId(Integer value) { this.AgentId = value; return this; }
    }

}

Java PeraContactTrackingRequest 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/Report/PeraContactTracking/{ParamStartDate}/{ParamEndDate}/{AgentID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PeraContactTrackingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AFPeraContact>
    <PeraContactTracking>
      <AgentId>0</AgentId>
      <AppointmentDateTime>0001-01-01T00:00:00</AppointmentDateTime>
      <DateCreated>0001-01-01T00:00:00</DateCreated>
      <FirstName>String</FirstName>
      <LastName>String</LastName>
      <PeraContactId>0</PeraContactId>
      <AVP>String</AVP>
      <Agent>String</Agent>
      <District>String</District>
      <EventTypeName>String</EventTypeName>
      <FollowUpDate>0001-01-01T00:00:00</FollowUpDate>
      <MVP>String</MVP>
      <Note>String</Note>
      <RVP>String</RVP>
      <Sale>String</Sale>
    </PeraContactTracking>
  </AFPeraContact>
  <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>
</PeraContactTrackingResponse>