poker-html-client
Version:
HTML client for online poker
14 lines (12 loc) • 403 B
text/typescript
import { Account } from "../api/account";
declare var host: string;
export class AccountManager {
public async getAccount() {
const api = new Account(host);
return api.getAccount();
}
public async changePasword(oldPasword: string, newPassword: string) {
const api = new Account(host);
return api.changePassword(oldPasword, newPassword);
}
}