Skip to content

Commit

Permalink
Added callId property o Result object.
Browse files Browse the repository at this point in the history
  • Loading branch information
mheadd committed Mar 16, 2011
1 parent 84f2179 commit 611c82a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tropo.class.php
Expand Up @@ -1136,6 +1136,7 @@ class Reject extends EmptyBaseClass { }
class Result {

private $_sessionId;
private $_callId;
private $_state;
private $_sessionDuration;
private $_sequence;
Expand Down Expand Up @@ -1170,6 +1171,7 @@ public function __construct($json=NULL) {
throw new TropoException('Not a result object.');
}
$this->_sessionId = $result->result->sessionId;
$this->_callId = $result->result->callId;
$this->_state = $result->result->state;
$this->_sessionDuration = $result->result->sessionDuration;
$this->_sequence = $result->result->sequence;
Expand All @@ -1191,6 +1193,10 @@ function getSessionId() {
return $this->_sessionId;
}

function getCallId() {
return $this->_callId;
}

function getState() {
return $this->_state;
}
Expand Down

0 comments on commit 611c82a

Please sign in to comment.