|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * Event triggered for a QueueStatus action. |
| 4 | + * |
| 5 | + * PHP Version 5 |
| 6 | + * |
| 7 | + * @category Pami |
| 8 | + * @package Message |
| 9 | + * @subpackage Event |
| 10 | + * @author Ales Farcnik <@alesf> |
| 11 | + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 |
| 12 | + * @version SVN: $Id$ |
| 13 | + * @link http://marcelog.github.com/PAMI/ |
| 14 | + * |
| 15 | + * Copyright 2011 Marcelo Gornstein <marcelog@gmail.com> |
| 16 | + * |
| 17 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 18 | + * you may not use this file except in compliance with the License. |
| 19 | + * You may obtain a copy of the License at |
| 20 | + * |
| 21 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 22 | + * |
| 23 | + * Unless required by applicable law or agreed to in writing, software |
| 24 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 25 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 26 | + * See the License for the specific language governing permissions and |
| 27 | + * limitations under the License. |
| 28 | + * |
| 29 | + */ |
| 30 | +namespace PAMI\Message\Event; |
| 31 | + |
| 32 | +use PAMI\Message\Event\EventMessage; |
| 33 | + |
| 34 | +/** |
| 35 | + * Event triggered for a QueueStatus action. |
| 36 | + * |
| 37 | + * PHP Version 5 |
| 38 | + * |
| 39 | + * @category Pami |
| 40 | + * @package Message |
| 41 | + * @subpackage Event |
| 42 | + * @author Ales Farcnik <@alesf> |
| 43 | + * @license http://marcelog.github.com/PAMI/ Apache License 2.0 |
| 44 | + * @link http://marcelog.github.com/PAMI/ |
| 45 | + */ |
| 46 | +class QueueEntryEvent extends EventMessage |
| 47 | +{ |
| 48 | + /** |
| 49 | + * Returns key: 'Queue'. |
| 50 | + * |
| 51 | + * @return string |
| 52 | + */ |
| 53 | + public function getQueue() |
| 54 | + { |
| 55 | + return $this->getKey('Queue'); |
| 56 | + } |
| 57 | + |
| 58 | + /** |
| 59 | + * Returns key: 'Position'. |
| 60 | + * |
| 61 | + * @return integer |
| 62 | + */ |
| 63 | + public function getPosition() |
| 64 | + { |
| 65 | + return intval($this->getKey('Position')); |
| 66 | + } |
| 67 | + |
| 68 | + /** |
| 69 | + * Returns key: 'Channel'. |
| 70 | + * |
| 71 | + * @return string |
| 72 | + */ |
| 73 | + public function getChannel() |
| 74 | + { |
| 75 | + return $this->getKey('Channel'); |
| 76 | + } |
| 77 | + |
| 78 | + /** |
| 79 | + * Returns key: 'Uniqueid'. |
| 80 | + * |
| 81 | + * @return integer |
| 82 | + */ |
| 83 | + public function getUniqueid() |
| 84 | + { |
| 85 | + return $this->getKey('Uniqueid'); |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * Returns key: 'CallerIDNum'. |
| 90 | + * |
| 91 | + * @return integer |
| 92 | + */ |
| 93 | + public function getCallerIDNum() |
| 94 | + { |
| 95 | + return $this->getKey('CallerIDNum'); |
| 96 | + } |
| 97 | + |
| 98 | + /** |
| 99 | + * Returns key: 'CallerIDName'. |
| 100 | + * |
| 101 | + * @return integer |
| 102 | + */ |
| 103 | + public function getCallerIDName() |
| 104 | + { |
| 105 | + return $this->getKey('CallerIDName'); |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * Returns key: 'ConnectedLineNum'. |
| 110 | + * |
| 111 | + * @return integer |
| 112 | + */ |
| 113 | + public function getConnectedLineNum() |
| 114 | + { |
| 115 | + return $this->getKey('ConnectedLineNum'); |
| 116 | + } |
| 117 | + |
| 118 | + /** |
| 119 | + * Returns key: 'ConnectedLineName'. |
| 120 | + * |
| 121 | + * @return integer |
| 122 | + */ |
| 123 | + public function getConnectedLineName() |
| 124 | + { |
| 125 | + return $this->getKey('ConnectedLineName'); |
| 126 | + } |
| 127 | + |
| 128 | + /** |
| 129 | + * Returns key: 'Wait'. |
| 130 | + * |
| 131 | + * @return float |
| 132 | + */ |
| 133 | + public function getWait() |
| 134 | + { |
| 135 | + return $this->getKey('Wait'); |
| 136 | + } |
| 137 | + |
| 138 | +} |
0 commit comments