Was it consent?

I was with this friend yesterday just hanging out and talking for hours . It wasn’t until he randomly started touching my boobs which I have told him to stop but Not in a rude way . We eventually started kissing but I had told him it’s getting late and that I have to start heading home . He grabbed my purse into another room which I had to follow to get it back . He drops my purse on the floor and kept trying to pull my pants down in which I kept saying “ no , I have to leave it’s late “ . He didnt stop until he pulled his pants down and then mine and started touching me down there and then he asked me if i liked it . I told him idk and pushed him away saying once again I have to leave its late . He then tells me if i want to do it and I told him idk . He turns me around and forced his thing inside me for a few seconds ( which it hurt ) and I did told him to stop cause it hurt and at many failed attempts he gave up . I finally got to leave after that and got home to a little bleeding down there . I never gave him a “ yes “ but a “ no “ or “ I don’t know “ and I haven’t felt the same afterwards. I just want to know what this whole thing means . Can someone give me advice on what to do ?