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

Issue 24 - Method to add multiple EventsOfInterest to the model #25

Merged
merged 3 commits into from
Sep 23, 2021

Conversation

amol-anand
Copy link
Contributor

Description

Need this for someone who wants to register multiple combinations of Provider ID and Event Code to one Journal/Webhook.

Related Issue

#24

Motivation and Context

Need this for someone who wants to register multiple combinations of Provider ID and Event Code to one Journal/Webhook.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

Need this for someone who wants to register multiple combinations of Provider ID and Event Code to one Journal/Webhook.
@amol-anand
Copy link
Contributor Author

@francoisledroff please review and merge. need a way to add multiple combos of ProviderId and EventCode while registering a new journal to listen to events.

@@ -157,6 +157,12 @@ public Builder addEventsOfInterests(
return this;
}

public Builder addMultipleEventsOfInterests(
Copy link
Collaborator

Choose a reason for hiding this comment

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

wdyt just reusing the same method name addEventsOfInterests here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense considering the method name is plural and intended for that purpose. ill update the PR

amolanand18 and others added 2 commits September 23, 2021 09:26
this way you could send either one EventsOfInterest or a Set of EventsOfInterest
@amol-anand
Copy link
Contributor Author

@francoisledroff updated. please review

@francoisledroff francoisledroff merged commit 6835194 into adobe:main Sep 23, 2021
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.

3 participants