<?php

/**
 * Generated by phpSPO model generator 2020-05-26T22:10:14+00:00 
 */
namespace Office365\Graph;

use Office365\Runtime\ClientObject;
use Office365\Runtime\ResourcePath;
class ActivityHistoryItem extends ClientObject
{
    /**
     * @return integer
     */
    public function getActiveDurationSeconds()
    {
        if (!$this->isPropertyAvailable("ActiveDurationSeconds")) {
            return null;
        }
        return $this->getProperty("ActiveDurationSeconds");
    }
    /**
     * @var integer
     */
    public function setActiveDurationSeconds($value)
    {
        $this->setProperty("ActiveDurationSeconds", $value, true);
    }
    /**
     * @return string
     */
    public function getUserTimezone()
    {
        if (!$this->isPropertyAvailable("UserTimezone")) {
            return null;
        }
        return $this->getProperty("UserTimezone");
    }
    /**
     * @var string
     */
    public function setUserTimezone($value)
    {
        $this->setProperty("UserTimezone", $value, true);
    }
    /**
     * @return UserActivity
     */
    public function getActivity()
    {
        if (!$this->isPropertyAvailable("Activity")) {
            $this->setProperty("Activity", new UserActivity($this->getContext(), new ResourcePath("Activity", $this->getResourcePath())));
        }
        return $this->getProperty("Activity");
    }
}