Class ChartList
java.lang.Object
de.klassenserver7b.k7bot.music.utilities.ChartList
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetcharts(Long guildid, Long time, ChronoUnit timeunit) getcharts(Long time, ChronoUnit timeunit) getcharts(net.dv8tion.jda.api.entities.Guild guild) getcharts(net.dv8tion.jda.api.entities.Guild guild, Long time, ChronoUnit timeunit) listcharts(Long guildid, Long time, ChronoUnit timeunit)
-
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 specificGuildfor which you want the charts.time-
Theamountof (days/weeks/months/etc.) you want the charts for.timeunit-
The specification whichUnitis used for time.- Returns:
- A
HashHashMapcontaining the selected Charts. "songname - author" Strings are thekeysand the "timesplayed" are thevalues.
-
getcharts
- Parameters:
guildid-
The specific Id of theGuildfor which you want the charts.time-
Theamountof (days/weeks/months/etc.) you want the charts for.timeunit-
The specification whichUnitis used for time.- Returns:
- A
HashHashMapcontaining the selected Charts. "songname - author" Strings are thekeysand the "timesplayed" are thevalues.
-
getcharts
-
getcharts
-
getcharts
- Parameters:
time-
Theamountof (days/weeks/months/etc.) you want the charts for.timeunit-
The specification whichUnitis used for time.- Returns:
- A
HashHashMapcontaining the selected Charts. "songname - author" Strings are thekeysand the "timesplayed" are thevalues.
-
getcharts
-
listcharts
- Parameters:
guildid-
TheIdof the specific guild whose charts the method should fetch or null if you want the charts for every guild.time-
Theamountof (days/weeks/months/etc.) the method should search the charts for.timeunit-
The specification whichUnitis used for time.- Returns:
- A
HashHashMapcontaining the charts for all servers over all time. "songname - author" Strings are thekeysand the "timesplayed" are thevalues.
-