Add: ranking for app

This commit is contained in:
2018-09-05 09:21:48 +09:00
parent 3a1be0744c
commit 3d4852c42c
7 changed files with 529 additions and 19 deletions
+20
View File
@@ -402,6 +402,26 @@ class DBConnectManager {
);
}
requestAppRanking(maestroID, appID, onSucceededListener, onFailedListener) {
let xhr = new XMLHttpRequest();
xhr.open("POST", this.phpPath + "server/record/app_ranking.php", true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = function() {
if(xhr.readyState == 4 && xhr.status == 200) {
let replyJSON = JSON.parse(xhr.responseText);
if(replyJSON != null)
onSucceededListener(replyJSON);
else
onFailedListener(replyJSON);
}
};
xhr.send(
"MaestroID=" + maestroID
+ "&AppID=" + appID
);
}
loadTempPlayerHistory(historyRecordManager) {