org.springframework.social.facebook.api
Class FacebookObject

java.lang.Object
  extended by org.springframework.social.facebook.api.FacebookObject
Direct Known Subclasses:
Account, Album, Checkin, Comment, CoverPhoto, EducationEntry, Event, EventInvitee, FacebookProfile, Group, GroupMembership, Invitation, Location, Page, Photo, Post, Question, QuestionOption, Reference, StoryTag, Tag, Video, WorkEntry

public abstract class FacebookObject
extends Object

Base class for all Facebook types. Offers an extraData property for carrying any data in response from Facebook that won't be otherwise mapped to any properties of the subclass.


Constructor Summary
FacebookObject()
           
 
Method Summary
protected  void add(String key, Object value)
          JsonAnySetter hook.
 Map<String,Object> getExtraData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacebookObject

public FacebookObject()
Method Detail

getExtraData

public Map<String,Object> getExtraData()
Returns:
Any fields in response from Facebook that are otherwise not mapped to any properties.

add

protected void add(String key,
                   Object value)
JsonAnySetter hook. Called when an otherwise unmapped property is being processed during JSON deserialization.

Parameters:
key - The property's key.
value - The property's value.