package Ġcom . coin ninja . coin keeper . service . client Ċ Ċ import Ġcom . coin ninja . coin keeper . service . client . model .* Ċ import Ġcom . google . gson . JsonObject Ċ import Ġokhttp 3 . RequestBody Ċ import Ġokhttp 3 . ResponseBody Ċ import Ġretrofit 2 . Call Ċ import Ġretrofit 2 . http .* Ċ Ċ interface ĠCoin Keeper Client Ġ{ ĊĊĠĠĠ Ġ@ get : GET (" wallet / addresses ") ĊĠĠĠ Ġval Ġwallet Addresses : ĠCall < List < CN Wallet Address >> ĊĊĠĠĠ Ġ@ get : GET (" wallet / address _ requests / received ") ĊĠĠĠ Ġval Ġall Incoming Inv ites : ĠCall < List < Received Invite >> ĊĊĠĠĠ Ġ@ get : GET (" wallet / address _ requests / sent ") ĊĠĠĠ Ġval Ġall Sent Inv ites : ĠCall < List < Sent Invite >> ĊĊĠĠĠ Ġ@ get : GET (" user / identity ") ĊĠĠĠ Ġval Ġident ities : ĠCall < List < CN User Identity >> ĊĊĠĠĠ Ġ// ĠADD RES SES ĊĠĠĠ Ġ@ POST (" addresses / query ") ĊĠĠĠ Ġfun Ġget Addresses (@ Body Ġaddress Block : ĠJsonObject , Ġ@ Query (" page ") Ġpage : ĠInt , Ġ@ Query (" per Page ") Ġlimit : ĠInt ): ĠCall < List < Gson Address >> ĊĊĠĠĠ Ġ// ĠTRAN SACTION S ĊĠĠĠ Ġ@ POST (" transactions / query ") ĊĠĠĠ Ġfun Ġquery Transactions (@ Body Ġtx ids : ĠJsonObject ): ĠCall < List < Transaction Detail >> ĊĊĠĠĠ Ġ@ GET (" transactions /{ tx id }/ stats ") ĊĠĠĠ Ġfun Ġget Transaction Stats (@ Path (" tx id ") Ġtransaction Id : ĠString ): ĠCall < Transaction Stats > ĊĊĠĠĠ Ġ// ĠW AL LET ĊĠĠĠ Ġ@ GET (" wallet ") ĊĠĠĠ Ġfun Ġverify Wallet (): ĠCall < CN Wallet > ĊĊĠĠĠ Ġ@ POST (" wallet ") ĊĠĠĠ Ġfun Ġcreate Wallet (@ Body Ġwallet Registration Payload : ĠWallet Registration Payload ): ĠCall < CN Wallet > ĊĊĠĠĠ Ġ@ PATCH (" wallet ") ĊĠĠĠ Ġfun Ġdisable Wallet (@ Body Ġdisable Wallet Request : ĠDisable Wallet Request ): ĠCall < CN Wallet > ĊĊĠĠĠ Ġ@ PUT (" wallet ") ĊĠĠĠ Ġfun Ġreplace Wallet With (@ Body Ġreplace Wallet Request : ĠReplace Wallet Request ): ĠCall < CN Wallet > ĊĊĠĠĠ Ġ@ POST (" wallet / addresses ") ĊĠĠĠ Ġfun Ġadd Address To CN Wallet (@ Body Ġadd Address Body Request : ĠAdd Address Body Request ): ĠCall < CN Wallet Address > ĊĊĠĠĠ Ġ@ DELETE (" wallet / addresses /{ address }") ĊĠĠĠ Ġfun Ġremove Address (@ Path (" address ") Ġaddress : ĠString ): ĠCall < Map < String , ĠString >> ĊĊĠĠĠ Ġ@ POST (" wallet / addresses / query ") ĊĠĠĠ Ġfun Ġquery Wallet Address (@ Body Ġquery : ĠJsonObject ): ĠCall < List < Address Lookup Result >> ĊĊĠĠĠ Ġ// ĠW AL LET Ġ- ĠBTC ĠV IA ĠPH ONE ĠNUMBER ĊĊĠĠĠ Ġ@ POST (" wallet / address _ requests ") ĊĠĠĠ Ġfun Ġinvite User (@ Body Ġinvite User Payload : ĠInv ite User Payload ): ĠCall < Inv ited Contact > ĊĊĠĠĠ Ġ@ PATCH (" wallet / address _ requests /{ id }") ĊĠĠĠ Ġfun Ġpatch Invite (@ Path (" id ") Ġid : ĠString , Ġ@ Body Ġquery : ĠJsonObject ): ĠCall < Sent Invite > ĊĊĠĠĠ Ġ@ POST (" wallet / addresses ") ĊĠĠĠ Ġfun Ġsend Address (@ Body Ġquery : ĠJsonObject ): ĠCall < CN Wallet Address > ĊĊĠĠĠ Ġ@ PUT (" wallet / reset ") ĊĠĠĠ Ġfun Ġreset Wallet (): ĠCall < Void > ĊĊĠĠĠ Ġ// ĠUSER ĠAC COUNT ĊĠĠĠ Ġ@ Deprecated ("") ĊĠĠĠ Ġ@ GET (" user ") ĊĠĠĠ Ġfun Ġverify User Account (): ĠCall < CN User Account > ĊĊĠĠĠ Ġ@ PATCH (" user ") ĊĠĠĠ Ġfun Ġpatch User Account (@ Body Ġcn User Patch : ĠCN User Patch ): ĠCall < CN User Patch > ĊĊĠĠĠ Ġ@ Deprecated ("") ĊĠĠĠ Ġ@ POST (" user ") ĊĠĠĠ Ġfun Ġcreate User Account (@ Body ĠCN PhoneNumber : ĠCN PhoneNumber ): ĠCall < CN User Account > ĊĊĠĠĠ Ġ@ POST (" user ") ĊĠĠĠ Ġfun Ġcreate User From (@ Body Ġidentity : ĠCN User Identity ): ĠCall < CN User Account > ĊĊĠĠĠ Ġ@ POST (" user / res end ") ĊĠĠĠ Ġfun Ġres end Verification (@ Body ĠCN PhoneNumber : ĠCN PhoneNumber ): ĠCall < CN User Account > ĊĊĠĠĠ Ġ@ POST (" user / query ") ĊĠĠĠ Ġfun Ġquery Users (@ Body Ġjson : ĠJsonObject ): ĠCall < Map < String , ĠString >> ĊĊĠĠĠ Ġ@ DELETE (" user / identity /{ identity _ id }") ĊĠĠĠ Ġfun Ġdelete Identity (@ Path (" identity _ id ") Ġserver Id : ĠString ): ĠCall < Void > ĊĊĠĠĠ Ġ@ GET (" user / identity /{ id }") ĊĠĠĠ Ġfun Ġget Identity (@ Path (" id ") Ġid : ĠString ): ĠCall < CN User Identity > ĊĊĠĠĠ Ġ@ POST (" user / identity ") ĊĠĠĠ Ġfun Ġadd Identity (@ Body Ġidentity : ĠCN User Identity ): ĠCall < CN User Identity > ĊĊĠĠĠ Ġ@ POST (" user / verify ") ĊĠĠĠ Ġfun Ġverify Identity (@ Body Ġidentity : ĠCN User Identity ): ĠCall < CN User Account > ĊĊĠĠĠ Ġ// ĠPR IC ING ĊĠĠĠ Ġ@ GET (" wallet / check - in ") ĊĠĠĠ Ġfun Ġcheck In (): ĠCall < Current State > ĊĊĠĠĠ Ġ@ GET (" health ") ĊĠĠĠ Ġfun Ġcheck Health (): ĠCall < JsonObject > ĊĊĠĠĠ Ġ@ GET (" pricing /{ tx id }") ĊĠĠĠ Ġfun Ġget Historic Price (@ Path (" tx id ") Ġtx id : ĠString ): ĠCall < CN Pricing > ĊĊĠĠĠ Ġ// ĠCN ĠGlobal ĠMessaging ĊĠĠĠ Ġ@ POST (" messages / query ") ĊĠĠĠ Ġfun Ġget CN Messages (@ Body Ġelastic Search : ĠJsonObject ): ĠCall < List < CN Global Message >> ĊĊĠĠĠ Ġ@ POST (" transaction / notification ") ĊĠĠĠ Ġfun Ġpost Transaction Notification (@ Body Ġshared Memo : ĠCN Shared Memo ): ĠCall < CN Transaction Notification Response > ĊĊĠĠĠ Ġ@ GET (" transaction / notification /{ tx id }") ĊĠĠĠ Ġfun Ġget Transaction Notification (@ Path (" tx id ") Ġtx id : ĠString ): ĠCall < List < CN Shared Memo >> ĊĊĠĠĠ Ġ// CN ĠDevice ĊĠĠĠ Ġ@ POST (" devices ") ĊĠĠĠ Ġfun Ġcreate CN Device (@ Body Ġquery : ĠJsonObject ): ĠCall < CN Device > ĊĊĠĠĠ Ġ@ POST (" devices /{ device ID }/ endpoints ") ĊĠĠĠ Ġfun Ġregister For Push Endpoint (@ Path (" device ID ") Ġcn DeviceId : ĠString , Ġ@ Body Ġbody : ĠJsonObject ): ĠCall < CN Device Endpoint > ĊĊĠĠĠ Ġ@ GET (" devices /{ device ID }/ endpoints ") ĊĠĠĠ Ġfun Ġfetch Remote Endpoints For (@ Path (" device ID ") Ġcn DeviceId : ĠString ): ĠCall < List < CN Device Endpoint >> ĊĊĠĠĠ Ġ@ DELETE (" devices /{ device ID }/ endpoints /{ endpoint ID }") ĊĠĠĠ Ġfun Ġun Register Device Endpoint (@ Path (" device ID ") Ġcn DeviceId : ĠString , Ġ@ Path (" endpoint ID ") Ġendpoint : ĠString ): ĠCall < Map < String , ĠString >> ĊĊĠĠĠ Ġ@ GET (" devices /{ device ID }/ endpoints /{ endpoint ID }/ subscriptions ") ĊĠĠĠ Ġfun Ġfetch Device Endpoint Subscriptions (@ Path (" device ID ") Ġcn DeviceId : ĠString , Ġ@ Path (" endpoint ID ") Ġendpoint : ĠString ): ĠCall < CN Subscription State > ĊĊĠĠĠ Ġ@ POST (" devices /{ device ID }/ endpoints /{ endpoint ID }/ subscriptions ") ĊĠĠĠ Ġfun Ġsubscribe To Topics (@ Path (" device ID ") Ġcn DeviceId : ĠString , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Path (" endpoint ID ") Ġendpoint : ĠString , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ@ Body Ġcn Topic Subscription : ĠCN Topic Subscription ): ĠCall < Void > ĊĊĊĠĠĠ Ġ@ POST (" wallet / subscribe ") ĊĠĠĠ Ġfun Ġsubscribe To Wallet Topic (@ Body Ġbody : ĠJsonObject ): ĠCall < CN Subscription > ĊĊĠĠĠ Ġ@ PUT (" wallet / subscribe ") ĊĠĠĠ Ġfun Ġupdate Wallet Subscription (@ Body Ġbody : ĠJsonObject ): ĠCall < CN Subscription > ĊĊĠĠĠ Ġ@ DELETE (" devices /{ device ID }/ endpoints /{ endpoint ID }/ subscriptions /{ topic ID }") ĊĠĠĠ Ġfun Ġunsubscribe From Topic (@ Path (" device ID ") Ġdevices Id : ĠString , Ġ@ Path (" endpoint ID ") Ġdevice Endpoint : ĠString , Ġ@ Path (" topic ID ") Ġtopic Id : ĠString ): ĠCall < Void > ĊĊĠĠĠ Ġ@ GET (" pricing / h istoric ") ĊĠĠĠ Ġfun Ġload Historic Pricing (@ Query (" period ") Ġperiod : ĠString ): ĠCall < List < H istorical Price Record >> ĊĊĠĠĠ Ġ@ GET (" news / feed / items ") ĊĠĠĠ Ġfun Ġload News (@ Query (" count ") Ġcount : ĠInt ): ĠCall < Mutable List < News Article >> ĊĊĠĠĠ Ġ@ Streaming ĊĠĠĠ Ġ@ POST (" broadcast ") ĊĠĠĠ Ġfun Ġbroadcast Transaction (@ Body Ġbody : ĠRequest Body ): ĠCall < ResponseBody > ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠ Ġconst Ġval ĠADD RES SES _ RESULT _ LIMIT Ġ= Ġ 1 0 0 ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠADD RES SES _ TO _ QUERY _ AT _ A _ TIME Ġ= Ġ 2 5 ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠTRAN SACTION S _ TO _ QUERY _ AT _ A _ TIME Ġ= Ġ 2 5 ĊĠĠĠ Ġ} Ċ } Ċ