| 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 .other suffix or ?format=other
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: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Responses":[{"StaffOutreachRecipientID":0,"ContactID":0,"Name":"String","Kind":"String","Rate":0,"Rating":0,"RatingCount":0,"Status":"String","Note":"String","CounterRate":0,"CounterStartDate":"String"}],"SentCount":0,"OpenedCount":0,"ClickedCount":0,"Accepted":0,"Question":0,"Declined":0,"NoReply":0}