org.springframework.social.twitter.api
Class TwitterObject
java.lang.Object
org.springframework.social.twitter.api.TwitterObject
- Direct Known Subclasses:
- AccountSettings, DirectMessage, Entities, HashTagEntity, MediaEntity, MentionEntity, OEmbedTweet, Place, SavedSearch, SearchResults, StreamDeleteEvent, StreamWarningEvent, SuggestionCategory, Trend, Trends, Tweet, TwitterProfile, UrlEntity, UserList
public class TwitterObject
- extends Object
Base class for all Twitter types.
Offers an extraData property for carrying any data in response from Twitter that won't be otherwise mapped to any properties of the subclass.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TwitterObject
public TwitterObject()
getExtraData
public Map<String,Object> getExtraData()
- Returns:
- Any fields in response from Twitter 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.