| Requires any of the roles: | Worker, Agent, Administrator |
| 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 .jsv suffix or ?format=jsv
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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}
}
}