В статье описывается использование разных конвертеров в одной инстанции Retrofit. С помощью аннотаций можно указать, какой конвертер должен использоваться.
#android #network #retrofit
https://medium.com/mindorks/retrofit-with-multiple-converters-71ecd4042681
#android #network #retrofit
https://medium.com/mindorks/retrofit-with-multiple-converters-71ecd4042681
Medium
Retrofit with multiple converters
Hello Guys!! I have integrated retrofit with rxjava2.0 in my project, everything was going smooth, I have created a retrofit instance and…
Реализация кэша в Retrofit с помощью Interceptor
#android #retrofit #network #cache
https://medium.com/swlh/annotation-based-offline-caching-in-retrofit-d7dbd775ac74
#android #retrofit #network #cache
https://medium.com/swlh/annotation-based-offline-caching-in-retrofit-d7dbd775ac74
Medium
Annotation-Based Offline Caching in Retrofit
Annotations are syntactic metadata that provides data about a program that is not part of the program itself. Annotations have no direct…
Автор показывает, как с помощью CallAdapter упаковать ответы от ретрофита в Sealed классы Success, Error и Exception.
#retrofit #android
https://proandroiddev.com/modeling-retrofit-responses-with-sealed-classes-and-coroutines-9d6302077dfe
#retrofit #android
https://proandroiddev.com/modeling-retrofit-responses-with-sealed-classes-and-coroutines-9d6302077dfe
Medium
Modeling Retrofit Responses With Sealed Classes and Coroutines
As the rate of data communication increases, the complexity of the application architecture also increases. How an application handles API…
У ретрофита есть отдельный механизм, позволяющий обновить устаревший токен - Authenticator.
#retrofit #authorization
https://medium.com/@dogancankilic/refresh-access-token-with-retrofit-authenticator-a48673749a63
#retrofit #authorization
https://medium.com/@dogancankilic/refresh-access-token-with-retrofit-authenticator-a48673749a63
Medium
Refresh Access Token With Retrofit Authenticator
The HyperText Transfer Protocol (HTTP) 401 Unauthorized response status code indicates that the client request has not been completed…