private void HandleEvents()
        {
            _addPartyButton.Click += (s, e) =>
            {
                var intent = new Intent();
                intent.SetClass(this.Context, typeof(AddPartyActivity));
                StartActivity(intent);
            };

            _logoutButton.Click += (s, e) =>
            {
                LoginManager.Instance.LogOut();
                var intent = new Intent();
                intent.SetClass(this.Context, typeof(LoginActivity));
                Activity.Finish();
                StartActivity(intent);
            };

            _joinPartyButton.Click += (s, e) =>
            {
                var alert = new AlertDialog.Builder(this.Activity);

                alert.SetTitle("Join party");
                alert.SetMessage("Enter party id");

                var input = new EditText(this.Activity);
                alert.SetView(input);

                alert.SetPositiveButton("Join", (sx, ex) =>
                {
                    if (!String.IsNullOrWhiteSpace(input.Text))
                    {
                        _partyRepository.Join(input.Text);
                    }
                });

                alert.Show();
            };
        }
 public Task <bool> Join(string partyId)
 {
     return(_partyRepository.Join(partyId));
 }