package Ġcom . phil soft . metro trip per . app . state . transformer Ċ Ċ import Ġcom . phil soft . metro trip per . app . state . AppState Ċ import Ġcom . phil soft . metro trip per . app . state . Drawer Action Ċ import Ġcom . phil soft . metro trip per . app . state . Stop List Ui Event . Stop Se ar ched Ċ import Ġcom . phil soft . metro trip per . app . state . Stop List Ui Event . Stop Selected From Drawer Ċ import Ġcom . phil soft . metro trip per . model . Stop Ċ Ċ class ĠDraw er Action Transformer Ġ: ĠView Action Transformer < Drawer Action >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġhandle Event ( state : ĠApp State ) Ġ{ ĊĠĠĠĠĠĠĠ Ġwhen Ġ( state . app Ui Event ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠStop Se ar ched Ġ-> Ġhandle Stop Se ar ched ( state . selected Stop ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠStop Selected From Drawer Ġ-> Ġhandle Stop Selected () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġhandle Stop Selected () Ġ{ ĊĠĠĠĠĠĠĠ Ġsend ( Drawer Action . Close Drawer ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġhandle Stop Se ar ched ( selected Stop : ĠStop ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( selected Stop Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsend ( Drawer Action . Close Drawer ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ