Finished basic google home implementation with some slight refactors along the way
This commit is contained in:
@@ -3,20 +3,20 @@ use serde::Deserialize;
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct Payload {
|
||||
commands: Vec<Command>,
|
||||
pub commands: Vec<Command>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct Command {
|
||||
devices: Vec<Device>,
|
||||
execution: Vec<CommandType>
|
||||
pub devices: Vec<Device>,
|
||||
pub execution: Vec<CommandType>
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct Device {
|
||||
id: String,
|
||||
pub id: String,
|
||||
// customData
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user