Hatgetippt hinzugefügt (muss noch debuggt werden)

This commit is contained in:
R40fendt
2025-05-06 12:01:37 +02:00
parent 2a306c7b6d
commit 8406078468
3 changed files with 18 additions and 4 deletions

View File

@@ -1,13 +1,25 @@
import $ from "jquery";
class User {
public username: string;
public kuerzel: string;
public points: number;
public id: number;
public hatgetippt: boolean;
constructor (username: string, kuerzel: string, points: number, id: number) {
this.username = username;
this.kuerzel = kuerzel;
this.points=points;
this.id=id;
let hatgetippt=false;
$.ajax(RitzenbergenLib.api("/bulitipp/hatgetippt.php?userid="+id),{
async: false,
success(response:string){
hatgetippt=response=="true";
}
})
this.hatgetippt=hatgetippt;
}
}