1<?php
2// ===================================================================================================
3//                           _  __     _ _
4//                          | |/ /__ _| | |_ _  _ _ _ __ _
5//                          | ' </ _` | |  _| || | '_/ _` |
6//                          |_|\_\__,_|_|\__|\_,_|_| \__,_|
7//
8// This file is part of the Kaltura Collaborative Media Suite which allows users
9// to do with audio, video, and animation what Wiki platfroms allow them to do with
10// text.
11//
12// Copyright (C) 2006-2017  Kaltura Inc.
13//
14// This program is free software: you can redistribute it and/or modify
15// it under the terms of the GNU Affero General Public License as
16// published by the Free Software Foundation, either version 3 of the
17// License, or (at your option) any later version.
18//
19// This program is distributed in the hope that it will be useful,
20// but WITHOUT ANY WARRANTY; without even the implied warranty of
21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22// GNU Affero General Public License for more details.
23//
24// You should have received a copy of the GNU Affero General Public License
25// along with this program.  If not, see <http://www.gnu.org/licenses/>.
26//
27// @ignore
28// ===================================================================================================
29
30/**
31 * @namespace
32 */
33namespace Kaltura\Client\Plugin\Schedule\Type;
34
35/**
36 * @package Kaltura
37 * @subpackage Client
38 */
39abstract class ScheduleResource extends \Kaltura\Client\ObjectBase
40{
41	public function getKalturaObjectType()
42	{
43		return 'KalturaScheduleResource';
44	}
45
46	public function __construct(\SimpleXMLElement $xml = null)
47	{
48		parent::__construct($xml);
49
50		if(is_null($xml))
51			return;
52
53		if(count($xml->id))
54			$this->id = (int)$xml->id;
55		if(count($xml->parentId))
56			$this->parentId = (int)$xml->parentId;
57		if(count($xml->partnerId))
58			$this->partnerId = (int)$xml->partnerId;
59		if(count($xml->name))
60			$this->name = (string)$xml->name;
61		if(count($xml->systemName))
62			$this->systemName = (string)$xml->systemName;
63		if(count($xml->description))
64			$this->description = (string)$xml->description;
65		if(count($xml->status))
66			$this->status = (int)$xml->status;
67		if(count($xml->tags))
68			$this->tags = (string)$xml->tags;
69		if(count($xml->createdAt))
70			$this->createdAt = (int)$xml->createdAt;
71		if(count($xml->updatedAt))
72			$this->updatedAt = (int)$xml->updatedAt;
73	}
74	/**
75	 * Auto-generated unique identifier
76	 * @var int
77	 * @readonly
78	 */
79	public $id = null;
80
81	/**
82	 *
83	 * @var int
84	 */
85	public $parentId = null;
86
87	/**
88	 *
89	 * @var int
90	 * @readonly
91	 */
92	public $partnerId = null;
93
94	/**
95	 * Defines a short name
96	 * @var string
97	 */
98	public $name = null;
99
100	/**
101	 * Defines a unique system-name
102	 * @var string
103	 */
104	public $systemName = null;
105
106	/**
107	 *
108	 * @var string
109	 */
110	public $description = null;
111
112	/**
113	 *
114	 * @var \Kaltura\Client\Plugin\Schedule\Enum\ScheduleResourceStatus
115	 * @readonly
116	 */
117	public $status = null;
118
119	/**
120	 *
121	 * @var string
122	 */
123	public $tags = null;
124
125	/**
126	 * Creation date as Unix timestamp (In seconds)
127	 * @var int
128	 * @readonly
129	 */
130	public $createdAt = null;
131
132	/**
133	 * Last update as Unix timestamp (In seconds)
134	 * @var int
135	 * @readonly
136	 */
137	public $updatedAt = null;
138
139}
140