Get the parameter behind `Param::Cmd` interpreted as `SystemMessage`.
(&self)
| 399 | |
| 400 | /// Get the parameter behind `Param::Cmd` interpreted as `SystemMessage`. |
| 401 | pub fn get_cmd(&self) -> SystemMessage { |
| 402 | self.get_int(Param::Cmd) |
| 403 | .and_then(SystemMessage::from_i32) |
| 404 | .unwrap_or_default() |
| 405 | } |
| 406 | |
| 407 | /// Set the parameter behind `Param::Cmd`. |
| 408 | pub fn set_cmd(&mut self, value: SystemMessage) { |
no test coverage detected