package Ġcom . k ud oc ards . data . remote Ċ Ċ import Ġcom . k ud oc ards . util . Constants . Companion . CAR DS Ċ import Ġcom . k ud oc ards . util . Constants . Companion . CAR DS _ RECE IVED Ċ import Ġcom . k ud oc ards . util . Constants . Companion . CAR DS _ SENT Ċ import Ġcom . k ud oc ards . util . Constants . Companion . CARD _ TYPES Ċ import Ġcom . k ud oc ards . util . Constants . Companion . TE AMS Ċ import Ġcom . k ud oc ards . util . Constants . Companion . TEAM _ CAR DS Ċ import Ġcom . k ud oc ards . util . Constants . Companion . USERS Ċ import Ġcom . google . firebase . database . Database Reference Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġmar cus Ġon Ġ 2 6 / 1 2 / 1 7 . Ċ Ġ*/ Ċ class ĠFirebase Connection Impl ( val Ġfirebase Data : ĠDatabase Reference ?) Ġ: ĠFirebase Connection Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠgetUser Information (): ĠDatabase Reference ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġfirebase Data ?. child ( USERS ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġsave User Information ( user Key : ĠString ): ĠDatabase Reference ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġfirebase Data ?. child ( USERS )?. child ( user Key ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Team Users ( team Name : ĠString ) Ġ: ĠDatabase Reference ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġfirebase Data ?. child ( TE AMS )?. child ( team Name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Cards Types () Ġ: ĠDatabase Reference ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġfirebase Data ?. child ( CARD _ TYPES ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġsave K udo Card (): ĠDatabase Reference ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġkey Ġ= Ġfirebase Data ?. child ( CAR DS )?. push ()?. key ĊĠĠĠĠĠĠĠ Ġreturn Ġfirebase Data ?. child ( CAR DS )?. child ( key ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Team Cards ( team Name : ĠString ): ĠDatabase Reference ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġfirebase Data ?. child ( TEAM _ CAR DS )?. child ( team Name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetUser Received Cards ( user Key : ĠString ): ĠDatabase Reference ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġfirebase Data ?. child ( CAR DS _ RECE IVED )?. child ( user Key ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠgetUser Sent Cards ( user Key : ĠString ): ĠDatabase Reference ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġfirebase Data ?. child ( CAR DS _ SENT )?. child ( user Key ) ĊĠĠĠ Ġ} Ċ }