Class StringCallAdapter

java.lang.Object
dev.voidframework.restclient.retrofit.calladapter.StringCallAdapter
All Implemented Interfaces:
retrofit2.CallAdapter<String,String>

public final class StringCallAdapter extends Object implements retrofit2.CallAdapter<String,String>
Adapts a Call with response of type String into a String.
Since:
1.9.0
  • Constructor Details

    • StringCallAdapter

      public StringCallAdapter()
  • Method Details

    • responseType

      public Type responseType()
      Specified by:
      responseType in interface retrofit2.CallAdapter<String,String>
    • adapt

      public String adapt(retrofit2.Call<String> call)
      Specified by:
      adapt in interface retrofit2.CallAdapter<String,String>