use of com.abewy.android.apps.klyph.core.fql.serializer.FriendDeserializer in project Klyph by jonathangerbaud.
the class AllFriendsRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray[] result) {
JSONArray friends = result[0];
JSONArray pics = result[1];
assocData(friends, pics, "uid", "id", "pic", "url");
FriendDeserializer deserializer = new FriendDeserializer();
ArrayList<GraphObject> list = (ArrayList<GraphObject>) deserializer.deserializeArray(friends);
setHasMoreData(false);
return list;
}
use of com.abewy.android.apps.klyph.core.fql.serializer.FriendDeserializer in project Klyph by jonathangerbaud.
the class BirthdayNotificationRequest 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() >= 25);
return friends;
}
use of com.abewy.android.apps.klyph.core.fql.serializer.FriendDeserializer in project Klyph by jonathangerbaud.
the class BirthdayRequest 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() >= 25);
return friends;
}
use of com.abewy.android.apps.klyph.core.fql.serializer.FriendDeserializer in project Klyph by jonathangerbaud.
the class FriendsRequest 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);
setHasMoreData(false);
return friends;
}
use of com.abewy.android.apps.klyph.core.fql.serializer.FriendDeserializer in project Klyph by jonathangerbaud.
the class GroupMembersRequest 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