-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Insurlytech/feature/leotrack-237-suppressi…
…on-des-appels add event to handle addMissedCall, remove filter on MissedCall to ret…
- Loading branch information
Showing
5 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
com.zetapush.core.visio/src/api/call/removeFromMissedCall.zms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* Macroscript that used to send the call object as a missed call. | ||
* The client need to listen this macroscript to handle missed calls | ||
*/ | ||
macroscript removeFromMissedCall( | ||
/** ID of the call */ @NotNull string id | ||
) { | ||
|
||
sudo zpRecipeUtils::GLOBAL_OWNER database.removeRow({table : TABLE_DATABASE_CALL, key : id}); | ||
|
||
} broadcast (id) {} on channel __selfName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* MISSED CALL LISTENERS */ | ||
/** Handle an Add Missed Call Event */ | ||
macroscript_annotation AddMissedCallListener = @EventListener(eventName = EVENT__ADD_MISSED_CALL, triggerService = zpServiceTrigger); |