TrackManiaControl/core/Callbacks/Structures/Common/StatusCallbackStructure.php

42 lines
963 B
PHP
Raw Normal View History

<?php
namespace ManiaControl\Callbacks\Structures\ShootMania;
use ManiaControl\Callbacks\Structures\Common\BaseResponseStructure;
use ManiaControl\ManiaControl;
/**
* Structure Class for the StatusCallback Structure Callback
*
2017-04-07 23:26:35 +02:00
* @api
* @author ManiaControl Team <mail@maniacontrol.com>
* @copyright 2014-2017 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class StatusCallbackStructure extends BaseResponseStructure {
protected $active;
/**
* Construct a new On Hit Structure
*
* @param ManiaControl $maniaControl
* @param array $data
*/
public function __construct(ManiaControl $maniaControl, $data) {
parent::__construct($maniaControl, $data);
$this->active = $this->getPlainJsonObject()->active;
}
/**
* True if the Status (Like Combo Pause or Warmup) is Ongoing
*
2017-04-07 23:26:35 +02:00
* @api
* @return boolean
*/
public function getActive() {
return $this->active;
}
}