twitter4j
Class RelatedResultsJSONImpl
java.lang.Object
twitter4j.TwitterResponseImpl
twitter4j.RelatedResultsJSONImpl
- All Implemented Interfaces:
- java.io.Serializable, RelatedResults, TwitterResponse
final class RelatedResultsJSONImpl
- extends TwitterResponseImpl
- implements RelatedResults, java.io.Serializable
A data class representing related_results API response
- Author:
- Mocel - mocel at guma.jp
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TWEETS_WITH_CONVERSATION
private static final java.lang.String TWEETS_WITH_CONVERSATION
- See Also:
- Constant Field Values
TWEETS_WITH_REPLY
private static final java.lang.String TWEETS_WITH_REPLY
- See Also:
- Constant Field Values
TWEETS_FROM_USER
private static final java.lang.String TWEETS_FROM_USER
- See Also:
- Constant Field Values
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
tweetsMap
private java.util.Map<java.lang.String,ResponseList<Status>> tweetsMap
RelatedResultsJSONImpl
RelatedResultsJSONImpl(twitter4j.internal.http.HttpResponse res)
throws TwitterException
- Throws:
TwitterException
RelatedResultsJSONImpl
RelatedResultsJSONImpl(twitter4j.internal.org.json.JSONArray jsonArray)
throws TwitterException
- Throws:
TwitterException
init
private void init(twitter4j.internal.org.json.JSONArray jsonArray,
twitter4j.internal.http.HttpResponse res,
boolean registerRawJSON)
throws TwitterException
- Throws:
TwitterException
getTweetsWithConversation
public ResponseList<Status> getTweetsWithConversation()
- Returns the 8 or less statuses with conversation
- Specified by:
getTweetsWithConversation
in interface RelatedResults
- Returns:
- list of statuses with conversation
getTweetsWithReply
public ResponseList<Status> getTweetsWithReply()
- Returns the 8 or less statuses with reply.
- Specified by:
getTweetsWithReply
in interface RelatedResults
- Returns:
- list of statuses with reply
getTweetsFromUser
public ResponseList<Status> getTweetsFromUser()
- Return the 3 or less latest statuses from the user who sent the origin tweet.
- Specified by:
getTweetsFromUser
in interface RelatedResults
- Returns:
- list of latest statuses
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object