Given this paragraph, what are the two Kingdoms that used Bangkok as their capital city.

Thonburi Kingdom and Rattanakosin Kingdom are the two Kingdoms that used Bangkok as their capital city. Thonburi Kingdom used the western bank of Bangkok as its capital city. While Rattanakosin Kingdom used Bangkok's eastern bank as its capital city,.