Skip to content
Browse files

Added the wait function

  • Loading branch information...
1 parent c892faf commit 92ef2b2be85f7a7d951539dfc7be2131177cd926 Kevin Bond committed Nov 18, 2012
Showing with 10 additions and 0 deletions.
  1. +5 −0 lib/base.js
  2. +5 −0 lib/tropo-webapi.js
View
5 lib/base.js
@@ -179,6 +179,11 @@ Transfer = function(to, answerOnMedia, choices, from, headers, name, on, require
this.ringRepeat = ringRepeat;
};
+Wait = function(milliseconds, allowSignals){
+ this.milliseconds = milliseconds;
+ this.allowSignals = allowSignals;
+};
+
// Helper method that serializes properties of Tropo action objects..
function serializeProperty(object) {
return JSON.stringify(object, replaceNull);
View
5 lib/tropo-webapi.js
@@ -73,6 +73,11 @@ TropoWebAPI.prototype.transfer = function(to, answerOnMedia, choices, from, head
this.tropo.push(serializeObject("transfer", transfer));
};
+TropoWebAPI.prototype.wait = function(milliseconds, allowSignals){
+ var wait = new base.Wait(milliseconds, allowSignals);
+ this.tropo.push(serializeObject("wait", wait));
+};
+
exports.TropoWebAPI = TropoWebAPI;
/**

0 comments on commit 92ef2b2

Please sign in to comment.
Something went wrong with that request. Please try again.