Skip to content

Instantly share code, notes, and snippets.

@Ikhiloya
Created October 28, 2020 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ikhiloya/01a6ce14afc997b7c121a7189b350af2 to your computer and use it in GitHub Desktop.
Save Ikhiloya/01a6ce14afc997b7c121a7189b350af2 to your computer and use it in GitHub Desktop.
A simple web service call annotated with a custom annotation to ensure that the request is retrieved cached
@Cacheable
@GET(Constant.PAYMENT_TYPES)
fun getPaymentTypes(): Call<MutableList<PaymentType>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment