pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::CameraOperatingMode,
			event_snapshots_active: EventSnapshotsActiveCharacteristic::new(id + 1 + 0, accessory_id),
			homekit_camera_active: HomekitCameraActiveCharacteristic::new(id + 1 + 1, accessory_id),
			camera_operating_mode_indicator: Some(CameraOperatingModeIndicatorCharacteristic::new(id + 1 + 0 + 2, accessory_id)),
			manually_disabled: Some(ManuallyDisabledCharacteristic::new(id + 1 + 1 + 2, accessory_id)),
			night_vision: Some(NightVisionCharacteristic::new(id + 1 + 2 + 2, accessory_id)),
			periodic_snapshots_active: Some(PeriodicSnapshotsActiveCharacteristic::new(id + 1 + 3 + 2, accessory_id)),
			third_party_camera_active: Some(ThirdPartyCameraActiveCharacteristic::new(id + 1 + 4 + 2, accessory_id)),
			..Default::default()
        }
    }
/// Creates a new Camera Operating Mode service.
Creates a new Camera Operating Mode service.
Creates a new Camera Operating Mode service .
pub fn new(id: u64, accessory_id: u64) -> Self {
        Self {
            id,
            hap_type: HapType::CameraOperatingMode,
			event_snapshots_active: EventSnapshotsActiveCharacteristic::new(id + 1 + 0, accessory_id),
			homekit_camera_active: HomekitCameraActiveCharacteristic::new(id + 1 + 1, accessory_id),
			camera_operating_mode_indicator: Some(CameraOperatingModeIndicatorCharacteristic::new(id + 1 + 0 + 2, accessory_id)),
			manually_disabled: Some(ManuallyDisabledCharacteristic::new(id + 1 + 1 + 2, accessory_id)),
			night_vision: Some(NightVisionCharacteristic::new(id + 1 + 2 + 2, accessory_id)),
			periodic_snapshots_active: Some(PeriodicSnapshotsActiveCharacteristic::new(id + 1 + 3 + 2, accessory_id)),
			third_party_camera_active: Some(ThirdPartyCameraActiveCharacteristic::new(id + 1 + 4 + 2, accessory_id)),
			..Default::default()
        }
    }
pub fn new ( id : u64 , accessory_id : u64 ) -> Self { Self { id , hap_type : HapType :: CameraOperatingMode , event_snapshots_active : EventSnapshotsActiveCharacteristic :: new ( id + 1 + 0 , accessory_id ) , homekit_camera_active : HomekitCameraActiveCharacteristic :: new ( id + 1 + 1 , accessory_id ) , camera_operating_mode_indicator : Some ( CameraOperatingModeIndicatorCharacteristic :: new ( id + 1 + 0 + 2 , accessory_id ) ) , manually_disabled : Some ( ManuallyDisabledCharacteristic :: new ( id + 1 + 1 + 2 , accessory_id ) ) , night_vision : Some ( NightVisionCharacteristic :: new ( id + 1 + 2 + 2 , accessory_id ) ) , periodic_snapshots_active : Some ( PeriodicSnapshotsActiveCharacteristic :: new ( id + 1 + 3 + 2 , accessory_id ) ) , third_party_camera_active : Some ( ThirdPartyCameraActiveCharacteristic :: new ( id + 1 + 4 + 2 , accessory_id ) ) , .. Default :: default ( ) } }
Creates a new Camera Operating Mode service.
Creates a new Camera Operating Mode service .
id
u64
accessory_id
u64
id
u64
accessory_id
u64