{"action":"opened","issue":{"url":"https://api.github.com/repos/hongyangAndroid/okhttp-utils/issues/48","labels_url":"https://api.github.com/repos/hongyangAndroid/okhttp-utils/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/hongyangAndroid/okhttp-utils/issues/48/comments","events_url":"https://api.github.com/repos/hongyangAndroid/okhttp-utils/issues/48/events","html_url":"https://github.com/hongyangAndroid/okhttp-utils/issues/48","id":121957654,"number":48,"title":"ResultCallback为啥要设计成这样？","user":{"login":"JackRo","id":8890773,"avatar_url":"https://avatars.githubusercontent.com/u/8890773?v=3","gravatar_id":"","url":"https://api.github.com/users/JackRo","html_url":"https://github.com/JackRo","followers_url":"https://api.github.com/users/JackRo/followers","following_url":"https://api.github.com/users/JackRo/following{/other_user}","gists_url":"https://api.github.com/users/JackRo/gists{/gist_id}","starred_url":"https://api.github.com/users/JackRo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackRo/subscriptions","organizations_url":"https://api.github.com/users/JackRo/orgs","repos_url":"https://api.github.com/users/JackRo/repos","events_url":"https://api.github.com/users/JackRo/events{/privacy}","received_events_url":"https://api.github.com/users/JackRo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-14T01:13:30Z","updated_at":"2015-12-14T01:13:30Z","closed_at":null,"body":" new OkHttpRequest.Builder()\r\n                .url(url)\r\n                .destFileDir(Environment.getExternalStorageDirectory().getAbsolutePath())\r\n                .destFileName(\"gson-2.2.1.jar\")\r\n                .download(new ResultCallback() {\r\n                    @Override\r\n                    public void onError(Request request, Exception e) {\r\n\r\n                    }\r\n\r\n                    @Override\r\n                    public void onResponse(Object o) {\r\n\r\n                    }\r\n                });\r\n这里我这样传参数就要报错“Missing type parameter.”，为啥不把ResultCallback里的onBefore、onAfter和inProgress抽象出来呢？"}}