package Ġru . rp ux a . super wire less adb . wire less Ċ Ċ import Ġandroid . content . Context Ċ import Ġru . rp ux a . internal server . wire less . Wire less Connection Ċ import Ġru . rp ux a . internal server . wire less . Wire less Device Ċ import Ġru . rp ux a . super wire less adb . other . data Base Ċ Ċ object ĠWire less Ġ{ ĊĊĠĠĠ Ġfun Ġget Device ById ( deviceId : ĠLong ): ĠWire less Device ? Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdevices . find Ġ{ Ġit . passport . id Ġ== ĠdeviceId Ġ} ĊĊĠĠĠ Ġfun Ġmy Online Devices ( context : ĠContext ): ĠList < Wire less Device > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġmy Devices Ġ= Ġcontext . data Base . my Devices ĊĠĠĠĠĠĠĠ Ġreturn Ġdevices . filter Ġ{ Ġdevice Ġ-> Ġmy Devices . any Ġ{ Ġit . id Ġ== Ġdevice . passport . id Ġ} Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġlateinit Ġvar Ġserver : ĠWire less Connection ĊĊĠĠĠ Ġval Ġdevices Ġget () Ġ= Ġserver . devices Ċ }