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

add change type to delete batch input #69

Merged
merged 3 commits into from
May 16, 2019

Conversation

nimaeskandary
Copy link
Contributor

No description provided.


private RecordType type;

public class AddChangeInput extends ChangeInput {
private Long ttl;
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

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.

Copy link
Contributor Author

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

@nimaeskandary nimaeskandary merged commit 891355a into vinyldns:master May 16, 2019
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