Skip to content

Commit

Permalink
Merge pull request #19 from MEITREX/MediaRecordDeletedEvent
Browse files Browse the repository at this point in the history
Add TopicPublissher method and dapr topic
  • Loading branch information
myluki2000 authored Aug 6, 2024
2 parents 8fddc0c + dde709e commit 5607b6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public enum DaprTopic {

MEDIA_RECORD_FILE_CREATED("media-record-file-created"),

MEDIA_RECORD_DELETED("media-record-deleted"),

ITEM_CHANGED("item-changed");

private final String topic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,12 @@ public void notifyUserProgressUpdated(final UserProgressUpdatedEvent userProgres
public void notifyMediaRecordFileCreated(final MediaRecordFileCreatedEvent mediaRecordFileCreatedEvent) {
publishEvent(mediaRecordFileCreatedEvent, DaprTopic.MEDIA_RECORD_FILE_CREATED);
}

/**
* Method to notify when a media record has been deleted.
* @param mediaRecordDeletedEvent of the deleted media record
*/
public void notifyMediaRecordDeleted(final MediaRecordDeletedEvent mediaRecordDeletedEvent) {
publishEvent(mediaRecordDeletedEvent, DaprTopic.MEDIA_RECORD_DELETED);
}
}

0 comments on commit 5607b6e

Please sign in to comment.