Trendsic Platform Service

<back to all web services

AgentDownlineCountRequest

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

public class dtos
{

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

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

    public static class AgentDownlineCount
    {
        public String AgentStatus = null;
        public Integer CountAgentStatus = null;
        
        public String getAgentStatus() { return AgentStatus; }
        public AgentDownlineCount setAgentStatus(String value) { this.AgentStatus = value; return this; }
        public Integer getCountAgentStatus() { return CountAgentStatus; }
        public AgentDownlineCount setCountAgentStatus(Integer value) { this.CountAgentStatus = value; return this; }
    }

}

Java AgentDownlineCountRequest 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/AgentDownlineCount/{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

{"result":[{"AgentStatus":"String","CountAgentStatus":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}