work on say and gather

This commit is contained in:
Dave Horton
2020-01-13 14:01:19 -05:00
parent 1debb193c2
commit 1a656f3f0e
16 changed files with 1034 additions and 236 deletions

17
lib/task-list.js Normal file
View File

@@ -0,0 +1,17 @@
class TaskList {
constructor(tasks, callSid) {
this.tasks = tasks;
this.callSid = callSid;
}
shift() {
const task = this.tasks.shift();
if (task) return {task, callSid: this.callSid};
}
get length() {
return this.tasks.length;
}
}
module.exports = TaskList;