@Test public void testGet() { Agent agent = Agents.defaultAgents().get(45); Assert.assertNotNull(agent); }
public Agent get(int id) { String url = WxEndpoint.get("url.agent.get"); String agent = wxClient.get(String.format(url, id)); logger.debug("get agent: {}", agent); return JsonMapper.nonEmptyMapper().fromJson(agent, Agent.class); }
Agents { public Agent get(int id) { String url = WxEndpoint.get("url.agent.get"); String agent = wxClient.get(String.format(url, id)); logger.debug("get agent: {}", agent); return JsonMapper.nonEmptyMapper().fromJson(agent, Agent.class); } }
Agents { public Agent get(int id) { String url = WxEndpoint.get("url.agent.get"); String agent = wxClient.get(String.format(url, id)); logger.debug("get agent: {}", agent); return JsonMapper.nonEmptyMapper().fromJson(agent, Agent.class); }  }
Agents { public Agent get(int id) { String url = WxEndpoint.get("url.agent.get"); String agent = wxClient.get(String.format(url, id)); logger.debug("get agent: {}", agent); return JsonMapper.nonEmptyMapper().fromJson(agent, Agent.class); }  static Agents defaultAgents(); static Agents with(CorpSetting corpSetting); void setWxClient(WxClient wxClient); List<Agent> list(); Agent get(int id); void update(Agent agent); }
Agents { public Agent get(int id) { String url = WxEndpoint.get("url.agent.get"); String agent = wxClient.get(String.format(url, id)); logger.debug("get agent: {}", agent); return JsonMapper.nonEmptyMapper().fromJson(agent, Agent.class); }  static Agents defaultAgents(); static Agents with(CorpSetting corpSetting); void setWxClient(WxClient wxClient); List<Agent> list(); Agent get(int id); void update(Agent agent);  }