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; //from w w w . ja va 2s. com import se.agile.githubdata.Commit; import se.agile.model.JSONParser; public class RequestFullCommit extends RequestTask<String, Void, Commit>{ private String url = "https://api.github.com/repos/"; public RequestFullCommit(){ super(); } public RequestFullCommit(RequestListener<Commit> listener){ super(listener); url += super.getSelectedRepositoryName() + "/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); } } }