Erweiterungen
This commit is contained in:
1 parent
c69a5644a1
commit
e04ee3cce1
7 files changed
+11
-9
No files matched your search
@@ -16,8 +16,8 @@ class Constants {
|
||||
static const String messageTopicHideRightButton = "hide_right_button";
|
||||
static const String messageShowPopup = "show_popup";
|
||||
|
||||
static const int STATE_ASSIGNED = 0;
|
||||
static const int STATE_ACCEPTED = 1;
|
||||
static const int STATE_FINISHED = 2;
|
||||
static const int STATE_FINISHED_NOT_CONFIRMED = 9;
|
||||
static const int stateAssigned = 0;
|
||||
static const int stateAccepted = 1;
|
||||
static const int stateFinished = 2;
|
||||
static const int stateFinishedNotConfirmed = 9;
|
||||
}
|
||||
@@ -238,7 +238,7 @@ class MqttCore {
|
||||
MyApp.isarInstance.jobs.putSync(newJob);
|
||||
});
|
||||
|
||||
if (newJob.state == Constants.STATE_ASSIGNED) {
|
||||
if (newJob.state == Constants.stateAssigned) {
|
||||
if (newJob.global) {
|
||||
await Util.playMp3('aaa.mp3');
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user