Back to project page PrincePolo.
The source code is released under:
GNU General Public License
If you think the Android project PrincePolo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package se.agile.asynctasks; //ww w. j a v a 2 s .co m import se.agile.githubdata.Commit; import se.agile.model.JSONParser; public class RequestShortCommit extends RequestTask<String, Void, Commit>{ private String url = "https://api.github.com/repos/"; public RequestShortCommit(){ super(); } public RequestShortCommit(RequestListener<Commit> listener){ super(listener); url += super.getSelectedRepositoryName() + "/git/commits/"; } @Override protected Commit doInBackground(String... params) { String sha = params[0]; String branchName = params[1]; return JSONParser.parseCommit(generalGETRequest(url + sha), branchName); } @Override protected void onPostExecute(Commit commit){ if(!isCancelled()){ finishedWithRequest(commit); } } }