Package de.presti.ree6.logger.invite
Class InviteContainer
java.lang.Object
de.presti.ree6.logger.invite.InviteContainer
Classed used to save Data of Invites from the Database.
-
Constructor Summary
ConstructorsConstructorDescriptionInviteContainer(String creatorId, String guildId, String code, long uses, boolean isVanity) Constructor for the InviteContainer which saved the Data. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Get the Invite Code.Get the UserID of the Invite Creator.Get the GuildID of the Guild.longgetUses()Get the Usage Count of the Invite.booleanisVanity()Get if the Invite is a Vanity Invite.voidSet the Code of the Invite.voidsetCreatorId(String creatorId) Set the ID of the Creator.voidsetGuildId(String guildId) Set the ID of the Guild.voidsetUses(long uses) Set the Usage Count of the Invite.voidsetVanity(boolean isVanity) Set if the Invite is a Vanity Invite.
-
Constructor Details
-
InviteContainer
Constructor for the InviteContainer which saved the Data.- Parameters:
creatorId- the ID of the Creator.guildId- the ID of the Guild.code- the Code of the Invite.uses- the Usage Count of the Invite.isVanity- if the Invite is a vanity Invite.
-
-
Method Details
-
getCreatorId
Get the UserID of the Invite Creator.- Returns:
Stringas User ID.
-
setCreatorId
Set the ID of the Creator.- Parameters:
creatorId- the ID of the Creator.
-
getGuildId
Get the GuildID of the Guild.- Returns:
Stringas Guild ID.
-
setGuildId
Set the ID of the Guild.- Parameters:
guildId- the ID of the Guild.
-
getCode
Get the Invite Code.- Returns:
Stringas Invite code.
-
setCode
Set the Code of the Invite.- Parameters:
code- the Code of the Invite.
-
getUses
public long getUses()Get the Usage Count of the Invite.- Returns:
Longas Usage Count.
-
setUses
public void setUses(long uses) Set the Usage Count of the Invite.- Parameters:
uses- the Usage Count of the Invite.
-
isVanity
public boolean isVanity()Get if the Invite is a Vanity Invite.- Returns:
Booleanas Vanity Invite.
-
setVanity
public void setVanity(boolean isVanity) Set if the Invite is a Vanity Invite.- Parameters:
isVanity- if the Invite is a Vanity Invite.
-