package Ġfoo . bar . example . for er et rofit kt . api . fr uits Ċ Ċ import Ġretrofit 2 . Response Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Query Ċ Ċ /** Ċ Ġ* ĠThese Ġstub s Ġare Ġhosted Ġat Ġhttps :// www . mock y . io / Ċ Ġ* Ċ Ġ* Ġhttp :// www . mock y . io / v 2 / 5 9 efa 0 1 3 2 e 0 0 0 0 ef 3 3 1 c 5 f 9 b Ċ Ġ* Ġhttp :// www . mock y . io / v 2 / 5 9 ef 2 a 6 c 2 e 0 0 0 0 2 a 1 a 1 c 5 dea Ċ Ġ* Ċ Ġ*/ Ċ interface ĠF ruit Service Ġ{ ĊĊĠĠĠ Ġ@ GET (" 5 9 efa 0 1 3 2 e 0 0 0 0 ef 3 3 1 c 5 f 9 b /") ĊĠĠĠ Ġsuspend Ġfun Ġget F ru its Sim ulate Ok (@ Query (" mock y - delay ") Ġdelay : ĠString Ġ= Ġ" 3 s "): ĠResponse < List < F ruit Po jo >> ĊĊĠĠĠ Ġ@ GET (" 5 9 ef 2 a 6 c 2 e 0 0 0 0 2 a 1 a 1 c 5 dea /") ĊĠĠĠ Ġsuspend Ġfun Ġget F ru its Sim ulate Not Author ised (@ Query (" mock y - delay ") Ġdelay : ĠString Ġ= Ġ" 3 s "): ĠResponse < List < F ruit Po jo >> ĊĊĠĠĠ Ġ// Ġcall Ġchain Ġto Ġdemonstrate Ġcarry On ĊĊĠĠĠ Ġ@ GET (" 5 de 4 1 0 e 8 3 0 0 0 0 0 2 b 0 0 9 f 7 8 f 8 /") ĊĠĠĠ Ġsuspend Ġfun Ġcreate User (): ĠResponse < User Po jo > ĊĊĠĠĠ Ġ@ GET (" 5 de 4 1 1 2 e 3 0 0 0 0 0 2 b 0 0 9 f 7 8 f 9 /") ĊĠĠĠ Ġsuspend Ġfun Ġcreate User Ticket (@ Query (" userId ") ĠuserId : ĠInt , Ġ@ Query (" mock y - delay ") Ġdelay : ĠString Ġ= Ġ" 1 s "): ĠResponse < Ticket Po jo > ĊĊĠĠĠ Ġ@ GET (" 5 de 4 1 1 4 8 3 0 0 0 0 0 6 2 0 0 9 f 7 8 fa /") ĊĠĠĠ Ġsuspend Ġfun Ġget Est imated Waiting Time (@ Query (" ticket Ref ") Ġticket Ref : ĠString , Ġ@ Query (" mock y - delay ") Ġdelay : ĠString Ġ= Ġ" 1 s "): ĠResponse < Time Po jo > ĊĊĠĠĠ Ġ@ GET (" 5 de 4 1 1 c 6 3 0 0 0 0 0 2 b 0 0 9 f 7 8 fc /") ĊĠĠĠ Ġsuspend Ġfun Ġcancel Ticket (@ Query (" ticket Ref ") Ġticket Ref : ĠString , Ġ@ Query (" mock y - delay ") Ġdelay : ĠString Ġ= Ġ" 1 s "): ĠResponse < Ticket Result Po jo > ĊĊĠĠĠ Ġ@ GET (" 5 de 4 1 1 af 3 0 0 0 0 0 0 e 0 0 9 f 7 8 fb /") ĊĠĠĠ Ġsuspend Ġfun Ġconfirm Ticket (@ Query (" ticket Ref ") Ġticket Ref : ĠString , Ġ@ Query (" mock y - delay ") Ġdelay : ĠString Ġ= Ġ" 1 s "): ĠResponse < Ticket Result Po jo > ĊĊĠĠĠ Ġ@ GET (" 5 9 efa 0 1 3 2 e 0 0 0 0 ef 3 3 1 c 5 f 9 b /") ĊĠĠĠ Ġsuspend Ġfun Ġclaim Free F ruit (@ Query (" ticket Ref ") Ġticket Ref : ĠString , Ġ@ Query (" mock y - delay ") Ġdelay : ĠString Ġ= Ġ" 1 s "): ĠResponse < List < F ruit Po jo >> Ċ Ċ } Ċ