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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Method 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.int
Method that gets the amount of users in the team.getUrl()
Method that returns the team url.int
hashCode()
boolean
Method that checks if a user is apart of a team.
-
Constructor Details
-
Team
Class constructor.- Parameters:
obj
-
-
-
Method Details
-
getName
Method that returns the display name of the team.- Returns:
- Throws:
JSONException
-
getCreatedAt
Method that gets the date the team was created on.- Returns:
- Throws:
JSONException
-
getInfo
Method that gets the team information.- Returns:
- Throws:
JSONException
-
getUrl
Method that returns the team url.- Returns:
- Throws:
JSONException
-
getTotalMembers
Method that gets the amount of users in the team.- Returns:
- Throws:
JSONException
-
getRandomMember
Method that returns a random member from the team.- Returns:
- Throws:
JSONException
-
getTeamMember
Method that returns a team member.- Parameters:
username
-- Returns:
- Throws:
JSONException
-
hasUser
Method that checks if a user is apart of a team.- Parameters:
username
-- Returns:
- Throws:
JSONException
-
getObject
Method that returns the raw object.- Returns:
-
hashCode
public int hashCode() -
equals
-