Source of file SCCPShowLineEvent.php

Size: 8,537 Bytes - Last Modified: 2019-04-25T22:07:38+00:00

/data/development/sccp/sources/PAMI/src/PAMI/Message/Event/SCCPShowLineEvent.php

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
<?php
/**
 * Event triggered by SCCPShowLine.
 *
 * PHP Version 5
 *
 * @category   Pami
 * @package    Message
 * @subpackage Event
 * @author     Diederik de Groot <ddegroot@users.sf.net>
 * @license    http://marcelog.github.com/PAMI/ Apache License 2.0
 * @version    SVN: $Id$
 * @link       http://marcelog.github.com/PAMI/
 *
 * Copyright 2015 Diederik de Groot <ddegroot@users.sf.net>, Marcelo Gornstein <marcelog@gmail.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
namespace PAMI\Message\Event;

use PAMI\Message\Event\EventMessage;

/**
 * Event triggered by SCCPShowLine.
 *
 * PHP Version 5
 *
 * @category   Pami
 * @package    Message
 * @subpackage Event
 * @author     Diederik de Groot <ddegroot@users.sf.net>
 * @license    http://marcelog.github.com/PAMI/ Apache License 2.0
 * @link       http://marcelog.github.com/PAMI/
 */
class SCCPShowLineEvent extends EventMessage
{
    /**
     * Returns key: 'Name'.
     *
     * @return string
     */
    public function getName()
    {
        return $this->getKey('Name');
    }

    /**
     * Returns key: 'Description'.
     *
     * @return string
     */
    public function getDescription()
    {
        return $this->getKey('Description');
    }

    /**
     * Returns key: 'Label'.
     *
     * @return string
     */
    public function getLabel()
    {
        return $this->getKey('Label');
    }

    /**
     * Returns key: 'ID'.
     *
     * @return integer
     */
    public function getID()
    {
        return intval($this->getKey('ID'));
    }

    /**
     * Returns key: 'Pin'.
     *
     * @return integer
     */
    public function getPin()
    {
        return intval($this->getKey('Pin'));
    }

    /**
     * Returns key: 'VoiceMailNumber'.
     *
     * @return string
     */
    public function getVoiceMailNumber()
    {
        return $this->getKey('VoiceMailNumber');
    }

    /**
     * Returns key: 'TransferToVoicemail'.
     *
     * @return string
     */
    public function getTransferToVoicemail()
    {
        return $this->getKey('TransferToVoicemail');
    }

    /**
     * Returns key: 'MeetMeEnabled'.
     *
     * @return boolean
     */
    public function getMeetMeEnabled()
    {
        return $this->getBoolKey('MeetMeEnabled');
    }

    /**
     * Returns key: 'MeetMeNumber'.
     *
     * @return string
     */
    public function getMeetMeNumber()
    {
        return $this->getKey('MeetMeNumber');
    }

    /**
     * Returns key: 'MeetMeOptions'.
     *
     * @return string
     */
    public function getMeetMeOptions()
    {
        return $this->getKey('MeetMeOptions');
    }

    /**
     * Returns key: 'Context'.
     *
     * @return string
     */
    public function getContext()
    {
        return $this->getKey('Context');
    }

    /**
     * Returns key: 'Language'.
     *
     * @return string
     */
    public function getLanguage()
    {
        return $this->getKey('Language');
    }

    /**
     * Returns key: 'AccountCode'.
     *
     * @return string
     */
    public function getAccountCode()
    {
        return $this->getKey('AccountCode');
    }

    /**
     * Returns key: 'Musicclass'.
     *
     * @return string
     */
    public function getMusicclass()
    {
        return $this->getKey('Musicclass');
    }

    /**
     * Returns key: 'AmaFlags'.
     *
     * @return integer
     */
    public function getAmaFlags()
    {
        return intval($this->getKey('AmaFlags'));
    }

    /**
     * Returns key: 'CallGroup'.
     *
     * @return int[]
     */
    public function getCallGroup()
    {
        return array_map('intval', explode(",", $this->getKey('Callgroup')));
    }

    /**
     * Returns key: 'PickupGroup'.
     *
     * @return int[]
     */
    public function getPickupGroup()
    {
        return array_map('intval', explode(",", $this->getKey('Pickupgroup')));
    }

    /**
     * Returns key: 'NamedCallGroup'.
     *
     * @return string[]
     */
    public function getNamedCallGroup()
    {
        return explode(",", $this->getKey('NamedCallGroup'));
    }

    /**
     * Returns key: 'NamedPickupGroup'.
     *
     * @return string[]
     */
    public function getNamedPickupGroup()
    {
        return explode(",", $this->getKey('NamedPickupGroup'));
    }

    /**
     * Returns key: 'ParkingLot'.
     *
     * @return string
     */
    public function getParkingLot()
    {
        return $this->getKey('ParkingLot');
    }

    /**
     * Returns key: 'CallerIDName'.
     *
     * @return string
     */
    public function getCallerIDName()
    {
        return $this->getKey('CallerIDName');
    }

    /**
     * Returns key: 'CallerIDNumber'.
     *
     * @return string
     */
    public function getCallerIDNumber()
    {
        return $this->getKey('CallerIDNumber');
    }

    /**
     * Returns key: 'IncomingCallsLimit'.
     *
     * @return integer
     */
    public function getIncomingCallsLimit()
    {
        return intval($this->getKey('IncomingCallsLimit'));
    }

    /**
     * Returns key: 'ActiveChannelCount'.
     *
     * @return integer
     */
    public function getActiveChannelCount()
    {
        return intval($this->getKey('ActiveChannelCount'));
    }

    /**
     * Returns key: 'SecDialtoneDigits'.
     *
     * @return integer
     */
    public function getSecDialtoneDigits()
    {
        return intval($this->getKey('SecDialtoneDigits'));
    }

    /**
     * Returns key: 'SecDialtone'.
     *
     * @return integer
     */
    public function getSecDialtone()
    {
        /* can be either integer or hex -> convert hex to int */
        return intval($this->getKey('SecDialtone'), 0);
    }

    /**
     * Returns key: 'EchoCancellation'.
     *
     * @return boolean
     */
    public function getEchoCancellation()
    {
        return $this->getBoolKey('EchoCancellation');
    }

    /**
     * Returns key: 'SilenceSuppression'.
     *
     * @return boolean
     */
    public function getSilenceSuppression()
    {
        return $this->getBoolKey('SilenceSuppression');
    }

    /**
     * Returns key: 'CanTransfer'.
     *
     * @return boolean
     */
    public function getCanTransfer()
    {
        return $this->getBoolKey('CanTransfer');
    }

    /**
     * Returns key: 'DNDAction'.
     *
     * @return string
     */
    public function getDNDAction()
    {
        return $this->getKey('DNDAction');
    }

    /**
     * Returns key: 'IsRealtimeLine'.
     *
     * @return boolean
     */
    public function getIsRealtimeLine()
    {
        return $this->getBoolKey('IsRealtimeLine');
    }

    /**
     * Returns key: 'PendingDelete'.
     *
     * @return boolean
     */
    public function getPendingDelete()
    {
        return $this->getBoolKey('PendingDelete');
    }

    /**
     * Returns key: 'PendingUpdate'.
     *
     * @return boolean
     */
    public function getPendingUpdate()
    {
        return $this->getBoolKey('PendingUpdate');
    }

    /**
     * Returns key: 'RegistrationExtension'.
     *
     * @return string
     */
    public function getRegistrationExtension()
    {
        return $this->getKey('RegistrationExtension');
    }

    /**
     * Returns key: 'RegistrationContext'.
     *
     * @return string
     */
    public function getRegistrationContext()
    {
        return $this->getKey('RegistrationContext');
    }

    /**
     * Returns key: 'AdhocNumberAssigned'.
     *
     * @return boolean
     */
    public function getAdhocNumberAssigned()
    {
        return $this->getBoolKey('AdhocNumberAssigned');
    }

    /**
     * Returns key: 'MessageWaitingNew'.
     *
     * @return integer
     */
    public function getMessageWaitingNew()
    {
        return intval($this->getKey('MessageWaitingNew'));
    }

    /**
     * Returns key: 'MessageWaitingOld'.
     *
     * @return integer
     */
    public function getMessageWaitingOld()
    {
        return intval($this->getKey('MessageWaitingOld'));
    }
}