예제 #1
0
  /**
   * Github资源下载
   *
   * @param fileName 下载的资源名称
   * @param saveDir 保存的文件路径
   * @return
   * @throws TaskException
   */
  public Boolean githubResDownload(String fileName, String saveDir) throws TaskException {
    Params params = new Params();
    params.addParameter("fileName", fileName);
    params.addParameter("dir", saveDir);

    return doGet(getSetting("githubResDownload"), params, Boolean.class);
  }
예제 #2
0
  public PictureSize getPictureSize(String url) throws TaskException {
    Params params = new Params();
    params.addParameter("path", url);

    return doGet(getSetting("getPictureSize"), params, PictureSize.class);
  }