Search in sources :

Example 1 with StatusDeserializer

use of com.abewy.android.apps.klyph.core.fql.serializer.StatusDeserializer in project Klyph by jonathangerbaud.

the class StatusRequest method handleResult.

@Override
public ArrayList<GraphObject> handleResult(JSONArray[] result) {
    JSONArray status = result[0];
    JSONArray profiles = result[1];
    JSONArray pics = result[2];
    JSONArray places = result[3];
    assocData2(status, profiles, "uid", "id", "uid_name", "name", "uid_type", "type");
    assocData(status, pics, "uid", "id", "uid_pic", "url");
    assocData(status, places, "place_id", "page_id", "place_name", "name");
    StatusDeserializer sDeserializer = new StatusDeserializer();
    ArrayList<GraphObject> statut = (ArrayList<GraphObject>) sDeserializer.deserializeArray(status);
    setHasMoreData(false);
    return statut;
}
Also used : StatusDeserializer(com.abewy.android.apps.klyph.core.fql.serializer.StatusDeserializer) JSONArray(org.json.JSONArray) ArrayList(java.util.ArrayList) GraphObject(com.abewy.android.apps.klyph.core.graph.GraphObject)

Aggregations

StatusDeserializer (com.abewy.android.apps.klyph.core.fql.serializer.StatusDeserializer)1 GraphObject (com.abewy.android.apps.klyph.core.graph.GraphObject)1 ArrayList (java.util.ArrayList)1 JSONArray (org.json.JSONArray)1