pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::LockMechanism,
			lock_current_state: LockCurrentStateCharacteristic::new(id + 1 + 0, accessory_id),
			lock_target_state: LockTargetStateCharacteristic::new(id + 1 + 1, accessory_id),
			name: Some(NameCharacteristic::new(id + 1 + 0 + 2, accessory_id)),
			..Default::default()
        }
    }
/// Creates a new Lock Mechanism service.
Creates a new Lock Mechanism service.
Creates a new Lock Mechanism service .
pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::LockMechanism,
			lock_current_state: LockCurrentStateCharacteristic::new(id + 1 + 0, accessory_id),
			lock_target_state: LockTargetStateCharacteristic::new(id + 1 + 1, accessory_id),
			name: Some(NameCharacteristic::new(id + 1 + 0 + 2, accessory_id)),
			..Default::default()
        }
    }
pub fn new ( id : u64 , accessory_id : u64 ) -> Self { Self { id , hap_type : HapType :: LockMechanism , lock_current_state : LockCurrentStateCharacteristic :: new ( id + 1 + 0 , accessory_id ) , lock_target_state : LockTargetStateCharacteristic :: new ( id + 1 + 1 , accessory_id ) , name : Some ( NameCharacteristic :: new ( id + 1 + 0 + 2 , accessory_id ) ) , .. Default :: default ( ) } }
Creates a new Lock Mechanism service.
Creates a new Lock Mechanism service .
id
u64
accessory_id
u64
id
u64
accessory_id
u64