package Ġcom . thought bot . tro pos . data Ċ Ċ import Ġcom . thought bot . tro pos . data . Temperature Difference . COL DER Ċ import Ġcom . thought bot . tro pos . data . Temperature Difference . CO OL ER Ċ import Ġcom . thought bot . tro pos . data . Temperature Difference . HOT TER Ċ import Ġcom . thought bot . tro pos . data . Temperature Difference . SAME Ċ import Ġcom . thought bot . tro pos . data . Temperature Difference . WAR MER Ċ Ċ enum Ġclass ĠTemperature Difference Ġ{ ĊĠ ĠH OT TER , ĠCOL DER , ĠS AME , ĠWAR MER , ĠCO OL ER ; Ċ } Ċ Ċ fun ĠTemperature Difference ( today : ĠCondition , Ġyesterday : ĠCondition ): ĠTemperature Difference Ġ{ ĊĠ Ġval ĠH OT TER _ LIMIT : ĠInt Ġ= Ġ 3 2 ĊĠ Ġval ĠCOL DER _ LIMIT : ĠInt Ġ= Ġ 7 5 ĊĊĠ Ġval Ġdiff Ġ= Ġtoday . current Temp Ġ- Ġyesterday . current Temp ĊĊĠ Ġreturn Ġwhen Ġ{ ĊĠĠĠ Ġdiff Ġ>= Ġ 1 0 Ġ&& Ġtoday . current Temp Ġ> ĠH OT TER _ LIMIT Ġ-> ĠH OT TER ĊĠĠĠ Ġdiff Ġ> Ġ 0 Ġ-> ĠWAR MER ĊĠĠĠ Ġdiff Ġ== Ġ 0 Ġ-> ĠS AME ĊĠĠĠ Ġdiff Ġ> Ġ- 1 0 Ġ|| Ġtoday . current Temp Ġ> ĠCOL DER _ LIMIT Ġ-> ĠCO OL ER ĊĠĠĠ Ġelse Ġ-> ĠCOL DER ĊĠ Ġ} Ċ } Ċ