use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class GroupsRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray[] result) {
JSONArray group_member = result[0];
JSONArray groups_data = result[1];
assocData(groups_data, group_member, "gid", "gid", "unread", "unread");
assocData(groups_data, group_member, "gid", "gid", "administrator", "administrator");
assocData(groups_data, group_member, "gid", "gid", "positions", "positions");
GroupDeserializer deserializer = new GroupDeserializer();
ArrayList<GraphObject> groups = (ArrayList<GraphObject>) deserializer.deserializeArray(groups_data);
setHasMoreData(groups.size() >= 50);
return groups;
}
use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class PageRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray result) {
PageDeserializer deserializer = new PageDeserializer();
ArrayList<GraphObject> page = (ArrayList<GraphObject>) deserializer.deserializeArray(result);
setHasMoreData(false);
return page;
}
use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class PhotoListRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray result) {
PhotoDeserializer deserializer = new PhotoDeserializer();
ArrayList<GraphObject> photos = (ArrayList<GraphObject>) deserializer.deserializeArray(result);
setHasMoreData(false);
return photos;
}
use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class AlbumVideosAllRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray result) {
VideoDeserializer deserializer = new VideoDeserializer();
ArrayList<GraphObject> videos = (ArrayList<GraphObject>) deserializer.deserializeArray(result);
setHasMoreData(videos.size() >= 50);
return videos;
}
use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class EventInvitedRequest 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;
}
Aggregations