use open_protocol_codec_proc_macro::{OpenProtocolDecode, OpenProtocolEncode, OpenProtocolMessage};
#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode)]
pub enum RemovalCondition {
#[default]
#[open_protocol_value(number = 0)]
AcknowledgeOrWait,
#[open_protocol_value(number = 1)]
Acknowledge
}
#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
#[open_protocol_message(MID = 110, revision = 1)]
pub struct MID0110rev1 {
#[open_protocol_field(length = 4)]
pub user_text: String,
}
#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
#[open_protocol_message(MID = 111, revision = 1)]
pub struct MID0111rev1 {
#[open_protocol_field(length = 4)]
pub display_duration: u16,
#[open_protocol_field(length = 1)]
pub removal_condition: RemovalCondition,
#[open_protocol_field(list, length = 25, amount = 4)]
pub lines: Vec<String>,
}
#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
#[open_protocol_message(MID = 113, revision = 1)]
pub struct MID0113rev1 {
}