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


namespace
{
    require_once 'Config.php';
    require_once 'Common.php';
    require_once 'Direction.php';
    require_once 'Billing/CurrencyAmount.php';
}

namespace Smartswitch\Telephony
{
    global $Smartswitch_Telephony__t_ChannelBilling;
    class ChannelBilling
    {
        public function __construct($code='', $currency='', $price=0.0, $minutePrice=0.0)
        {
            $this->code = $code;
            $this->currency = $currency;
            $this->price = $price;
            $this->minutePrice = $minutePrice;
        }

        public function __toString()
        {
            global $Smartswitch_Telephony__t_ChannelBilling;
            return IcePHP_stringify($this, $Smartswitch_Telephony__t_ChannelBilling);
        }

        public $code;
        public $currency;
        public $price;
        public $minutePrice;
    }

    global $IcePHP__t_string;
    global $IcePHP__t_double;
    $Smartswitch_Telephony__t_ChannelBilling = IcePHP_defineStruct('::Smartswitch::Telephony::ChannelBilling', '\\Smartswitch\\Telephony\\ChannelBilling', array(
        array('code', $IcePHP__t_string),
        array('currency', $IcePHP__t_string),
        array('price', $IcePHP__t_double),
        array('minutePrice', $IcePHP__t_double)));
}

namespace Smartswitch\Telephony
{
    global $Smartswitch_Telephony__t_ChannelBillingOpt;

    if(!isset($Smartswitch_Telephony__t_ChannelBillingOpt))
    {
        global $Smartswitch_Telephony__t_ChannelBilling;
        $Smartswitch_Telephony__t_ChannelBillingOpt = IcePHP_defineSequence('::Smartswitch::Telephony::ChannelBillingOpt', $Smartswitch_Telephony__t_ChannelBilling);
    }
}

namespace Smartswitch\Telephony
{
    global $Smartswitch_Telephony__t_ChannelInfo;
    class ChannelInfo
    {
        public function __construct($channelId='', $channelName='', $startTime='', $answerTime='', $sessionId='', $direction=\Smartswitch\Direction::Inbound, $technology='', $callerId='', $calleeId='', $realCallerId='', $realCalleeId='', $peerName='', $inboundCodec='', $outboundCodec='', $ipAddress='', $billing=null)
        {
            $this->channelId = $channelId;
            $this->channelName = $channelName;
            $this->startTime = $startTime;
            $this->answerTime = $answerTime;
            $this->sessionId = $sessionId;
            $this->direction = $direction;
            $this->technology = $technology;
            $this->callerId = $callerId;
            $this->calleeId = $calleeId;
            $this->realCallerId = $realCallerId;
            $this->realCalleeId = $realCalleeId;
            $this->peerName = $peerName;
            $this->inboundCodec = $inboundCodec;
            $this->outboundCodec = $outboundCodec;
            $this->ipAddress = $ipAddress;
            $this->billing = $billing;
        }

        public function __toString()
        {
            global $Smartswitch_Telephony__t_ChannelInfo;
            return IcePHP_stringify($this, $Smartswitch_Telephony__t_ChannelInfo);
        }

        public $channelId;
        public $channelName;
        public $startTime;
        public $answerTime;
        public $sessionId;
        public $direction;
        public $technology;
        public $callerId;
        public $calleeId;
        public $realCallerId;
        public $realCalleeId;
        public $peerName;
        public $inboundCodec;
        public $outboundCodec;
        public $ipAddress;
        public $billing;
    }

    global $IcePHP__t_string;
    global $Smartswitch__t_Direction;
    global $Smartswitch_Telephony__t_ChannelBillingOpt;
    $Smartswitch_Telephony__t_ChannelInfo = IcePHP_defineStruct('::Smartswitch::Telephony::ChannelInfo', '\\Smartswitch\\Telephony\\ChannelInfo', array(
        array('channelId', $IcePHP__t_string),
        array('channelName', $IcePHP__t_string),
        array('startTime', $IcePHP__t_string),
        array('answerTime', $IcePHP__t_string),
        array('sessionId', $IcePHP__t_string),
        array('direction', $Smartswitch__t_Direction),
        array('technology', $IcePHP__t_string),
        array('callerId', $IcePHP__t_string),
        array('calleeId', $IcePHP__t_string),
        array('realCallerId', $IcePHP__t_string),
        array('realCalleeId', $IcePHP__t_string),
        array('peerName', $IcePHP__t_string),
        array('inboundCodec', $IcePHP__t_string),
        array('outboundCodec', $IcePHP__t_string),
        array('ipAddress', $IcePHP__t_string),
        array('billing', $Smartswitch_Telephony__t_ChannelBillingOpt)));
}

namespace Smartswitch\Telephony
{
    global $Smartswitch_Telephony__t_ChannelInfoSequence;

    if(!isset($Smartswitch_Telephony__t_ChannelInfoSequence))
    {
        global $Smartswitch_Telephony__t_ChannelInfo;
        $Smartswitch_Telephony__t_ChannelInfoSequence = IcePHP_defineSequence('::Smartswitch::Telephony::ChannelInfoSequence', $Smartswitch_Telephony__t_ChannelInfo);
    }
}
?>
