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"); } }
public void SendFriendRequest(FriendRequest request) { soapService.SendFriendRequest (request); }
public void ApproveFriendRequest(FriendRequest request) { soapService.ApproveFriendRequest (request); }