Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
feat: serialize streaming server device info
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Mar 21, 2024
1 parent 75297a3 commit 07c4053
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/model/serialize_streaming_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use stremio_core::models::common::Loadable;
use stremio_core::models::streaming_server::{PlaybackDevice, Selected, StreamingServer};
use stremio_core::runtime::EnvError;
use stremio_core::types::addon::ResourcePath;
use stremio_core::types::streaming_server::{NetworkInfo, Settings, Statistics};
use stremio_core::types::streaming_server::{DeviceInfo, NetworkInfo, Settings, Statistics};
use url::Url;
use wasm_bindgen::JsValue;

Expand All @@ -22,6 +22,7 @@ mod model {
pub remote_url: &'a Option<Url>,
pub playback_devices: &'a Loadable<Vec<PlaybackDevice>, EnvError>,
pub network_info: &'a Loadable<NetworkInfo, EnvError>,
pub device_info: &'a Loadable<DeviceInfo, EnvError>,
pub torrent: Option<(&'a String, TorrentLoadable<'a>)>,
pub statistics: Option<&'a Loadable<Statistics, EnvError>>,
}
Expand All @@ -35,6 +36,7 @@ pub fn serialize_streaming_server(streaming_server: &StreamingServer) -> JsValue
remote_url: &streaming_server.remote_url,
playback_devices: &streaming_server.playback_devices,
network_info: &streaming_server.network_info,
device_info: &streaming_server.device_info,
torrent: streaming_server
.torrent
.as_ref()
Expand Down

0 comments on commit 07c4053

Please sign in to comment.