Android Open Source - PetBook Adapt Pets Model






From Project

Back to project page PetBook.

License

The source code is released under:

MIT License

If you think the Android project PetBook listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.edinubuntu.petlove.model;
//www.  j a va  2 s. c o m
import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;

/**
 * Created by edward_chiang on 13/8/12.
 */
public class AdaptPetsModel extends AsyncModel {

    private AsyncHttpClient asyncHttpClient;

    public AdaptPetsModel() {
        asyncHttpClient = new AsyncHttpClient();
    }

    public void load(AsyncHttpResponseHandler responseHandler) {

        String apiCall = "http://60.199.253.136/api/action/datastore_search?resource_id=c57f54e2-8ac3-4d30-bce0-637a8968796e&limit=500";
        asyncHttpClient.get(apiCall, new RequestParams(), responseHandler);

    }
}




Java Source Code List

com.edinubuntu.petlove.PetLove.java
com.edinubuntu.petlove.active.ActiveObjectLoader.java
com.edinubuntu.petlove.active.ActiveObjectsLoader.java
com.edinubuntu.petlove.activity.MainActivity.java
com.edinubuntu.petlove.adapter.RecordsAdapter.java
com.edinubuntu.petlove.model.AdaptPetsModel.java
com.edinubuntu.petlove.model.AsyncModel.java
com.edinubuntu.petlove.object.Record.java
com.edinubuntu.petlove.util.converter.RecordsJsonConverter.java