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
ConstructorDescriptionInviteContainer
(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.long
getUses()
Get the Usage Count of the Invite.boolean
isVanity()
Get if the Invite is a Vanity Invite.void
Set the Code of the Invite.void
setCreatorId
(String creatorId) Set the ID of the Creator.void
setGuildId
(String guildId) Set the ID of the Guild.void
setUses
(long uses) Set the Usage Count of the Invite.void
setVanity
(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:
String
as User ID.
-
setCreatorId
Set the ID of the Creator.- Parameters:
creatorId
- the ID of the Creator.
-
getGuildId
Get the GuildID of the Guild.- Returns:
String
as Guild ID.
-
setGuildId
Set the ID of the Guild.- Parameters:
guildId
- the ID of the Guild.
-
getCode
Get the Invite Code.- Returns:
String
as 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:
Long
as 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:
Boolean
as 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.
-