Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
add log when push notification is fired
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Kurz committed Jan 30, 2024
1 parent 5b2534c commit febfb26
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@
import io.redlink.more.studymanager.core.io.ActionParameter;
import io.redlink.more.studymanager.core.properties.ActionProperties;
import io.redlink.more.studymanager.core.sdk.MoreActionSDK;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PushNotificationAction extends Action<ActionProperties> {

private static final Logger LOGGER = LoggerFactory.getLogger(PushNotificationAction.class);
protected PushNotificationAction(MoreActionSDK sdk, ActionProperties properties) throws ConfigurationValidationException {
super(sdk, properties);
}

@Override
public void execute(ActionParameter parameters) {
LOGGER.info("send push notification with parameters: {}", parameters.toString());
sdk.sendPushNotification(
properties.getString("title"),
properties.getString("message")
Expand Down

0 comments on commit febfb26

Please sign in to comment.