diff --git a/src/commonMain/rust/bridge/event.rs b/src/commonMain/rust/bridge/event.rs index 776bc86..28ff3d4 100644 --- a/src/commonMain/rust/bridge/event.rs +++ b/src/commonMain/rust/bridge/event.rs @@ -104,6 +104,14 @@ impl ToProtobuf for Event { id: id.to_owned(), }) } + Event::LibraryItemNotificationsToggled { id } => { + runtime::event::Type::LibraryItemNotificationsToggled( + runtime::event::LibraryItemNotificationsToggled { id: id.clone() }, + ) + } + Event::NotificationsDismissed { id } => runtime::event::Type::NotificationsDismissed( + runtime::event::NotificationsDismissed { id: id.clone() }, + ), Event::LibrarySyncWithAPIPlanned { uid, plan } => { runtime::event::Type::LibrarySyncWithApiPlanned( runtime::event::LibrarySyncWithApiPlanned { diff --git a/src/main/proto/stremio/core/runtime/action_meta_details.proto b/src/main/proto/stremio/core/runtime/action_meta_details.proto index 904d3e1..9d39335 100644 --- a/src/main/proto/stremio/core/runtime/action_meta_details.proto +++ b/src/main/proto/stremio/core/runtime/action_meta_details.proto @@ -6,6 +6,8 @@ option java_package = "com.stremio.core.runtime.msg"; import "google/protobuf/empty.proto"; +import "stremio/core/types/video.proto"; + message ActionMetaDetails { oneof args { bool mark_as_watched = 1; @@ -13,7 +15,7 @@ message ActionMetaDetails { } message VideoState { - required string video_id = 1; + required stremio.core.types.Video video = 1; required bool is_watched = 2; } } \ No newline at end of file diff --git a/src/main/proto/stremio/core/runtime/event.proto b/src/main/proto/stremio/core/runtime/event.proto index 8320aa3..55f1ab3 100644 --- a/src/main/proto/stremio/core/runtime/event.proto +++ b/src/main/proto/stremio/core/runtime/event.proto @@ -32,14 +32,16 @@ message Event { LibraryItemAdded library_item_added = 21; LibraryItemRemoved library_item_removed = 22; LibraryItemRewinded library_item_rewinded = 23; - PlayerPlaying player_playing = 24; - PlayerStopped player_stopped = 25; - PlayerEnded player_ended = 26; - TraktPlaying trakt_playing = 27; - TraktPaused trakt_paused = 28; - MagnetParsed magnet_parsed = 29; - TorrentParsed torrent_parsed = 30; - PlayingOnDevice playing_on_device = 31; + LibraryItemNotificationsToggled library_item_notifications_toggled = 24; + NotificationsDismissed notifications_dismissed = 25; + PlayerPlaying player_playing = 26; + PlayerStopped player_stopped = 27; + PlayerEnded player_ended = 28; + TraktPlaying trakt_playing = 29; + TraktPaused trakt_paused = 30; + MagnetParsed magnet_parsed = 31; + TorrentParsed torrent_parsed = 32; + PlayingOnDevice playing_on_device = 33; Error error = 100; } @@ -116,6 +118,12 @@ message Event { message LibraryItemRewinded { required string id = 1; } + message LibraryItemNotificationsToggled { + required string id = 1; + } + message NotificationsDismissed { + required string id = 1; + } message PlayerPlaying { // Empty }