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

Improve JSON parsing using annotated model-classes #6

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Improve JSON parsing using annotated model-classes #6

wants to merge 7 commits into from

Conversation

jbastgen
Copy link

@jbastgen jbastgen commented Aug 7, 2017

Using annotated model-classes to parse JSON objects.
reworked package structure of the project a bit.

Copy link
Owner

@tmyroadctfig tmyroadctfig left a comment

Choose a reason for hiding this comment

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

There are quite a lot of unnecessary formatting changes, and that make the code hard to review. Can you please revert those back to the original format & style, and then I'll have another look?

Thanks, Luke

build.gradle Outdated
}
}
}
}
Copy link
Owner

Choose a reason for hiding this comment

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

Please put this back in.

/**
* Access to the iCloud Drive service.
*
* @author Luke Quinanne
*/
public class DriveService
{
public class DriveService {
Copy link
Owner

Choose a reason for hiding this comment

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

Braces are on the next line for this project.

@@ -53,8 +53,9 @@
* @param response the HTTP response.
* @param errorMap the map of error values returned by iCloud.
*/
public ICloudException(HttpResponse response, Map<String, Object> errorMap)
public ICloudException(HttpResponse response, Map<String, Object> errorMap, Throwable cause)
Copy link
Owner

Choose a reason for hiding this comment

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

Javadocs missing for cause.

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class AppleDevice {
Copy link
Owner

Choose a reason for hiding this comment

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

Javadoc missing.

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class Features {
Copy link
Owner

Choose a reason for hiding this comment

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

Javadocs missing.

@jbastgen
Copy link
Author

jbastgen commented Aug 8, 2017

Hello @tmyroadctfig ,
i just reworked your suggestions.

Some more javadocs and other enhancements will follow soon.

Best,
Neo

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.

2 participants