镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Added inbound sms SDR event - #2880

Merged
maria-farooq merged 1 commit into
masterfrom
sdr-inbound-sms-bugfix
Mar 30, 2018
Merged

maria-farooq merged 1 commit into
masterfrom
sdr-inbound-sms-bugfix

Conversation

@agafox

@agafox agafox commented Mar 19, 2018

Copy link
Copy Markdown
Contributor

No description provided.

final SmsMessage record = builder.build();
final SmsMessagesDao messages = storage.getSmsMessagesDao();
messages.addSmsMessage(record);
getContext().system().eventStream().publish(record);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i could not find any other occurence of eventStream usage. how is this supposed to be consumed? where is the subcriber regsitered?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

getContext().system().eventStream().subscribe(self, StreamEvent.class);

@agafox

agafox commented Mar 22, 2018

Copy link
Copy Markdown
Contributor Author

@jaimecasero are any comments left from your side?

@maria-farooq

maria-farooq commented Mar 30, 2018 •

Copy link
Copy Markdown

@agafox impl seems ok. do we need to add any test to cover this case?

@maria-farooq
maria-farooq merged commit 5db8b31 into master Mar 30, 2018
@maria-farooq

Copy link
Copy Markdown

i was thinking maybe we can cover that RC is publishing on desired events in RC side as well. but as Oleg said he will cover it on sdr service side. this pr is merged

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