Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. class HtmlSettingsConverter : Converter.Factory() {
  2.  
  3. override fun responseBodyConverter(
  4. type: Type,
  5. annotations: Array<Annotation>,
  6. retrofit: Retrofit
  7. ): Converter<ResponseBody, *> {
  8. if (type is LinkedInUserSettings) // Error here
  9. return HtmlConverter.INSTANCE
  10. else
  11. return null
  12. }
  13.  
  14. class HtmlConverter : Converter<ResponseBody, UserSettings> {
  15.  
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement