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

Update Sender example to compile #1

Merged
merged 2 commits into from
Jun 30, 2020
Merged

Conversation

Firionus
Copy link
Contributor

General:

  • I followed the guidelines in the Contributing document
  • I have checked to ensure there aren't other open Pull Requests for the same update/change
  • I have written new tests for my core changes, as applicable -> Don't know whether/how to implement doctests
  • My submission passes new and existing tests
  • I have updated the documentation accordingly

Type of changes ?

  • Bugfix
  • New feature, doesn't change API
  • New feature, adds to API but doesn't change old API
  • New feature, changes old API

Changes by this PR

In README.md, update Sender example from ArtPollReplyBuilder.withOemCode to ArtPollReplyBuilder.withProduct and OemCode.OemRobertJulDalis1 to OemCode.getProductByOemCode("OemRobertJulDalis1").

I also added a clarifying comment to ensure the user understands the purpose of the line.

Current behaviour

Sender example threw compiler error:

OemRobertJulDalis1 cannot be resolved or is not a field

After changing OemRobertJulDalis1 to OemCode.getProductByOemCode("OemRobertJulDalis1"), that error disappeared. A new one emerged:

The method withOemCode(Product) is undefined for the type ArtPollReplyBuilder

New behaviour

Sender example compiles.

Other information

Root cause is commit 4f1fcd8 (from Sat Apr 25 20:24:42 2020 +0200) where ArtPollReplyBuilder.withOemCode was changed to ArtPollReplyBuilder.withProduct.

I was not able to ensure the example runs as I am still facing other issues while getting the example to work. I will open an issue when I'm ready to report on further problems.

Old version threw compiler error:

```
OemRobertJulDalis1 cannot be resolved or is not a field
```

After changing `OemRobertJulDalis1` to `OemCode.getProductByOemCode("OemRobertJulDalis1")`, that error disappeared. A new one emerged: 

```
The method withOemCode(Product) is undefined for the type ArtPollReplyBuilder
```

Root cause is commit 4f1fcd8 (from Sat Apr 25 20:24:42 2020 +0200) where `ArtPollReplyBuilder.withOemCode` was changed to `ArtPollReplyBuilder.withProduct`.

I also added a clarifying comment to ensure the user understands the purpose of the line.
@Firionus Firionus mentioned this pull request Jun 30, 2020
`artNetSender` and `sender` were mixed up. Sender Example didn't compile.
@schw4rzlicht
Copy link
Member

schw4rzlicht commented Jun 30, 2020

Looks good to me, thank you :)

EDIT

I was not able to ensure the example runs as I am still facing other issues while getting the example to work. I will open an issue when I'm ready to report on further problems.

The examples work now as of 873faaa so I'm curious why they don't work for you 🤔

@schw4rzlicht schw4rzlicht merged commit a864356 into deltaeight:master Jun 30, 2020
@Firionus Firionus deleted the patch-1 branch July 2, 2020 09:19
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.

None yet

2 participants