Skip to content

Commit

Permalink
Readding maxAgents to models
Browse files Browse the repository at this point in the history
  • Loading branch information
zyronix committed Aug 29, 2023
1 parent c1506bb commit a706240
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/dba/models/TaskWrapper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
class TaskWrapper extends AbstractModel {
private $taskWrapperId;
private $priority;
private $maxAgents;
private $taskType;
private $hashlistId;
private $accessGroupId;
private $taskWrapperName;
private $isArchived;
private $cracked;

function __construct($taskWrapperId, $priority, $taskType, $hashlistId, $accessGroupId, $taskWrapperName, $isArchived, $cracked) {
function __construct($taskWrapperId, $priority, $maxAgents, $taskType, $hashlistId, $accessGroupId, $taskWrapperName, $isArchived, $cracked) {
$this->taskWrapperId = $taskWrapperId;
$this->priority = $priority;
$this->maxAgents = $maxAgents;
$this->taskType = $taskType;
$this->hashlistId = $hashlistId;
$this->accessGroupId = $accessGroupId;
Expand All @@ -27,6 +29,7 @@ function getKeyValueDict() {
$dict = array();
$dict['taskWrapperId'] = $this->taskWrapperId;
$dict['priority'] = $this->priority;
$dict['maxAgents'] = $this->maxAgents;
$dict['taskType'] = $this->taskType;
$dict['hashlistId'] = $this->hashlistId;
$dict['accessGroupId'] = $this->accessGroupId;
Expand All @@ -41,6 +44,7 @@ static function getFeatures() {
$dict = array();
$dict['taskWrapperId'] = ['read_only' => True, "type" => "int", "subtype" => "unset", "choices" => "unset", "null" => False, "pk" => True, "protected" => True, "private" => False, "alias" => "taskWrapperId"];
$dict['priority'] = ['read_only' => False, "type" => "int", "subtype" => "unset", "choices" => "unset", "null" => False, "pk" => False, "protected" => False, "private" => False, "alias" => "priority"];
$dict['maxAgents'] = ['read_only' => False, "type" => "int", "subtype" => "unset", "choices" => "unset", "null" => False, "pk" => False, "protected" => False, "private" => False, "alias" => "maxAgents"];
$dict['taskType'] = ['read_only' => True, "type" => "int", "subtype" => "unset", "choices" => [0 => "TaskType is Task", 1 => "TaskType is Supertask", ], "null" => False, "pk" => False, "protected" => True, "private" => False, "alias" => "taskType"];
$dict['hashlistId'] = ['read_only' => True, "type" => "int", "subtype" => "unset", "choices" => "unset", "null" => False, "pk" => False, "protected" => True, "private" => False, "alias" => "hashlistId"];
$dict['accessGroupId'] = ['read_only' => False, "type" => "int", "subtype" => "unset", "choices" => "unset", "null" => False, "pk" => False, "protected" => False, "private" => False, "alias" => "accessGroupId"];
Expand Down Expand Up @@ -83,6 +87,14 @@ function setPriority($priority) {
$this->priority = $priority;
}

function getMaxAgents() {
return $this->maxAgents;
}

function setMaxAgents($maxAgents) {
$this->maxAgents = $maxAgents;
}

function getTaskType() {
return $this->taskType;
}
Expand Down Expand Up @@ -133,6 +145,7 @@ function setCracked($cracked) {

const TASK_WRAPPER_ID = "taskWrapperId";
const PRIORITY = "priority";
const MAX_AGENTS = "maxAgents";
const TASK_TYPE = "taskType";
const HASHLIST_ID = "hashlistId";
const ACCESS_GROUP_ID = "accessGroupId";
Expand Down
1 change: 1 addition & 0 deletions src/dba/models/generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@
'columns' => [
['name' => 'taskWrapperId', 'read_only' => True, 'type' => 'int', 'protected' => True],
['name' => 'priority', 'read_only' => False, 'type' => 'int'],
['name' => 'maxAgents', 'read_only' => False, 'type' => 'int'],
['name' => 'taskType', 'read_only' => True, 'type' => 'int', 'protected' => True, 'choices' => $FieldTaskTypeChoices],
['name' => 'hashlistId', 'read_only' => True, 'type' => 'int', 'protected' => True],
['name' => 'accessGroupId', 'read_only' => False, 'type' => 'int'],
Expand Down

0 comments on commit a706240

Please sign in to comment.