Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make request body format customizable (Issue 54) #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Make request body format customizable (Issue 54) #60

wants to merge 1 commit into from

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.

.addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY))
.build();
}

@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.

None yet

2 participants