Skip to content

Conversation

@dmitrikudrenko
Copy link

@dmitrikudrenko dmitrikudrenko commented Aug 27, 2017

#54

@dmitrikudrenko dmitrikudrenko changed the title master Make request body format customizable (Issue 54) Aug 27, 2017
Copy link

@olivierperez olivierperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some little comments.

JsonConvertor.gson = gson;
}

public static GsonBuilder getDefaultGsonBuilder() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a getter, it cannot be called "get...", maybe something like "createDefaultGsonBuilder" could be nice.

}

@NonNull
private ChuckInterceptor createChuckInterceptor(Context context) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You add a method called "createChuckInterceptor", but it is not its only purpose. I see it also do some configuration of another class.
The configuration of JsonConverter could be done in the Application class, or within the onCreate of this activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants