| Requires any of the roles: | Worker, Agent, Administrator |
| GET,OPTIONS | /v1/AgentPolicyCountDrilldown/{AgentId} | ||
|---|---|---|---|
| GET,OPTIONS | /v1/AgentPolicyCountDrilldown |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class AgentPolicyCountDrilldownRequest
{
public Integer AgentId = null;
public Integer getAgentId() { return AgentId; }
public AgentPolicyCountDrilldownRequest setAgentId(Integer value) { this.AgentId = value; return this; }
}
public static class AgentPolicyCountDrilldownResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<AgentPolicyCountDrilldown> result = new ArrayList<AgentPolicyCountDrilldown>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public AgentPolicyCountDrilldownResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<AgentPolicyCountDrilldown> getResult() { return result; }
public AgentPolicyCountDrilldownResponse setResult(ArrayList<AgentPolicyCountDrilldown> value) { this.result = value; return this; }
}
public static class AgentPolicyCountDrilldown
{
public String PolicyType = null;
public Integer TotalLifeTime = null;
public Integer TotalLifeTimeStartDate = null;
public Integer Total365 = null;
public Integer TotalYtd = null;
public Integer TotalMtd = null;
public String getPolicyType() { return PolicyType; }
public AgentPolicyCountDrilldown setPolicyType(String value) { this.PolicyType = value; return this; }
public Integer getTotalLifeTime() { return TotalLifeTime; }
public AgentPolicyCountDrilldown setTotalLifeTime(Integer value) { this.TotalLifeTime = value; return this; }
public Integer getTotalLifeTimeStartDate() { return TotalLifeTimeStartDate; }
public AgentPolicyCountDrilldown setTotalLifeTimeStartDate(Integer value) { this.TotalLifeTimeStartDate = value; return this; }
public Integer getTotal365() { return Total365; }
public AgentPolicyCountDrilldown setTotal365(Integer value) { this.Total365 = value; return this; }
public Integer getTotalYtd() { return TotalYtd; }
public AgentPolicyCountDrilldown setTotalYtd(Integer value) { this.TotalYtd = value; return this; }
public Integer getTotalMtd() { return TotalMtd; }
public AgentPolicyCountDrilldown setTotalMtd(Integer value) { this.TotalMtd = value; return this; }
}
}
Java AgentPolicyCountDrilldownRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/AgentPolicyCountDrilldown/{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
<AgentPolicyCountDrilldownResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<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>
<result>
<AgentPolicyCountDrilldown>
<PolicyType>String</PolicyType>
<Total365>0</Total365>
<TotalLifeTime>0</TotalLifeTime>
<TotalLifeTimeStartDate>0</TotalLifeTimeStartDate>
<TotalMtd>0</TotalMtd>
<TotalYtd>0</TotalYtd>
</AgentPolicyCountDrilldown>
</result>
</AgentPolicyCountDrilldownResponse>