Extension: Move Timers to the Source class

This commit is contained in:
Romain Vigier
2022-08-17 12:23:17 +02:00
parent a1ea280fd6
commit f203c9695a
7 changed files with 104 additions and 31 deletions
+13
View File
@@ -0,0 +1,13 @@
// SPDX-FileCopyrightText: 2022 Romain Vigier <contact AT romainvigier.fr>
// SPDX-License-Identifier: GPL-3.0-or-later
/**
* Source types.
*
* @readonly
* @enum {string}
*/
var SourceType = {
LOCATION: 'location',
SCHEDULE: 'schedule',
};
+13
View File
@@ -0,0 +1,13 @@
// SPDX-FileCopyrightText: 2021 Romain Vigier <contact AT romainvigier.fr>
// SPDX-License-Identifier: GPL-3.0-or-later
/**
* Sun times.
*
* @readonly
* @enum {string}
*/
var SunTime = {
SUNSET: 'sunset',
SUNRISE: 'sunrise',
};