. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_Type_UploadToken extends Kaltura_Client_ObjectBase { public function getKalturaObjectType() { return 'KalturaUploadToken'; } public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if(is_null($xml)) return; $this->id = (string)$xml->id; if(count($xml->partnerId)) $this->partnerId = (int)$xml->partnerId; $this->userId = (string)$xml->userId; if(count($xml->status)) $this->status = (int)$xml->status; $this->fileName = (string)$xml->fileName; if(count($xml->fileSize)) $this->fileSize = (float)$xml->fileSize; if(count($xml->uploadedFileSize)) $this->uploadedFileSize = (float)$xml->uploadedFileSize; if(count($xml->createdAt)) $this->createdAt = (int)$xml->createdAt; if(count($xml->updatedAt)) $this->updatedAt = (int)$xml->updatedAt; } /** * Upload token unique ID * * * @var string * @readonly */ public $id = null; /** * Partner ID of the upload token * * * @var int * @readonly */ public $partnerId = null; /** * User id for the upload token * * * @var string * @readonly */ public $userId = null; /** * Status of the upload token * * * @var Kaltura_Client_Enum_UploadTokenStatus * @readonly */ public $status = null; /** * Name of the file for the upload token, can be empty when the upload token is created and will be updated internally after the file is uploaded * * * @var string * @insertonly */ public $fileName = null; /** * File size in bytes, can be empty when the upload token is created and will be updated internally after the file is uploaded * * * @var float * @insertonly */ public $fileSize = null; /** * Uploaded file size in bytes, can be used to identify how many bytes were uploaded before resuming * * * @var float * @readonly */ public $uploadedFileSize = null; /** * Creation date as Unix timestamp (In seconds) * * * @var int * @readonly */ public $createdAt = null; /** * Last update date as Unix timestamp (In seconds) * * * @var int * @readonly */ public $updatedAt = null; }