desktop
This commit is contained in:
@@ -433,7 +433,7 @@ class LiveInformation {
|
||||
|
||||
if (mode == "info") {
|
||||
print("Announce info command received");
|
||||
announcementModule.queueAnnounementByInfoIndex(
|
||||
announcementModule.queueAnnouncementByInfoIndex(
|
||||
sendToServer: false,
|
||||
infoIndex: int.parse(commandParts[2]),
|
||||
scheduledTime: DateTime.fromMillisecondsSinceEpoch(int.parse(commandParts[3])),
|
||||
|
||||
@@ -224,7 +224,7 @@ class AnnouncementModule extends InfoModule {
|
||||
|
||||
}
|
||||
|
||||
void queueAnnounementByInfoIndex({
|
||||
void queueAnnouncementByInfoIndex({
|
||||
int infoIndex = -1,
|
||||
DateTime? scheduledTime = null,
|
||||
bool sendToServer = true
|
||||
@@ -235,7 +235,7 @@ class AnnouncementModule extends InfoModule {
|
||||
scheduledTime ??= liveInformation.syncedTimeModule.Now().add(Duration(seconds: defaultAnnouncementDelay));
|
||||
|
||||
liveInformation.SendCommand("announce info $infoIndex ${scheduledTime.millisecondsSinceEpoch}");
|
||||
queueAnnounementByInfoIndex(
|
||||
queueAnnouncementByInfoIndex(
|
||||
infoIndex: infoIndex,
|
||||
scheduledTime: scheduledTime,
|
||||
sendToServer: false
|
||||
|
||||
@@ -144,7 +144,7 @@ class CommandModule extends InfoModule {
|
||||
}
|
||||
} catch (e) {}
|
||||
|
||||
liveInformation.announcementModule.queueAnnounementByInfoIndex(
|
||||
liveInformation.announcementModule.queueAnnouncementByInfoIndex(
|
||||
infoIndex: InfoIndex,
|
||||
scheduledTime: scheduledTime,
|
||||
sendToServer: false
|
||||
|
||||
Reference in New Issue
Block a user