-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
949 additions
and
896 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
core/src/main/java/org/openedx/core/system/notifier/AccountDeactivated.kt
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
core/src/main/java/org/openedx/core/system/notifier/AccountUpdated.kt
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...nedx/core/system/notifier/ProfileEvent.kt → ...penedx/core/system/notifier/VideoEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package org.openedx.core.system.notifier | ||
|
||
interface ProfileEvent | ||
interface VideoEvent |
14 changes: 14 additions & 0 deletions
14
core/src/main/java/org/openedx/core/system/notifier/VideoNotifier.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.openedx.core.system.notifier | ||
|
||
import kotlinx.coroutines.flow.Flow | ||
import kotlinx.coroutines.flow.MutableSharedFlow | ||
import kotlinx.coroutines.flow.asSharedFlow | ||
|
||
class VideoNotifier { | ||
|
||
private val channel = MutableSharedFlow<VideoEvent>(replay = 0, extraBufferCapacity = 0) | ||
|
||
val notifier: Flow<VideoEvent> = channel.asSharedFlow() | ||
|
||
suspend fun send(event: VideoQualityChanged) = channel.emit(event) | ||
} |
2 changes: 1 addition & 1 deletion
2
core/src/main/java/org/openedx/core/system/notifier/VideoQualityChanged.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package org.openedx.core.system.notifier | ||
|
||
class VideoQualityChanged : ProfileEvent | ||
class VideoQualityChanged : VideoEvent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.