Class GiveawayManager

java.lang.Object
de.presti.ree6.module.giveaway.GiveawayManager
All Implemented Interfaces:
IManager<de.presti.ree6.sql.entities.Giveaway>

public class GiveawayManager extends Object implements IManager<de.presti.ree6.sql.entities.Giveaway>
Manager for the Giveaways.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    endGiveaway(de.presti.ree6.sql.entities.Giveaway giveaway, net.dv8tion.jda.api.utils.messages.MessageEditBuilder messageEditBuilder, List<net.dv8tion.jda.api.entities.User> users)
     
    endGiveaway(de.presti.ree6.sql.entities.Giveaway giveaway, net.dv8tion.jda.api.utils.messages.MessageEditBuilder messageEditBuilder, List<net.dv8tion.jda.api.entities.User> users, long winners)
     
    de.presti.ree6.sql.entities.Giveaway
    get(long value)
    Get an object from the List.
    de.presti.ree6.sql.entities.Giveaway
    get(String value)
    Get an object from the List.
    List<de.presti.ree6.sql.entities.Giveaway>
    Get the List.
    void
    Load the needed data.
    void
    remove(de.presti.ree6.sql.entities.Giveaway object)
    Remove an object from the List.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.presti.ree6.module.IManager

    add, clear, replace
  • Constructor Details

    • GiveawayManager

      public GiveawayManager()
      Constructor.
  • Method Details

    • load

      public void load()
      Description copied from interface: IManager
      Load the needed data.
      Specified by:
      load in interface IManager<de.presti.ree6.sql.entities.Giveaway>
    • get

      public de.presti.ree6.sql.entities.Giveaway get(String value)
      Description copied from interface: IManager
      Get an object from the List.
      Specified by:
      get in interface IManager<de.presti.ree6.sql.entities.Giveaway>
      Parameters:
      value - the value to search for.
      Returns:
      the object.
    • get

      public de.presti.ree6.sql.entities.Giveaway get(long value)
      Description copied from interface: IManager
      Get an object from the List.
      Specified by:
      get in interface IManager<de.presti.ree6.sql.entities.Giveaway>
      Parameters:
      value - the value to search for.
      Returns:
      the object.
    • remove

      public void remove(de.presti.ree6.sql.entities.Giveaway object)
      Description copied from interface: IManager
      Remove an object from the List.
      Specified by:
      remove in interface IManager<de.presti.ree6.sql.entities.Giveaway>
      Parameters:
      object - the object to remove.
    • endGiveaway

      public String endGiveaway(de.presti.ree6.sql.entities.Giveaway giveaway, net.dv8tion.jda.api.utils.messages.MessageEditBuilder messageEditBuilder, List<net.dv8tion.jda.api.entities.User> users)
    • endGiveaway

      public String endGiveaway(de.presti.ree6.sql.entities.Giveaway giveaway, net.dv8tion.jda.api.utils.messages.MessageEditBuilder messageEditBuilder, List<net.dv8tion.jda.api.entities.User> users, long winners)
    • getList

      public List<de.presti.ree6.sql.entities.Giveaway> getList()
      Description copied from interface: IManager
      Get the List.
      Specified by:
      getList in interface IManager<de.presti.ree6.sql.entities.Giveaway>
      Returns:
      the List.