package Ġcom . k ry sz ak . gw at lin . clients . guild Ċ Ċ import Ġcom . k ry sz ak . gw at lin . api . guild . model . Guild Member Ċ import Ġcom . k ry sz ak . gw at lin . api . guild . model . Guild Rank Ċ import Ġcom . k ry sz ak . gw at lin . api . guild . model . log . Guild Log Ċ import Ġcom . k ry sz ak . gw at lin . api . guild . model . stash . Guild St ash Ċ import Ġcom . k ry sz ak . gw at lin . api . guild . model . team . Guild Team Ċ import Ġcom . k ry sz ak . gw at lin . api . guild . model . tre as ury . Guild Tre as ury Ċ import Ġcom . k ry sz ak . gw at lin . http . Authenticated HttpClient Ċ Ċ internal Ġclass ĠGuild Authenticated Client ( apiKey : ĠString ) Ġ: ĠAuth enticated HttpClient ( apiKey ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġguild Endpoint Ġ= Ġ" guild " ĊĊĠĠĠ Ġfun Ġget Guild Log ( id : ĠString , Ġsince : ĠString ? Ġ= Ġ"") : ĠList < Guild Log > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsince Query Ġ= Ġform Since Query ( since ) ĊĠĠĠĠĠĠĠ Ġreturn Ġget Request Auth ("$ guild Endpoint /$ id / log $ since Query ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Guild Members ( id : ĠString ): ĠList < Guild Member > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġget Request Auth ("$ guild Endpoint /$ id / members ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Guild R anks ( id : ĠString ): ĠList < Guild Rank > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġget Request Auth ("$ guild Endpoint /$ id / ranks ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Guild St ash ( id : ĠString ): ĠList < Guild St ash > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġget Request Auth ("$ guild Endpoint /$ id / stash ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Guild Tre as ury ( id : ĠString ): ĠList < Guild Tre as ury > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġget Request Auth ("$ guild Endpoint /$ id / tre as ury ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Guild Teams ( id : ĠString ): ĠList < Guild Team > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġget Request Auth ("$ guild Endpoint /$ id / teams ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Guild Upgrade s ( id : ĠString ): ĠList < Int > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġget Request Auth ("$ guild Endpoint /$ id / upgrade s ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġform Since Query ( since : ĠString ?): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġwhen Ġ( since ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ"", Ġnull Ġ-> Ġ"" ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġ"? since =$ since " ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ