Skip to content

Make request body format customizable (Issue 54)#60

Open
dmitrikudrenko wants to merge 1 commit intojgilfelt:masterfrom
dmitrikudrenko:master
Open

Make request body format customizable (Issue 54)#60
dmitrikudrenko wants to merge 1 commit intojgilfelt:masterfrom
dmitrikudrenko:master

Conversation

@dmitrikudrenko
Copy link
Copy Markdown

@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
Copy Markdown

@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() {
Copy link
Copy Markdown

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) {
Copy link
Copy Markdown

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