1
0
Fork 0
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:
Robin Appelman 2025-04-01 22:49:04 +02:00
commit 4f07dbbf34
13 changed files with 131 additions and 25 deletions

View file

@ -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;
}
}