package Ġcom . ay ni . hero es at work . repositories . service Ċ Ċ import Ġcom . ay ni . hero es at work . models . Game Ċ import Ġcom . ay ni . hero es at work . models . Member Ċ import Ġio . reactivex . Flow able Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . POST Ċ import Ġretrofit 2 . http . Path Ċ import Ġretrofit 2 . http . Query ĊĊ Ċ interface ĠGame Service Ġ{ ĊĠĠĠ Ġ@ GET (" games ? status = start ") ĊĠĠĠ Ġfun ĠgetCurrent Games (@ Query (" member Id ") Ġmember Id : ĠInt ): ĠFlow able < List < Game >> ĊĊĠĠĠ Ġ@ GET (" games ? status = end ") ĊĠĠĠ Ġfun Ġget Old Games (@ Query (" member Id ") Ġmember Id : ĠInt ): ĠFlow able < List < Game >> ĊĊĠĠĠ Ġ@ POST (" games ") ĊĠĠĠ Ġfun Ġcreate Game ( game : ĠGame ): ĠFlow able < Game > ĊĊĠĠĠ Ġ@ GET (" members ") ĊĠĠĠ Ġfun Ġsearch Members (@ Query (" text ") text Ġ: ĠString ): ĠFlow able < List < Member >> ĊĊĠĠĠ Ġ@ POST (" games /{ game Id }/ members /{ member Id }") ĊĠĠĠ Ġfun Ġget My Points Details (@ Path (" game Id ") Ġgame Id : ĠInt , Ġ@ Path (" member Id ") Ġmember Id : ĠInt ): ĠFlow able < List < Member >> ĊĊĠĠĠ Ġ@ POST (" games /{ game Id }/ points ") ĊĠĠĠ Ġfun Ġvote (@ Path (" game Id ") Ġgame Id : ĠInt ): ĠFlow able < List < Member >> Ċ Ċ }