package Ġcom . gor illa . attendance . ui . rf id Ċ Ċ import Ġcom . gor illa . attendance . api . ApiService Ċ import Ġcom . gor illa . attendance . data . db . Device Employee Dao Ċ import Ġcom . gor illa . attendance . data . db . Device Visitor Dao Ċ import Ġcom . gor illa . attendance . data . model . Accept ances Ċ import Ġio . reactivex . Single Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠRF ID Repository Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġapi Service : ĠApi Service , ĊĠĠĠ Ġprivate Ġval Ġdevice Employee Dao : ĠDevice Employee Dao , ĊĠĠĠ Ġprivate Ġval Ġdevice Visitor Dao : ĠDevice Visitor Dao Ċ ) Ġ{ ĊĊĠĠĠ Ġfun Ġverify Employee ( rf id : ĠString ?) Ġ: ĠSingle < List < Accept ances >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdevice Employee Dao . search Device Employee By RF ID ( rf id ) ĊĠĠĠ Ġ} Ċ Ċ // ĠĠĠ Ġfun Ġverify Visitor ( security Code Ġ: ĠString ?) Ġ: ĠSingle < List < Accept ances >> Ġ{ Ċ // ĠĠĠĠĠĠĠ Ġreturn Ġdevice Visitor Dao . search Device Visitor By Security Code ( security Code ) Ċ // ĠĠĠ Ġ} Ċ Ċ // ĠĠĠ Ġfun Ġdelete Visitor ( accept ances : ĠAccept ances ?): ĠSingle < Int > Ġ{ Ċ // ĠĠĠĠĠĠĠ Ġreturn ĠSingle . from Callable Ġ{ Ġdevice Visitor Dao . delete Device Visitor ( accept ances ) Ġ}. subscribe On ( Schedulers . io ()) Ċ // ĠĠĠ Ġ} Ċ }