Class ChartList

java.lang.Object
de.klassenserver7b.k7bot.music.utilities.ChartList

public class ChartList extends Object
  • Field Details

    • log

      private final org.slf4j.Logger log
  • Constructor Details

    • ChartList

      public ChartList()
  • Method Details

    • getcharts

      public HashMap<String,Long> getcharts(net.dv8tion.jda.api.entities.Guild guild, Long time, ChronoUnit timeunit)
      Parameters:
      guild -
      The specific Guild for which you want the charts.
      time -
      The amount of (days/weeks/months/etc.) you want the charts for.
      timeunit -
      The specification which Unit is used for time.
      Returns:
      A HashHashMap containing the selected Charts. "songname - author" Strings are the keys and the "timesplayed" are the values.
    • getcharts

      public HashMap<String,Long> getcharts(Long guildid, Long time, ChronoUnit timeunit)
      Parameters:
      guildid -
      The specific Id of the Guild for which you want the charts.
      time -
      The amount of (days/weeks/months/etc.) you want the charts for.
      timeunit -
      The specification which Unit is used for time.
      Returns:
      A HashHashMap containing the selected Charts. "songname - author" Strings are the keys and the "timesplayed" are the values.
    • getcharts

      public HashMap<String,Long> getcharts(net.dv8tion.jda.api.entities.Guild guild)
      Parameters:
      guild -
      The specific Guild for which you want the charts.
      Returns:
      A HashHashMap containing the selected Charts. "songname - author" Strings are the keys and the "timesplayed" are the values.
    • getcharts

      public HashMap<String,Long> getcharts(Long guildid)
      Parameters:
      guildid -
      The specific Id of the Guild for which you want the charts.
      Returns:
      A HashHashMap containing the selected Charts. "songname - author" Strings are the keys and the "timesplayed" are the values.
    • getcharts

      public HashMap<String,Long> getcharts(Long time, ChronoUnit timeunit)
      Parameters:
      time -
      The amount of (days/weeks/months/etc.) you want the charts for.
      timeunit -
      The specification which Unit is used for time.
      Returns:
      A HashHashMap containing the selected Charts. "songname - author" Strings are the keys and the "timesplayed" are the values.
    • getcharts

      public HashMap<String,Long> getcharts()
      Returns:
      A HashHashMap containing the charts for all servers over all time. "songname - author" Strings are the keys and the "timesplayed" are the values.
    • listcharts

      private HashMap<String,Long> listcharts(Long guildid, Long time, ChronoUnit timeunit)
      Parameters:
      guildid -
      The Id of the specific guild whose charts the method should fetch or null if you want the charts for every guild.
      time -
      The amount of (days/weeks/months/etc.) the method should search the charts for.
      timeunit -
      The specification which Unit is used for time.
      Returns:
      A HashHashMap containing the charts for all servers over all time. "songname - author" Strings are the keys and the "timesplayed" are the values.