void AcceptRequestClickHandler(object sender, EventArgs e)
		{
			try
			{
				var user = (User)(((Button)sender).Parent).BindingContext;
				FriendRequest request = new FriendRequest();
				request.FromUserId = user.ID;
				request.ToUserId = App.LoggedUser.ID;
				App.UserManager.ApproveFriendRequest(request);

				DisplayAlert("Chat App", "Request Approved!!", "Ok");
			}
			catch (Exception ex)
			{
				DisplayAlert("Chat App", ex.Message,"Ok");
			}
		}
Ejemplo n.º 2
0
 public void SendFriendRequest(FriendRequest request)
 {
     soapService.SendFriendRequest (request);
 }
Ejemplo n.º 3
0
 public void ApproveFriendRequest(FriendRequest request)
 {
     soapService.ApproveFriendRequest (request);
 }