import { Ref, ref } from "vue";
import { BJ_Casino_Bot } from "./BJ_Casino_Bot";

export class BJ_Casino_Bot_Login {
    //#region public

    public Account: Ref<string> = ref("");

    public Password: Ref<string> = ref("");

    //#endregion

    //#region private

    private _bj_Casino_Bot: BJ_Casino_Bot;

    //#endregion

    //#region Lifecycle

    /**
     *
     */
    constructor(bj_Casino_Bot: BJ_Casino_Bot) {
        this._bj_Casino_Bot = bj_Casino_Bot;
        this.onLoad();
    }

    public async onLoad(): Promise<void> {
        //
    }

    //#endregion

    //#region Onclick

    public async OnclickLogin(): Promise<void> {
        this._bj_Casino_Bot.Login(this.Account.value, this.Password.value);
    }

    //#endregion
}
