public AgentCommand requestAgentCommand() { Dictionary <string, string> queryParams = new Dictionary <string, string>(); queryParams.Add("client_ip", getLocalIPAddress()); string urlPath = PcbAgent.buildUriForApiRequest(PcbAgent.REQUEST_AGENT_COMMAND); string result = HttpSender.requestNormal(urlPath, "GET", queryParams); Console.WriteLine("[requestAgentCommand] requestAgentCommand result:{0}", result); AgentCommand agentCmd = MsgConverter.unpack <AgentCommand>(result); return(agentCmd); }