package Ġcom . mar cel or corre a . pre gn ancy calculator . intent Ċ Ċ import Ġcom . hp . k ale xa . core . intent . Cancel Intent Handler Ċ import Ġcom . hp . k ale xa . core . intent . Stop Intent Handler Ċ import Ġcom . hp . k ale xa . model . extension . get Val Ċ import Ġcom . hp . k ale xa . model . request . Alex a Request Ċ import Ġcom . hp . k ale xa . model . request . Intent Request Ċ import Ġcom . hp . k ale xa . model . response . Alex a Response Ċ import Ġcom . hp . k ale xa . model . response . dsl . ale xa Response Ċ import Ġcom . mar cel or corre a . pre gn ancy calculator . util . I 1 8 n Resource Ċ Ċ class ĠCancel And Stop Intent Ġ: ĠCancel Intent Handler , ĠStop Intent Handler Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġon Cancel Intent ( ale xa Request : ĠAlex a Request < Intent Request >): ĠAlex a Response Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġgood bye Response ( ale xa Request ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Stop Intent ( ale xa Request : ĠAlex a Request < Intent Request >): ĠAlex a Response Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġgood bye Response ( ale xa Request ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġgood bye Response ( ale xa Request : ĠAlex a Request < Intent Request >): ĠAlex a Response Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġi 1 8 n Resource Ġ= Ġa lex a Request . request Attributes . get Val < I 1 8 n Resource >(" i 1 8 n ") ĊĠĠĠĠĠĠĠ Ġval Ġcancel And Stop Msg Ġ= Ġi 1 8 n Resource . getString (" cancel _ and _ stop ") ĊĠĠĠĠĠĠĠ Ġreturn Ġa lex a Response Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġresponse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġspeech Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcancel And Stop Msg ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġshould End Session Ġ= Ġtrue ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ