CallStatusResponse.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Service
  17. * @subpackage DeveloperGarden
  18. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * @see Zend_Service_DeveloperGarden_Response_VoiceButler_VoiceButlerAbstract
  24. */
  25. require_once 'Zend/Service/DeveloperGarden/Response/VoiceButler/VoiceButlerAbstract.php';
  26. /**
  27. * @category Zend
  28. * @package Zend_Service
  29. * @subpackage DeveloperGarden
  30. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  31. * @author Marco Kaiser
  32. * @license http://framework.zend.com/license/new-bsd New BSD License
  33. */
  34. class Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatusResponse
  35. extends Zend_Service_DeveloperGarden_Response_VoiceButler_VoiceButlerAbstract
  36. {
  37. /**
  38. * returns the session id
  39. * @return string
  40. */
  41. public function getSessionId()
  42. {
  43. if (isset($this->return->sessionId)) {
  44. return $this->return->sessionId;
  45. }
  46. return null;
  47. }
  48. /**
  49. * returns the connection time for participant a
  50. *
  51. * @return integer
  52. */
  53. public function getConnectionTimeA()
  54. {
  55. if (isset($this->return->connectiontimea)) {
  56. return $this->return->connectiontimea;
  57. }
  58. return null;
  59. }
  60. /**
  61. * returns the connection time for participant b
  62. *
  63. * @return integer
  64. */
  65. public function getConnectionTimeB()
  66. {
  67. if (isset($this->return->connectiontimeb)) {
  68. return $this->return->connectiontimeb;
  69. }
  70. return null;
  71. }
  72. /**
  73. * returns the description time for participant a
  74. *
  75. * @return string
  76. */
  77. public function getDescriptionA()
  78. {
  79. if (isset($this->return->descriptiona)) {
  80. return $this->return->descriptiona;
  81. }
  82. return null;
  83. }
  84. /**
  85. * returns the description time for participant b
  86. *
  87. * @return string
  88. */
  89. public function getDescriptionB()
  90. {
  91. if (isset($this->return->descriptionb)) {
  92. return $this->return->descriptionb;
  93. }
  94. return null;
  95. }
  96. /**
  97. * returns the reason time for participant a
  98. *
  99. * @return integer
  100. */
  101. public function getReasonA()
  102. {
  103. if (isset($this->return->reasona)) {
  104. return $this->return->reasona;
  105. }
  106. return null;
  107. }
  108. /**
  109. * returns the reason time for participant b
  110. *
  111. * @return integer
  112. */
  113. public function getReasonB()
  114. {
  115. if (isset($this->return->reasonb)) {
  116. return $this->return->reasonb;
  117. }
  118. return null;
  119. }
  120. /**
  121. * returns the state time for participant a
  122. *
  123. * @return string
  124. */
  125. public function getStateA()
  126. {
  127. if (isset($this->return->statea)) {
  128. return $this->return->statea;
  129. }
  130. return null;
  131. }
  132. /**
  133. * returns the state time for participant b
  134. *
  135. * @return string
  136. */
  137. public function getStateB()
  138. {
  139. if (isset($this->return->stateb)) {
  140. return $this->return->stateb;
  141. }
  142. return null;
  143. }
  144. }