<?php
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.2
//
// <auto-generated>
//
// Generated from file `User.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//


namespace
{
    require_once 'Config.php';
    require_once 'Glacier2/Session.php';
    require_once 'Common.php';
    require_once 'Telephony/Cdr.php';
    require_once 'Peer/GenericPeer.php';
    require_once 'EmptyArgumentException.php';
    require_once 'Peer/InsecureArgumentException.php';
    require_once 'DuplicateException.php';
    require_once 'Peer/UserCallerId.php';
    require_once 'Peer/UserGroup.php';
    require_once 'Telephony/CallGeneration/AnswerPeer.php';
    require_once 'Telephony/Forwarding/Rule.php';
    require_once 'Peer/UserSipParameters.php';
    require_once 'Billing/Transaction.php';
}

namespace Smartswitch\Peer
{
    global $Smartswitch_Peer__t_RefillSource;
    class RefillSource
    {
        const User = 0;
        const Voucher = 1;
    }

    $Smartswitch_Peer__t_RefillSource = IcePHP_defineEnum('::Smartswitch::Peer::RefillSource', array('User', 0, 'Voucher', 1));
}

namespace Smartswitch\Peer
{
    global $Smartswitch_Peer__t_SpeedDialNumberMap;

    if(!isset($Smartswitch_Peer__t_SpeedDialNumberMap))
    {
        global $IcePHP__t_string;
        global $IcePHP__t_string;
        $Smartswitch_Peer__t_SpeedDialNumberMap = IcePHP_defineDictionary('::Smartswitch::Peer::SpeedDialNumberMap', $IcePHP__t_string, $IcePHP__t_string);
    }
}

namespace Smartswitch\Peer
{
    global $Smartswitch_Peer__t_User;
    global $Smartswitch_Peer__t_UserPrx;

    class UserPrxHelper
    {
        public static function checkedCast($proxy, $facetOrContext=null, $context=null)
        {
            return $proxy->ice_checkedCast('::Smartswitch::Peer::User', $facetOrContext, $context);
        }

        public static function uncheckedCast($proxy, $facet=null)
        {
            return $proxy->ice_uncheckedCast('::Smartswitch::Peer::User', $facet);
        }

        public static function ice_staticId()
        {
            return '::Smartswitch::Peer::User';
        }
    }
    $Smartswitch_Peer__t_User = IcePHP_defineClass('::Smartswitch::Peer::User', '\\Smartswitch\\Peer\\User', -1, false, true, null, null);

    global $Ice__t_ObjectPrx;
    $Smartswitch_Peer__t_UserPrx = IcePHP_defineProxy('::Smartswitch::Peer::User', $Ice__t_ObjectPrx, array($Smartswitch_Peer__t_GenericPeerPrx, $Smartswitch_Telephony_CallGeneration__t_AnswerPeerPrx));

    global $IcePHP__t_string;
    global $Smartswitch_Peer__t_UserGroupPrx;
    global $Smartswitch_Peer__t_UserSipParametersPrx;
    global $Smartswitch_Billing__t_CurrencyAmountSequence;
    global $Smartswitch_Peer__t_SpeedDialNumberMap;
    global $Smartswitch__t_StringSequence;
    global $Smartswitch_Peer__t_UserCallerIdSequence;
    global $Smartswitch_Peer__t_UserCallerIdPrx;
    global $IcePHP__t_long;
    global $Smartswitch_Telephony__t_CdrSequence;
    global $Smartswitch_Billing__t_TransactionSequence;
    global $Smartswitch_Billing__t_ServicePrx;
    global $Smartswitch_Billing__t_CurrencyAmount;
    global $IcePHP__t_bool;
    global $IcePHP__t_int;
    global $Smartswitch_Peer__t_RefillSource;
    global $Smartswitch_Telephony_Forwarding__t_RuleSequence;
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getLogin', 2, 2, 0, null, null, array($IcePHP__t_string), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'setLogin', 2, 2, 0, array(array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getMd5Password', 2, 2, 0, null, null, array($IcePHP__t_string), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'setPassword', 2, 2, 0, array(array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException, $Smartswitch__t_EmptyArgumentException, $Smartswitch_Peer__t_InsecureArgumentException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getUserGroup', 2, 2, 0, null, null, array($Smartswitch_Peer__t_UserGroupPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getSipParameters', 2, 2, 0, null, null, array($Smartswitch_Peer__t_UserSipParametersPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getBalance', 0, 0, 0, null, null, array($Smartswitch_Billing__t_CurrencyAmountSequence), null);
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getSpeedDialNumberMap', 2, 2, 0, null, null, array($Smartswitch_Peer__t_SpeedDialNumberMap), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getSpeedDialNumber', 2, 2, 0, array(array($IcePHP__t_string)), null, array($IcePHP__t_string), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'replaceSpeedDialNumber', 0, 0, 0, array(array($IcePHP__t_string), array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException, $Smartswitch__t_EmptyArgumentException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'removeSpeedDialNumber', 2, 2, 0, array(array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getCallerIds', 0, 0, 0, null, null, array($Smartswitch__t_StringSequence), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'insertCallerId', 0, 0, 0, array(array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'deleteCallerId', 0, 0, 0, array(array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getCallerIdSequence', 0, 0, 0, null, null, array($Smartswitch_Peer__t_UserCallerIdSequence), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'addCallerId', 0, 0, 0, array(array($IcePHP__t_string), array($IcePHP__t_string), array($IcePHP__t_string)), null, array($Smartswitch_Peer__t_UserCallerIdPrx), array($Smartswitch__t_AccessException, $Smartswitch__t_DuplicateException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getAuthorizedNumbers', 0, 0, 0, null, null, array($Smartswitch__t_StringSequence), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'insertAuthorizedNumber', 0, 0, 0, array(array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'deleteAuthorizedNumber', 0, 0, 0, array(array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getExtensions', 0, 0, 0, null, null, array($Smartswitch__t_StringSequence), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'insertExtension', 0, 0, 0, array(array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'deleteExtension', 0, 0, 0, array(array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getCdr', 0, 0, 0, array(array($IcePHP__t_string), array($IcePHP__t_string), array($IcePHP__t_long)), null, array($Smartswitch_Telephony__t_CdrSequence), null);
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getTransactions', 0, 0, 0, array(array($IcePHP__t_string), array($IcePHP__t_string)), null, array($Smartswitch_Billing__t_TransactionSequence), null);
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'refill', 0, 0, 0, array(array($Smartswitch_Billing__t_ServicePrx), array($Smartswitch_Billing__t_CurrencyAmount)), null, array($IcePHP__t_bool), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'writeOff', 0, 0, 0, array(array($Smartswitch_Billing__t_ServicePrx), array($Smartswitch_Billing__t_CurrencyAmount)), null, array($IcePHP__t_bool), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'refillBy', 0, 0, 0, array(array($IcePHP__t_int), array($IcePHP__t_string), array($Smartswitch_Peer__t_RefillSource)), null, array($IcePHP__t_bool), null);
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'setDescription', 0, 0, 0, array(array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'setEmail', 0, 0, 0, array(array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'setEnabled', 0, 0, 0, array(array($IcePHP__t_bool)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'setActivated', 0, 0, 0, array(array($IcePHP__t_bool)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'isActivated', 0, 0, 0, null, null, array($IcePHP__t_bool), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_UserPrx, 'getForwardingRules', 0, 0, 0, null, null, array($Smartswitch_Telephony_Forwarding__t_RuleSequence), null);
}
?>
