Class Clan
- java.lang.Object
-
- at.jonastuechler.gommehdnetjavaapi.clan.Clan
-
public class Clan extends Object
Used to get data from GommeHD.net clans- Author:
- Jonas Tüchler
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAvatarAsLink()Retrieve a link to the avatar of the clanGameModeStatsgetBedwarsStats()Get clan stats from game mode Bedwars as GameModeStats objectGameModeStatsgetCoresStats()Get clan stats from game mode Cores as GameModeStats objectIntegergetFans()Retrieve the number of fans of the clanStringgetHomepage()Retrieve the number of comments of the clanClanMembergetMemberByName(String name)Get a clan member by player nameClanMembergetMemberByUuid(String uuid)Get a clan member by uuidList<ClanMember>getMembers()Retrieve clanmembers as a listList<ClanMember>getMembersByRank(ClanRank rank)Get clan members by their ranksStringgetName()Retrieve the name of the clanStringgetPageContent()Retrieve the page content of the clanGameModeStatsgetSurvivalGamesStats()Get clan stats from game mode SurvivalGames as GameModeStats objectStringgetTag()Retrieve the tag of the clanStringgetTwitter()Retrieve twitter information of the clanStringgetUuid()Retrieve the uuid of the clanStringgetYoutube()Retrieve youtube information of the clanBooleanisDeleted()Check if the clan is deleted
-
-
-
Constructor Detail
-
Clan
public Clan(String id) throws ClanNotFoundException
Clan instance creation using id
Checks if the clan exists, if it does, the ID is saved- Parameters:
id- Clantag/clan name used to initiate the object- Throws:
ClanNotFoundException- Thrown when the clan with the specified id was not found
-
-
Method Detail
-
getName
public String getName()
Retrieve the name of the clan- Returns:
- clan name
-
getTag
public String getTag()
Retrieve the tag of the clan- Returns:
- clan tag
-
getUuid
public String getUuid()
Retrieve the uuid of the clan- Returns:
- clan uuid
-
getFans
public Integer getFans()
Retrieve the number of fans of the clan- Returns:
- number of fans
-
isDeleted
public Boolean isDeleted()
Check if the clan is deleted- Returns:
- boolean
-
getMembers
public List<ClanMember> getMembers()
Retrieve clanmembers as a list- Returns:
- clan members list
-
getMemberByName
public ClanMember getMemberByName(String name)
Get a clan member by player name- Parameters:
name- player name- Returns:
- ClanMember
-
getMemberByUuid
public ClanMember getMemberByUuid(String uuid)
Get a clan member by uuid- Parameters:
uuid- player uuid- Returns:
- ClanMember
-
getMembersByRank
public List<ClanMember> getMembersByRank(ClanRank rank)
Get clan members by their ranks- Parameters:
rank- ClanRank- Returns:
- clan member list
-
getPageContent
public String getPageContent()
Retrieve the page content of the clan- Returns:
- clanpage
-
getAvatarAsLink
public String getAvatarAsLink()
Retrieve a link to the avatar of the clan- Returns:
- link to avatar / can be null
-
getTwitter
public String getTwitter()
Retrieve twitter information of the clan- Returns:
- twitter information / can be null
-
getYoutube
public String getYoutube()
Retrieve youtube information of the clan- Returns:
- youtube information / can be null
-
getHomepage
public String getHomepage()
Retrieve the number of comments of the clan- Returns:
- number of comments
-
getBedwarsStats
public GameModeStats getBedwarsStats()
Get clan stats from game mode Bedwars as GameModeStats object- Returns:
- GameModeStats
-
getSurvivalGamesStats
public GameModeStats getSurvivalGamesStats()
Get clan stats from game mode SurvivalGames as GameModeStats object- Returns:
- GameModeStats
-
getCoresStats
public GameModeStats getCoresStats()
Get clan stats from game mode Cores as GameModeStats object- Returns:
- GameModeStats
-
-