what is this electronic part called?
I found a electronic part inside that I want to use in a project but I don't know what is called, when I unsoldered it, it looked like a capacitor but at the bottom has 4 straight terminals, each terminal was connected to the coil. I pilled the coating and the inside looks like a coil, by now you can tell I don't know much of electronics and english is not my first language, but I am trying to learn. I just want to know the name of it so I can buy some more for my projects.
I put some pictures of what it looks like.
In the side picture you can see the terminals but I bent them trying to unsolder them.
in the picture where you can see it from the bottom the red arrow points at the 1 of the straight terminals and the blue arrow points at glue that is located at the bottom of the terminal.
and in the third picture you see it from the side but I removed the plastic that was covering it and you can see that each of the terminals are connected to the coil.
Thank you for your help