use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class EventFragment method onGridItemClick.
@Override
protected void onGridItemClick(KlyphGridView gridView, View view, int position, long id) {
GraphObject o = (GraphObject) gridView.getItemAtPosition(position);
if (o instanceof Stream) {
Stream stream = (Stream) o;
startActivity(Klyph.getIntentForGraphObject(getActivity(), stream));
}
}
use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class UserLikeRequest 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 ThreadMessagesRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray[] result) {
JSONArray data = result[0];
JSONArray recipients = result[1];
JSONArray user_pics = result[2];
assocData(recipients, user_pics, "id", "id", "pic", "url");
assocData3(data, recipients, "recipients", "id", "recipients_friends");
UnifiedMessageDeserializer deserializer = new UnifiedMessageDeserializer();
ArrayList<GraphObject> mts = (ArrayList<GraphObject>) deserializer.deserializeArray(data);
Collections.reverse(mts);
setHasMoreData(mts.size() >= 15);
return mts;
}
use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class UploadableAlbumRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray result) {
AlbumDeserializer deserializer = new AlbumDeserializer();
ArrayList<GraphObject> albums = (ArrayList<GraphObject>) deserializer.deserializeArray(result);
return albums;
}
use of com.abewy.android.apps.klyph.core.graph.GraphObject in project Klyph by jonathangerbaud.
the class UserMessagesRequest method handleResult.
@Override
public ArrayList<GraphObject> handleResult(JSONArray[] result) {
JSONArray data = result[0];
JSONArray recipients = result[1];
JSONArray user_pics = result[2];
assocData(recipients, user_pics, "id", "id", "pic", "url");
assocData3(data, recipients, "recipients", "id", "recipients_friends");
UnifiedMessageDeserializer deserializer = new UnifiedMessageDeserializer();
ArrayList<GraphObject> mts = (ArrayList<GraphObject>) deserializer.deserializeArray(data);
Collections.reverse(mts);
setHasMoreData(mts.size() >= 15);
return mts;
}
Aggregations