Trendsic Platform Service

<back to all web services

AgentPolicyCountSummaryRequest

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

public class dtos
{

    public static class AgentPolicyCountSummaryRequest
    {
        public Integer AgentId = null;
        
        public Integer getAgentId() { return AgentId; }
        public AgentPolicyCountSummaryRequest setAgentId(Integer value) { this.AgentId = value; return this; }
    }

    public static class AgentPolicyCountSummaryResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<AgentPolicyCountSummary> result = new ArrayList<AgentPolicyCountSummary>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public AgentPolicyCountSummaryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<AgentPolicyCountSummary> getResult() { return result; }
        public AgentPolicyCountSummaryResponse setResult(ArrayList<AgentPolicyCountSummary> value) { this.result = value; return this; }
    }

    public static class AgentPolicyCountSummary
    {
        public Integer TotalLifeTime = null;
        public Integer TotalLifeTimeStartDate = null;
        public Integer Total365 = null;
        public Integer TotalYtd = null;
        public Integer TotalMtd = null;
        
        public Integer getTotalLifeTime() { return TotalLifeTime; }
        public AgentPolicyCountSummary setTotalLifeTime(Integer value) { this.TotalLifeTime = value; return this; }
        public Integer getTotalLifeTimeStartDate() { return TotalLifeTimeStartDate; }
        public AgentPolicyCountSummary setTotalLifeTimeStartDate(Integer value) { this.TotalLifeTimeStartDate = value; return this; }
        public Integer getTotal365() { return Total365; }
        public AgentPolicyCountSummary setTotal365(Integer value) { this.Total365 = value; return this; }
        public Integer getTotalYtd() { return TotalYtd; }
        public AgentPolicyCountSummary setTotalYtd(Integer value) { this.TotalYtd = value; return this; }
        public Integer getTotalMtd() { return TotalMtd; }
        public AgentPolicyCountSummary setTotalMtd(Integer value) { this.TotalMtd = value; return this; }
    }

}

Java AgentPolicyCountSummaryRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /v1/AgentPolicyCountSummary/{AgentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"result":[{"TotalLifeTime":0,"TotalLifeTimeStartDate":0,"Total365":0,"TotalYtd":0,"TotalMtd":0}]}