package Ġinfo . dv kr . screen stream . ui ĊĊ Ċ import Ġandroid . support . annotation . Keep Ċ import Ġinfo . dv kr . screen stream . model . HttpServer Ċ import Ġinfo . dv kr . screen stream . service . Foreground Service View Ċ import Ġrx . Observable Ċ Ċ interface ĠStart Activity View Ġ{ ĊĊĠĠĠ Ġ// ĠFrom ĠStart Activity Ġto ĠStart Activity Presenter ĊĠĠĠ Ġ@ Keep Ġsealed Ġclass ĠFrom Event Ġ{ ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġclass ĠCurrent Interfaces Request Ġ: ĠFrom Event () ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġclass ĠTry Start Stream Ġ: ĠFrom Event () ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġclass ĠStop Stream Ġ: ĠFrom Event () ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġclass ĠApp Exit Ġ: ĠFrom Event () ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġdata Ġclass ĠError ( val Ġerror : ĠThrowable ) Ġ: ĠFrom Event () ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġclass ĠGet Error Ġ: ĠFrom Event () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ// ĠEvents Ġfrom ĠStart Activity Ġto ĠStart Activity Presenter ĊĠĠĠ Ġfun Ġfrom Event (): ĠObservable < From Event > ĊĊĠĠĠ Ġ// ĠTo ĠStart Activity Ġfrom ĠStart Activity Presenter ĊĠĠĠ Ġ@ Keep Ġsealed Ġclass ĠTo Event Ġ{ ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġclass ĠTry To Start Ġ: ĠTo Event () ĊĊĠĠĠĠĠĠĠ Ġ// ĠFrom ĠImage Generator Impl ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġdata Ġclass ĠOn Stream Start Stop ( val Ġrunning : ĠBoolean ) Ġ: ĠTo Event () ĊĊĠĠĠĠĠĠĠ Ġ// ĠFrom ĠSettings Activity Presenter ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġdata Ġclass ĠResize Factor ( val Ġvalue : ĠInt ) Ġ: ĠTo Event () ĊĊĠĠĠĠĠĠĠ Ġ// ĠFrom ĠSettings Activity Presenter ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġdata Ġclass ĠEnable Pin ( val Ġvalue : ĠBoolean ) Ġ: ĠTo Event () ĊĊĠĠĠĠĠĠĠ Ġ// ĠFrom ĠSettings Activity Presenter ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġdata Ġclass ĠSet Pin ( val Ġvalue : ĠString ) Ġ: ĠTo Event () ĊĊĠĠĠĠĠĠĠ Ġ// ĠFrom ĠStart Activity Presenter ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġdata Ġclass ĠStream Running ( val Ġrunning : ĠBoolean ) Ġ: ĠTo Event () ĊĊĠĠĠĠĠĠĠ Ġ// ĠFrom ĠSettings Activity Presenter ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġdata Ġclass ĠError ( val Ġerror : ĠThrowable ?) Ġ: ĠTo Event () ĊĊĠĠĠĠĠĠĠ Ġ// ĠFrom ĠHttp Server ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġdata Ġclass ĠCurrent Clients ( val Ġclients List : ĠCollection < HttpServer . Client >) Ġ: ĠTo Event () ĊĊĠĠĠĠĠĠĠ Ġ// ĠFrom ĠFore ground Service Presenter ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġdata Ġclass ĠCurrent Interfaces ( val Ġinterface List : ĠList < Foreground Service View . Interface >) Ġ: ĠTo Event () ĊĊĠĠĠĠĠĠĠ Ġ// ĠFrom ĠHttp Server ĊĠĠĠĠĠĠĠ Ġ@ Keep Ġdata Ġclass ĠTraffic Point ( val Ġtraffic Point : ĠHttp Server . Traffic Point ) Ġ: ĠTo Event () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ// ĠEvents Ġto ĠStart Activity Ġfrom ĠStart Activity Presenter ĊĠĠĠ Ġfun Ġto Event ( to Event : ĠTo Event ) Ċ }