void tas_LoginDenied(object sender, LoginResponse loginResponse) { if (loginResponse.ResultCode == LoginResponse.Code.InvalidName) tas.Register(GetAccountName(), config.Password); else { CloneNumber++; tas.Login(GetAccountName(), config.Password); } }
public LoginCheckerResponse(LoginResponse.Code code, string reason) { LoginResponse.ResultCode = code; LoginResponse.Reason = reason; }
void tas_LoginDenied(object sender, LoginResponse loginResponse) { Utils.StartAsync(() => { Thread.Sleep(5000); tas.Login(config.AccountName, config.AccountPassword); }); }