During his long diplomatic and political career, Adams also served as an ambassador, and as a member of the United States Senate and United States House of Representatives representing Massachusetts. He was the eldest son of John Adams, who served as the second US president from 1797 to 1801, and First Lady Abigail Adams. Initially a Federalist like his father, he won election to the presidency as a member of the Democratic-Republican Party, and in the mid-1830s became affiliated with the Whig Party. In mid-November 1846, the 78-year-old former president suffered a stroke that left him partially paralyzed. After a few months of rest, he made a full recovery and resumed his duties in Congress. Adams's victory made him the first child of a president to serve as president himself. After the election, many of Jackson's supporters claimed that Adams and Clay had reached a 'Corrupt Bargain' in which Adams promised Clay the position of Secretary of State in return for Clay's support.