-
Notifications
You must be signed in to change notification settings - Fork 17
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
add change type to delete batch input #69
Conversation
|
||
private RecordType type; | ||
|
||
public class AddChangeInput extends ChangeInput { | ||
private Long ttl; |
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.
We should convert these to final
since there's only one constructor and no need for setters.
|
||
ChangeInputType getChangeType(); | ||
public class ChangeInput { | ||
private ChangeInputType changeType; |
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.
Should set these to final
as well.
public ChangeInput(ChangeInputType changeType, String inputName, RecordType recordType) { | ||
this.changeType = changeType; | ||
this.inputName = inputName; | ||
this.recordType = recordType; |
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.
Since we're using gson.toJson
to serialized the request into JSON, this should be type
to match what the API is expecting. Otherwise, would need to figure out how to set this field as type
when it gets serialized into JSON.
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.
Yeah good point, hit me on my walk home
No description provided.