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. jav a 2 s . com*/ import java.util.ArrayList; import se.agile.githubdata.Branch; import se.agile.model.JSONParser; public class RequestBranches extends RequestTask<Void, Void, ArrayList<Branch>>{ private String url = "https://api.github.com/repos/"; public RequestBranches(){ super(); } public RequestBranches(RequestListener<ArrayList<Branch>> listener){ super(listener); url += super.getSelectedRepositoryName() + "/branches"; } @Override protected ArrayList<Branch> doInBackground(Void... params) { return JSONParser.parseBranches(generalGETRequest(url)); } @Override protected void onPostExecute(ArrayList<Branch> branchList){ if(!isCancelled()){ finishedWithRequest(branchList); } } }