Example #1
0
        async void OnAcceptChallenge()
        {
            bool success;

            using (new HUD("Accepting challenge..."))
            {
                success = await ViewModel.AcceptChallenge();
            }

            if (success)
            {
                "Challenge accepted".ToToast(ToastNotificationType.Success);
            }

            OnAccept?.Invoke();
        }