Search in sources :

Example 1 with LinkDeserializer

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

the class LinkRequest method handleResult.

@Override
public ArrayList<GraphObject> handleResult(JSONArray[] result) {
    JSONArray links = result[0];
    JSONArray profiles = result[1];
    JSONArray pics = result[2];
    assocData2(links, profiles, "owner", "id", "owner_name", "name", "owner_type", "type");
    assocData2(links, profiles, "via_id", "id", "via_name", "name", "via_type", "type");
    assocData(links, pics, "owner", "id", "owner_pic", "url");
    LinkDeserializer sDeserializer = new LinkDeserializer();
    ArrayList<GraphObject> link = (ArrayList<GraphObject>) sDeserializer.deserializeArray(links);
    setHasMoreData(false);
    return link;
}
Also used : JSONArray(org.json.JSONArray) ArrayList(java.util.ArrayList) GraphObject(com.abewy.android.apps.klyph.core.graph.GraphObject) LinkDeserializer(com.abewy.android.apps.klyph.core.fql.serializer.LinkDeserializer)

Aggregations

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