Trendsic Platform Service

<back to all web services

StaffResponsesRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/staff/outreach/responses
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class StaffResponsesRequest
    {
        public Integer PlaceholderContactID = null;
        
        public Integer getPlaceholderContactID() { return PlaceholderContactID; }
        public StaffResponsesRequest setPlaceholderContactID(Integer value) { this.PlaceholderContactID = value; return this; }
    }

    public static class StaffResponsesResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<StaffResponseDto> Responses = new ArrayList<StaffResponseDto>();
        public Integer SentCount = null;
        public Integer OpenedCount = null;
        public Integer ClickedCount = null;
        public Integer Accepted = null;
        public Integer Question = null;
        public Integer Declined = null;
        public Integer NoReply = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public StaffResponsesResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<StaffResponseDto> getResponses() { return Responses; }
        public StaffResponsesResponse setResponses(ArrayList<StaffResponseDto> value) { this.Responses = value; return this; }
        public Integer getSentCount() { return SentCount; }
        public StaffResponsesResponse setSentCount(Integer value) { this.SentCount = value; return this; }
        public Integer getOpenedCount() { return OpenedCount; }
        public StaffResponsesResponse setOpenedCount(Integer value) { this.OpenedCount = value; return this; }
        public Integer getClickedCount() { return ClickedCount; }
        public StaffResponsesResponse setClickedCount(Integer value) { this.ClickedCount = value; return this; }
        public Integer getAccepted() { return Accepted; }
        public StaffResponsesResponse setAccepted(Integer value) { this.Accepted = value; return this; }
        public Integer getQuestion() { return Question; }
        public StaffResponsesResponse setQuestion(Integer value) { this.Question = value; return this; }
        public Integer getDeclined() { return Declined; }
        public StaffResponsesResponse setDeclined(Integer value) { this.Declined = value; return this; }
        public Integer getNoReply() { return NoReply; }
        public StaffResponsesResponse setNoReply(Integer value) { this.NoReply = value; return this; }
    }

    public static class StaffResponseDto
    {
        public Integer StaffOutreachRecipientID = null;
        public Integer ContactID = null;
        public String Name = null;
        public String Kind = null;
        public BigDecimal Rate = null;
        public BigDecimal Rating = null;
        public Integer RatingCount = null;
        public String Status = null;
        public String Note = null;
        public BigDecimal CounterRate = null;
        public String CounterStartDate = null;
        
        public Integer getStaffOutreachRecipientID() { return StaffOutreachRecipientID; }
        public StaffResponseDto setStaffOutreachRecipientID(Integer value) { this.StaffOutreachRecipientID = value; return this; }
        public Integer getContactID() { return ContactID; }
        public StaffResponseDto setContactID(Integer value) { this.ContactID = value; return this; }
        public String getName() { return Name; }
        public StaffResponseDto setName(String value) { this.Name = value; return this; }
        public String getKind() { return Kind; }
        public StaffResponseDto setKind(String value) { this.Kind = value; return this; }
        public BigDecimal getRate() { return Rate; }
        public StaffResponseDto setRate(BigDecimal value) { this.Rate = value; return this; }
        public BigDecimal getRating() { return Rating; }
        public StaffResponseDto setRating(BigDecimal value) { this.Rating = value; return this; }
        public Integer getRatingCount() { return RatingCount; }
        public StaffResponseDto setRatingCount(Integer value) { this.RatingCount = value; return this; }
        public String getStatus() { return Status; }
        public StaffResponseDto setStatus(String value) { this.Status = value; return this; }
        public String getNote() { return Note; }
        public StaffResponseDto setNote(String value) { this.Note = value; return this; }
        public BigDecimal getCounterRate() { return CounterRate; }
        public StaffResponseDto setCounterRate(BigDecimal value) { this.CounterRate = value; return this; }
        public String getCounterStartDate() { return CounterStartDate; }
        public StaffResponseDto setCounterStartDate(String value) { this.CounterStartDate = value; return this; }
    }

}

Java StaffResponsesRequest 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/staff/outreach/responses HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<StaffResponsesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Accepted>0</Accepted>
  <ClickedCount>0</ClickedCount>
  <Declined>0</Declined>
  <NoReply>0</NoReply>
  <OpenedCount>0</OpenedCount>
  <Question>0</Question>
  <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>
  <Responses>
    <StaffResponseDto>
      <ContactID>0</ContactID>
      <CounterRate>0</CounterRate>
      <CounterStartDate>String</CounterStartDate>
      <Kind>String</Kind>
      <Name>String</Name>
      <Note>String</Note>
      <Rate>0</Rate>
      <Rating>0</Rating>
      <RatingCount>0</RatingCount>
      <StaffOutreachRecipientID>0</StaffOutreachRecipientID>
      <Status>String</Status>
    </StaffResponseDto>
  </Responses>
  <SentCount>0</SentCount>
</StaffResponsesResponse>