-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add missing proto and rust mapping impl
- Loading branch information
1 parent
145cec9
commit a418dbe
Showing
16 changed files
with
54 additions
and
138 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 was deleted.
Oops, something went wrong.
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
17 changes: 12 additions & 5 deletions
17
src/commonMain/rust/model/fields/continue_watching_preview.rs
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,12 +1,19 @@ | ||
use stremio_core::models::continue_watching_preview::ContinueWatchingPreview; | ||
use stremio_core::models::continue_watching_preview::{ContinueWatchingPreview, Item}; | ||
use stremio_core::models::ctx::Ctx; | ||
|
||
use crate::bridge::ToProtobuf; | ||
use crate::protobuf::stremio::core::models; | ||
use crate::protobuf::stremio::core::{models, types}; | ||
|
||
impl ToProtobuf<models::ContinueWatchingPreview, ()> for ContinueWatchingPreview { | ||
fn to_protobuf(&self, _args: &()) -> models::ContinueWatchingPreview { | ||
impl ToProtobuf<types::LibraryItem, Ctx> for Item { | ||
fn to_protobuf(&self, ctx: &Ctx) -> types::LibraryItem { | ||
self.library_item.to_protobuf(ctx) | ||
} | ||
} | ||
|
||
impl ToProtobuf<models::ContinueWatchingPreview, Ctx> for ContinueWatchingPreview { | ||
fn to_protobuf(&self, ctx: &Ctx) -> models::ContinueWatchingPreview { | ||
models::ContinueWatchingPreview { | ||
items: self.items.to_protobuf(todo!()), | ||
library_items: self.items.to_protobuf(ctx), | ||
} | ||
} | ||
} |
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
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
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