mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
Some checks failed
Build Desktop / Configure (push) Has been cancelled
Build Docker Image / amd64 & arm64 (push) Has been cancelled
Build Web / React (Node 16) (push) Has been cancelled
Build Web / React (Node lts/*) (push) Has been cancelled
Build Desktop / Debian 11 (push) Has been cancelled
Build Desktop / Debian 13 (push) Has been cancelled
Build Desktop / Debian 12 (push) Has been cancelled
Build Desktop / Fedora 43 (push) Has been cancelled
Build Desktop / Fedora 42 (push) Has been cancelled
Build Desktop / Servatrice_Debian 11 (push) Has been cancelled
Build Desktop / Ubuntu 24.04 (push) Has been cancelled
Build Desktop / Ubuntu 26.04 (push) Has been cancelled
Build Desktop / Ubuntu 22.04 (push) Has been cancelled
Build Desktop / Arch (push) Has been cancelled
Build Desktop / macOS 14 (push) Has been cancelled
Build Desktop / macOS 15 (push) Has been cancelled
Build Desktop / macOS 13 Intel (push) Has been cancelled
Build Desktop / macOS 15 Debug (push) Has been cancelled
Build Desktop / Windows 10 (push) Has been cancelled
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import { SessionCommands } from 'websocket';
|
|
|
|
export class SessionService {
|
|
static addToBuddyList(userName: string) {
|
|
SessionCommands.addToBuddyList(userName);
|
|
}
|
|
|
|
static removeFromBuddyList(userName: string) {
|
|
SessionCommands.removeFromBuddyList(userName);
|
|
}
|
|
|
|
static addToIgnoreList(userName: string) {
|
|
SessionCommands.addToIgnoreList(userName);
|
|
}
|
|
|
|
static removeFromIgnoreList(userName: string) {
|
|
SessionCommands.removeFromIgnoreList(userName);
|
|
}
|
|
|
|
static changeAccountPassword(oldPassword: string, newPassword: string, hashedNewPassword?: string): void {
|
|
SessionCommands.accountPassword(oldPassword, newPassword, hashedNewPassword);
|
|
}
|
|
|
|
static changeAccountDetails(passwordCheck: string, realName?: string, email?: string, country?: string): void {
|
|
SessionCommands.accountEdit(passwordCheck, realName, email, country);
|
|
}
|
|
|
|
static changeAccountImage(image: Uint8Array): void {
|
|
SessionCommands.accountImage(image);
|
|
}
|
|
|
|
static sendDirectMessage(userName: string, message: string): void {
|
|
SessionCommands.message(userName, message);
|
|
}
|
|
|
|
static getUserInfo(userName: string): void {
|
|
SessionCommands.getUserInfo(userName);
|
|
}
|
|
|
|
static getUserGames(userName: string): void {
|
|
SessionCommands.getGamesOfUser(userName);
|
|
}
|
|
}
|