use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class ElementPageRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray[] result) {
JSONArray data = result[0];
JSONArray urls = result[1];
assocData(data, urls, "page_id", "id", "pic", "url");
PageDeserializer deserializer = new PageDeserializer();
ArrayList<GraphObject> pages = (ArrayList<GraphObject>) deserializer.deserializeArray(data);
setHasMoreData(pages.size() >= 25);
return pages;
}
use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class AlbumRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray[] result) {
JSONArray album = result[0];
JSONArray owner = result[1];
JSONArray images = result[2];
assocData(album, owner, "owner", "id", "owner_name", "name");
assocData(album, images, "cover_pid", "pid", "cover_images", "images");
AlbumDeserializer deserializer = new AlbumDeserializer();
ArrayList<GraphObject> list = (ArrayList<GraphObject>) deserializer.deserializeArray(album);
setHasMoreData(false);
return list;
}
use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class EventGoingRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray[] result) {
JSONArray data = result[0];
JSONArray urls = result[1];
assocData(data, urls, "uid", "id", "pic", "url");
FriendDeserializer deserializer = new FriendDeserializer();
ArrayList<GraphObject> friends = (ArrayList<GraphObject>) deserializer.deserializeArray(data);
setHasMoreData(friends.size() >= 50);
return friends;
}
use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class EventMaybeRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray[] result) {
JSONArray data = result[0];
JSONArray urls = result[1];
assocData(data, urls, "uid", "id", "pic", "url");
FriendDeserializer deserializer = new FriendDeserializer();
ArrayList<GraphObject> friends = (ArrayList<GraphObject>) deserializer.deserializeArray(data);
setHasMoreData(friends.size() >= 50);
return friends;
}
use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class EventTimelineNewestRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray[] result) {
JSONArray data = result[0];
JSONArray data_ids = result[1];
JSONArray urls = result[2];
assocData2(data, data_ids, "actor_id", "id", "actor_name", "name", "actor_type", "type");
assocData(data, urls, "actor_id", "id", "actor_pic", "url");
assocData2(data, data_ids, "target_id", "id", "target_name", "name", "target_type", "type");
StreamDeserializer deserializer = new StreamDeserializer();
ArrayList<GraphObject> streams = (ArrayList<GraphObject>) deserializer.deserializeArray(data);
setHasMoreData(streams.size() >= 0);
return streams;
}
Aggregations