Skip to content

Commit

Permalink
Merge pull request #15 from MEITREX/add_MediaRecordFileCreatedEvent
Browse files Browse the repository at this point in the history
Add TopicPublisher method for MediaRecordFileCreatedEvent
  • Loading branch information
myluki2000 authored Aug 2, 2024
2 parents 7940772 + 90b5ccf commit c3c1a71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public enum DaprTopic {

USER_PROGRESS_UPDATED("user-progress-updated"),

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

ITEM_CHANGED("item-changed");

private final String topic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,11 @@ public void notifyUserProgressUpdated(final UserProgressUpdatedEvent userProgres
publishEvent(userProgressUpdatedEvent, DaprTopic.USER_PROGRESS_UPDATED);
}

/**
* Method to notify when a file has been uploaded to MinIO for a media record.
* @param mediaRecordFileCreatedEvent of the uploaded file
*/
public void notifyMediaRecordFileCreated(final MediaRecordFileCreatedEvent mediaRecordFileCreatedEvent) {
publishEvent(mediaRecordFileCreatedEvent, DaprTopic.MEDIA_RECORD_FILE_CREATED);
}
}

0 comments on commit c3c1a71

Please sign in to comment.