1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
// Message ID: 145 (-111)

#[derive(Debug)]
pub struct TouchUpdated {
    pub status: bool,
}

pub fn new(arr: &[u8]) -> TouchUpdated {
    TouchUpdated {
        status: arr[0] == 1,
    }
}