protected override void OnPressDeleteButton(FriendEntryBase entry) { if (entry == null) { return; } confirmationDialog.SetText($"Are you sure you want to delete {entry.model.userName} as a friend?"); confirmationDialog.Show(() => { RemoveEntry(entry.userId); OnDeleteConfirmation?.Invoke(entry as FriendEntry); }); }
protected override void OnPressDeleteButton(string userId) { if (string.IsNullOrEmpty(userId)) { return; } FriendEntryBase friendEntryToDelete = GetEntry(userId); if (friendEntryToDelete != null) { confirmationDialog.SetText($"Are you sure you want to delete {friendEntryToDelete.model.userName} as a friend?"); confirmationDialog.Show(() => { RemoveEntry(userId); OnDeleteConfirmation?.Invoke(userId); }); } }