-
Notifications
You must be signed in to change notification settings - Fork 18
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Javadocs missing.
Hello @tmyroadctfig , Some more javadocs and other enhancements will follow soon. Best, |
Using annotated model-classes to parse JSON objects.
reworked package structure of the project a bit.