org.springframework.social.linkedin.api
Class LinkedInObject

java.lang.Object
  extended by org.springframework.social.linkedin.api.LinkedInObject
Direct Known Subclasses:
CodeAndName, Comment, Comments, Company, Company.CompanyAddress, Company.CompanyContactInfo, Company.CompanyLocation, CompanyJobUpdate, ConnectionAuthorization, Education, Group, Group.GroupCount, Group.GroupRelation, GroupSettings, ImAccount, Job, JobBookmark, JobPosition, Likes, LinkedInConnections, LinkedInDate, LinkedInNetworkUpdate, LinkedInNetworkUpdates, LinkedInProfile, Location, MemberGroup, NetworkStatistics, PersonActivity, PhoneNumber, Position, Post, Post.Attachment, Post.PostRelation, PostComment, Product, Product.ProductRecommendation, Recommendation, Relation, SearchResult, Share, Share.ShareContent, Share.ShareSource, TwitterAccount, UrlResource

public abstract class LinkedInObject
extends Object

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


Constructor Summary
LinkedInObject()
           
 
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

LinkedInObject

public LinkedInObject()
Method Detail

getExtraData

public Map<String,Object> getExtraData()
Returns:
Any fields in response from LinkedIn 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.