Package tv.phantombot.cache
Class TwitchTeamsCache.Team
java.lang.Object
tv.phantombot.cache.TwitchTeamsCache.Team
- Enclosing class:
- TwitchTeamsCache
Private class that holds the teams information.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanMethod that gets the date the team was created on.getInfo()Method that gets the team information.getName()Method that returns the display name of the team.Method that returns the raw object.Method that returns a random member from the team.getTeamMember(String username) Method that returns a team member.intMethod that gets the amount of users in the team.getUrl()Method that returns the team url.inthashCode()booleanMethod that checks if a user is apart of a team.
- 
Constructor Details- 
TeamClass constructor.- Parameters:
- obj-
 
 
- 
- 
Method Details- 
getNameMethod that returns the display name of the team.- Returns:
- Throws:
- JSONException
 
- 
getCreatedAtMethod that gets the date the team was created on.- Returns:
- Throws:
- JSONException
 
- 
getInfoMethod that gets the team information.- Returns:
- Throws:
- JSONException
 
- 
getUrlMethod that returns the team url.- Returns:
- Throws:
- JSONException
 
- 
getTotalMembersMethod that gets the amount of users in the team.- Returns:
- Throws:
- JSONException
 
- 
getRandomMemberMethod that returns a random member from the team.- Returns:
- Throws:
- JSONException
 
- 
getTeamMemberMethod that returns a team member.- Parameters:
- username-
- Returns:
- Throws:
- JSONException
 
- 
hasUserMethod that checks if a user is apart of a team.- Parameters:
- username-
- Returns:
- Throws:
- JSONException
 
- 
getObjectMethod that returns the raw object.- Returns:
 
- 
hashCodepublic int hashCode()
- 
equals
 
-