程序包 gateway.api

类 BytesConverterFactory

java.lang.Object
retrofit2.Converter.Factory
gateway.api.BytesConverterFactory

public class BytesConverterFactory extends retrofit2.Converter.Factory
二进制返回转换工厂
作者:
neeker
  • 字段详细资料

    • MEDIA_TYPE

      private static final okhttp3.MediaType MEDIA_TYPE
  • 构造器详细资料

    • BytesConverterFactory

      public BytesConverterFactory()
  • 方法详细资料

    • create

      public static retrofit2.Converter.Factory create()
    • responseBodyConverter

      public retrofit2.Converter<okhttp3.ResponseBody,?> responseBodyConverter(Type type, Annotation[] annotations, retrofit2.Retrofit retrofit)
      覆盖:
      responseBodyConverter 在类中 retrofit2.Converter.Factory
    • requestBodyConverter

      public retrofit2.Converter<?,okhttp3.RequestBody> requestBodyConverter(Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations, retrofit2.Retrofit retrofit)
      覆盖:
      requestBodyConverter 在类中 retrofit2.Converter.Factory