twitter4j
Class UserListJSONImpl

java.lang.Object
  extended by twitter4j.TwitterResponseImpl
      extended by twitter4j.UserListJSONImpl
All Implemented Interfaces:
java.io.Serializable, TwitterResponse, UserList

 class UserListJSONImpl
extends TwitterResponseImpl
implements UserList, java.io.Serializable

A data class representing Basic list information element

Author:
Dan Checkoway - dcheckoway at gmail.com
See Also:
REST API Documentation - Basic list information element

Field Summary
private  java.lang.String description
           
private  java.lang.String fullName
           
private  int id
           
private  int memberCount
           
private  boolean mode
           
private  java.lang.String name
           
private static long serialVersionUID
           
private  java.lang.String slug
           
private  int subscriberCount
           
private  java.lang.String uri
           
private  User user
           
 
Constructor Summary
UserListJSONImpl(HttpResponse res)
           
UserListJSONImpl(twitter4j.org.json.JSONObject json)
           
 
Method Summary
(package private) static PagableResponseList<UserList> createUserListList(HttpResponse res)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Returns the description of the list
 java.lang.String getFullName()
          Returns the full name of the list
 int getId()
          Returns the id of the list
 int getMemberCount()
          Returns the member count of the list
 java.lang.String getName()
          Returns the name of the list
 java.lang.String getSlug()
          Returns the slug of the list
 int getSubscriberCount()
          Returns the subscriber count of the list
 java.net.URI getURI()
          Returns the uri of the list
 User getUser()
          Returns the user of the list
 int hashCode()
           
private  void init(twitter4j.org.json.JSONObject json)
           
 boolean isPublic()
          tests if the list is public
 java.lang.String toString()
           
 
Methods inherited from class twitter4j.TwitterResponseImpl
getRateLimitStatus, setRateLimitStatus
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface twitter4j.TwitterResponse
getRateLimitStatus
 

Field Detail

id

private int id

name

private java.lang.String name

fullName

private java.lang.String fullName

slug

private java.lang.String slug

description

private java.lang.String description

subscriberCount

private int subscriberCount

memberCount

private int memberCount

uri

private java.lang.String uri

mode

private boolean mode

user

private User user

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

UserListJSONImpl

UserListJSONImpl(HttpResponse res)
           throws TwitterException
Throws:
TwitterException

UserListJSONImpl

UserListJSONImpl(twitter4j.org.json.JSONObject json)
           throws TwitterException
Throws:
TwitterException
Method Detail

init

private void init(twitter4j.org.json.JSONObject json)
           throws TwitterException
Throws:
TwitterException

getId

public int getId()
Returns the id of the list

Specified by:
getId in interface UserList
Returns:
the id of the list

getName

public java.lang.String getName()
Returns the name of the list

Specified by:
getName in interface UserList
Returns:
the name of the list

getFullName

public java.lang.String getFullName()
Returns the full name of the list

Specified by:
getFullName in interface UserList
Returns:
the full name of the list

getSlug

public java.lang.String getSlug()
Returns the slug of the list

Specified by:
getSlug in interface UserList
Returns:
the slug of the list

getDescription

public java.lang.String getDescription()
Returns the description of the list

Specified by:
getDescription in interface UserList
Returns:
the description of the list

getSubscriberCount

public int getSubscriberCount()
Returns the subscriber count of the list

Specified by:
getSubscriberCount in interface UserList
Returns:
the subscriber count of the list

getMemberCount

public int getMemberCount()
Returns the member count of the list

Specified by:
getMemberCount in interface UserList
Returns:
the member count of the list

getURI

public java.net.URI getURI()
Returns the uri of the list

Specified by:
getURI in interface UserList
Returns:
the uri of the list

isPublic

public boolean isPublic()
tests if the list is public

Specified by:
isPublic in interface UserList
Returns:
if the list is public

getUser

public User getUser()
Returns the user of the list

Specified by:
getUser in interface UserList
Returns:
the user of the list

createUserListList

static PagableResponseList<UserList> createUserListList(HttpResponse res)
                                                 throws TwitterException
Throws:
TwitterException

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