Search in sources :

Example 1 with WorkDeserializer

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

the class FriendDeserializer method deserializeObject.

@Override
public GraphObject deserializeObject(JSONObject data) {
    Friend friend = new Friend();
    deserializePrimitives(friend, data);
    friend.setEducation(new EducationDeserializer().deserializeArray(getJsonArray(data, "education"), Education.class));
    friend.setWork(new WorkDeserializer().deserializeArray(getJsonArray(data, "work"), Work.class));
    return friend;
}
Also used : Friend(com.abewy.android.apps.klyph.core.fql.Friend) Education(com.abewy.android.apps.klyph.core.fql.User.Education) WorkDeserializer(com.abewy.android.apps.klyph.core.fql.serializer.UserDeserializer.WorkDeserializer) EducationDeserializer(com.abewy.android.apps.klyph.core.fql.serializer.UserDeserializer.EducationDeserializer) Work(com.abewy.android.apps.klyph.core.fql.User.Work)

Aggregations

Friend (com.abewy.android.apps.klyph.core.fql.Friend)1 Education (com.abewy.android.apps.klyph.core.fql.User.Education)1 Work (com.abewy.android.apps.klyph.core.fql.User.Work)1 EducationDeserializer (com.abewy.android.apps.klyph.core.fql.serializer.UserDeserializer.EducationDeserializer)1 WorkDeserializer (com.abewy.android.apps.klyph.core.fql.serializer.UserDeserializer.WorkDeserializer)1