twitter4j
Class RelatedResultsJSONImpl

java.lang.Object
  extended by twitter4j.TwitterResponseImpl
      extended by 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

Field Summary
private static long serialVersionUID
           
private static java.lang.String TWEETS_FROM_USER
           
private static java.lang.String TWEETS_WITH_CONVERSATION
           
private static java.lang.String TWEETS_WITH_REPLY
           
private  java.util.Map<java.lang.String,ResponseList<Status>> tweetsMap
           
 
Constructor Summary
RelatedResultsJSONImpl(twitter4j.internal.http.HttpResponse res)
           
RelatedResultsJSONImpl(twitter4j.internal.org.json.JSONArray jsonArray)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 ResponseList<Status> getTweetsFromUser()
          Return the 3 or less latest statuses from the user who sent the origin tweet.
 ResponseList<Status> getTweetsWithConversation()
          Returns the 8 or less statuses with conversation
 ResponseList<Status> getTweetsWithReply()
          Returns the 8 or less statuses with reply.
 int hashCode()
           
private  void init(twitter4j.internal.org.json.JSONArray jsonArray, twitter4j.internal.http.HttpResponse res, boolean registerRawJSON)
           
 java.lang.String toString()
           
 
Methods inherited from class twitter4j.TwitterResponseImpl
getRateLimitStatus
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface twitter4j.TwitterResponse
getRateLimitStatus
 

Field Detail

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
Constructor Detail

RelatedResultsJSONImpl

RelatedResultsJSONImpl(twitter4j.internal.http.HttpResponse res)
                 throws TwitterException
Throws:
TwitterException

RelatedResultsJSONImpl

RelatedResultsJSONImpl(twitter4j.internal.org.json.JSONArray jsonArray)
                 throws TwitterException
Throws:
TwitterException
Method Detail

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