Get update check working
authorChristian Weiske <cweiske@cweiske.de>
Wed, 29 Mar 2023 19:44:40 +0000 (21:44 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 29 Mar 2023 19:44:40 +0000 (21:44 +0200)
www/.htaccess [new file with mode: 0644]
www/api/rest/connect/stick/stick/ac:db:da:09:18:5c/view.json [new file with mode: 0644]
www/api/rest/player/profile/view.json;jsessionid=dummy [new file with mode: 0644]
www/check.php [new file with mode: 0644]

diff --git a/www/.htaccess b/www/.htaccess
new file mode 100644 (file)
index 0000000..3ed8381
--- /dev/null
@@ -0,0 +1,4 @@
+RewriteEngine on
+RewriteBase /
+
+RewriteRule ^connect_check.php$ - [R=204,L]
diff --git a/www/api/rest/connect/stick/stick/ac:db:da:09:18:5c/view.json b/www/api/rest/connect/stick/stick/ac:db:da:09:18:5c/view.json
new file mode 100644 (file)
index 0000000..c7ad2c2
--- /dev/null
@@ -0,0 +1,6 @@
+{
+    "sid":"dummy",
+    "time":"1680109254000",
+    "status":"CONNECTION_IN_PROGRESS",
+    "registrationCode":"12345678"
+}
diff --git a/www/api/rest/player/profile/view.json;jsessionid=dummy b/www/api/rest/player/profile/view.json;jsessionid=dummy
new file mode 100644 (file)
index 0000000..1d4c3ad
--- /dev/null
@@ -0,0 +1,32 @@
+{
+    "sid": "dummy",
+    "time": "1680109254000",
+    "body": {
+        "avatarLargeUrl": "",
+        "gamertag": "cweiske",
+        "avatarSmallUrl": "",
+        "location": "my location",
+        "dateOfBirth": "23/12/1900",
+        "dateJoined": "29/03/2023",
+        "email": "email@example.org",
+        "password": "mypassword",
+        "accountType": "FIXME",
+        "minAge": 17,
+        "founderFlag": 1,
+        "founderName": "cweiske-founder",
+        "minAgeLabel": "17+",
+        "balance": {
+            "amountOfMoneyLeft": "much",
+            "transactions": [
+                {
+                    "date": "29/02/2023 - some game",
+                    "amount": "5,2€"
+                }
+            ]
+        },
+        "achievementStatus": {
+            "lastAchievementGameName": "last game",
+            "numberOfAchievementsUnlocked": 23
+        }
+    }
+}
diff --git a/www/check.php b/www/check.php
new file mode 100644 (file)
index 0000000..2806ccc
--- /dev/null
@@ -0,0 +1,11 @@
+{
+    'available': false,
+    'major': 12,
+    'minor': 0,
+    'revision': 0,
+    'forced': false,
+    'name': 'fooupdate',
+    'description': 'bar',
+    'timestamp': 12345678,
+    'url': 'http://update.gamestickservices.net/fooupdate.txt'
+}