<?php
/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* PstnOnlineMeetingDialoutReport File
* PHP version 7
*
* @category  Library
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
namespace Beta\Microsoft\Graph\CallRecords\Model;
/**
* PstnOnlineMeetingDialoutReport class
*
* @category  Model
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
class PstnOnlineMeetingDialoutReport extends \Beta\Microsoft\Graph\Model\Entity
{
    /**
    * Gets the currency
    * Currency used to calculate the cost of the call. For details, see ISO 4217.
    *
    * @return string|null The currency
    */
    public function getCurrency()
    {
        if (array_key_exists("currency", $this->_propDict)) {
            return $this->_propDict["currency"];
        } else {
            return null;
        }
    }

    /**
    * Sets the currency
    * Currency used to calculate the cost of the call. For details, see ISO 4217.
    *
    * @param string $val The value of the currency
    *
    * @return PstnOnlineMeetingDialoutReport
    */
    public function setCurrency($val)
    {
        $this->_propDict["currency"] = $val;
        return $this;
    }
    /**
    * Gets the destinationContext
    * Indicates whether the call was Domestic (within a country or region) or International (outside a country or region) based on the user's location.
    *
    * @return string|null The destinationContext
    */
    public function getDestinationContext()
    {
        if (array_key_exists("destinationContext", $this->_propDict)) {
            return $this->_propDict["destinationContext"];
        } else {
            return null;
        }
    }

    /**
    * Sets the destinationContext
    * Indicates whether the call was Domestic (within a country or region) or International (outside a country or region) based on the user's location.
    *
    * @param string $val The value of the destinationContext
    *
    * @return PstnOnlineMeetingDialoutReport
    */
    public function setDestinationContext($val)
    {
        $this->_propDict["destinationContext"] = $val;
        return $this;
    }

    /**
    * Gets the totalCallCharge
    * Total costs of all the calls within the selected time range, including call charges and connection fees.
    *
    * @return \Beta\Microsoft\Graph\Model\Decimal|null The totalCallCharge
    */
    public function getTotalCallCharge()
    {
        if (array_key_exists("totalCallCharge", $this->_propDict)) {
            if (is_a($this->_propDict["totalCallCharge"], "\Beta\Microsoft\Graph\Model\Decimal") || is_null($this->_propDict["totalCallCharge"])) {
                return $this->_propDict["totalCallCharge"];
            } else {
                $this->_propDict["totalCallCharge"] = new \Beta\Microsoft\Graph\Model\Decimal($this->_propDict["totalCallCharge"]);
                return $this->_propDict["totalCallCharge"];
            }
        }
        return null;
    }

    /**
    * Sets the totalCallCharge
    * Total costs of all the calls within the selected time range, including call charges and connection fees.
    *
    * @param \Beta\Microsoft\Graph\Model\Decimal $val The value to assign to the totalCallCharge
    *
    * @return PstnOnlineMeetingDialoutReport The PstnOnlineMeetingDialoutReport
    */
    public function setTotalCallCharge($val)
    {
        $this->_propDict["totalCallCharge"] = $val;
         return $this;
    }
    /**
    * Gets the totalCalls
    * Total number of dial-out calls within the selected time range.
    *
    * @return int|null The totalCalls
    */
    public function getTotalCalls()
    {
        if (array_key_exists("totalCalls", $this->_propDict)) {
            return $this->_propDict["totalCalls"];
        } else {
            return null;
        }
    }

    /**
    * Sets the totalCalls
    * Total number of dial-out calls within the selected time range.
    *
    * @param int $val The value of the totalCalls
    *
    * @return PstnOnlineMeetingDialoutReport
    */
    public function setTotalCalls($val)
    {
        $this->_propDict["totalCalls"] = $val;
        return $this;
    }
    /**
    * Gets the totalCallSeconds
    * Total duration of all the calls within the selected time range, in seconds.
    *
    * @return int|null The totalCallSeconds
    */
    public function getTotalCallSeconds()
    {
        if (array_key_exists("totalCallSeconds", $this->_propDict)) {
            return $this->_propDict["totalCallSeconds"];
        } else {
            return null;
        }
    }

    /**
    * Sets the totalCallSeconds
    * Total duration of all the calls within the selected time range, in seconds.
    *
    * @param int $val The value of the totalCallSeconds
    *
    * @return PstnOnlineMeetingDialoutReport
    */
    public function setTotalCallSeconds($val)
    {
        $this->_propDict["totalCallSeconds"] = $val;
        return $this;
    }
    /**
    * Gets the usageLocation
    * Country code of the user. For details, see ISO 3166-1 alpha-2.
    *
    * @return string|null The usageLocation
    */
    public function getUsageLocation()
    {
        if (array_key_exists("usageLocation", $this->_propDict)) {
            return $this->_propDict["usageLocation"];
        } else {
            return null;
        }
    }

    /**
    * Sets the usageLocation
    * Country code of the user. For details, see ISO 3166-1 alpha-2.
    *
    * @param string $val The value of the usageLocation
    *
    * @return PstnOnlineMeetingDialoutReport
    */
    public function setUsageLocation($val)
    {
        $this->_propDict["usageLocation"] = $val;
        return $this;
    }
    /**
    * Gets the userDisplayName
    * Display name of the user.
    *
    * @return string|null The userDisplayName
    */
    public function getUserDisplayName()
    {
        if (array_key_exists("userDisplayName", $this->_propDict)) {
            return $this->_propDict["userDisplayName"];
        } else {
            return null;
        }
    }

    /**
    * Sets the userDisplayName
    * Display name of the user.
    *
    * @param string $val The value of the userDisplayName
    *
    * @return PstnOnlineMeetingDialoutReport
    */
    public function setUserDisplayName($val)
    {
        $this->_propDict["userDisplayName"] = $val;
        return $this;
    }
    /**
    * Gets the userId
    * The unique identifier (GUID) of the user in Microsoft Entra ID.
    *
    * @return string|null The userId
    */
    public function getUserId()
    {
        if (array_key_exists("userId", $this->_propDict)) {
            return $this->_propDict["userId"];
        } else {
            return null;
        }
    }

    /**
    * Sets the userId
    * The unique identifier (GUID) of the user in Microsoft Entra ID.
    *
    * @param string $val The value of the userId
    *
    * @return PstnOnlineMeetingDialoutReport
    */
    public function setUserId($val)
    {
        $this->_propDict["userId"] = $val;
        return $this;
    }
    /**
    * Gets the userPrincipalName
    * The user principal name (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP address, and can be same as the user's e-mail address.
    *
    * @return string|null The userPrincipalName
    */
    public function getUserPrincipalName()
    {
        if (array_key_exists("userPrincipalName", $this->_propDict)) {
            return $this->_propDict["userPrincipalName"];
        } else {
            return null;
        }
    }

    /**
    * Sets the userPrincipalName
    * The user principal name (sign-in name) in Microsoft Entra ID. This is usually the same as the user's SIP address, and can be same as the user's e-mail address.
    *
    * @param string $val The value of the userPrincipalName
    *
    * @return PstnOnlineMeetingDialoutReport
    */
    public function setUserPrincipalName($val)
    {
        $this->_propDict["userPrincipalName"] = $val;
        return $this;
    }
}
