public final class TwitterObjectFactory extends Object
Modifier and Type | Method and Description |
---|---|
static AccountTotals |
createAccountTotals(String rawJSON)
Constructs an AccountTotals object from rawJSON string.
|
static Category |
createCategory(String rawJSON)
Constructs a Category object from rawJSON string.
|
static DirectMessage |
createDirectMessage(String rawJSON)
Constructs a DirectMessage object from rawJSON string.
|
static IDs |
createIDs(String rawJSON)
Constructs a IDs object from rawJSON string.
|
static Location |
createLocation(String rawJSON)
Constructs a Location object from rawJSON string.
|
static Object |
createObject(String rawJSON)
Construct an object from rawJSON string.
|
static OEmbed |
createOEmbed(String rawJSON)
Constructs an OEmbed object from rawJSON string.
|
static Place |
createPlace(String rawJSON)
Constructs a Place object from rawJSON string.
|
static Map<String,RateLimitStatus> |
createRateLimitStatus(String rawJSON)
Constructs a RateLimitStatus object from rawJSON string.
|
static Relationship |
createRelationship(String rawJSON)
Constructs a Relationship object from rawJSON string.
|
static SavedSearch |
createSavedSearch(String rawJSON)
Constructs a SavedSearch object from rawJSON string.
|
static Status |
createStatus(String rawJSON)
Constructs a Status object from rawJSON string.
|
static Trend |
createTrend(String rawJSON)
Constructs a Trend object from rawJSON string.
|
static Trends |
createTrends(String rawJSON)
Constructs a Trends object from rawJSON string.
|
static User |
createUser(String rawJSON)
Constructs a User object from rawJSON string.
|
static UserList |
createUserList(String rawJSON)
Constructs a UserList object from rawJSON string.
|
static String |
getRawJSON(Object obj)
Returns a raw JSON form of the provided object.
Note that raw JSON forms can be retrieved only from the same thread invoked the last method call and will become inaccessible once another method call |
public static String getRawJSON(Object obj)
obj
- target object to retrieve JSONpublic static Status createStatus(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static User createUser(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static AccountTotals createAccountTotals(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static Relationship createRelationship(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static Place createPlace(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static SavedSearch createSavedSearch(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static Trend createTrend(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static Trends createTrends(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static IDs createIDs(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static Map<String,RateLimitStatus> createRateLimitStatus(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static Category createCategory(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static DirectMessage createDirectMessage(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static Location createLocation(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static UserList createUserList(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static OEmbed createOEmbed(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.public static Object createObject(String rawJSON) throws TwitterException
rawJSON
- raw JSON form as StringTwitterException
- when provided string is not a valid JSON string.Copyright © 2018. All rights reserved.