예제 #1
0
파일: Status.cs 프로젝트: discorly/OWA
        private static async Task<bool> GetAccountGames(Account account, string html)
        {
            if (!html.Contains("<title>Battle.net Account</title>"))
                html = await account.Client.GetHTML(GetRegionURL(account.Region, false));
                
            html = html.Remove(0, html.IndexOf("Your Game Accounts"));
            html = html.Remove(html.IndexOf("Add a Game Key"));

            if (html.Contains("Overwatch® Beta"))
            {
                account.HasOverwatchBeta = true;

                BetaFoundEventArgs e = new BetaFoundEventArgs();
                e.Account = account;

                NotifyBetaFound(e);
            }

            return true;
        }
예제 #2
0
파일: Status.cs 프로젝트: discorly/OWA
 private static void NotifyBetaFound(BetaFoundEventArgs e)
 {
     if (BetaFound != null)
         BetaFound(null, e);
 }