This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you are using Protocol buffer or Flat buffer and want to get Byte String response for server-: | |
``` | |
public class ToStringConverterFactory extends Converter.Factory { | |
@Override | |
public Converter<ResponseBody, ?> responseBodyConverter(Type type, Annotation[] annotations, Retrofit retrofit) { | |
if (String.class.equals(type)) { | |
return new Converter<ResponseBody, String>() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Balram Pandey on 12/29/16. | |
*/ | |
public class EncryptionInterceptor implements Interceptor { | |
private static final String TAG = EncryptionInterceptor.class.getSimpleName(); | |
private static final boolean DEBUG = true; |