Class InviteContainer

java.lang.Object
de.presti.ree6.logger.invite.InviteContainer

public class InviteContainer extends Object
Classed used to save Data of Invites from the Database.
  • Constructor Details

    • InviteContainer

      public InviteContainer(String creatorId, String guildId, String code, long uses, boolean isVanity)
      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

      public String getCreatorId()
      Get the UserID of the Invite Creator.
      Returns:
      String as User ID.
    • setCreatorId

      public void setCreatorId(String creatorId)
      Set the ID of the Creator.
      Parameters:
      creatorId - the ID of the Creator.
    • getGuildId

      public String getGuildId()
      Get the GuildID of the Guild.
      Returns:
      String as Guild ID.
    • setGuildId

      public void setGuildId(String guildId)
      Set the ID of the Guild.
      Parameters:
      guildId - the ID of the Guild.
    • getCode

      public String getCode()
      Get the Invite Code.
      Returns:
      String as Invite code.
    • setCode

      public void setCode(String code)
      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.