mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-04 10:24:07 +02:00
prepare for private demos
This commit is contained in:
parent
1fef02679a
commit
4f07dbbf34
13 changed files with 131 additions and 25 deletions
|
|
@ -10,13 +10,15 @@ class Upload {
|
|||
private string $blue;
|
||||
private int $uploaderId;
|
||||
private string $hash;
|
||||
private bool $private;
|
||||
|
||||
public function __construct(string $name, string $red, string $blue, int $uploaderId, string $hash) {
|
||||
public function __construct(string $name, string $red, string $blue, int $uploaderId, string $hash, bool $private) {
|
||||
$this->name = $name;
|
||||
$this->red = $red;
|
||||
$this->blue = $blue;
|
||||
$this->uploaderId = $uploaderId;
|
||||
$this->hash = $hash;
|
||||
$this->private = $private;
|
||||
}
|
||||
|
||||
public function getName(): string {
|
||||
|
|
@ -38,4 +40,8 @@ class Upload {
|
|||
public function getHash(): string {
|
||||
return $this->hash;
|
||||
}
|
||||
|
||||
public function isPrivate(): bool {
|
||||
return $this->private;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue