commit 02/10/2025
This commit is contained in:
@@ -7,15 +7,18 @@ import codes.Somecodes.Companion.SoundbankResult_directory
|
||||
import codes.Somecodes.Companion.ValidFile
|
||||
import codes.Somecodes.Companion.ValidString
|
||||
import codes.Somecodes.Companion.dateformat1
|
||||
import codes.Somecodes.Companion.datetimeformat1
|
||||
import codes.Somecodes.Companion.timeformat2
|
||||
import content.Category
|
||||
import content.Language
|
||||
import content.ScheduleDay
|
||||
import database.Messagebank
|
||||
import database.QueueTable
|
||||
import database.Soundbank
|
||||
import org.tinylog.Logger
|
||||
import java.time.DayOfWeek
|
||||
import java.time.LocalDate
|
||||
import java.time.LocalDateTime
|
||||
import java.time.LocalTime
|
||||
import java.util.function.Consumer
|
||||
|
||||
@@ -809,7 +812,19 @@ class MainExtension01 {
|
||||
it.Day == ddmmyyyy
|
||||
}
|
||||
if (specialdate != null) {
|
||||
// TODO Masukin ke queue table sebagai schedule special date
|
||||
val qt = QueueTable(
|
||||
0u,
|
||||
LocalDateTime.now().format(datetimeformat1),
|
||||
"AAS",
|
||||
"TIMER",
|
||||
specialdate.Description,
|
||||
specialdate.Soundpath,
|
||||
specialdate.BroadcastZones,
|
||||
1.toUInt(),
|
||||
specialdate.Language
|
||||
)
|
||||
db.queuetableDB.Add(qt)
|
||||
return
|
||||
|
||||
}
|
||||
// cek weekly schedule
|
||||
@@ -825,7 +840,19 @@ class MainExtension01 {
|
||||
}
|
||||
}
|
||||
if (weekly != null) {
|
||||
// TODO Masukin ke queue table sebagai schedule weekly
|
||||
val qt = QueueTable(
|
||||
0u,
|
||||
LocalDateTime.now().format(datetimeformat1),
|
||||
"AAS",
|
||||
"TIMER",
|
||||
weekly.Description,
|
||||
weekly.Soundpath,
|
||||
weekly.BroadcastZones,
|
||||
1.toUInt(),
|
||||
weekly.Language
|
||||
)
|
||||
db.queuetableDB.Add(qt)
|
||||
return
|
||||
|
||||
}
|
||||
// check daily schedule
|
||||
@@ -833,7 +860,19 @@ class MainExtension01 {
|
||||
it.Day == ScheduleDay.Everyday.name
|
||||
}
|
||||
if (daily != null) {
|
||||
// TODO Masukin ke queue table sebagai schedule daily
|
||||
val qt = QueueTable(
|
||||
0u,
|
||||
LocalDateTime.now().format(datetimeformat1),
|
||||
"AAS",
|
||||
"TIMER",
|
||||
daily.Description,
|
||||
daily.Soundpath,
|
||||
daily.BroadcastZones,
|
||||
1.toUInt(),
|
||||
daily.Language
|
||||
)
|
||||
db.queuetableDB.Add(qt)
|
||||
return
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user