From 3b6b5d75480059532d323472f5a3696155de0428 Mon Sep 17 00:00:00 2001 From: Raine Date: Sun, 15 Oct 2023 18:06:21 +0200 Subject: [PATCH] feat: add property_control.rs --- domo_proto/src/commands/mod.rs | 1 + domo_proto/src/commands/property_control.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 domo_proto/src/commands/property_control.rs diff --git a/domo_proto/src/commands/mod.rs b/domo_proto/src/commands/mod.rs index 145d886..07461e3 100644 --- a/domo_proto/src/commands/mod.rs +++ b/domo_proto/src/commands/mod.rs @@ -1,5 +1,6 @@ use crate::packet::packet_data::PacketData; pub mod node_management; +pub mod property_control; pub trait Command: Into + From {} diff --git a/domo_proto/src/commands/property_control.rs b/domo_proto/src/commands/property_control.rs new file mode 100644 index 0000000..b7e4c55 --- /dev/null +++ b/domo_proto/src/commands/property_control.rs @@ -0,0 +1,15 @@ +use crate::packet::data_types::DataType; + +pub enum PropertyControl { + Get { + property_name: String, + data: DataType + }, + Set { + property_name: String, + data: DataType + }, + Reset { + property_name: String, + } +} \ No newline at end of file