use zbus::proxy;
#[proxy(
interface = "org.freedesktop.ModemManager1.Sim",
default_service = "org.freedesktop.ModemManager1"
)]
pub trait MMSim {
fn send_pin(&self, pin: &str) -> zbus::Result<()>;
fn send_puk(&self, puk: &str, pin: &str) -> zbus::Result<()>;
fn enable_pin(&self, pin: &str, enabled: bool) -> zbus::Result<()>;
fn change_pin(&self, old_pin: &str, new_pin: &str) -> zbus::Result<()>;
#[zbus(property)]
fn active(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn sim_identifier(&self) -> zbus::Result<String>;
#[zbus(property)]
fn imsi(&self) -> zbus::Result<String>;
#[zbus(property)]
fn operator_name(&self) -> zbus::Result<String>;
}