Mathematical theories for two classes of thermoelastic contact problems. (15th October 2022)