MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / parse_application

Function parse_application

packages/server/src/webkit.rs:1063–1072  ·  view source on GitHub ↗
(args: &Dictionary)

Source from the content-addressed store, hash-verified

1061}
1062
1063fn parse_application(args: &Dictionary) -> Option<WebKitApplication> {
1064 let id = string_value(args, "WIRApplicationIdentifierKey")?;
1065 Some(WebKitApplication {
1066 id,
1067 name: string_value(args, "WIRApplicationNameKey"),
1068 bundle_identifier: string_value(args, "WIRApplicationBundleIdentifierKey"),
1069 active: integer_value(args, "WIRIsApplicationActiveKey").unwrap_or(0) > 0,
1070 is_proxy: bool_value(args, "WIRIsApplicationProxyKey").unwrap_or(false),
1071 })
1072}
1073
1074fn parse_page_listing(args: &Dictionary) -> Vec<WebKitPage> {
1075 let Some(app_id) = string_value(args, "WIRApplicationIdentifierKey") else {

Callers 1

run_connectionMethod · 0.85

Calls 3

integer_valueFunction · 0.85
bool_valueFunction · 0.85
string_valueFunction · 0.70

Tested by

no test coverage detected