Verify session ID; introduce player profile database
[gamestick-pjgsapi.git] / src / Profile.php
diff --git a/src/Profile.php b/src/Profile.php
new file mode 100644 (file)
index 0000000..20327a6
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+/**
+ * Database row from the "gamesticks" table
+ */
+class Profile
+{
+    public int $id;
+    public string $hwId;
+    public string $sessionId;
+    public ?string $verificationCode;
+    public ?string $gamerTag;
+    public bool $founderFlag;
+    public ?string $founderName;
+    public int $minAge;
+    public ?string $avatar;
+
+    public string $created_at;
+
+    public function complete(): bool
+    {
+        return $this->gamerTag !== null;
+    }
+}