Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
fix(mqtt): update disable voice mail topic
Browse files Browse the repository at this point in the history
Signed-off-by: Rafa Hernandez <rhernandez@teclib.com>
  • Loading branch information
rafaelje authored and Hector Rondon committed Feb 2, 2018
1 parent ea7498a commit 8b004e6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/src/main/java/org/flyve/mdm/agent/services/MQTTService.java
Expand Up @@ -994,6 +994,23 @@ public void messageArrived(String topic, MqttMessage message) throws Exception {
}
}

// Policy/disableVoiceMail
String DISABLE_VOICEMAIL = "disableVoiceMail";
if(topic.toLowerCase().contains(DISABLE_VOICEMAIL.toLowerCase())) {
try {
JSONObject jsonObj = new JSONObject(messageBody);

if(jsonObj.has(DISABLE_VOICEMAIL)) {
Boolean disable = jsonObj.getBoolean(DISABLE_VOICEMAIL);
String taskId = jsonObj.getString("taskId");

policiesController.disableVoiceMail(disable);
}
} catch (Exception ex) {
FlyveLog.e(ex.getMessage());
}
}



}
Expand Down
Expand Up @@ -679,6 +679,10 @@ public void disableFmRadio(Boolean disable) {
FlyveLog.i("This policy is not implemented");
}

public void disableVoiceMail(Boolean disable) {
FlyveLog.i("This policy is not implemented");
}

/**
* Send the Status version of the agent
* payload: {"version": "0.99.0"}
Expand Down

0 comments on commit 8b004e6

Please sign in to comment.