diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 3206d8a70..000000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,36 +0,0 @@ -# This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - -name: Java CI with Maven and Deploy - -on: - push: - branches: [ master ] - -permissions: - contents: write - packages: write - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: '11' - architecture: x64 - - name: Setup git profile - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - - name: Publish Snapshot to GitHub Packages - run: mvn deploy -B - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Publish site - run: mvn -B site-deploy -Dusername=github-actions -Dpassword=${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml deleted file mode 100644 index 6f597043c..000000000 --- a/.github/workflows/maven.yml +++ /dev/null @@ -1,24 +0,0 @@ -# This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - -name: Java CI with Maven - -on: - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: '11' - architecture: x64 - - name: Build with Maven - run: mvn -B package --file pom.xml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 29bfe0e59..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,38 +0,0 @@ -# This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - -name: Stage Release on Master Branch - -on: - workflow_dispatch: - inputs: - releaseVersion: - description: Version to release - required: true - -permissions: - contents: write - packages: write - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - uses: git-actions/set-user@v1 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: '11' - architecture: x64 - - name: Setup git profile - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - - name: Maven release - run: mvn release:prepare release:perform -B -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -Dgoals=deploy - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 985e13a79..000000000 --- a/.gitignore +++ /dev/null @@ -1,30 +0,0 @@ -*.class - -# Mobile Tools for Java (J2ME) -.mtj.tmp/ - -# Package Files # -*.jar -*.war -*.ear - -# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml -hs_err_pid* - -# Eclipse files -.classpath -.project -.settings/ - -# Maven target folder -target/ - -# Mac Files -.DS_Store - -# IntelliJ -**/.idea/ -**/*.iml - -# Log files -*.log diff --git a/CHANGES.md b/CHANGES.md deleted file mode 100644 index ab4bb1202..000000000 --- a/CHANGES.md +++ /dev/null @@ -1,107 +0,0 @@ -# HAP-Java 2.0.10 -* Add constructors with custom min/max to the window covering tilt angle characteristics [#162](https://github.com/hap-java/HAP-Java/issues/162) -* Add optional Mute characteristic to Doorbell service -* Fix leak of mDNS instances and shutdown hooks when stopping `HomekitRoot` -* Updated netty to 4.1.139.Final - -# HAP-Java 2.0.9 -* Fix Set Duration and Remaining Duration characteristics to advertise format `uint32` instead of `int` [#202](https://github.com/hap-java/HAP-Java/issues/202) -* Stop logging the SRP shared secret, derived key and M5 message data during pairing at DEBUG level -* Fix splitting of encrypted frames when several frames of different length arrive in one read, or when a read ends after the first length byte - -# HAP-Java 2.0.8 -* Updated bouncy castle to 1.83 -* Updated netty to 4.1.126.Final - -# HAP-Java 2.0.7 -* Add overloads to characteristics so that the username can be passed through. - -# HAP-Java 2.0.6 -* Several methods allowing library users to manipulate characteristics themselves -* Allow library users to provider their own implementation of AccessoryInformationService -* Fix ProgrammableSwitchEventEnum that has an incorrect value - -# HAP-Java 2.0.5 -* Implement List-Pairings method. Compatibility with new Home infrastructure from iOS 16.2? - -# HAP-Java 2.0.3 -* Avoid unnecessary forced disconnects. Library users should be updating the configuration index anyway. - -# HAP-Java 2.0.2 - * Various minor stability issues for after an accessory has been removed. - -# HAP-Java 2.0.1 -## Fixes -* Log accessory names instead of futures. [#150](https://github.com/hap-java/HAP-Java/issues/150) -* Fix rotation speed data type (BREAKING API CHANGE). According to HAP specification it must be float -* Close JsonWriters [#149](https://github.com/hap-java/HAP-Java/issues/149) -* Fix UUID of HAP Version characteristic -* Add Mute characteristic to Doorbell service - -## New -* New characteristics: - * Identifier - * Input Device Type - * Input Source Type - * Configured Name - * Current Visibility State - * Target Visibility State - * Sleep Discovery Mode - * Active Identifier - * Closed Captions - * Current Media State - * Target Media State - * Picture Mode - * Power Mode - * Remote Key - * Volume Control Type - * Volume Selector - * AirPlay Enable - -* New services - * Input Source - * Television - * Television Speaker - * Smart Speaker - -# HAP-Java 2.0.0 -* major refactoring to support optional characteristics -* structure and names adapted to HAP spec structure and naming. -* structure is following - * `accessory` package include basis accessory as the listed in HAP spec, plus interfaces for optional characteristics. clients should extend the accessory classes. e.g. `WindowCoveringAccessory` or `AccessoryWithBrightness` - * `characteristics` package consists of all characteristics, optional and mandatory. e.g. `TargetHorizontalTiltAngleCharacteristic`. The naming is done in accordance to HAP spec. - * `services` package consists of services, which grouping characteristics. e.g. `WindowCoveringService` defines mandatory and optional characteristics for a window covering service as it is defined in HAP spec. - * `server` package consists classes to run HomeKit server and handle communication -* the process is following: client, e.g. openHAB bindings, extends accessory classes, e.g. `WindowCoveringAccessory` and implements all required methods. WindowCoveringAccessory is linked already to WindowCoveringService, that in turn is link to single characteristics. -* linked service support - -## New and improved - -* Valid values are supported for enum characteristics instead of min and max values -* Supported valid states for Thermostat, SecuritySystem, HeaterCooler and HumidifierDehumidifier [#108] [#120](https://github.com/hap-java/HAP-Java/pull/120) -* Support for FilterMaintenance. Can be used as a linked service for an Air Purifier [#124](https://github.com/hap-java/HAP-Java/pull/124) - -## Fixes - -* Fix for re-advertising service when using alternative jMDNS implementations. - -# HAP-Java 1.1.5 - -## Fixes - -* `null` values are now allowed, since Homekit allows them. -* `SecuritySystemAlarmType` and `TargetSecuritySystemState` now match the Homekit documentation [#44](https://github.com/hap-java/HAP-Java/pull/44) [#45](https://github.com/hap-java/HAP-Java/pull/45) -* Null pointer exception no longer thrown if a characteristic is not implemented [#32](https://github.com/hap-java/HAP-Java/issues/32) -* Fixed incorrect support for BatteryLevel in battery-powered accessories. Appropriate characteristic is battery status. [#50](https://github.com/hap-java/HAP-Java/pull/50) -* Clear all connections in SessionManager during HomekitRoot.stop() [#54](https://github.com/hap-java/HAP-Java/issues/54) -* Fix issue in which communications would drop when encrypted frames didn't line up with network frames [#64](https://github.com/hap-java/HAP-Java/pull/64) -* Fix various spec violations and optimize communications to improve performance [#65](https://github.com/hap-java/HAP-Java/pull/65) -* Fix a pairing issue in which HAP-Java could listen on a different interface than that which it advertises [#67](https://github.com/hap-java/HAP-Java/pull/67) -* Allow window covering to be used without optional characteristics. The inclusion of `HoldPositionCharacteristic` did terrible things, and we're still not sure why. Addressed [#56](https://github.com/hap-java/HAP-Java/pull/56) -* Air Purifier didn't support rotation speed characteristics. [#124](https://github.com/hap-java/HAP-Java/pull/124) - -## New and improved - -* Occupancy sensor support [#59](https://github.com/hap-java/HAP-Java/pull/59) -* Leak sensors and valve support added [#52](https://github.com/hap-java/HAP-Java/pull/52) -* Notifications are batched now, when possible [#66](https://github.com/hap-java/HAP-Java/pull/66) diff --git a/LICENSE b/LICENSE deleted file mode 100644 index a56ce6c55..000000000 --- a/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Andy Lintner - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/PULL_REQUEST_TEMPLATE.md b/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index d20a2d17c..000000000 --- a/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,8 +0,0 @@ -# Pull Request Checklist - -Please confirm that you've done the following when opening a new pull request: - - - [ ] For fixes and other improvements, please reference the GitHub issue that your change addresses. - - [ ] For fixes, optimizations and new features, please add an entry to the CHANGES.md file. - - [ ] Run mvn compile before committing, so that the auto-code formatter will format your changes consistently with the rest of the project. - diff --git a/README.md b/README.md deleted file mode 100644 index 6d1f88458..000000000 --- a/README.md +++ /dev/null @@ -1,83 +0,0 @@ -HAP-Java -========= -[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.hap-java/hap/badge.svg)](https://search.maven.org/search?q=g:io.github.hap-java%20a:hap) -[![MIT License](https://img.shields.io/github/license/hap-java/HAP-Java)](https://github.com/hap-java/HAP-Java/blob/master/LICENSE) -![Maven Build Status](https://github.com/andylintner/HAP-Java/actions/workflows/maven.yml/badge.svg) - -HAP-Java is a Java implementation of the HomeKit Accessory Protocol. - -Using this library, you can create your own HomeKit Accessory or HomeKit Accessory Bridge. - -This library would not have been possible without [Tian Zhang](https://github.com/KhaosT) who did a lot of the hard work of figuring out how the protocol works in his NodeJS implementation. - -Usage -========= -Include HAP-Java in your project using maven: - -``` - - io.github.hap-java - hap - 2.0.1-SNAPSHOT - -``` - -After that, check out the [Sample](https://github.com/hap-java/HAP-Java/tree/sample) and -read the [Javadoc](https://hap-java.github.io/HAP-Java/apidocs/index.html) - -Supported HomeKit Accessories -========= - -Current implementation fully supports 42 HomeKit accessory/services. - -| HomeKit Accessory & Service type | Supported by Java-HAP | -|--------------------|--------------------| -| Accessory Information | :white_check_mark: | -| Air Purifier | :white_check_mark: | -| Air Quality Sensor | :white_check_mark: | -| Audio Stream Management | :x: | -| Battery Service | :white_check_mark: | -| Camera RTP Stream Management | :x: | -| Carbon Dioxide Sensor | :white_check_mark: | -| Carbon Monoxide Sensor | :white_check_mark: | -| Contact Sensor | :white_check_mark: | -| Data Stream Transport Management | :x: | -| Door | :white_check_mark: | -| Doorbell | :white_check_mark: | -| Fan | :white_check_mark: | -| Faucet | :white_check_mark: | -| Filter Maintenance | :white_check_mark: | -| Garage Door Opener | :white_check_mark: | -| HAP Protocol Information | :white_check_mark: | -| Heater Cooler | :white_check_mark: | -| Humidifier Dehumidifier | :white_check_mark: | -| Humidity Sensor | :white_check_mark: | -| Input Source | :white_check_mark: | -| Irrigation System | :white_check_mark: | -| Leak Sensor | :white_check_mark: | -| Light Bulb | :white_check_mark: | -| Light Sensor | :white_check_mark: | -| Lock Management | :x: | -| Lock Mechanism | :white_check_mark: | -| Microphone | :white_check_mark: | -| Motion Sensor | :white_check_mark: | -| Occupancy Sensor | :white_check_mark: | -| Outlet | :white_check_mark: | -| Security System | :white_check_mark: | -| Service Label | :white_check_mark: | -| Siri | :x: | -| Slat | :white_check_mark: | -| Smart Speaker | :white_check_mark: | -| Smoke Sensor | :white_check_mark: | -| Speaker | :white_check_mark: | -| Stateless Programmable Switch | :white_check_mark: | -| Switch | :white_check_mark: | -| Target Control | :x: | -| Target Control Management | :x: | -| Television | :white_check_mark: | -| Television Speaker | :white_check_mark: | -| Temperature Sensor | :white_check_mark: | -| Thermostat | :white_check_mark: | -| Valve | :white_check_mark: | -| Window | :white_check_mark: | -| Window Covering | :white_check_mark: | \ No newline at end of file diff --git a/RELEASING.md b/RELEASING.md deleted file mode 100644 index 6dd790693..000000000 --- a/RELEASING.md +++ /dev/null @@ -1,7 +0,0 @@ -# How to release HAP-Java - -These actions can only be performed by someone with maintainer level access to the repository. - -1. Run the [Stage Release on Master Branch](https://github.com/hap-java/HAP-Java/actions/workflows/release.yml) Action with a version such as `2.0.2` -2. After this completes, find the release on the [Releases page](https://github.com/hap-java/HAP-Java/releases) -3. Edit the release to include the changelog details diff --git a/apidocs/allclasses-index.html b/apidocs/allclasses-index.html new file mode 100644 index 000000000..a83090415 --- /dev/null +++ b/apidocs/allclasses-index.html @@ -0,0 +1,2170 @@ + + + + + +All Classes (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

All Classes

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/allclasses.html b/apidocs/allclasses.html new file mode 100644 index 000000000..e396f06d8 --- /dev/null +++ b/apidocs/allclasses.html @@ -0,0 +1,368 @@ + + + + + +All Classes (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + +
+

All Classes

+
+ +
+
+ + \ No newline at end of file diff --git a/apidocs/allpackages-index.html b/apidocs/allpackages-index.html new file mode 100644 index 000000000..3e7c1fc78 --- /dev/null +++ b/apidocs/allpackages-index.html @@ -0,0 +1,320 @@ + + + + + +All Packages (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

All Packages

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/constant-values.html b/apidocs/constant-values.html new file mode 100644 index 000000000..0d0ff5303 --- /dev/null +++ b/apidocs/constant-values.html @@ -0,0 +1,1177 @@ + + + + + +Constant Field Values (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Constant Field Values

+
+

Contents

+ +
+
+
+ + +
+

io.github.*

+ + + + + + + + + + +
    +
  • + + + + + + + + + + + + + + +
    io.github.hapjava.services.impl.AccessoryInformationService 
    Modifier and TypeConstant FieldValue
    + +public static final java.lang.StringTYPE"0000003E-0000-1000-8000-0026BB765291"
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/deprecated-list.html b/apidocs/deprecated-list.html new file mode 100644 index 000000000..8c9ad4ce4 --- /dev/null +++ b/apidocs/deprecated-list.html @@ -0,0 +1,150 @@ + + + + + +Deprecated List (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Deprecated API

+

Contents

+
+
+ + + \ No newline at end of file diff --git a/apidocs/element-list b/apidocs/element-list new file mode 100644 index 000000000..93d00240d --- /dev/null +++ b/apidocs/element-list @@ -0,0 +1,38 @@ +io.github.hapjava.accessories +io.github.hapjava.accessories.optionalcharacteristic +io.github.hapjava.characteristics +io.github.hapjava.characteristics.impl.accessoryinformation +io.github.hapjava.characteristics.impl.airpurifier +io.github.hapjava.characteristics.impl.airquality +io.github.hapjava.characteristics.impl.audio +io.github.hapjava.characteristics.impl.base +io.github.hapjava.characteristics.impl.battery +io.github.hapjava.characteristics.impl.carbondioxidesensor +io.github.hapjava.characteristics.impl.carbonmonoxidesensor +io.github.hapjava.characteristics.impl.common +io.github.hapjava.characteristics.impl.contactsensor +io.github.hapjava.characteristics.impl.fan +io.github.hapjava.characteristics.impl.filtermaintenance +io.github.hapjava.characteristics.impl.garagedoor +io.github.hapjava.characteristics.impl.heatercooler +io.github.hapjava.characteristics.impl.humidifier +io.github.hapjava.characteristics.impl.humiditysensor +io.github.hapjava.characteristics.impl.inputsource +io.github.hapjava.characteristics.impl.leaksensor +io.github.hapjava.characteristics.impl.lightbulb +io.github.hapjava.characteristics.impl.lightsensor +io.github.hapjava.characteristics.impl.lock +io.github.hapjava.characteristics.impl.motionsensor +io.github.hapjava.characteristics.impl.occupancysensor +io.github.hapjava.characteristics.impl.outlet +io.github.hapjava.characteristics.impl.securitysystem +io.github.hapjava.characteristics.impl.slat +io.github.hapjava.characteristics.impl.smokesensor +io.github.hapjava.characteristics.impl.television +io.github.hapjava.characteristics.impl.televisionspeaker +io.github.hapjava.characteristics.impl.thermostat +io.github.hapjava.characteristics.impl.valve +io.github.hapjava.characteristics.impl.windowcovering +io.github.hapjava.server +io.github.hapjava.services +io.github.hapjava.services.impl diff --git a/apidocs/help-doc.html b/apidocs/help-doc.html new file mode 100644 index 000000000..3d081b7c3 --- /dev/null +++ b/apidocs/help-doc.html @@ -0,0 +1,282 @@ + + + + + +API Help (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +
+This help file applies to API documentation generated by the standard doclet.
+
+ + + \ No newline at end of file diff --git a/apidocs/index-all.html b/apidocs/index-all.html new file mode 100644 index 000000000..d19869f4c --- /dev/null +++ b/apidocs/index-all.html @@ -0,0 +1,6451 @@ + + + + + +Index (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
A B C D E F G H I J L M N O P R S T U V W 
All Classes All Packages + + +

A

+
+
ABNORMAL - io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedEnum
+
 
+
ABNORMAL - io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedEnum
+
 
+
ABSOLUTE - io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeEnum
+
 
+
accept(T) - Method in interface io.github.hapjava.characteristics.ExceptionalConsumer
+
 
+
accept(T, String) - Method in interface io.github.hapjava.characteristics.ExceptionalConsumer
+
 
+
AccessoryFlagsCharacteristic - Class in io.github.hapjava.characteristics.impl.accessoryinformation
+
+
This characteristic indicates whether accessory requires additional setup.
+
+
AccessoryFlagsCharacteristic(Supplier<CompletableFuture<AccessoryFlagsEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsCharacteristic
+
 
+
AccessoryFlagsEnum - Enum in io.github.hapjava.characteristics.impl.accessoryinformation
+
+
0x0001 (bit0) ”Requires additional setup” 0x0002 - 0xFFFF ”Reserved”
+
+
AccessoryInformationService - Class in io.github.hapjava.services.impl
+
+
Accessory Information service.
+
+
AccessoryInformationService(HomekitAccessory) - Constructor for class io.github.hapjava.services.impl.AccessoryInformationService
+
 
+
AccessoryInformationService(IdentifyCharacteristic, ManufacturerCharacteristic, ModelCharacteristic, NameCharacteristic, SerialNumberCharacteristic, FirmwareRevisionCharacteristic) - Constructor for class io.github.hapjava.services.impl.AccessoryInformationService
+
 
+
AccessoryWithAccessoryFlags - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with accessory flags, which indicates that additional setup is required
+
+
AccessoryWithActive - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with active characteristic ActiveCharacteristic.
+
+
AccessoryWithAirPlayEnable - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with AirPlay enable characteristic AirPlayEnableCharacteristic.
+
+
AccessoryWithBrightness - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with brightness values.
+
+
AccessoryWithCarbonDioxideLevel - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with carbon dioxide level and peak level characteristic.
+
+
AccessoryWithCarbonMonoxideLevel - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with carbon monoxide level and peak level characteristic.
+
+
AccessoryWithClosedCaptions - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with closed captions characteristic ClosedCaptionsCharacteristic.
+
+
AccessoryWithColor - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with Color
+
+
AccessoryWithColorTemperature - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with color temperature.
+
+
AccessoryWithConfiguredName - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with configured name.
+
+
AccessoryWithCoolingThresholdTemperature - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with cooling threshold temperature.
+
+
AccessoryWithCurrentHorizontalTilting - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with current horizontal tilting characteristic.
+
+
AccessoryWithCurrentMediaState - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with current media state characteristic CurrentMediaStateCharacteristic.
+
+
AccessoryWithCurrentRelativeHumidity - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
accessory with current relative humidity.
+
+
AccessoryWithCurrentTilting - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with current tilting characteristic.
+
+
AccessoryWithCurrentVerticalTilting - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with current vertical tilting characteristic.
+
+
AccessoryWithDuration - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with duration characteristic.
+
+
AccessoryWithFanState - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
An accessory with current and target fan states.
+
+
AccessoryWithFilterLifeLevel - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with filter level characteristics
+
+
AccessoryWithHardwareRevision - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with hardware revision.
+
+
AccessoryWithHeatingThresholdTemperature - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
 
+
AccessoryWithHoldPosition - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with hold position
+
+
AccessoryWithHumidityDehumidifierThreshold - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Dehumidifier with humidity threshold.
+
+
AccessoryWithHumidityHumidifierThreshold - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Humidifier with humidity threshold.
+
+
AccessoryWithIdentifier - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with identifier characteristic IdentifierCharacteristic.
+
+
AccessoryWithInputDeviceType - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with input devices, e.g.
+
+
AccessoryWithIsConfigured - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with isConfigured characteristics.
+
+
AccessoryWithLockCurrentState - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with current lock state.
+
+
AccessoryWithLockTargetState - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with lock target state.
+
+
AccessoryWithMute - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with mute characteristic MuteCharacteristic.
+
+
AccessoryWithName - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with name.
+
+
AccessoryWithNitrogenDioxideDensity - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with nitrogen dioxide density characteristic.
+
+
AccessoryWithObstructionDetection - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with hold position
+
+
AccessoryWithOzoneDensity - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with Ozone Density characteristic.
+
+
AccessoryWithPhysicalControlsLock - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with physical controls which can be locked, e.g.
+
+
AccessoryWithPictureMode - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with picture mode characteristic PictureModeCharacteristic.
+
+
AccessoryWithPM10Density - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with PM10 Density characteristic.
+
+
AccessoryWithPM25Density - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with PM25 Density characteristic.
+
+
AccessoryWithPowerMode - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
An accessory with power mode.
+
+
AccessoryWithRemainingDuration - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with remaining duration characteristic.
+
+
AccessoryWithResetFilterIndication - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with filter reset characteristics
+
+
AccessoryWithRotationDirection - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
accessory with rotation direction characteristics.
+
+
AccessoryWithRotationSpeed - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
accessory with rotation speed characteristics.
+
+
AccessoryWithSecurityAlarmType - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
This characteristic describes the type of alarm triggered by a security system.
+
+
AccessoryWithServiceLabelIndex - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with service label index.
+
+
AccessoryWithStatusActive - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with status active.
+
+
AccessoryWithStatusFault - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with characteristic that describes an accessory which has a fault.
+
+
AccessoryWithStatusLowBattery - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
This characteristic describes an accessoryʼs battery status.
+
+
AccessoryWithStatusTampered - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
This characteristic describes an accessory which has been tampered with.
+
+
AccessoryWithSulphurDioxideDensity - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with sulphur dioxide density characteristic.
+
+
AccessoryWithSwingMode - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with Swing Mode characteristics.
+
+
AccessoryWithTargetHorizontalTilting - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with target horizontal tilting characteristic.
+
+
AccessoryWithTargetMediaState - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with target media state characteristic TargetMediaStateCharacteristic.
+
+
AccessoryWithTargetRelativeHumidity - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
accessory with target relative humidity.
+
+
AccessoryWithTargetTilting - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with target tilting characteristic.
+
+
AccessoryWithTargetVerticalTilting - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with target vertical tilting characteristic.
+
+
AccessoryWithTargetVisibilityState - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
accessory with target visibility state characteristics.
+
+
AccessoryWithTemperatureDisplayUnits - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with characteristic that describes units of temperature used for presentation purposes + (e.g.
+
+
AccessoryWithVerticalTilting - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with vertical tilting characteristic.
+
+
AccessoryWithVOCDensity - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with VOC Density characteristic.
+
+
AccessoryWithVolume - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with volume values.
+
+
AccessoryWithVolumeControlType - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with volume control type VolumeControlTypeCharacteristic
+
+
AccessoryWithVolumeSelector - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with volume selector VolumeSelectorCharacteristic
+
+
AccessoryWithWaterLevel - Interface in io.github.hapjava.accessories.optionalcharacteristic
+
+
Accessory with water level.
+
+
ACTIVE - io.github.hapjava.characteristics.impl.common.ActiveEnum
+
 
+
ActiveCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
Active characteristic indicates whether the service is currently active.
+
+
ActiveCharacteristic(Supplier<CompletableFuture<ActiveEnum>>, ExceptionalConsumer<ActiveEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.ActiveCharacteristic
+
 
+
ActiveEnum - Enum in io.github.hapjava.characteristics.impl.common
+
+
0 ”Inactive” 1 ”Active” 2-255 ”Reserved”
+
+
ActiveIdentifierCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
 
+
ActiveIdentifierCharacteristic(Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.ActiveIdentifierCharacteristic
+
 
+
addLinkedService(Service) - Method in interface io.github.hapjava.services.Service
+
+
Add linked services
+
+
addOptionalCharacteristic(AccessoryFlagsCharacteristic) - Method in class io.github.hapjava.services.impl.AccessoryInformationService
+
 
+
addOptionalCharacteristic(HardwareRevisionCharacteristic) - Method in class io.github.hapjava.services.impl.AccessoryInformationService
+
 
+
addOptionalCharacteristic(NitrogenDioxideDensityCharacteristic) - Method in class io.github.hapjava.services.impl.AirQualityService
+
 
+
addOptionalCharacteristic(OzoneDensityCharacteristic) - Method in class io.github.hapjava.services.impl.AirQualityService
+
 
+
addOptionalCharacteristic(PM10DensityCharacteristic) - Method in class io.github.hapjava.services.impl.AirQualityService
+
 
+
addOptionalCharacteristic(PM25DensityCharacteristic) - Method in class io.github.hapjava.services.impl.AirQualityService
+
 
+
addOptionalCharacteristic(SulphurDioxideDensityCharacteristic) - Method in class io.github.hapjava.services.impl.AirQualityService
+
 
+
addOptionalCharacteristic(VOCDensityCharacteristic) - Method in class io.github.hapjava.services.impl.AirQualityService
+
 
+
addOptionalCharacteristic(MuteCharacteristic) - Method in class io.github.hapjava.services.impl.DoorbellService
+
 
+
addOptionalCharacteristic(MuteCharacteristic) - Method in class io.github.hapjava.services.impl.DoorService
+
 
+
addOptionalCharacteristic(MuteCharacteristic) - Method in class io.github.hapjava.services.impl.SmartSpeakerService
+
 
+
addOptionalCharacteristic(VolumeCharacteristic) - Method in class io.github.hapjava.services.impl.DoorbellService
+
 
+
addOptionalCharacteristic(VolumeCharacteristic) - Method in class io.github.hapjava.services.impl.MicrophoneService
+
 
+
addOptionalCharacteristic(VolumeCharacteristic) - Method in class io.github.hapjava.services.impl.SmartSpeakerService
+
 
+
addOptionalCharacteristic(VolumeCharacteristic) - Method in class io.github.hapjava.services.impl.SpeakerService
+
 
+
addOptionalCharacteristic(VolumeCharacteristic) - Method in class io.github.hapjava.services.impl.TelevisionSpeakerService
+
 
+
addOptionalCharacteristic(StatusLowBatteryCharacteristic) - Method in class io.github.hapjava.services.impl.AirQualityService
+
 
+
addOptionalCharacteristic(StatusLowBatteryCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonDioxideSensorService
+
 
+
addOptionalCharacteristic(StatusLowBatteryCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonMonoxideSensorService
+
 
+
addOptionalCharacteristic(StatusLowBatteryCharacteristic) - Method in class io.github.hapjava.services.impl.ContactSensorService
+
 
+
addOptionalCharacteristic(StatusLowBatteryCharacteristic) - Method in class io.github.hapjava.services.impl.HumiditySensorService
+
 
+
addOptionalCharacteristic(StatusLowBatteryCharacteristic) - Method in class io.github.hapjava.services.impl.LeakSensorService
+
 
+
addOptionalCharacteristic(StatusLowBatteryCharacteristic) - Method in class io.github.hapjava.services.impl.LightSensorService
+
 
+
addOptionalCharacteristic(StatusLowBatteryCharacteristic) - Method in class io.github.hapjava.services.impl.MotionSensorService
+
 
+
addOptionalCharacteristic(StatusLowBatteryCharacteristic) - Method in class io.github.hapjava.services.impl.OccupancySensorService
+
 
+
addOptionalCharacteristic(StatusLowBatteryCharacteristic) - Method in class io.github.hapjava.services.impl.SmokeSensorService
+
 
+
addOptionalCharacteristic(StatusLowBatteryCharacteristic) - Method in class io.github.hapjava.services.impl.TemperatureSensorService
+
 
+
addOptionalCharacteristic(CarbonDioxideLevelCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonDioxideSensorService
+
 
+
addOptionalCharacteristic(CarbonDioxidePeakLevelCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonDioxideSensorService
+
 
+
addOptionalCharacteristic(CarbonMonoxideLevelCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonMonoxideSensorService
+
 
+
addOptionalCharacteristic(CarbonMonoxidePeakLevelCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonMonoxideSensorService
+
 
+
addOptionalCharacteristic(ActiveCharacteristic) - Method in class io.github.hapjava.services.impl.TelevisionSpeakerService
+
 
+
addOptionalCharacteristic(AirPlayEnableCharacteristic) - Method in class io.github.hapjava.services.impl.SmartSpeakerService
+
 
+
addOptionalCharacteristic(ConfiguredNameCharacteristic) - Method in class io.github.hapjava.services.impl.SmartSpeakerService
+
 
+
addOptionalCharacteristic(IdentifierCharacteristic) - Method in class io.github.hapjava.services.impl.InputSourceService
+
 
+
addOptionalCharacteristic(IsConfiguredCharacteristic) - Method in class io.github.hapjava.services.impl.ValveService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.AirPurifierService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.AirQualityService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.BasicFanService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.BatteryService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonDioxideSensorService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonMonoxideSensorService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.ContactSensorService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.DoorbellService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.DoorService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.FanService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.FaucetService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.FilterMaintenanceService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.GarageDoorOpenerService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.HeaterCoolerService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.HumidifierDehumidifierService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.HumiditySensorService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.InputSourceService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.IrrigationSystemService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.LeakSensorService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.LightbulbService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.LightSensorService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.LockMechanismService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.MicrophoneService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.MotionSensorService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.OccupancySensorService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.OutletService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.SecuritySystemService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.SlatService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.SmartSpeakerService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.SmokeSensorService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.SpeakerService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.StatelessProgrammableSwitchService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.SwitchService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.TelevisionService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.TemperatureSensorService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.ThermostatService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.ValveService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.WindowCoveringService
+
 
+
addOptionalCharacteristic(NameCharacteristic) - Method in class io.github.hapjava.services.impl.WindowService
+
 
+
addOptionalCharacteristic(ObstructionDetectedCharacteristic) - Method in class io.github.hapjava.services.impl.DoorService
+
 
+
addOptionalCharacteristic(ObstructionDetectedCharacteristic) - Method in class io.github.hapjava.services.impl.WindowCoveringService
+
 
+
addOptionalCharacteristic(ObstructionDetectedCharacteristic) - Method in class io.github.hapjava.services.impl.WindowService
+
 
+
addOptionalCharacteristic(ServiceLabelIndexCharacteristic) - Method in class io.github.hapjava.services.impl.StatelessProgrammableSwitchService
+
 
+
addOptionalCharacteristic(ServiceLabelIndexCharacteristic) - Method in class io.github.hapjava.services.impl.ValveService
+
 
+
addOptionalCharacteristic(StatusActiveCharacteristic) - Method in class io.github.hapjava.services.impl.AirQualityService
+
 
+
addOptionalCharacteristic(StatusActiveCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonDioxideSensorService
+
 
+
addOptionalCharacteristic(StatusActiveCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonMonoxideSensorService
+
 
+
addOptionalCharacteristic(StatusActiveCharacteristic) - Method in class io.github.hapjava.services.impl.ContactSensorService
+
 
+
addOptionalCharacteristic(StatusActiveCharacteristic) - Method in class io.github.hapjava.services.impl.HumiditySensorService
+
 
+
addOptionalCharacteristic(StatusActiveCharacteristic) - Method in class io.github.hapjava.services.impl.LeakSensorService
+
 
+
addOptionalCharacteristic(StatusActiveCharacteristic) - Method in class io.github.hapjava.services.impl.LightSensorService
+
 
+
addOptionalCharacteristic(StatusActiveCharacteristic) - Method in class io.github.hapjava.services.impl.MotionSensorService
+
 
+
addOptionalCharacteristic(StatusActiveCharacteristic) - Method in class io.github.hapjava.services.impl.OccupancySensorService
+
 
+
addOptionalCharacteristic(StatusActiveCharacteristic) - Method in class io.github.hapjava.services.impl.SmokeSensorService
+
 
+
addOptionalCharacteristic(StatusActiveCharacteristic) - Method in class io.github.hapjava.services.impl.TemperatureSensorService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.AirQualityService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonDioxideSensorService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonMonoxideSensorService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.ContactSensorService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.FaucetService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.HumiditySensorService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.IrrigationSystemService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.LeakSensorService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.LightSensorService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.MotionSensorService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.OccupancySensorService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.SecuritySystemService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.SmokeSensorService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.TemperatureSensorService
+
 
+
addOptionalCharacteristic(StatusFaultCharacteristic) - Method in class io.github.hapjava.services.impl.ValveService
+
 
+
addOptionalCharacteristic(StatusTamperedCharacteristic) - Method in class io.github.hapjava.services.impl.AirQualityService
+
 
+
addOptionalCharacteristic(StatusTamperedCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonDioxideSensorService
+
 
+
addOptionalCharacteristic(StatusTamperedCharacteristic) - Method in class io.github.hapjava.services.impl.CarbonMonoxideSensorService
+
 
+
addOptionalCharacteristic(StatusTamperedCharacteristic) - Method in class io.github.hapjava.services.impl.ContactSensorService
+
 
+
addOptionalCharacteristic(StatusTamperedCharacteristic) - Method in class io.github.hapjava.services.impl.HumiditySensorService
+
 
+
addOptionalCharacteristic(StatusTamperedCharacteristic) - Method in class io.github.hapjava.services.impl.LeakSensorService
+
 
+
addOptionalCharacteristic(StatusTamperedCharacteristic) - Method in class io.github.hapjava.services.impl.LightSensorService
+
 
+
addOptionalCharacteristic(StatusTamperedCharacteristic) - Method in class io.github.hapjava.services.impl.MotionSensorService
+
 
+
addOptionalCharacteristic(StatusTamperedCharacteristic) - Method in class io.github.hapjava.services.impl.OccupancySensorService
+
 
+
addOptionalCharacteristic(StatusTamperedCharacteristic) - Method in class io.github.hapjava.services.impl.SecuritySystemService
+
 
+
addOptionalCharacteristic(StatusTamperedCharacteristic) - Method in class io.github.hapjava.services.impl.SmokeSensorService
+
 
+
addOptionalCharacteristic(StatusTamperedCharacteristic) - Method in class io.github.hapjava.services.impl.TemperatureSensorService
+
 
+
addOptionalCharacteristic(WaterLavelCharacteristic) - Method in class io.github.hapjava.services.impl.HumidifierDehumidifierService
+
 
+
addOptionalCharacteristic(CurrentFanStateCharacteristic) - Method in class io.github.hapjava.services.impl.FanService
+
 
+
addOptionalCharacteristic(LockPhysicalControlsCharacteristic) - Method in class io.github.hapjava.services.impl.AirPurifierService
+
 
+
addOptionalCharacteristic(LockPhysicalControlsCharacteristic) - Method in class io.github.hapjava.services.impl.FanService
+
 
+
addOptionalCharacteristic(LockPhysicalControlsCharacteristic) - Method in class io.github.hapjava.services.impl.HeaterCoolerService
+
 
+
addOptionalCharacteristic(LockPhysicalControlsCharacteristic) - Method in class io.github.hapjava.services.impl.HumidifierDehumidifierService
+
 
+
addOptionalCharacteristic(RotationDirectionCharacteristic) - Method in class io.github.hapjava.services.impl.BasicFanService
+
 
+
addOptionalCharacteristic(RotationDirectionCharacteristic) - Method in class io.github.hapjava.services.impl.FanService
+
 
+
addOptionalCharacteristic(RotationSpeedCharacteristic) - Method in class io.github.hapjava.services.impl.AirPurifierService
+
 
+
addOptionalCharacteristic(RotationSpeedCharacteristic) - Method in class io.github.hapjava.services.impl.BasicFanService
+
 
+
addOptionalCharacteristic(RotationSpeedCharacteristic) - Method in class io.github.hapjava.services.impl.FanService
+
 
+
addOptionalCharacteristic(RotationSpeedCharacteristic) - Method in class io.github.hapjava.services.impl.HeaterCoolerService
+
 
+
addOptionalCharacteristic(RotationSpeedCharacteristic) - Method in class io.github.hapjava.services.impl.HumidifierDehumidifierService
+
 
+
addOptionalCharacteristic(SwingModeCharacteristic) - Method in class io.github.hapjava.services.impl.AirPurifierService
+
 
+
addOptionalCharacteristic(SwingModeCharacteristic) - Method in class io.github.hapjava.services.impl.FanService
+
 
+
addOptionalCharacteristic(SwingModeCharacteristic) - Method in class io.github.hapjava.services.impl.HeaterCoolerService
+
 
+
addOptionalCharacteristic(SwingModeCharacteristic) - Method in class io.github.hapjava.services.impl.HumidifierDehumidifierService
+
 
+
addOptionalCharacteristic(SwingModeCharacteristic) - Method in class io.github.hapjava.services.impl.SlatService
+
 
+
addOptionalCharacteristic(TargetFanStateCharacteristic) - Method in class io.github.hapjava.services.impl.FanService
+
 
+
addOptionalCharacteristic(FilterLifeLevelCharacteristic) - Method in class io.github.hapjava.services.impl.FilterMaintenanceService
+
 
+
addOptionalCharacteristic(ResetFilterIndicationCharacteristic) - Method in class io.github.hapjava.services.impl.FilterMaintenanceService
+
 
+
addOptionalCharacteristic(HumidityDehumidifierThresholdCharacteristic) - Method in class io.github.hapjava.services.impl.HumidifierDehumidifierService
+
 
+
addOptionalCharacteristic(HumidityHumidifierThresholdCharacteristic) - Method in class io.github.hapjava.services.impl.HumidifierDehumidifierService
+
 
+
addOptionalCharacteristic(CurrentRelativeHumidityCharacteristic) - Method in class io.github.hapjava.services.impl.ThermostatService
+
 
+
addOptionalCharacteristic(TargetRelativeHumidityCharacteristic) - Method in class io.github.hapjava.services.impl.ThermostatService
+
 
+
addOptionalCharacteristic(InputDeviceTypeCharacteristic) - Method in class io.github.hapjava.services.impl.InputSourceService
+
 
+
addOptionalCharacteristic(TargetVisibilityStateCharacteristic) - Method in class io.github.hapjava.services.impl.InputSourceService
+
 
+
addOptionalCharacteristic(BrightnessCharacteristic) - Method in class io.github.hapjava.services.impl.DoorbellService
+
 
+
addOptionalCharacteristic(BrightnessCharacteristic) - Method in class io.github.hapjava.services.impl.LightbulbService
+
 
+
addOptionalCharacteristic(BrightnessCharacteristic) - Method in class io.github.hapjava.services.impl.TelevisionService
+
 
+
addOptionalCharacteristic(ColorTemperatureCharacteristic) - Method in class io.github.hapjava.services.impl.LightbulbService
+
 
+
addOptionalCharacteristic(HueCharacteristic) - Method in class io.github.hapjava.services.impl.LightbulbService
+
 
+
addOptionalCharacteristic(SaturationCharacteristic) - Method in class io.github.hapjava.services.impl.LightbulbService
+
 
+
addOptionalCharacteristic(LockCurrentStateCharacteristic) - Method in class io.github.hapjava.services.impl.GarageDoorOpenerService
+
 
+
addOptionalCharacteristic(LockTargetStateCharacteristic) - Method in class io.github.hapjava.services.impl.GarageDoorOpenerService
+
 
+
addOptionalCharacteristic(SecuritySystemAlarmTypeCharacteristic) - Method in class io.github.hapjava.services.impl.SecuritySystemService
+
 
+
addOptionalCharacteristic(CurrentTiltAngleCharacteristic) - Method in class io.github.hapjava.services.impl.SlatService
+
 
+
addOptionalCharacteristic(TargetTiltAngleCharacteristic) - Method in class io.github.hapjava.services.impl.SlatService
+
 
+
addOptionalCharacteristic(ClosedCaptionsCharacteristic) - Method in class io.github.hapjava.services.impl.TelevisionService
+
 
+
addOptionalCharacteristic(CurrentMediaStateCharacteristic) - Method in class io.github.hapjava.services.impl.TelevisionService
+
 
+
addOptionalCharacteristic(PictureModeCharacteristic) - Method in class io.github.hapjava.services.impl.TelevisionService
+
 
+
addOptionalCharacteristic(PowerModeCharacteristic) - Method in class io.github.hapjava.services.impl.TelevisionService
+
 
+
addOptionalCharacteristic(TargetMediaStateCharacteristic) - Method in class io.github.hapjava.services.impl.TelevisionService
+
 
+
addOptionalCharacteristic(VolumeControlTypeCharacteristic) - Method in class io.github.hapjava.services.impl.TelevisionSpeakerService
+
 
+
addOptionalCharacteristic(VolumeSelectorCharacteristic) - Method in class io.github.hapjava.services.impl.TelevisionSpeakerService
+
 
+
addOptionalCharacteristic(CoolingThresholdTemperatureCharacteristic) - Method in class io.github.hapjava.services.impl.HeaterCoolerService
+
 
+
addOptionalCharacteristic(CoolingThresholdTemperatureCharacteristic) - Method in class io.github.hapjava.services.impl.ThermostatService
+
 
+
addOptionalCharacteristic(HeatingThresholdTemperatureCharacteristic) - Method in class io.github.hapjava.services.impl.HeaterCoolerService
+
 
+
addOptionalCharacteristic(HeatingThresholdTemperatureCharacteristic) - Method in class io.github.hapjava.services.impl.ThermostatService
+
 
+
addOptionalCharacteristic(TemperatureDisplayUnitCharacteristic) - Method in class io.github.hapjava.services.impl.HeaterCoolerService
+
 
+
addOptionalCharacteristic(RemainingDurationCharacteristic) - Method in class io.github.hapjava.services.impl.IrrigationSystemService
+
 
+
addOptionalCharacteristic(RemainingDurationCharacteristic) - Method in class io.github.hapjava.services.impl.ValveService
+
 
+
addOptionalCharacteristic(SetDurationCharacteristic) - Method in class io.github.hapjava.services.impl.ValveService
+
 
+
addOptionalCharacteristic(CurrentHorizontalTiltAngleCharacteristic) - Method in class io.github.hapjava.services.impl.WindowCoveringService
+
 
+
addOptionalCharacteristic(CurrentVerticalTiltAngleCharacteristic) - Method in class io.github.hapjava.services.impl.WindowCoveringService
+
 
+
addOptionalCharacteristic(HoldPositionCharacteristic) - Method in class io.github.hapjava.services.impl.DoorService
+
 
+
addOptionalCharacteristic(HoldPositionCharacteristic) - Method in class io.github.hapjava.services.impl.WindowCoveringService
+
 
+
addOptionalCharacteristic(HoldPositionCharacteristic) - Method in class io.github.hapjava.services.impl.WindowService
+
 
+
addOptionalCharacteristic(TargetHorizontalTiltAngleCharacteristic) - Method in class io.github.hapjava.services.impl.WindowCoveringService
+
 
+
addOptionalCharacteristic(TargetVerticalTiltAngleCharacteristic) - Method in class io.github.hapjava.services.impl.WindowCoveringService
+
 
+
AIR_CONDITIONERS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
AIR_PURIFIERS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
AIRPLAY - io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
AirPlayEnableCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
characteristic to control air play.
+
+
AirPlayEnableCharacteristic(Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.AirPlayEnableCharacteristic
+
 
+
AIRPORT - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
AirPurifierAccessory - Interface in io.github.hapjava.accessories
+
+
An air purifier.
+
+
AirPurifierService - Class in io.github.hapjava.services.impl
+
+
This service describes an air purifier.
+
+
AirPurifierService(AirPurifierAccessory) - Constructor for class io.github.hapjava.services.impl.AirPurifierService
+
 
+
AirPurifierService(ActiveCharacteristic, CurrentAirPurifierCharacteristic, TargetAirPurifierStateCharacteristic) - Constructor for class io.github.hapjava.services.impl.AirPurifierService
+
 
+
AirQualityAccessory - Interface in io.github.hapjava.accessories
+
+
An air quality accessory which can include several sensors.
+
+
AirQualityCharacteristic - Class in io.github.hapjava.characteristics.impl.airquality
+
+
This characteristic describes the air quality.
+
+
AirQualityCharacteristic(Supplier<CompletableFuture<AirQualityEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.AirQualityCharacteristic
+
 
+
AirQualityEnum - Enum in io.github.hapjava.characteristics.impl.airquality
+
+
0 ”Unknown” 1 ”Excellent” 2 ”Good” 3 ”Fair” 4 ”Inferior” 5 ”Poor”
+
+
AirQualityService - Class in io.github.hapjava.services.impl
+
+
This service describes air quality sensor.
+
+
AirQualityService(AirQualityAccessory) - Constructor for class io.github.hapjava.services.impl.AirQualityService
+
 
+
AirQualityService(AirQualityCharacteristic) - Constructor for class io.github.hapjava.services.impl.AirQualityService
+
 
+
ALWAYS_DISCOVERABLE - io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeEnum
+
 
+
APPLE_TV - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
APPLICATION - io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
ARABIC_NUMERALS - io.github.hapjava.characteristics.impl.common.ServiceLabelNamespaceEnum
+
 
+
ARROW_DOWN - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
ARROW_LEFT - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
ARROW_RIGHT - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
ARROW_UP - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
AUDIO_RECEIVER - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
AUDIO_SYSTEM - io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum
+
 
+
AUTO - io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateEnum
+
 
+
AUTO - io.github.hapjava.characteristics.impl.fan.TargetFanStateEnum
+
 
+
AUTO - io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateEnum
+
 
+
AUTO - io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateEnum
+
 
+
AUTO - io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateEnum
+
 
+
AWAY_ARM - io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateEnum
+
+
The home is unoccupied.
+
+
AWAY_ARM - io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateEnum
+
+
Arm the system when the home is unoccupied.
+
+
+ + + +

B

+
+
BACK - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
BaseCharacteristic<T> - Class in io.github.hapjava.characteristics.impl.base
+
+
Base class for implementing Characteristic.
+
+
BaseCharacteristic(String, String, String, boolean, boolean, Optional<Consumer<HomekitCharacteristicChangeCallback>>, Optional<Runnable>) - Constructor for class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Default constructor
+
+
BasicFanAccessory - Interface in io.github.hapjava.accessories
+
+
A fan with mandatory characteristics.
+
+
BasicFanService - Class in io.github.hapjava.services.impl
+
+
This service describes a fan.
+
+
BasicFanService(BasicFanAccessory) - Constructor for class io.github.hapjava.services.impl.BasicFanService
+
 
+
BasicFanService(OnCharacteristic) - Constructor for class io.github.hapjava.services.impl.BasicFanService
+
 
+
BatteryAccessory - Interface in io.github.hapjava.accessories
+
+
Devices with battery .
+
+
BatteryLevelCharacteristic - Class in io.github.hapjava.characteristics.impl.battery
+
+
This characteristic describes the current level of the battery.
+
+
BatteryLevelCharacteristic(Supplier<CompletableFuture<Integer>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.battery.BatteryLevelCharacteristic
+
 
+
BatteryService - Class in io.github.hapjava.services.impl
+
+
This service describes a battery service.
+
+
BatteryService(BatteryAccessory) - Constructor for class io.github.hapjava.services.impl.BatteryService
+
 
+
BatteryService(BatteryLevelCharacteristic, ChargingStateCharacteristic, StatusLowBatteryCharacteristic) - Constructor for class io.github.hapjava.services.impl.BatteryService
+
 
+
BLOWING_AIR - io.github.hapjava.characteristics.impl.fan.CurrentFanStateEnum
+
 
+
BooleanCharacteristic - Class in io.github.hapjava.characteristics.impl.base
+
+
Characteristic that exposes a Boolean value.
+
+
BooleanCharacteristic(String, String, Optional<Supplier<CompletableFuture<Boolean>>>, Optional<ExceptionalConsumer<Boolean>>, Optional<Consumer<HomekitCharacteristicChangeCallback>>, Optional<Runnable>) - Constructor for class io.github.hapjava.characteristics.impl.base.BooleanCharacteristic
+
+
Default constructor
+
+
Bridge - Interface in io.github.hapjava.accessories
+
+
HomeKit bridge service.
+
+
BRIDGES - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
BrightnessCharacteristic - Class in io.github.hapjava.characteristics.impl.lightbulb
+
+
This characteristic describes a perceived level of brightness, The value is a percentage (%) of + the maximum level of supported brightness.
+
+
BrightnessCharacteristic(Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.lightbulb.BrightnessCharacteristic
+
 
+
+ + + +

C

+
+
CALIBRATED - io.github.hapjava.characteristics.impl.television.PictureModeEnum
+
 
+
CALIBRATED_DARK - io.github.hapjava.characteristics.impl.television.PictureModeEnum
+
 
+
CarbonDioxideDetectedCharacteristic - Class in io.github.hapjava.characteristics.impl.carbondioxidesensor
+
+
This characteristic indicates the levels of Carbon Dioxide.
+
+
CarbonDioxideDetectedCharacteristic(Supplier<CompletableFuture<CarbonDioxideDetectedEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedCharacteristic
+
 
+
CarbonDioxideDetectedEnum - Enum in io.github.hapjava.characteristics.impl.carbondioxidesensor
+
+
0 ”Carbon Dioxide levels are normal” 1 ”Carbon Dioxide levels are abnormal”
+
+
CarbonDioxideLevelCharacteristic - Class in io.github.hapjava.characteristics.impl.carbondioxidesensor
+
+
This characteristic indicates the detected level of Carbon Dioxide in parts per million (ppm).
+
+
CarbonDioxideLevelCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideLevelCharacteristic
+
 
+
CarbonDioxideLevelCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideLevelCharacteristic
+
 
+
CarbonDioxidePeakLevelCharacteristic - Class in io.github.hapjava.characteristics.impl.carbondioxidesensor
+
+
This characteristic indicates the highest detected level (ppm) of carbon dioxide.
+
+
CarbonDioxidePeakLevelCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxidePeakLevelCharacteristic
+
 
+
CarbonDioxidePeakLevelCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxidePeakLevelCharacteristic
+
 
+
CarbonDioxideSensorAccessory - Interface in io.github.hapjava.accessories
+
+
A carbon dioxide sensor reports carbon dioxide level.
+
+
CarbonDioxideSensorService - Class in io.github.hapjava.services.impl
+
+
This service describes a carbon dioxide sensor.
+
+
CarbonDioxideSensorService(CarbonDioxideSensorAccessory) - Constructor for class io.github.hapjava.services.impl.CarbonDioxideSensorService
+
 
+
CarbonDioxideSensorService(CarbonDioxideDetectedCharacteristic) - Constructor for class io.github.hapjava.services.impl.CarbonDioxideSensorService
+
 
+
CarbonMonoxideDetectedCharacteristic - Class in io.github.hapjava.characteristics.impl.carbonmonoxidesensor
+
+
This characteristic indicates the levels of Carbon Monoxide.
+
+
CarbonMonoxideDetectedCharacteristic(Supplier<CompletableFuture<CarbonMonoxideDetectedEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedCharacteristic
+
 
+
CarbonMonoxideDetectedEnum - Enum in io.github.hapjava.characteristics.impl.carbonmonoxidesensor
+
+
0 ”Carbon Monoxide levels are normal” 1 ”Carbon Monoxide levels are abnormal”
+
+
CarbonMonoxideLevelCharacteristic - Class in io.github.hapjava.characteristics.impl.carbonmonoxidesensor
+
+
This characteristic contains the Carbon Monoxide levels in parts per million (ppm).
+
+
CarbonMonoxideLevelCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideLevelCharacteristic
+
 
+
CarbonMonoxideLevelCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideLevelCharacteristic
+
 
+
CarbonMonoxidePeakLevelCharacteristic - Class in io.github.hapjava.characteristics.impl.carbonmonoxidesensor
+
+
This characteristic indicates the highest detected level (ppm) of Carbon Monoxide.
+
+
CarbonMonoxidePeakLevelCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxidePeakLevelCharacteristic
+
 
+
CarbonMonoxidePeakLevelCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxidePeakLevelCharacteristic
+
 
+
CarbonMonoxideSensorAccessory - Interface in io.github.hapjava.accessories
+
+
A carbon monoxide sensor reports whether carbon monoxide has been detected or not.
+
+
CarbonMonoxideSensorService - Class in io.github.hapjava.services.impl
+
+
This service describes a carbon monoxide sensor.
+
+
CarbonMonoxideSensorService(CarbonMonoxideSensorAccessory) - Constructor for class io.github.hapjava.services.impl.CarbonMonoxideSensorService
+
 
+
CarbonMonoxideSensorService(CarbonMonoxideDetectedCharacteristic) - Constructor for class io.github.hapjava.services.impl.CarbonMonoxideSensorService
+
 
+
CELSIUS - io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitEnum
+
 
+
CHANGE_NEEDED - io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationEnum
+
 
+
changed() - Method in interface io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback
+
+
Call when the value of the characteristic that was subscribed to when this object was passed + changes.
+
+
Characteristic - Interface in io.github.hapjava.characteristics
+
+
Interface for the characteristics provided by a Service.
+
+
CharacteristicEnum - Interface in io.github.hapjava.characteristics
+
 
+
CHARGING - io.github.hapjava.characteristics.impl.battery.ChargingStateEnum
+
 
+
ChargingStateCharacteristic - Class in io.github.hapjava.characteristics.impl.battery
+
+
This characteristic describes the charging state of a battery or an accessory.
+
+
ChargingStateCharacteristic(Supplier<CompletableFuture<ChargingStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.battery.ChargingStateCharacteristic
+
 
+
ChargingStateEnum - Enum in io.github.hapjava.characteristics.impl.battery
+
+
0 ”Not Charging” 1 ”Charging” 2 ”Not Chargeable”
+
+
CLOCKWISE - io.github.hapjava.characteristics.impl.fan.RotationDirectionEnum
+
 
+
CLOSED - io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateEnum
+
 
+
CLOSED - io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateEnum
+
 
+
ClosedCaptionsCharacteristic - Class in io.github.hapjava.characteristics.impl.television
+
+
Characteristic indicates whether the service provides closed captions.
+
+
ClosedCaptionsCharacteristic(Supplier<CompletableFuture<ClosedCaptionsEnum>>, ExceptionalConsumer<ClosedCaptionsEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.television.ClosedCaptionsCharacteristic
+
 
+
ClosedCaptionsEnum - Enum in io.github.hapjava.characteristics.impl.television
+
+
0 ”Disabled” 1 ”Enabled” 2-255 ”Reserved”
+
+
CLOSING - io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateEnum
+
 
+
ColorTemperatureCharacteristic - Class in io.github.hapjava.characteristics.impl.lightbulb
+
+
This characteristic describes color temperature in mireds
+
+
ColorTemperatureCharacteristic(int, int, Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.lightbulb.ColorTemperatureCharacteristic
+
 
+
ColorTemperatureCharacteristic(Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.lightbulb.ColorTemperatureCharacteristic
+
 
+
COMPONENT_VIDEO - io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
COMPOSITE_VIDEO - io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
COMPUTER - io.github.hapjava.characteristics.impl.television.PictureModeEnum
+
 
+
CONFIGURED - io.github.hapjava.characteristics.impl.common.IsConfiguredEnum
+
 
+
ConfiguredNameCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic describes a configured name.
+
+
ConfiguredNameCharacteristic(Supplier<CompletableFuture<String>>, ExceptionalConsumer<String>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.ConfiguredNameCharacteristic
+
 
+
ContactSensorAccessory - Interface in io.github.hapjava.accessories
+
+
A contact sensor that reports whether contact is detected or not.
+
+
ContactSensorService - Class in io.github.hapjava.services.impl
+
+
This service describes a Contact Sensor.
+
+
ContactSensorService(ContactSensorAccessory) - Constructor for class io.github.hapjava.services.impl.ContactSensorService
+
 
+
ContactSensorService(ContactSensorStateCharacteristic) - Constructor for class io.github.hapjava.services.impl.ContactSensorService
+
 
+
ContactSensorStateCharacteristic - Class in io.github.hapjava.characteristics.impl.contactsensor
+
+
This characteristic describes the state of a door/window contact sensor.
+
+
ContactSensorStateCharacteristic(Supplier<CompletableFuture<ContactStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.contactsensor.ContactSensorStateCharacteristic
+
 
+
ContactStateEnum - Enum in io.github.hapjava.characteristics.impl.contactsensor
+
 
+
CONTROL_LOCK_DISABLED - io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsEnum
+
 
+
CONTROL_LOCK_ENABLED - io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsEnum
+
 
+
convert(JsonValue) - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Converts from the JSON value to a Java object of the type T
+
+
convert(JsonValue) - Method in class io.github.hapjava.characteristics.impl.base.BooleanCharacteristic
+
+
Converts from the JSON value to a Java object of the type T
+
+
convert(JsonValue) - Method in class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
+
Converts from the JSON value to a Java object of the type T
+
+
convert(JsonValue) - Method in class io.github.hapjava.characteristics.impl.base.FloatCharacteristic
+
+
Converts from the JSON value to a Java object of the type T
+
+
convert(JsonValue) - Method in class io.github.hapjava.characteristics.impl.base.IntegerCharacteristic
+
+
Converts from the JSON value to a Java object of the type T
+
+
convert(JsonValue) - Method in class io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic
+
+
Converts from the JSON value to a Java object of the type T
+
+
convert(JsonValue) - Method in class io.github.hapjava.characteristics.impl.base.StringCharacteristic
+
+
Converts from the JSON value to a Java object of the type T
+
+
COOL - io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateEnum
+
 
+
COOL - io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateEnum
+
 
+
COOL - io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateEnum
+
 
+
COOLING - io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateEnum
+
 
+
CoolingThresholdTemperatureCharacteristic - Class in io.github.hapjava.characteristics.impl.thermostat
+
+
This characteristic describes the cooling threshold on which accessories turns on the cooling.
+
+
CoolingThresholdTemperatureCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.thermostat.CoolingThresholdTemperatureCharacteristic
+
 
+
CoolingThresholdTemperatureCharacteristic(Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.thermostat.CoolingThresholdTemperatureCharacteristic
+
 
+
COUNTER_CLOCKWISE - io.github.hapjava.characteristics.impl.fan.RotationDirectionEnum
+
 
+
createUser(String, byte[]) - Method in interface io.github.hapjava.server.HomekitAuthInfo
+
+
Deprecated method to add a user, assuming all users are admins.
+
+
createUser(String, byte[], boolean) - Method in interface io.github.hapjava.server.HomekitAuthInfo
+
+
Called during the pairing process, you should store the user and public key in a manner that + the public key can later be retrieved using HomekitAuthInfo.getUserPublicKey(String).
+
+
CurrentAirPurifierCharacteristic - Class in io.github.hapjava.characteristics.impl.airpurifier
+
+
This characteristic describes the current state of the air purifier.
+
+
CurrentAirPurifierCharacteristic(Supplier<CompletableFuture<CurrentAirPurifierStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierCharacteristic
+
 
+
CurrentAirPurifierStateEnum - Enum in io.github.hapjava.characteristics.impl.airpurifier
+
+
0 ”Inactive” 1 ”Idle” 2 ”Purifying Air”
+
+
CurrentAmbientLightLevelCharacteristic - Class in io.github.hapjava.characteristics.impl.lightsensor
+
+
This characteristic indicates the current light level in Lux
+
+
CurrentAmbientLightLevelCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.lightsensor.CurrentAmbientLightLevelCharacteristic
+
 
+
CurrentAmbientLightLevelCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.lightsensor.CurrentAmbientLightLevelCharacteristic
+
 
+
CurrentDoorStateCharacteristic - Class in io.github.hapjava.characteristics.impl.garagedoor
+
+
This characteristic describes the current state of a door.
+
+
CurrentDoorStateCharacteristic(Supplier<CompletableFuture<CurrentDoorStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateCharacteristic
+
 
+
CurrentDoorStateEnum - Enum in io.github.hapjava.characteristics.impl.garagedoor
+
+
0 ”Open.
+
+
CurrentFanStateCharacteristic - Class in io.github.hapjava.characteristics.impl.fan
+
+
This characteristic describes the current state of the fan.
+
+
CurrentFanStateCharacteristic(Supplier<CompletableFuture<CurrentFanStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.fan.CurrentFanStateCharacteristic
+
 
+
CurrentFanStateEnum - Enum in io.github.hapjava.characteristics.impl.fan
+
 
+
CurrentHeaterCoolerStateCharacteristic - Class in io.github.hapjava.characteristics.impl.heatercooler
+
+
This characteristic describes the current state of a heater cooler.
+
+
CurrentHeaterCoolerStateCharacteristic(CurrentHeaterCoolerStateEnum[], Supplier<CompletableFuture<CurrentHeaterCoolerStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateCharacteristic
+
 
+
CurrentHeaterCoolerStateEnum - Enum in io.github.hapjava.characteristics.impl.heatercooler
+
+
0 ”Inactive” 1 ”Idle” 2 ”Heating” 3 ”Cooling”
+
+
CurrentHeatingCoolingStateCharacteristic - Class in io.github.hapjava.characteristics.impl.thermostat
+
+
This characteristic describes the current mode of an accessory that supports cooling or heating
+
+
CurrentHeatingCoolingStateCharacteristic(CurrentHeatingCoolingStateEnum[], Supplier<CompletableFuture<CurrentHeatingCoolingStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateCharacteristic
+
 
+
CurrentHeatingCoolingStateEnum - Enum in io.github.hapjava.characteristics.impl.thermostat
+
+
0 ”Off.” 1 ”Heat.
+
+
CurrentHorizontalTiltAngleCharacteristic - Class in io.github.hapjava.characteristics.impl.windowcovering
+
+
This characteristic describes the current angle of horizontal slats.
+
+
CurrentHorizontalTiltAngleCharacteristic(int, int, Supplier<CompletableFuture<Integer>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.windowcovering.CurrentHorizontalTiltAngleCharacteristic
+
 
+
CurrentHorizontalTiltAngleCharacteristic(Supplier<CompletableFuture<Integer>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.windowcovering.CurrentHorizontalTiltAngleCharacteristic
+
 
+
CurrentHumidifierDehumidifierStateCharacteristic - Class in io.github.hapjava.characteristics.impl.humidifier
+
+
This characteristic describes the current state of a humidifier or/and a dehumidifier.
+
+
CurrentHumidifierDehumidifierStateCharacteristic(Supplier<CompletableFuture<CurrentHumidifierDehumidifierStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateCharacteristic
+
 
+
CurrentHumidifierDehumidifierStateEnum - Enum in io.github.hapjava.characteristics.impl.humidifier
+
+
0 ”Inactive” 1 ”Idle” 2 ”Humidifying” 3 ”Dehumidifying”
+
+
CurrentMediaStateCharacteristic - Class in io.github.hapjava.characteristics.impl.television
+
+
This characteristic indicates current media state.
+
+
CurrentMediaStateCharacteristic(Supplier<CompletableFuture<CurrentMediaStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.television.CurrentMediaStateCharacteristic
+
 
+
CurrentMediaStateEnum - Enum in io.github.hapjava.characteristics.impl.television
+
+
0 ”Play” 1 ”Pause” 2 "Stop" 3 "Unknown" 4-255 ”Reserved”
+
+
CurrentPositionCharacteristic - Class in io.github.hapjava.characteristics.impl.windowcovering
+
+
This characteristic describes the current position of accessories.
+
+
CurrentPositionCharacteristic(Supplier<CompletableFuture<Integer>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.windowcovering.CurrentPositionCharacteristic
+
 
+
CurrentRelativeHumidityCharacteristic - Class in io.github.hapjava.characteristics.impl.humiditysensor
+
+
This characteristic describes the current relative humidity.
+
+
CurrentRelativeHumidityCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.humiditysensor.CurrentRelativeHumidityCharacteristic
+
 
+
CurrentSecuritySystemStateCharacteristic - Class in io.github.hapjava.characteristics.impl.securitysystem
+
+
This characteristic describes the state of a security system
+
+
CurrentSecuritySystemStateCharacteristic(CurrentSecuritySystemStateEnum[], Supplier<CompletableFuture<CurrentSecuritySystemStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateCharacteristic
+
 
+
CurrentSecuritySystemStateEnum - Enum in io.github.hapjava.characteristics.impl.securitysystem
+
+
The current state of a SecuritySystemAccessory.
+
+
CurrentSlatStateCharacteristic - Class in io.github.hapjava.characteristics.impl.slat
+
+
This characteristic describes the current state of the slats.
+
+
CurrentSlatStateCharacteristic(Supplier<CompletableFuture<CurrentSlatStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.slat.CurrentSlatStateCharacteristic
+
 
+
CurrentSlatStateEnum - Enum in io.github.hapjava.characteristics.impl.slat
+
+
0 ”Fixed” 1 ”Jammed” 2 ”Swinging”
+
+
CurrentTemperatureCharacteristic - Class in io.github.hapjava.characteristics.impl.thermostat
+
+
characteristic describes the current temperature of the environment in Celsius
+
+
CurrentTemperatureCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.thermostat.CurrentTemperatureCharacteristic
+
 
+
CurrentTemperatureCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.thermostat.CurrentTemperatureCharacteristic
+
 
+
CurrentTiltAngleCharacteristic - Class in io.github.hapjava.characteristics.impl.slat
+
+
This characteristic describe current tilt angle (between -90 and 90)
+
+
CurrentTiltAngleCharacteristic(Supplier<CompletableFuture<Integer>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.slat.CurrentTiltAngleCharacteristic
+
 
+
CurrentVerticalTiltAngleCharacteristic - Class in io.github.hapjava.characteristics.impl.windowcovering
+
+
This characteristic describes the current angle of vertical slats for accessory.
+
+
CurrentVerticalTiltAngleCharacteristic(int, int, Supplier<CompletableFuture<Integer>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.windowcovering.CurrentVerticalTiltAngleCharacteristic
+
 
+
CurrentVerticalTiltAngleCharacteristic(Supplier<CompletableFuture<Integer>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.windowcovering.CurrentVerticalTiltAngleCharacteristic
+
 
+
CurrentVisibilityStateCharacteristic - Class in io.github.hapjava.characteristics.impl.inputsource
+
+
This characteristic describes current visibility state.
+
+
CurrentVisibilityStateCharacteristic(Supplier<CompletableFuture<CurrentVisibilityStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateCharacteristic
+
 
+
CurrentVisibilityStateEnum - Enum in io.github.hapjava.characteristics.impl.inputsource
+
 
+
CUSTOM - io.github.hapjava.characteristics.impl.television.PictureModeEnum
+
 
+
+ + + +

D

+
+
DECREASING - io.github.hapjava.characteristics.impl.windowcovering.PositionStateEnum
+
 
+
DECREMENT - io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorEnum
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.airquality.NitrogenDioxideDensityCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.airquality.OzoneDensityCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.airquality.PM10DensityCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.airquality.PM25DensityCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.airquality.SulphurDioxideDensityCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.airquality.VOCDensityCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideLevelCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxidePeakLevelCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideLevelCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxidePeakLevelCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.fan.RotationSpeedCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.lightbulb.ColorTemperatureCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.lightsensor.CurrentAmbientLightLevelCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.thermostat.CoolingThresholdTemperatureCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.thermostat.CurrentTemperatureCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.thermostat.HeatingThresholdTemperatureCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.thermostat.TargetTemperatureCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.valve.RemainingDurationCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.valve.SetDurationCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.windowcovering.CurrentHorizontalTiltAngleCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.windowcovering.CurrentVerticalTiltAngleCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.windowcovering.TargetHorizontalTiltAngleCharacteristic
+
 
+
DEFAULT_MAX_VALUE - Static variable in class io.github.hapjava.characteristics.impl.windowcovering.TargetVerticalTiltAngleCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.airquality.NitrogenDioxideDensityCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.airquality.OzoneDensityCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.airquality.PM10DensityCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.airquality.PM25DensityCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.airquality.SulphurDioxideDensityCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.airquality.VOCDensityCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideLevelCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxidePeakLevelCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideLevelCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxidePeakLevelCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.fan.RotationSpeedCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.lightbulb.ColorTemperatureCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.lightsensor.CurrentAmbientLightLevelCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.thermostat.CoolingThresholdTemperatureCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.thermostat.CurrentTemperatureCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.thermostat.HeatingThresholdTemperatureCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.thermostat.TargetTemperatureCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.valve.RemainingDurationCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.valve.SetDurationCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.windowcovering.CurrentHorizontalTiltAngleCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.windowcovering.CurrentVerticalTiltAngleCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.windowcovering.TargetHorizontalTiltAngleCharacteristic
+
 
+
DEFAULT_MIN_VALUE - Static variable in class io.github.hapjava.characteristics.impl.windowcovering.TargetVerticalTiltAngleCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.airquality.NitrogenDioxideDensityCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.airquality.OzoneDensityCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.airquality.PM10DensityCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.airquality.PM25DensityCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.airquality.SulphurDioxideDensityCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.airquality.VOCDensityCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideLevelCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxidePeakLevelCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideLevelCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxidePeakLevelCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.fan.RotationSpeedCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.lightsensor.CurrentAmbientLightLevelCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.thermostat.CoolingThresholdTemperatureCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.thermostat.CurrentTemperatureCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.thermostat.HeatingThresholdTemperatureCharacteristic
+
 
+
DEFAULT_STEP - Static variable in class io.github.hapjava.characteristics.impl.thermostat.TargetTemperatureCharacteristic
+
 
+
DEHUMIDIFIER - io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateEnum
+
 
+
DEHUMIDIFIERS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
DEHUMIDIFYING - io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateEnum
+
 
+
DETECTED - io.github.hapjava.characteristics.impl.contactsensor.ContactStateEnum
+
 
+
DETECTED - io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedEnum
+
 
+
DETECTED - io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedStateEnum
+
 
+
DISABLED - io.github.hapjava.characteristics.impl.television.ClosedCaptionsEnum
+
 
+
DISARM - io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateEnum
+
+
Disarm the system.
+
+
DISARMED - io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateEnum
+
+
The security system is disarmed.
+
+
DoorAccessory - Interface in io.github.hapjava.accessories
+
+
A motorized door with current and target position.
+
+
DoorbellAccessory - Interface in io.github.hapjava.accessories
+
+
doorbell accessory with a switch (button push) event.
+
+
DoorbellService - Class in io.github.hapjava.services.impl
+
+
The Doorbell service describes a doorbell.
+
+
DoorbellService(DoorbellAccessory) - Constructor for class io.github.hapjava.services.impl.DoorbellService
+
 
+
DoorbellService(ProgrammableSwitchEventCharacteristic) - Constructor for class io.github.hapjava.services.impl.DoorbellService
+
 
+
DOORS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
DoorService - Class in io.github.hapjava.services.impl
+
+
This service describes a motorized door.
+
+
DoorService(DoorAccessory) - Constructor for class io.github.hapjava.services.impl.DoorService
+
 
+
DoorService(CurrentPositionCharacteristic, TargetPositionCharacteristic, PositionStateCharacteristic) - Constructor for class io.github.hapjava.services.impl.DoorService
+
 
+
DOTS - io.github.hapjava.characteristics.impl.common.ServiceLabelNamespaceEnum
+
 
+
DOUBLE_PRESS - io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEnum
+
 
+
DVI - io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
+ + + +

E

+
+
ENABLED - io.github.hapjava.characteristics.impl.television.ClosedCaptionsEnum
+
 
+
EnumCharacteristic<T extends CharacteristicEnum> - Class in io.github.hapjava.characteristics.impl.base
+
+
Characteristic that exposes an Enum value.
+
+
EnumCharacteristic(String, String, T[], Optional<Supplier<CompletableFuture<T>>>, Optional<ExceptionalConsumer<T>>, Optional<Consumer<HomekitCharacteristicChangeCallback>>, Optional<Runnable>) - Constructor for class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
+
Default constructor
+
+
EventableCharacteristic - Interface in io.github.hapjava.characteristics
+
+
A characteristic that can be listened to by the connected iOS device.
+
+
EXCELLENT - io.github.hapjava.characteristics.impl.airquality.AirQualityEnum
+
 
+
ExceptionalConsumer<T> - Interface in io.github.hapjava.characteristics
+
 
+
EXIT - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
+ + + +

F

+
+
FAHRENHEIT - io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitEnum
+
 
+
FAIR - io.github.hapjava.characteristics.impl.airquality.AirQualityEnum
+
 
+
FanAccessory - Interface in io.github.hapjava.accessories
+
+
A fan with mandatory characteristics.
+
+
FANS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
FanService - Class in io.github.hapjava.services.impl
+
+
This service describes a fan.
+
+
FanService(FanAccessory) - Constructor for class io.github.hapjava.services.impl.FanService
+
 
+
FanService(ActiveCharacteristic) - Constructor for class io.github.hapjava.services.impl.FanService
+
 
+
FAST_FORWARD - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
FaucetAccessory - Interface in io.github.hapjava.accessories
+
+
Faucets or shower heads accessory.
+
+
FAUCETS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
FaucetService - Class in io.github.hapjava.services.impl
+
+
This service describes accessories like faucets or shower heads and must only be included when an + accessory has either a linked HeaterCoolerService, single linked ValveService or + multiple linked ValveService (with/without HeaterCoolerService to describe water + outlets.
+
+
FaucetService(FaucetAccessory) - Constructor for class io.github.hapjava.services.impl.FaucetService
+
 
+
FaucetService(ActiveCharacteristic) - Constructor for class io.github.hapjava.services.impl.FaucetService
+
 
+
FilterChangeIndicationCharacteristic - Class in io.github.hapjava.characteristics.impl.filtermaintenance
+
 
+
FilterChangeIndicationCharacteristic(Supplier<CompletableFuture<FilterChangeIndicationEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationCharacteristic
+
 
+
FilterChangeIndicationEnum - Enum in io.github.hapjava.characteristics.impl.filtermaintenance
+
 
+
FilterLifeLevelCharacteristic - Class in io.github.hapjava.characteristics.impl.filtermaintenance
+
 
+
FilterLifeLevelCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.filtermaintenance.FilterLifeLevelCharacteristic
+
 
+
FilterMaintenanceAccessory - Interface in io.github.hapjava.accessories
+
+
A Filter maintenance with mandatory characteristics.
+
+
FilterMaintenanceService - Class in io.github.hapjava.services.impl
+
+
This service describes a filter maintenance.
+
+
FilterMaintenanceService(FilterMaintenanceAccessory) - Constructor for class io.github.hapjava.services.impl.FilterMaintenanceService
+
 
+
FilterMaintenanceService(FilterChangeIndicationCharacteristic) - Constructor for class io.github.hapjava.services.impl.FilterMaintenanceService
+
 
+
FirmwareRevisionCharacteristic - Class in io.github.hapjava.characteristics.impl.accessoryinformation
+
+
This characteristic describes a firmware revision string
+
+
FirmwareRevisionCharacteristic(Supplier<CompletableFuture<String>>) - Constructor for class io.github.hapjava.characteristics.impl.accessoryinformation.FirmwareRevisionCharacteristic
+
 
+
FIXED - io.github.hapjava.characteristics.impl.slat.CurrentSlatStateEnum
+
 
+
FloatCharacteristic - Class in io.github.hapjava.characteristics.impl.base
+
+
A characteristic that provides a Float value type.
+
+
FloatCharacteristic(String, String, double, double, double, String, Optional<Supplier<CompletableFuture<Double>>>, Optional<ExceptionalConsumer<Double>>, Optional<Consumer<HomekitCharacteristicChangeCallback>>, Optional<Runnable>) - Constructor for class io.github.hapjava.characteristics.impl.base.FloatCharacteristic
+
+
Default constructor
+
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.airquality.AirQualityEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.battery.ChargingStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.battery.StatusLowBatteryEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.common.ActiveEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.common.InUseEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.common.IsConfiguredEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.common.ProgramModeEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.common.ServiceLabelNamespaceEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.common.StatusFaultEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.common.StatusTamperedEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.contactsensor.ContactStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.fan.CurrentFanStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.fan.RotationDirectionEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.fan.SwingModeEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.fan.TargetFanStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.lock.LockCurrentStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.lock.LockTargetStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.slat.CurrentSlatStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.slat.SlatTypeEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.television.ClosedCaptionsEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.television.PictureModeEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.television.PowerModeEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.television.TargetMediaStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.valve.ValveTypeEnum
+
 
+
fromCode(Integer) - Static method in enum io.github.hapjava.characteristics.impl.windowcovering.PositionStateEnum
+
 
+
+ + + +

G

+
+
GAME - io.github.hapjava.characteristics.impl.television.PictureModeEnum
+
 
+
GARAGE_DOOR_OPENERS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
GarageDoorOpenerAccessory - Interface in io.github.hapjava.accessories
+
+
garage door opener accessory with control and status of a garage door
+
+
GarageDoorOpenerService - Class in io.github.hapjava.services.impl
+
+
This service describes a garage door opener that controls a single door.
+
+
GarageDoorOpenerService(GarageDoorOpenerAccessory) - Constructor for class io.github.hapjava.services.impl.GarageDoorOpenerService
+
 
+
GarageDoorOpenerService(CurrentDoorStateCharacteristic, TargetDoorStateCharacteristic, ObstructionDetectedCharacteristic) - Constructor for class io.github.hapjava.services.impl.GarageDoorOpenerService
+
 
+
GENERAL_FAULT - io.github.hapjava.characteristics.impl.common.StatusFaultEnum
+
 
+
GENERIC - io.github.hapjava.characteristics.impl.valve.ValveTypeEnum
+
 
+
getAccessoryFlags() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAccessoryFlags
+
+
When set indicates accessory requires additional setup.
+
+
getActive() - Method in interface io.github.hapjava.accessories.IrrigationSystemAccessory
+
+
An irrigation system is set to Active when the system is enabled.
+
+
getActive() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithActive
+
+
Retrieves the active state (see ActiveEnum for supported values).
+
+
getActiveIdentifier() - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Retrieves the active identifier
+
+
getAirPlayEnable() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAirPlayEnable
+
+
Retrieves the AirPlay enable state
+
+
getAirQuality() - Method in interface io.github.hapjava.accessories.AirQualityAccessory
+
+
Retrieves the state of the air quality
+
+
getBatteryLevel() - Method in interface io.github.hapjava.accessories.BatteryAccessory
+
+
Retrieves the battery level of the accessory.
+
+
getBrightness() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithBrightness
+
+
Retrieves the current brightness of the light
+
+
getCarbonDioxideDetectedState() - Method in interface io.github.hapjava.accessories.CarbonDioxideSensorAccessory
+
+
Retrieves the state of the sensor that indicates if carbon dioxide has been detected.
+
+
getCarbonDioxideLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+
Retrieves the carbon dioxide level
+
+
getCarbonDioxidePeakLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+
Retrieves the carbon dioxide peak level
+
+
getCarbonMonoxideDetectedState() - Method in interface io.github.hapjava.accessories.CarbonMonoxideSensorAccessory
+
+
Retrieves the state of the sensor that indicates if carbon monoxide has been detected.
+
+
getCarbonMonoxideLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+
Retrieves the carbon monoxide level
+
+
getCarbonMonoxidePeakLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+
Retrieves the carbon monoxide peak level
+
+
getCharacteristics() - Method in interface io.github.hapjava.services.Service
+
+
Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol.
+
+
getChargingState() - Method in interface io.github.hapjava.accessories.BatteryAccessory
+
+
Retriece the battery charging state.
+
+
getClosedCaptions() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithClosedCaptions
+
+
Retrieves the closed captions state (see ClosedCaptionsEnum for supported values).
+
+
getCode() - Method in interface io.github.hapjava.characteristics.CharacteristicEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.airquality.AirQualityEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.battery.ChargingStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.battery.StatusLowBatteryEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.common.ActiveEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.common.InUseEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.common.IsConfiguredEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.common.ProgramModeEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.common.ServiceLabelNamespaceEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.common.StatusFaultEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.common.StatusTamperedEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.contactsensor.ContactStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.fan.CurrentFanStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.fan.RotationDirectionEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.fan.SwingModeEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.fan.TargetFanStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.lock.LockCurrentStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.lock.LockTargetStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.slat.CurrentSlatStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.slat.SlatTypeEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.television.ClosedCaptionsEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.television.PictureModeEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.television.PowerModeEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.television.TargetMediaStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.valve.ValveTypeEnum
+
 
+
getCode() - Method in enum io.github.hapjava.characteristics.impl.windowcovering.PositionStateEnum
+
 
+
getColorTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColorTemperature
+
+
Retrieves the color temperature
+
+
getConfiguredName() - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Retrieves configured name of input source.
+
+
getConfiguredName() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithConfiguredName
+
+
Retrieves configured name.
+
+
getConfiguredName() - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Retrieves configured name.
+
+
getCoolingThresholdTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCoolingThresholdTemperature
+
+
Retrieves the temperature above which the thermostat should begin cooling.
+
+
getCurrentAmbientLightLevel() - Method in interface io.github.hapjava.accessories.LightSensorAccessory
+
+
Retrieves the current ambient light level.
+
+
getCurrentDoorState() - Method in interface io.github.hapjava.accessories.GarageDoorOpenerAccessory
+
+
Retrieves the current state of the door
+
+
getCurrentFanState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFanState
+
+
Retrieves the current state of the fan (INACTIVE, IDLE, BLOWING AIR).
+
+
getCurrentHeaterCoolerState() - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Retrieves the heater /cooler current state.
+
+
getCurrentHeaterCoolerStateValidValues() - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Valid values for current state.
+
+
getCurrentHeatingCoolingStateValidValues() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Valid values for current state.
+
+
getCurrentHorizontalTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentHorizontalTilting
+
+
Retrieves the current horizontal tilt angle
+
+
getCurrentHumidifierDehumidifierState() - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Retrieves the humidifier/dehumidifier current state.
+
+
getCurrentHumidity() - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Retrieves the current relative humidity.
+
+
getCurrentMediaState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentMediaState
+
+
Retrieves the current media state (see CurrentMediaStateEnum for supported values).
+
+
getCurrentMediaState() - Method in interface io.github.hapjava.accessories.SmartSpeakerAccessory
+
+
Retrieves the current media state (see CurrentMediaStateEnum for supported values).
+
+
getCurrentPosition() - Method in interface io.github.hapjava.accessories.DoorAccessory
+
+
Retrieves the current position of the door
+
+
getCurrentPosition() - Method in interface io.github.hapjava.accessories.WindowAccessory
+
+
Retrieves the current position of the door
+
+
getCurrentPosition() - Method in interface io.github.hapjava.accessories.WindowCoveringAccessory
+
+
Retrieves the current position
+
+
getCurrentRelativeHumidity() - Method in interface io.github.hapjava.accessories.HumiditySensorAccessory
+
+
Retrieves the current relative humidity.
+
+
getCurrentRelativeHumidity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentRelativeHumidity
+
+
Retrieves the current relative humidity.
+
+
getCurrentSecuritySystemState() - Method in interface io.github.hapjava.accessories.SecuritySystemAccessory
+
+
Retrieves the current state of the security system.
+
+
getCurrentSecuritySystemStateValidValues() - Method in interface io.github.hapjava.accessories.SecuritySystemAccessory
+
+
Valid values for current state.
+
+
getCurrentState() - Method in interface io.github.hapjava.accessories.AirPurifierAccessory
+
+
Retrieves the current state of the air purifier
+
+
getCurrentState() - Method in interface io.github.hapjava.accessories.ContactSensorAccessory
+
+
Retrieves the state of the contact.
+
+
getCurrentState() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Retrieves the current CurrentHeatingCoolingStateEnum of the thermostat.
+
+
getCurrentTemperature() - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Retrieves the current temperature, in celsius degrees.
+
+
getCurrentTemperature() - Method in interface io.github.hapjava.accessories.TemperatureSensorAccessory
+
+
Retrieves the current temperature, in celsius degrees.
+
+
getCurrentTemperature() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Retrieves the current temperature, in celsius degrees.
+
+
getCurrentTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentTilting
+
+
Retrieves the current tilt angle
+
+
getCurrentVerticalTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentVerticalTilting
+
+
Retrieves the current vertical tilt angle
+
+
getCurrentVerticalTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVerticalTilting
+
+
Retrieves the current vertical tilt angle
+
+
getCurrentVisibilityState() - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Retrieves the current visibility state.
+
+
getDefault() - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Supplies a default value for the characteristic to send to connected clients when the real + value.
+
+
getDefault() - Method in class io.github.hapjava.characteristics.impl.base.BooleanCharacteristic
+
+
Supplies a default value for the characteristic to send to connected clients when the real + value.
+
+
getDefault() - Method in class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
+
Supplies a default value for the characteristic to send to connected clients when the real + value.
+
+
getDefault() - Method in class io.github.hapjava.characteristics.impl.base.FloatCharacteristic
+
+
Supplies a default value for the characteristic to send to connected clients when the real + value.
+
+
getDefault() - Method in class io.github.hapjava.characteristics.impl.base.IntegerCharacteristic
+
+
Supplies a default value for the characteristic to send to connected clients when the real + value.
+
+
getDefault() - Method in class io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic
+
+
Supplies a default value for the characteristic to send to connected clients when the real + value.
+
+
getDefault() - Method in class io.github.hapjava.characteristics.impl.base.StringCharacteristic
+
+
Supplies a default value for the characteristic to send to connected clients when the real + value.
+
+
getEnumValue() - Method in class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
 
+
getFilterChangeIndication() - Method in interface io.github.hapjava.accessories.FilterMaintenanceAccessory
+
+
The filter change indictaion.
+
+
getFilterLifeLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFilterLifeLevel
+
+
what's the filter life level, percentage wise
+
+
getFirmwareRevision() - Method in interface io.github.hapjava.accessories.HomekitAccessory
+
+
Returns a firmware revision to display in iOS.
+
+
getHardwareRevision() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHardwareRevision
+
+
Returns a hardware revision to display in iOS.
+
+
getHeatingThresholdTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHeatingThresholdTemperature
+
+
Retrieves the temperature below which the thermostat should begin heating.
+
+
getHue() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColor
+
+
Retrieves the current hue of the light.
+
+
getHumidityThreshold() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityDehumidifierThreshold
+
+
Retrieves the humidity threshold.
+
+
getHumidityThreshold() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityHumidifierThreshold
+
+
Retrieves the humidity threshold.
+
+
getId() - Method in interface io.github.hapjava.accessories.HomekitAccessory
+
+
A unique identifier that must remain static across invocations to prevent errors with paired + iOS devices.
+
+
getIdentifier() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIdentifier
+
+
Retrieves the identifier of service.
+
+
getInputDeviceType() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithInputDeviceType
+
+
Retrieves the input device type.
+
+
getInputSourceType() - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Retrieves the input source type.
+
+
getInUse() - Method in interface io.github.hapjava.accessories.IrrigationSystemAccessory
+
+
Retrieves the current inUse state of the irrigation; InUse means one of the valves is set to In + Use.
+
+
getIsConfigured() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIsConfigured
+
+
isConfigured state
+
+
getLeakDetected() - Method in interface io.github.hapjava.accessories.LeakSensorAccessory
+
+
Retrieves the state of the leak sensor.
+
+
getLightbulbPowerState() - Method in interface io.github.hapjava.accessories.LightbulbAccessory
+
+
Retrieves the current binary state of the light.
+
+
getLinkedServices() - Method in interface io.github.hapjava.services.Service
+
+
List of all the services to which the service links
+
+
getLockControls() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPhysicalControlsLock
+
+
OPTIONAL: Retrieves the lock controls.
+
+
getLockCurrentState() - Method in interface io.github.hapjava.accessories.LockMechanismAccessory
+
+
Retrieves the lock current state.
+
+
getLockCurrentState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockCurrentState
+
+
Retrieves the lock states.
+
+
getLockTargetState() - Method in interface io.github.hapjava.accessories.LockMechanismAccessory
+
+
Retrieves the lock target state.
+
+
getLockTargetState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockTargetState
+
+
Retrieves the lock states.
+
+
getLowBatteryState() - Method in interface io.github.hapjava.accessories.BatteryAccessory
+
+
Queries if the device battery level is low; returning a value of true will cause a low-battery + status to appear in Home for the device.
+
+
getMac() - Method in interface io.github.hapjava.server.HomekitAuthInfo
+
+
A unique MAC address to be advertised with the HomeKit information.
+
+
getManufacturer() - Method in interface io.github.hapjava.accessories.HomekitAccessory
+
+
Returns a manufacturer to display in iOS.
+
+
getMaxCarbonDioxideLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+
return the max value for carbon dioxide level.
+
+
getMaxCarbonDioxidePeakLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+
return the max value for carbon dioxide peak level.
+
+
getMaxCarbonMonoxideLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+
return the max value for carbon monoxide level.
+
+
getMaxCarbonMonoxidePeakLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+
return the max value for carbon monoxide peak level.
+
+
getMaxColorTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColorTemperature
+
+
return the max value for color temperature.
+
+
getMaxCoolingThresholdTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCoolingThresholdTemperature
+
+
return the max value for cooling threshold temperature.
+
+
getMaxCurrentAmbientLightLevel() - Method in interface io.github.hapjava.accessories.LightSensorAccessory
+
+
return the max value for current ambient light level.
+
+
getMaxCurrentTemperature() - Method in interface io.github.hapjava.accessories.TemperatureSensorAccessory
+
+
return the max value for current temperature.
+
+
getMaxCurrentTemperature() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
return the max value for current temperature.
+
+
getMaxDuration() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithDuration
+
+
return the max value for duration.
+
+
getMaxHeatingThresholdTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHeatingThresholdTemperature
+
+
return the max value for heating threshold temperature.
+
+
getMaxNitrogenDioxideDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithNitrogenDioxideDensity
+
+
return the max value for nitrogen dioxide density.
+
+
getMaxOzoneDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithOzoneDensity
+
+
return the max value for ozone density.
+
+
getMaxPM10Density() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM10Density
+
+
return the max value for PM10 density.
+
+
getMaxPM25Density() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM25Density
+
+
return the max value for PM25 density.
+
+
getMaxRemainingDuration() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRemainingDuration
+
+
return the max value for remaining duration.
+
+
getMaxSulphurDioxideDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSulphurDioxideDensity
+
+
return the max value for sulphur dioxide density.
+
+
getMaxTargetTemperature() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
return the max value for target temperature.
+
+
getMaxValue() - Method in class io.github.hapjava.characteristics.impl.base.FloatCharacteristic
+
 
+
getMaxVOCDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVOCDensity
+
+
return the max value for VOC density.
+
+
getMinCarbonDioxideLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+
return the min value for carbon dioxide level.
+
+
getMinCarbonDioxidePeakLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+
return the min value for carbon dioxide peak level.
+
+
getMinCarbonMonoxideLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+
return the min value for carbon monoxide level.
+
+
getMinCarbonMonoxidePeakLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+
return the min value for carbon monoxide peak level.
+
+
getMinColorTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColorTemperature
+
+
return the min value for color temperature.
+
+
getMinCoolingThresholdTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCoolingThresholdTemperature
+
+
return the min value for cooling threshold temperature.
+
+
getMinCurrentAmbientLightLevel() - Method in interface io.github.hapjava.accessories.LightSensorAccessory
+
+
return the min value for current ambient light level.
+
+
getMinCurrentTemperature() - Method in interface io.github.hapjava.accessories.TemperatureSensorAccessory
+
+
return the min value for current temperature.
+
+
getMinCurrentTemperature() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
return the min value for current temperature.
+
+
getMinDuration() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithDuration
+
+
return the min value for duration.
+
+
getMinHeatingThresholdTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHeatingThresholdTemperature
+
+
return the min value for heating threshold temperature.
+
+
getMinNitrogenDioxideDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithNitrogenDioxideDensity
+
+
return the min value for nitrogen dioxide density.
+
+
getMinOzoneDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithOzoneDensity
+
+
return the min value for ozone density.
+
+
getMinPM10Density() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM10Density
+
+
return the min value for PM10 density.
+
+
getMinPM25Density() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM25Density
+
+
return the min value for PM25 density.
+
+
getMinRemainingDuration() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRemainingDuration
+
+
return the min value for remaining duration.
+
+
getMinStep() - Method in class io.github.hapjava.characteristics.impl.base.FloatCharacteristic
+
 
+
getMinStepCarbonDioxideLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+
return the min step value for carbon dioxide level.
+
+
getMinStepCarbonDioxidePeakLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+
return the min step value for carbon dioxide peak level.
+
+
getMinStepCarbonMonoxideLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+
return the min step value for carbon monoxide level.
+
+
getMinStepCarbonMonoxidePeakLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+
return the min step value for carbon monoxide peak level.
+
+
getMinStepCurrentAmbientLightLevel() - Method in interface io.github.hapjava.accessories.LightSensorAccessory
+
+
return the min step value for current ambient light level.
+
+
getMinStepCurrentTemperature() - Method in interface io.github.hapjava.accessories.TemperatureSensorAccessory
+
+
return the min step value for current temperature.
+
+
getMinStepCurrentTemperature() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
return the min step value for current temperature.
+
+
getMinStepNitrogenDioxideDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithNitrogenDioxideDensity
+
+
return the min step value for nitrogen dioxide density.
+
+
getMinStepOzoneDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithOzoneDensity
+
+
return the min step value for ozone density.
+
+
getMinStepPM10Density() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM10Density
+
+
return the min step value for PM10 density.
+
+
getMinStepPM25Density() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM25Density
+
+
return the min step value for PM25 density.
+
+
getMinStepSulphurDioxideDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSulphurDioxideDensity
+
+
return the min step value for sulphur dioxide density.
+
+
getMinStepTargetTemperature() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
return the min step value for target temperature.
+
+
getMinStepVOCDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVOCDensity
+
+
return the min step value for VOC density.
+
+
getMinSulphurDioxideDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSulphurDioxideDensity
+
+
return the min value for sulphur dioxide density.
+
+
getMinTargetTemperature() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
return the min value for target temperature.
+
+
getMinValue() - Method in class io.github.hapjava.characteristics.impl.base.FloatCharacteristic
+
 
+
getMinVOCDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVOCDensity
+
+
return the min value for VOC density.
+
+
getModel() - Method in interface io.github.hapjava.accessories.HomekitAccessory
+
+
Returns a model name to display in iOS.
+
+
getMotionDetected() - Method in interface io.github.hapjava.accessories.MotionSensorAccessory
+
+
Retrieves the state of the motion sensor.
+
+
getName() - Method in interface io.github.hapjava.accessories.HomekitAccessory
+
+
Returns a name to display in iOS.
+
+
getName() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName
+
+
Retrieves the name of service.
+
+
getNitrogenDioxideDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithNitrogenDioxideDensity
+
+
Retrieves the nitrogen dioxide density.
+
+
getObstructionDetected() - Method in interface io.github.hapjava.accessories.GarageDoorOpenerAccessory
+
+
Retrieves an indicator of an obstruction detected by the door
+
+
getObstructionDetected() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithObstructionDetection
+
+
Retrieves an indication obstructed is detected
+
+
getOccupancyDetected() - Method in interface io.github.hapjava.accessories.OccupancySensorAccessory
+
+
Retrieves the state of the occupancy sensor.
+
+
getOutletInUse() - Method in interface io.github.hapjava.accessories.OutletAccessory
+
+
Retrieves the current binary state indicating whether the outlet is in use.
+
+
getOzoneDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithOzoneDensity
+
+
Retrieves the ozone density.
+
+
getPictureMode() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPictureMode
+
+
Retrieves the picture mode (see PictureModeEnum for supported values).
+
+
getPin() - Method in interface io.github.hapjava.server.HomekitAuthInfo
+
+
A pin code used for pairing the device.
+
+
getPM10Density() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM10Density
+
+
Retrieves the PM10 density.
+
+
getPM25Density() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM25Density
+
+
Retrieves the PM25 density.
+
+
getPositionState() - Method in interface io.github.hapjava.accessories.DoorAccessory
+
+
Retrieves the position state of the door
+
+
getPositionState() - Method in interface io.github.hapjava.accessories.WindowAccessory
+
+
Retrieves the position state of the door
+
+
getPositionState() - Method in interface io.github.hapjava.accessories.WindowCoveringAccessory
+
+
Retrieves the state of the position: increasing, decreasing, or stopped
+
+
getPowerState() - Method in interface io.github.hapjava.accessories.OutletAccessory
+
+
Retrieves the current binary state of the outlet's power.
+
+
getPrimaryService() - Method in interface io.github.hapjava.accessories.HomekitAccessory
+
+
default implementation which is sufficient if accessory has only one service
+
+
getPrivateKey() - Method in interface io.github.hapjava.server.HomekitAuthInfo
+
+
The private key used by the server during pairing and message encryption.
+
+
getProgramMode() - Method in interface io.github.hapjava.accessories.IrrigationSystemAccessory
+
+
Retrieves the program mode status
+
+
getRemainingDuration() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRemainingDuration
+
+
Retrieves the remaining duration
+
+
getRotationDirection() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationDirection
+
+
Retrieves the current rotation direction.
+
+
getRotationSpeed() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationSpeed
+
+
Retrieves the current speed of the rotation
+
+
getSalt() - Method in interface io.github.hapjava.server.HomekitAuthInfo
+
+
The Salt that will be used when hashing the pin code to send to the client.
+
+
getSaturation() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColor
+
+
Retrieves the saturation of the light.
+
+
getSecurityAlarmType() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSecurityAlarmType
+
+
return alarm type See SecuritySystemAlarmTypeEnum for possible values
+
+
getSerialNumber() - Method in interface io.github.hapjava.accessories.HomekitAccessory
+
+
Returns a serial number to display in iOS.
+
+
getServiceLabelIndex() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithServiceLabelIndex
+
+
Retrieves the service label index.
+
+
getServices() - Method in interface io.github.hapjava.accessories.AirPurifierAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.AirQualityAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.BasicFanAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.BatteryAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.CarbonDioxideSensorAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.CarbonMonoxideSensorAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.ContactSensorAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.DoorAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.DoorbellAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.FanAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.FaucetAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.FilterMaintenanceAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.GarageDoorOpenerAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.HomekitAccessory
+
+
The collection of Services this accessory supports.
+
+
getServices() - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.HumiditySensorAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.IrrigationSystemAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.LeakSensorAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.LightbulbAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.LightSensorAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.LockMechanismAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.MicrophoneAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.MotionSensorAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.OccupancySensorAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.OutletAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.SecuritySystemAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.SlatAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.SmartSpeakerAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.SmokeSensorAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.SpeakerAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.StatelessProgrammableSwitchAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.SwitchAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.TelevisionSpeakerAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.TemperatureSensorAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.ValveAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.WindowAccessory
+
 
+
getServices() - Method in interface io.github.hapjava.accessories.WindowCoveringAccessory
+
 
+
getSetDuration() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithDuration
+
+
Retrieves the current set duration;
+
+
getSetupId() - Method in interface io.github.hapjava.server.HomekitAuthInfo
+
+
A setup Id used for pairing the device using QR Code.
+
+
getSlatState() - Method in interface io.github.hapjava.accessories.SlatAccessory
+
+
Retrieves the current state of the slat
+
+
getSlatType() - Method in interface io.github.hapjava.accessories.SlatAccessory
+
+
Retrieves the slat type.
+
+
getSleepDiscoveryMode() - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Retrieves the sleep discovery mode.
+
+
getSmokeDetectedState() - Method in interface io.github.hapjava.accessories.SmokeSensorAccessory
+
+
Retrieves the state of the smoke sensor.
+
+
getStatusActive() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive
+
+
Retrieves the status active.
+
+
getStatusFault() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault
+
+
Retrieves the status fault.
+
+
getStatusLowBattery() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery
+
+
A status of 1 indicates that the battery level of the accessory is low.
+
+
getStatusTampered() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered
+
+
Retrieves the status tampered.
+
+
getStepCoolingThresholdTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCoolingThresholdTemperature
+
+
return the min step value for cooling threshold temperature.
+
+
getStepHeatingThresholdTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHeatingThresholdTemperature
+
+
return the min step value for heating threshold temperature.
+
+
getSulphurDioxideDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSulphurDioxideDensity
+
+
Retrieves the sulphur dioxide density.
+
+
getSwingMode() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSwingMode
+
+
Retrieves the swing mode.
+
+
getSwitchEvent() - Method in interface io.github.hapjava.accessories.DoorbellAccessory
+
+
Retrieves the last states of the doorbell.
+
+
getSwitchEvent() - Method in interface io.github.hapjava.accessories.StatelessProgrammableSwitchAccessory
+
+
Retrieves the last states of the switch.
+
+
getSwitchState() - Method in interface io.github.hapjava.accessories.SwitchAccessory
+
+
Retrieves the current binary state of the switch.
+
+
getTargetDoorState() - Method in interface io.github.hapjava.accessories.GarageDoorOpenerAccessory
+
+
Retrieves the targeted state of the door
+
+
getTargetFanState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFanState
+
+
Retrieves the target state of the fan (MANUAL, AUTO).
+
+
getTargetHeaterCoolerState() - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Retrieves the heater cooler target state.
+
+
getTargetHeaterCoolerStateValidValues() - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Valid values for target state.
+
+
getTargetHeatingCoolingStateValidValues() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Valid values for target state.
+
+
getTargetHorizontalTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetHorizontalTilting
+
+
Retrieves the target horizontal tilt angle
+
+
getTargetHumidifierDehumidifierState() - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Retrieves the humidifier/dehumidifier target state.
+
+
getTargetHumidifierDehumidifierStateValidValues() - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Valid values for target state.
+
+
getTargetMediaState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetMediaState
+
+
Retrieves the target media state (see TargetMediaStateEnum for supported values).
+
+
getTargetMediaState() - Method in interface io.github.hapjava.accessories.SmartSpeakerAccessory
+
+
Retrieves the target media state (see TargetMediaStateEnum for supported values).
+
+
getTargetPosition() - Method in interface io.github.hapjava.accessories.DoorAccessory
+
+
Retrieves the target position of the door
+
+
getTargetPosition() - Method in interface io.github.hapjava.accessories.WindowAccessory
+
+
Retrieves the target position of the door
+
+
getTargetPosition() - Method in interface io.github.hapjava.accessories.WindowCoveringAccessory
+
+
Retrieves the target position
+
+
getTargetRelativeHumidity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetRelativeHumidity
+
+
Retrieves the target relative humidity.
+
+
getTargetSecuritySystemState() - Method in interface io.github.hapjava.accessories.SecuritySystemAccessory
+
+
Retrieves the pending, but not yet completed, state of the security system.
+
+
getTargetSecuritySystemStateValidValues() - Method in interface io.github.hapjava.accessories.SecuritySystemAccessory
+
+
Valid values for target state.
+
+
getTargetState() - Method in interface io.github.hapjava.accessories.AirPurifierAccessory
+
+
Retrieves the air purifier target state.
+
+
getTargetState() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Retrieves the pending, but not yet complete, TargetHeatingCoolingStateEnum of the + thermostat.
+
+
getTargetTemperature() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Retrieves the target temperature, in celsius degrees.
+
+
getTargetTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetTilting
+
+
Retrieves the target tilt angle
+
+
getTargetVerticalTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVerticalTilting
+
+
Retrieves the target vertical tilt angle
+
+
getTargetVerticalTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVerticalTilting
+
+
Retrieves the target vertical tilt angle
+
+
getTargetVisibilityState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVisibilityState
+
+
Retrieves the target visibility state.
+
+
getTemperatureDisplayUnit() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Retrieves the temperture display units, e.g.
+
+
getTemperatureDisplayUnits() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTemperatureDisplayUnits
+
+
Retrieves temperature display units
+
+
getter - Variable in class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
 
+
getType() - Method in interface io.github.hapjava.characteristics.Characteristic
+
 
+
getType() - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
 
+
getType() - Method in interface io.github.hapjava.services.Service
+
+
The type is a UUID that uniquely identifies the type of Service offered.
+
+
getUserPublicKey(String) - Method in interface io.github.hapjava.server.HomekitAuthInfo
+
+
Called when an already paired iOS device is re-connecting.
+
+
getValidValues() - Method in class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
 
+
getValue() - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Retrieves the current value of the characteristic.
+
+
getValue() - Method in class io.github.hapjava.characteristics.impl.base.BooleanCharacteristic
+
 
+
getValue() - Method in class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
 
+
getValue() - Method in class io.github.hapjava.characteristics.impl.base.FloatCharacteristic
+
+
Retrieves the current value of the characteristic.
+
+
getValue() - Method in class io.github.hapjava.characteristics.impl.base.IntegerCharacteristic
+
 
+
getValue() - Method in class io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic
+
+
Retrieves the current value of the characteristic.
+
+
getValue() - Method in class io.github.hapjava.characteristics.impl.base.StringCharacteristic
+
+
Retrieves the current value of the characteristic.
+
+
getValveActive() - Method in interface io.github.hapjava.accessories.ValveAccessory
+
+
Retrieves the current active state of the valve; Active could mean the valve is open (but not + necessarily running), or that the valve is associated with an active watering program (like a + watering program) but is not currently running.
+
+
getValveInUse() - Method in interface io.github.hapjava.accessories.ValveAccessory
+
+
Retrieves the current inUse state of the valve; InUse usually means water is flowing through + the valve.
+
+
getValveType() - Method in interface io.github.hapjava.accessories.ValveAccessory
+
+
Retrieves the valve type.
+
+
getVOCDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVOCDensity
+
+
Retrieves the VOC density.
+
+
getVolume() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolume
+
+
Retrieves the current volume
+
+
getVolumeControlType() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolumeControlType
+
+
Retrieves the current volume control type.
+
+
getWaterLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithWaterLevel
+
+
Retrieves the water level in percent.
+
+
GOOD - io.github.hapjava.characteristics.impl.airquality.AirQualityEnum
+
 
+
+ + + +

H

+
+
HAPProtocolInformationService - Class in io.github.hapjava.services.impl
+
+
This service HAP version.
+
+
HAPProtocolInformationService(VersionCharacteristic) - Constructor for class io.github.hapjava.services.impl.HAPProtocolInformationService
+
 
+
HardwareRevisionCharacteristic - Class in io.github.hapjava.characteristics.impl.accessoryinformation
+
+
This characteristic describes a hardware revision in a form x[.y[.z]] (e.g.
+
+
HardwareRevisionCharacteristic(Supplier<CompletableFuture<String>>) - Constructor for class io.github.hapjava.characteristics.impl.accessoryinformation.HardwareRevisionCharacteristic
+
 
+
hasUser() - Method in interface io.github.hapjava.server.HomekitAuthInfo
+
+
Called to check if a user has been created.
+
+
HDMI - io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
HEAT - io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateEnum
+
 
+
HEAT - io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateEnum
+
 
+
HEAT - io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateEnum
+
 
+
HeaterCoolerAccessory - Interface in io.github.hapjava.accessories
+
+
Heater Cooler accessory
+
+
HeaterCoolerService - Class in io.github.hapjava.services.impl
+
+
This service can be used to describe a heater and/or a cooler
+
+
HeaterCoolerService(HeaterCoolerAccessory) - Constructor for class io.github.hapjava.services.impl.HeaterCoolerService
+
 
+
HeaterCoolerService(ActiveCharacteristic, CurrentTemperatureCharacteristic, CurrentHeaterCoolerStateCharacteristic, TargetHeaterCoolerStateCharacteristic) - Constructor for class io.github.hapjava.services.impl.HeaterCoolerService
+
 
+
HEATERS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
HEATING - io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateEnum
+
 
+
HeatingThresholdTemperatureCharacteristic - Class in io.github.hapjava.characteristics.impl.thermostat
+
+
This characteristic describes the heating threshold on which heating get turned on.
+
+
HeatingThresholdTemperatureCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.thermostat.HeatingThresholdTemperatureCharacteristic
+
 
+
HeatingThresholdTemperatureCharacteristic(Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.thermostat.HeatingThresholdTemperatureCharacteristic
+
 
+
HIDDEN - io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateEnum
+
 
+
HIDDEN - io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateEnum
+
 
+
HIDE - io.github.hapjava.characteristics.impl.television.PowerModeEnum
+
 
+
HoldPositionCharacteristic - Class in io.github.hapjava.characteristics.impl.windowcovering
+
+
This characteristic causes the accessories like window covering to stop at its current
+
+
HoldPositionCharacteristic(ExceptionalConsumer<Boolean>) - Constructor for class io.github.hapjava.characteristics.impl.windowcovering.HoldPositionCharacteristic
+
 
+
HOME_SCREEN - io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
HomekitAccessory - Interface in io.github.hapjava.accessories
+
+
Base interface for all HomeKit Accessories.
+
+
HomekitAccessoryCategories - Class in io.github.hapjava.server
+
 
+
HomekitAccessoryCategories() - Constructor for class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
HomekitAuthInfo - Interface in io.github.hapjava.server
+
+
Authentication info that must be provided when constructing a new HomekitServer.
+
+
HomekitCharacteristicChangeCallback - Interface in io.github.hapjava.characteristics
+
+
A callback interface for notifying subscribers that a characteristic value has changed.
+
+
HomekitWebHandler - Interface in io.github.hapjava.server
+
 
+
HOMEPOD - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
HORIZONTAL - io.github.hapjava.characteristics.impl.slat.SlatTypeEnum
+
 
+
HueCharacteristic - Class in io.github.hapjava.characteristics.impl.lightbulb
+
+
This characteristic describes hue or color.
+
+
HueCharacteristic(Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.lightbulb.HueCharacteristic
+
 
+
HUMIDIFIER - io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateEnum
+
 
+
HumidifierDehumidifierAccessory - Interface in io.github.hapjava.accessories
+
+
Humidifier/Dehumidifier accessory
+
+
HumidifierDehumidifierService - Class in io.github.hapjava.services.impl
+
+
This service can be used to describe an air humidifier or/and an air dehumidifier.
+
+
HumidifierDehumidifierService(HumidifierDehumidifierAccessory) - Constructor for class io.github.hapjava.services.impl.HumidifierDehumidifierService
+
 
+
HumidifierDehumidifierService(ActiveCharacteristic, CurrentRelativeHumidityCharacteristic, CurrentHumidifierDehumidifierStateCharacteristic, TargetHumidifierDehumidifierStateCharacteristic) - Constructor for class io.github.hapjava.services.impl.HumidifierDehumidifierService
+
 
+
HUMIDIFIERS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
HUMIDIFYING - io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateEnum
+
 
+
HumidityDehumidifierThresholdCharacteristic - Class in io.github.hapjava.characteristics.impl.humidifier
+
+
This characteristic describes the relative humidity dehumidifier threshold on which dehumidifier + turns on.
+
+
HumidityDehumidifierThresholdCharacteristic(Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.humidifier.HumidityDehumidifierThresholdCharacteristic
+
 
+
HumidityHumidifierThresholdCharacteristic - Class in io.github.hapjava.characteristics.impl.humidifier
+
+
This characteristic describes the relative humidity humidifier threshold on which humidifier + turns on.
+
+
HumidityHumidifierThresholdCharacteristic(Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.humidifier.HumidityHumidifierThresholdCharacteristic
+
 
+
HumiditySensorAccessory - Interface in io.github.hapjava.accessories
+
+
A humidity sensor that reports the current relative humidity.
+
+
HumiditySensorService - Class in io.github.hapjava.services.impl
+
+
This service describes a humidity sensor.
+
+
HumiditySensorService(HumiditySensorAccessory) - Constructor for class io.github.hapjava.services.impl.HumiditySensorService
+
 
+
HumiditySensorService(CurrentRelativeHumidityCharacteristic) - Constructor for class io.github.hapjava.services.impl.HumiditySensorService
+
 
+
+ + + +

I

+
+
IdentifierCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
 
+
IdentifierCharacteristic(Supplier<CompletableFuture<Integer>>) - Constructor for class io.github.hapjava.characteristics.impl.common.IdentifierCharacteristic
+
 
+
identify() - Method in interface io.github.hapjava.accessories.Bridge
+
 
+
identify() - Method in interface io.github.hapjava.accessories.HomekitAccessory
+
+
Performs an operation that can be used to identify the accessory.
+
+
IdentifyCharacteristic - Class in io.github.hapjava.characteristics.impl.accessoryinformation
+
+
This characteristic enables accessory to run its identify routine.
+
+
IdentifyCharacteristic(ExceptionalConsumer<Boolean>) - Constructor for class io.github.hapjava.characteristics.impl.accessoryinformation.IdentifyCharacteristic
+
 
+
IDLE - io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierStateEnum
+
 
+
IDLE - io.github.hapjava.characteristics.impl.fan.CurrentFanStateEnum
+
 
+
IDLE - io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateEnum
+
 
+
IDLE - io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateEnum
+
 
+
IN_USE - io.github.hapjava.characteristics.impl.common.InUseEnum
+
 
+
INACTIVE - io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierStateEnum
+
 
+
INACTIVE - io.github.hapjava.characteristics.impl.common.ActiveEnum
+
 
+
INACTIVE - io.github.hapjava.characteristics.impl.fan.CurrentFanStateEnum
+
 
+
INACTIVE - io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateEnum
+
 
+
INACTIVE - io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateEnum
+
 
+
INCREASING - io.github.hapjava.characteristics.impl.windowcovering.PositionStateEnum
+
 
+
INCREMENT - io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorEnum
+
 
+
INFERIOR - io.github.hapjava.characteristics.impl.airquality.AirQualityEnum
+
 
+
INFO - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
InputDeviceTypeCharacteristic - Class in io.github.hapjava.characteristics.impl.inputsource
+
+
This characteristic describes input device type.
+
+
InputDeviceTypeCharacteristic(Supplier<CompletableFuture<InputDeviceTypeEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeCharacteristic
+
 
+
InputDeviceTypeEnum - Enum in io.github.hapjava.characteristics.impl.inputsource
+
 
+
InputSourceAccessory - Interface in io.github.hapjava.accessories
+
+
Input Source accessory.
+
+
InputSourceService - Class in io.github.hapjava.services.impl
+
+
This service describes a input source.
+
+
InputSourceService(InputSourceAccessory) - Constructor for class io.github.hapjava.services.impl.InputSourceService
+
 
+
InputSourceService(ConfiguredNameCharacteristic, InputSourceTypeCharacteristic, IsConfiguredCharacteristic, CurrentVisibilityStateCharacteristic) - Constructor for class io.github.hapjava.services.impl.InputSourceService
+
 
+
InputSourceTypeCharacteristic - Class in io.github.hapjava.characteristics.impl.inputsource
+
+
This characteristic describes input source type.
+
+
InputSourceTypeCharacteristic(Supplier<CompletableFuture<InputSourceTypeEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeCharacteristic
+
 
+
InputSourceTypeEnum - Enum in io.github.hapjava.characteristics.impl.inputsource
+
 
+
IntegerCharacteristic - Class in io.github.hapjava.characteristics.impl.base
+
+
A characteristic that provides an Integer data type.
+
+
IntegerCharacteristic(String, String, int, int, String, Optional<Supplier<CompletableFuture<Integer>>>, Optional<ExceptionalConsumer<Integer>>, Optional<Consumer<HomekitCharacteristicChangeCallback>>, Optional<Runnable>) - Constructor for class io.github.hapjava.characteristics.impl.base.IntegerCharacteristic
+
+
Default constructor
+
+
IntegerCharacteristic(String, String, String, int, int, String, Optional<Supplier<CompletableFuture<Integer>>>, Optional<ExceptionalConsumer<Integer>>, Optional<Consumer<HomekitCharacteristicChangeCallback>>, Optional<Runnable>) - Constructor for class io.github.hapjava.characteristics.impl.base.IntegerCharacteristic
+
+
Constructor for characteristics whose HAP format differs from the default "int", e.g.
+
+
InUseCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic indicates whether the service is in use.
+
+
InUseCharacteristic(Supplier<CompletableFuture<InUseEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.InUseCharacteristic
+
 
+
InUseEnum - Enum in io.github.hapjava.characteristics.impl.common
+
+
0 ”Not in use” 1 ”In use” 2-255 ”Reserved”
+
+
io.github.hapjava.accessories - package io.github.hapjava.accessories
+
+
Contains interfaces that can be implemented to represent an exposed accessory.
+
+
io.github.hapjava.accessories.optionalcharacteristic - package io.github.hapjava.accessories.optionalcharacteristic
+
 
+
io.github.hapjava.characteristics - package io.github.hapjava.characteristics
+
+
Contains the basic characteristic types that can be supplied over the HomeKit Accessory Protocol.
+
+
io.github.hapjava.characteristics.impl.accessoryinformation - package io.github.hapjava.characteristics.impl.accessoryinformation
+
 
+
io.github.hapjava.characteristics.impl.airpurifier - package io.github.hapjava.characteristics.impl.airpurifier
+
 
+
io.github.hapjava.characteristics.impl.airquality - package io.github.hapjava.characteristics.impl.airquality
+
 
+
io.github.hapjava.characteristics.impl.audio - package io.github.hapjava.characteristics.impl.audio
+
 
+
io.github.hapjava.characteristics.impl.base - package io.github.hapjava.characteristics.impl.base
+
 
+
io.github.hapjava.characteristics.impl.battery - package io.github.hapjava.characteristics.impl.battery
+
 
+
io.github.hapjava.characteristics.impl.carbondioxidesensor - package io.github.hapjava.characteristics.impl.carbondioxidesensor
+
 
+
io.github.hapjava.characteristics.impl.carbonmonoxidesensor - package io.github.hapjava.characteristics.impl.carbonmonoxidesensor
+
 
+
io.github.hapjava.characteristics.impl.common - package io.github.hapjava.characteristics.impl.common
+
 
+
io.github.hapjava.characteristics.impl.contactsensor - package io.github.hapjava.characteristics.impl.contactsensor
+
 
+
io.github.hapjava.characteristics.impl.fan - package io.github.hapjava.characteristics.impl.fan
+
 
+
io.github.hapjava.characteristics.impl.filtermaintenance - package io.github.hapjava.characteristics.impl.filtermaintenance
+
 
+
io.github.hapjava.characteristics.impl.garagedoor - package io.github.hapjava.characteristics.impl.garagedoor
+
 
+
io.github.hapjava.characteristics.impl.heatercooler - package io.github.hapjava.characteristics.impl.heatercooler
+
 
+
io.github.hapjava.characteristics.impl.humidifier - package io.github.hapjava.characteristics.impl.humidifier
+
 
+
io.github.hapjava.characteristics.impl.humiditysensor - package io.github.hapjava.characteristics.impl.humiditysensor
+
 
+
io.github.hapjava.characteristics.impl.inputsource - package io.github.hapjava.characteristics.impl.inputsource
+
 
+
io.github.hapjava.characteristics.impl.leaksensor - package io.github.hapjava.characteristics.impl.leaksensor
+
 
+
io.github.hapjava.characteristics.impl.lightbulb - package io.github.hapjava.characteristics.impl.lightbulb
+
 
+
io.github.hapjava.characteristics.impl.lightsensor - package io.github.hapjava.characteristics.impl.lightsensor
+
 
+
io.github.hapjava.characteristics.impl.lock - package io.github.hapjava.characteristics.impl.lock
+
 
+
io.github.hapjava.characteristics.impl.motionsensor - package io.github.hapjava.characteristics.impl.motionsensor
+
 
+
io.github.hapjava.characteristics.impl.occupancysensor - package io.github.hapjava.characteristics.impl.occupancysensor
+
 
+
io.github.hapjava.characteristics.impl.outlet - package io.github.hapjava.characteristics.impl.outlet
+
 
+
io.github.hapjava.characteristics.impl.securitysystem - package io.github.hapjava.characteristics.impl.securitysystem
+
 
+
io.github.hapjava.characteristics.impl.slat - package io.github.hapjava.characteristics.impl.slat
+
 
+
io.github.hapjava.characteristics.impl.smokesensor - package io.github.hapjava.characteristics.impl.smokesensor
+
 
+
io.github.hapjava.characteristics.impl.television - package io.github.hapjava.characteristics.impl.television
+
 
+
io.github.hapjava.characteristics.impl.televisionspeaker - package io.github.hapjava.characteristics.impl.televisionspeaker
+
 
+
io.github.hapjava.characteristics.impl.thermostat - package io.github.hapjava.characteristics.impl.thermostat
+
 
+
io.github.hapjava.characteristics.impl.valve - package io.github.hapjava.characteristics.impl.valve
+
 
+
io.github.hapjava.characteristics.impl.windowcovering - package io.github.hapjava.characteristics.impl.windowcovering
+
 
+
io.github.hapjava.server - package io.github.hapjava.server
+
 
+
io.github.hapjava.services - package io.github.hapjava.services
+
 
+
io.github.hapjava.services.impl - package io.github.hapjava.services.impl
+
 
+
IP_CAMERAS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
IRRIGATION - io.github.hapjava.characteristics.impl.valve.ValveTypeEnum
+
 
+
IrrigationSystemAccessory - Interface in io.github.hapjava.accessories
+
+
irrigation system accessory that controls several valves.
+
+
IrrigationSystemService - Class in io.github.hapjava.services.impl
+
+
An irrigation system service
+
+
IrrigationSystemService(IrrigationSystemAccessory) - Constructor for class io.github.hapjava.services.impl.IrrigationSystemService
+
 
+
IrrigationSystemService(ActiveCharacteristic, InUseCharacteristic, ProgramModeCharacteristic) - Constructor for class io.github.hapjava.services.impl.IrrigationSystemService
+
 
+
isActive() - Method in interface io.github.hapjava.accessories.AirPurifierAccessory
+
+
Mandatory: Retrieves the current active state of the fan'.
+
+
isActive() - Method in interface io.github.hapjava.accessories.FanAccessory
+
+
Mandatory: Retrieves the current active state of the fan'.
+
+
isActive() - Method in interface io.github.hapjava.accessories.FaucetAccessory
+
+
Mandatory: Retrieves the current active state of the faucet.
+
+
isActive() - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Mandatory: Retrieves the current active state of the Heater Cooler.
+
+
isActive() - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Mandatory: Retrieves the current active state of the humidifier/dehumidifier.
+
+
isActive() - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Retrieves the current active state of the TV.
+
+
isConfigured() - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Retrieves the flag whether input source is configured.
+
+
IsConfiguredCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic describes whether the service is configured for use.
+
+
IsConfiguredCharacteristic(Supplier<CompletableFuture<IsConfiguredEnum>>, ExceptionalConsumer<IsConfiguredEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.IsConfiguredCharacteristic
+
 
+
IsConfiguredEnum - Enum in io.github.hapjava.characteristics.impl.common
+
+
0 ”Not Configured” 1 ”Configured” 2-255 ”Reserved”
+
+
isMuted() - Method in interface io.github.hapjava.accessories.MicrophoneAccessory
+
+
Retrieves mute status.
+
+
isMuted() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithMute
+
+
Retrieves mute status.
+
+
isMuted() - Method in interface io.github.hapjava.accessories.SpeakerAccessory
+
+
Retrieves mute status.
+
+
isMuted() - Method in interface io.github.hapjava.accessories.TelevisionSpeakerAccessory
+
+
Retrieves mute status.
+
+
isOn() - Method in interface io.github.hapjava.accessories.BasicFanAccessory
+
+
Mandatory: Retrieves the current power state of the fan.
+
+
+ + + +

J

+
+
JAMMED - io.github.hapjava.characteristics.impl.lock.LockCurrentStateEnum
+
 
+
JAMMED - io.github.hapjava.characteristics.impl.slat.CurrentSlatStateEnum
+
 
+
+ + + +

L

+
+
LEAK_DETECTED - io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateEnum
+
 
+
LEAK_NOT_DETECTED - io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateEnum
+
 
+
LeakDetectedStateCharacteristic - Class in io.github.hapjava.characteristics.impl.leaksensor
+
+
This characteristic indicates if a sensor detected a leak (e.g.
+
+
LeakDetectedStateCharacteristic(Supplier<CompletableFuture<LeakDetectedStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateCharacteristic
+
 
+
LeakDetectedStateEnum - Enum in io.github.hapjava.characteristics.impl.leaksensor
+
+
0 ”Leak is not detected” 1 ”Leak is detected”
+
+
LeakSensorAccessory - Interface in io.github.hapjava.accessories
+
+
A leak sensor that reports whether a leak has been detected.
+
+
LeakSensorService - Class in io.github.hapjava.services.impl
+
+
This service describes a leak sensor.
+
+
LeakSensorService(LeakSensorAccessory) - Constructor for class io.github.hapjava.services.impl.LeakSensorService
+
 
+
LeakSensorService(LeakDetectedStateCharacteristic) - Constructor for class io.github.hapjava.services.impl.LeakSensorService
+
 
+
LightbulbAccessory - Interface in io.github.hapjava.accessories
+
+
A simple light with a binary state.
+
+
LightbulbService - Class in io.github.hapjava.services.impl
+
+
This service describes a light bulb.
+
+
LightbulbService(LightbulbAccessory) - Constructor for class io.github.hapjava.services.impl.LightbulbService
+
 
+
LightbulbService(OnCharacteristic) - Constructor for class io.github.hapjava.services.impl.LightbulbService
+
 
+
LIGHTING - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
LightSensorAccessory - Interface in io.github.hapjava.accessories
+
+
A light sensor that reports current ambient light level.
+
+
LightSensorService - Class in io.github.hapjava.services.impl
+
+
This service describes a light sensor.
+
+
LightSensorService(LightSensorAccessory) - Constructor for class io.github.hapjava.services.impl.LightSensorService
+
 
+
LightSensorService(CurrentAmbientLightLevelCharacteristic) - Constructor for class io.github.hapjava.services.impl.LightSensorService
+
 
+
listUsers() - Method in interface io.github.hapjava.server.HomekitAuthInfo
+
+
List all users which have been authenticated.
+
+
LockCurrentStateCharacteristic - Class in io.github.hapjava.characteristics.impl.lock
+
+
The current state of the physical security mechanism (e.g.
+
+
LockCurrentStateCharacteristic(Supplier<CompletableFuture<LockCurrentStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.lock.LockCurrentStateCharacteristic
+
 
+
LockCurrentStateEnum - Enum in io.github.hapjava.characteristics.impl.lock
+
+
0 ”Unsecured” 1 ”Secured” 2 ”Jammed” 3 ”Unknown” 4-255 ”Reserved”
+
+
LockMechanismAccessory - Interface in io.github.hapjava.accessories
+
+
Lock mechanism with current and target state.
+
+
LockMechanismService - Class in io.github.hapjava.services.impl
+
+
The Lock Mechanism Service describes the physical lock mechanism on a device.
+
+
LockMechanismService(LockMechanismAccessory) - Constructor for class io.github.hapjava.services.impl.LockMechanismService
+
 
+
LockMechanismService(LockCurrentStateCharacteristic, LockTargetStateCharacteristic) - Constructor for class io.github.hapjava.services.impl.LockMechanismService
+
 
+
LockPhysicalControlsCharacteristic - Class in io.github.hapjava.characteristics.impl.fan
+
+
This characteristic describes physical controls on an accessory (eg.
+
+
LockPhysicalControlsCharacteristic(Supplier<CompletableFuture<LockPhysicalControlsEnum>>, ExceptionalConsumer<LockPhysicalControlsEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsCharacteristic
+
 
+
LockPhysicalControlsEnum - Enum in io.github.hapjava.characteristics.impl.fan
+
+
0 ”Control lock disabled” 1 ”Control lock enabled”
+
+
LOCKS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
LockTargetStateCharacteristic - Class in io.github.hapjava.characteristics.impl.lock
+
+
The target state of the physical security mechanism (e.g.
+
+
LockTargetStateCharacteristic(Supplier<CompletableFuture<LockTargetStateEnum>>, ExceptionalConsumer<LockTargetStateEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.lock.LockTargetStateCharacteristic
+
 
+
LockTargetStateEnum - Enum in io.github.hapjava.characteristics.impl.lock
+
+
0 ”Unsecured” 1 ”Secured” 4-255 ”Reserved”
+
+
LONG_PRESS - io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEnum
+
 
+
LOW - io.github.hapjava.characteristics.impl.battery.StatusLowBatteryEnum
+
 
+
+ + + +

M

+
+
makeBuilder(int) - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
+
+
makeBuilder(int) - Method in class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
+
Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
+
+
makeBuilder(int) - Method in class io.github.hapjava.characteristics.impl.base.FloatCharacteristic
+
+
Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
+
+
makeBuilder(int) - Method in class io.github.hapjava.characteristics.impl.base.IntegerCharacteristic
+
+
Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
+
+
makeBuilder(int) - Method in class io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic
+
+
Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
+
+
makeBuilder(int) - Method in class io.github.hapjava.characteristics.impl.base.StringCharacteristic
+
+
Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
+
+
MANUAL - io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateEnum
+
 
+
MANUAL - io.github.hapjava.characteristics.impl.fan.TargetFanStateEnum
+
 
+
ManufacturerCharacteristic - Class in io.github.hapjava.characteristics.impl.accessoryinformation
+
+
This characteristic contains the name of the company whose brand will appear on the accessory
+
+
ManufacturerCharacteristic(Supplier<CompletableFuture<String>>) - Constructor for class io.github.hapjava.characteristics.impl.accessoryinformation.ManufacturerCharacteristic
+
 
+
MicrophoneAccessory - Interface in io.github.hapjava.accessories
+
+
Microphone accessory with mute state.
+
+
MicrophoneService - Class in io.github.hapjava.services.impl
+
+
A Microphone service is used to control the sourcing of the input audio – primarily through a + microphone.
+
+
MicrophoneService(MicrophoneAccessory) - Constructor for class io.github.hapjava.services.impl.MicrophoneService
+
 
+
MicrophoneService(MuteCharacteristic) - Constructor for class io.github.hapjava.services.impl.MicrophoneService
+
 
+
ModelCharacteristic - Class in io.github.hapjava.characteristics.impl.accessoryinformation
+
+
This characteristic contains the manufacturer-specific model of the accessory
+
+
ModelCharacteristic(Supplier<CompletableFuture<String>>) - Constructor for class io.github.hapjava.characteristics.impl.accessoryinformation.ModelCharacteristic
+
 
+
MotionDetectedCharacteristic - Class in io.github.hapjava.characteristics.impl.motionsensor
+
+
This characteristic indicates if motion (e.g.
+
+
MotionDetectedCharacteristic(Supplier<CompletableFuture<Boolean>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.motionsensor.MotionDetectedCharacteristic
+
 
+
MotionSensorAccessory - Interface in io.github.hapjava.accessories
+
+
A motion sensor that reports whether motion has been detected.
+
+
MotionSensorService - Class in io.github.hapjava.services.impl
+
+
This service describes a motion sensor.
+
+
MotionSensorService(MotionSensorAccessory) - Constructor for class io.github.hapjava.services.impl.MotionSensorService
+
 
+
MotionSensorService(MotionDetectedCharacteristic) - Constructor for class io.github.hapjava.services.impl.MotionSensorService
+
 
+
MuteCharacteristic - Class in io.github.hapjava.characteristics.impl.audio
+
+
Mute characteristic to control audio input or output accessory.
+
+
MuteCharacteristic(Supplier<CompletableFuture<Boolean>>, ExceptionalConsumer<Boolean>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.audio.MuteCharacteristic
+
 
+
+ + + +

N

+
+
NameCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic describes a name and must not be a null value.
+
+
NameCharacteristic(Supplier<CompletableFuture<String>>) - Constructor for class io.github.hapjava.characteristics.impl.common.NameCharacteristic
+
 
+
NEXT_TRACK - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
NIGHT_ARM - io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateEnum
+
+
The home is occupied and residents are sleeping.
+
+
NIGHT_ARM - io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateEnum
+
+
Arm the system when the home is occupied and residents are sleeping.
+
+
NitrogenDioxideDensityCharacteristic - Class in io.github.hapjava.characteristics.impl.airquality
+
+
This characteristic contains the current NO2 density in micrograms/m3.
+
+
NitrogenDioxideDensityCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.NitrogenDioxideDensityCharacteristic
+
 
+
NitrogenDioxideDensityCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.NitrogenDioxideDensityCharacteristic
+
 
+
NO_ALARM - io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeEnum
+
+
Alarm conditions are cleared
+
+
NO_CHANGE_NEEDED - io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationEnum
+
 
+
NO_FAULT - io.github.hapjava.characteristics.impl.common.StatusFaultEnum
+
 
+
NO_FLAGS - io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsEnum
+
 
+
NO_SCHEDULED - io.github.hapjava.characteristics.impl.common.ProgramModeEnum
+
 
+
NONE - io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeEnum
+
 
+
NORMAL - io.github.hapjava.characteristics.impl.battery.StatusLowBatteryEnum
+
 
+
NORMAL - io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedEnum
+
 
+
NORMAL - io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedEnum
+
 
+
NOT_CHARABLE - io.github.hapjava.characteristics.impl.battery.ChargingStateEnum
+
 
+
NOT_CHARGING - io.github.hapjava.characteristics.impl.battery.ChargingStateEnum
+
 
+
NOT_CONFIGURED - io.github.hapjava.characteristics.impl.common.IsConfiguredEnum
+
 
+
NOT_DETECTED - io.github.hapjava.characteristics.impl.contactsensor.ContactStateEnum
+
 
+
NOT_DETECTED - io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedEnum
+
 
+
NOT_DETECTED - io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedStateEnum
+
 
+
NOT_DISCOVERABLE - io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeEnum
+
 
+
NOT_IN_USE - io.github.hapjava.characteristics.impl.common.InUseEnum
+
 
+
NOT_TAMPERED - io.github.hapjava.characteristics.impl.common.StatusTamperedEnum
+
 
+
+ + + +

O

+
+
ObstructionDetectedCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic describes the current state of an obstruction sensor.
+
+
ObstructionDetectedCharacteristic(Supplier<CompletableFuture<Boolean>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.ObstructionDetectedCharacteristic
+
 
+
OccupancyDetectedCharacteristic - Class in io.github.hapjava.characteristics.impl.occupancysensor
+
+
This characteristic indicates if occupancy was detected (e.g.
+
+
OccupancyDetectedCharacteristic(Supplier<CompletableFuture<OccupancyDetectedEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedCharacteristic
+
 
+
OccupancyDetectedEnum - Enum in io.github.hapjava.characteristics.impl.occupancysensor
+
+
0 ”Occupancy is not detected” 1 ”Occupancy is detected”
+
+
OccupancySensorAccessory - Interface in io.github.hapjava.accessories
+
+
An occupancy sensor that reports whether occupancy has been detected.
+
+
OccupancySensorService - Class in io.github.hapjava.services.impl
+
+
This service describes an occupancy sensor.
+
+
OccupancySensorService(OccupancySensorAccessory) - Constructor for class io.github.hapjava.services.impl.OccupancySensorService
+
 
+
OccupancySensorService(OccupancyDetectedCharacteristic) - Constructor for class io.github.hapjava.services.impl.OccupancySensorService
+
 
+
OFF - io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateEnum
+
 
+
OFF - io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateEnum
+
 
+
OnCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic represents the states for “on” and “off”.
+
+
OnCharacteristic(Supplier<CompletableFuture<Boolean>>, ExceptionalConsumer<Boolean>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.OnCharacteristic
+
 
+
OPEN - io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateEnum
+
 
+
OPEN - io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateEnum
+
 
+
OPENING - io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateEnum
+
 
+
OTHER - io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum
+
 
+
OTHER - io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
OTHER - io.github.hapjava.characteristics.impl.television.PictureModeEnum
+
 
+
OTHER - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
OutletAccessory - Interface in io.github.hapjava.accessories
+
+
A power outlet with boolean power and usage states.
+
+
OutletInUseCharacteristic - Class in io.github.hapjava.characteristics.impl.outlet
+
+
This characteristic describes if the power outlet has an appliance physically plugged in.
+
+
OutletInUseCharacteristic(Supplier<CompletableFuture<Boolean>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.outlet.OutletInUseCharacteristic
+
 
+
OUTLETS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
OutletService - Class in io.github.hapjava.services.impl
+
+
This service describes a power outlet.
+
+
OutletService(OutletAccessory) - Constructor for class io.github.hapjava.services.impl.OutletService
+
 
+
OutletService(OnCharacteristic, OutletInUseCharacteristic) - Constructor for class io.github.hapjava.services.impl.OutletService
+
 
+
OzoneDensityCharacteristic - Class in io.github.hapjava.characteristics.impl.airquality
+
+
This characteristic contains the current ozone density in micrograms/m3.
+
+
OzoneDensityCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.OzoneDensityCharacteristic
+
 
+
OzoneDensityCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.OzoneDensityCharacteristic
+
 
+
+ + + +

P

+
+
PAUSE - io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum
+
 
+
PAUSE - io.github.hapjava.characteristics.impl.television.TargetMediaStateEnum
+
 
+
PictureModeCharacteristic - Class in io.github.hapjava.characteristics.impl.television
+
+
This characteristic retrieves / sets picture mode.
+
+
PictureModeCharacteristic(Supplier<CompletableFuture<PictureModeEnum>>, ExceptionalConsumer<PictureModeEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.television.PictureModeCharacteristic
+
 
+
PictureModeEnum - Enum in io.github.hapjava.characteristics.impl.television
+
+
0 ”Other” 1 ”Standard” 2 "Calibrated" 3 "CalibratedDark" 4 "Vivid" 5 "Game" 6 "Computer" 7 + "Custom" 8-255 ”Reserved”
+
+
PLAY - io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum
+
 
+
PLAY - io.github.hapjava.characteristics.impl.television.TargetMediaStateEnum
+
 
+
PLAY_PAUSE - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
PLAYBACK - io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum
+
 
+
PM10DensityCharacteristic - Class in io.github.hapjava.characteristics.impl.airquality
+
+
This characteristic contains the current PM10 micrometer particulate density in micrograms/m3.
+
+
PM10DensityCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.PM10DensityCharacteristic
+
 
+
PM10DensityCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.PM10DensityCharacteristic
+
 
+
PM25DensityCharacteristic - Class in io.github.hapjava.characteristics.impl.airquality
+
+
This characteristic contains the current PM2.5 micrometer particulate density in micrograms/m3.
+
+
PM25DensityCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.PM25DensityCharacteristic
+
 
+
PM25DensityCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.PM25DensityCharacteristic
+
 
+
POOR - io.github.hapjava.characteristics.impl.airquality.AirQualityEnum
+
 
+
PositionStateCharacteristic - Class in io.github.hapjava.characteristics.impl.windowcovering
+
+
This characteristic describes the state of the position of accessories.
+
+
PositionStateCharacteristic(Supplier<CompletableFuture<PositionStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.windowcovering.PositionStateCharacteristic
+
 
+
PositionStateEnum - Enum in io.github.hapjava.characteristics.impl.windowcovering
+
+
0 ”Going to the minimum value specified in metadata” 1 ”Going to the maximum value specified in + metadata” 2 ”Stopped”
+
+
PowerModeCharacteristic - Class in io.github.hapjava.characteristics.impl.television
+
+
characteristic sets power mode.
+
+
PowerModeCharacteristic(ExceptionalConsumer<PowerModeEnum>) - Constructor for class io.github.hapjava.characteristics.impl.television.PowerModeCharacteristic
+
 
+
PowerModeEnum - Enum in io.github.hapjava.characteristics.impl.television
+
+
0 ”Show” 1 ”Hide” 2-255 ”Reserved”
+
+
PREV_TRACK - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
PROGRAMMABLE_SWITCHES - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
ProgrammableSwitchEnum - Enum in io.github.hapjava.characteristics.impl.common
+
+
0 ”Single Press” 1 ”Double Press” 2 ”Long Press” 3-255 ”Reserved”
+
+
ProgrammableSwitchEventCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic describes an event generated by a programmable switch.
+
+
ProgrammableSwitchEventCharacteristic(ProgrammableSwitchEnum[], Supplier<CompletableFuture<ProgrammableSwitchEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEventCharacteristic
+
 
+
ProgrammableSwitchEventCharacteristic(Supplier<CompletableFuture<ProgrammableSwitchEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEventCharacteristic
+
 
+
ProgramModeCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic describes if there are programs scheduled on the accessory.
+
+
ProgramModeCharacteristic(Supplier<CompletableFuture<ProgramModeEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.ProgramModeCharacteristic
+
 
+
ProgramModeEnum - Enum in io.github.hapjava.characteristics.impl.common
+
+
0 ”No Programs Scheduled” 1 ”Program Scheduled” 2 ”Program Scheduled, currently overriden to + manual mode”
+
+
PURIFYING_AIR - io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierStateEnum
+
 
+
+ + + +

R

+
+
RANGE_EXTENDER - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
RECORDING - io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum
+
 
+
RELATIVE - io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeEnum
+
 
+
RELATIVE_WITH_CURRENT - io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeEnum
+
 
+
RemainingDurationCharacteristic - Class in io.github.hapjava.characteristics.impl.valve
+
+
This characteristic describes the remaining duration of the active status of an accessory, e.g.
+
+
RemainingDurationCharacteristic(int, int, Supplier<CompletableFuture<Integer>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.valve.RemainingDurationCharacteristic
+
 
+
RemainingDurationCharacteristic(Supplier<CompletableFuture<Integer>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.valve.RemainingDurationCharacteristic
+
 
+
RemoteKeyCharacteristic - Class in io.github.hapjava.characteristics.impl.television
+
+
This characteristic sends information about pressed key on tv remote.
+
+
RemoteKeyCharacteristic(ExceptionalConsumer<RemoteKeyEnum>) - Constructor for class io.github.hapjava.characteristics.impl.television.RemoteKeyCharacteristic
+
 
+
RemoteKeyEnum - Enum in io.github.hapjava.characteristics.impl.television
+
 
+
REMOTES - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
removeUser(String) - Method in interface io.github.hapjava.server.HomekitAuthInfo
+
+
Called when an iOS device needs to remove an existing pairing.
+
+
REQUIRES_ADDITIONAL_SETUP - io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsEnum
+
 
+
resetConnections() - Method in interface io.github.hapjava.server.HomekitWebHandler
+
 
+
resetFilterIndication(Integer) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithResetFilterIndication
+
+
Request to reset the filter level
+
+
ResetFilterIndicationCharacteristic - Class in io.github.hapjava.characteristics.impl.filtermaintenance
+
 
+
ResetFilterIndicationCharacteristic(ExceptionalConsumer<Integer>) - Constructor for class io.github.hapjava.characteristics.impl.filtermaintenance.ResetFilterIndicationCharacteristic
+
 
+
REWIND - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
RotationDirectionCharacteristic - Class in io.github.hapjava.characteristics.impl.fan
+
+
This characteristic describes the direction of rotation of a fan.
+
+
RotationDirectionCharacteristic(Supplier<CompletableFuture<RotationDirectionEnum>>, ExceptionalConsumer<RotationDirectionEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.fan.RotationDirectionCharacteristic
+
 
+
RotationDirectionEnum - Enum in io.github.hapjava.characteristics.impl.fan
+
+
0 ”Clockwise” 1 ”Counter-clockwise” 2-255 ”Reserved”
+
+
RotationSpeedCharacteristic - Class in io.github.hapjava.characteristics.impl.fan
+
+
This characteristic describes the rotation speed of a fan.
+
+
RotationSpeedCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.fan.RotationSpeedCharacteristic
+
 
+
RotationSpeedCharacteristic(Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.fan.RotationSpeedCharacteristic
+
 
+
ROUTER - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
+ + + +

S

+
+
S_VIDEO - io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
SaturationCharacteristic - Class in io.github.hapjava.characteristics.impl.lightbulb
+
+
This characteristic describes color saturation.
+
+
SaturationCharacteristic(Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.lightbulb.SaturationCharacteristic
+
 
+
SCHEDULED - io.github.hapjava.characteristics.impl.common.ProgramModeEnum
+
 
+
SCHEDULED_MANUAL - io.github.hapjava.characteristics.impl.common.ProgramModeEnum
+
 
+
SECURED - io.github.hapjava.characteristics.impl.lock.LockCurrentStateEnum
+
 
+
SECURED - io.github.hapjava.characteristics.impl.lock.LockTargetStateEnum
+
 
+
SECURITY_SYSTEMS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
SecuritySystemAccessory - Interface in io.github.hapjava.accessories
+
+
A security system that can be armed so that when a contact sensor is opened or a motion sensor + detects movement, then a siren could be fired off.
+
+
SecuritySystemAlarmTypeCharacteristic - Class in io.github.hapjava.characteristics.impl.securitysystem
+
+
This characteristic describes the type of alarm triggered by a security system.
+
+
SecuritySystemAlarmTypeCharacteristic(Supplier<CompletableFuture<SecuritySystemAlarmTypeEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeCharacteristic
+
 
+
SecuritySystemAlarmTypeEnum - Enum in io.github.hapjava.characteristics.impl.securitysystem
+
+
Type of alarm of a SecuritySystemAccessory.
+
+
SecuritySystemService - Class in io.github.hapjava.services.impl
+
+
This service describes a security system service.
+
+
SecuritySystemService(SecuritySystemAccessory) - Constructor for class io.github.hapjava.services.impl.SecuritySystemService
+
 
+
SecuritySystemService(CurrentSecuritySystemStateCharacteristic, TargetSecuritySystemStateCharacteristic) - Constructor for class io.github.hapjava.services.impl.SecuritySystemService
+
 
+
SELECT - io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
 
+
SENSORS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
SerialNumberCharacteristic - Class in io.github.hapjava.characteristics.impl.accessoryinformation
+
+
This characteristic contains the manufacturer-specific serial number of the accessory.
+
+
SerialNumberCharacteristic(Supplier<CompletableFuture<String>>) - Constructor for class io.github.hapjava.characteristics.impl.accessoryinformation.SerialNumberCharacteristic
+
 
+
Service - Interface in io.github.hapjava.services
+
+
Interface for a Service offered by an accessory.
+
+
ServiceLabelIndexCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic is used to identify the index of the label according to ServiceLabelNamespaceCharacteristic
+
+
ServiceLabelIndexCharacteristic(Supplier<CompletableFuture<Integer>>) - Constructor for class io.github.hapjava.characteristics.impl.common.ServiceLabelIndexCharacteristic
+
 
+
ServiceLabelNamespaceCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic describes the naming schema for an accessory.
+
+
ServiceLabelNamespaceCharacteristic(Supplier<CompletableFuture<ServiceLabelNamespaceEnum>>) - Constructor for class io.github.hapjava.characteristics.impl.common.ServiceLabelNamespaceCharacteristic
+
 
+
ServiceLabelNamespaceEnum - Enum in io.github.hapjava.characteristics.impl.common
+
+
0 ”Dots.
+
+
ServiceLabelService - Class in io.github.hapjava.services.impl
+
+
This service describes label scheme.
+
+
ServiceLabelService(ServiceLabelNamespaceCharacteristic) - Constructor for class io.github.hapjava.services.impl.ServiceLabelService
+
 
+
setActive(boolean) - Method in interface io.github.hapjava.accessories.AirPurifierAccessory
+
+
Sets the active state of the fan
+
+
setActive(boolean) - Method in interface io.github.hapjava.accessories.FanAccessory
+
+
Sets the active state of the fan
+
+
setActive(boolean) - Method in interface io.github.hapjava.accessories.FaucetAccessory
+
+
Sets the active state of the faucet
+
+
setActive(boolean) - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Sets the active state of the Heater Cooler
+
+
setActive(boolean) - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Sets the active state of the humidifier/dehumidifier
+
+
setActive(boolean) - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Sets the active state of the TV
+
+
setActive(ActiveEnum) - Method in interface io.github.hapjava.accessories.IrrigationSystemAccessory
+
+
Sets the irrigation active state
+
+
setActive(ActiveEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithActive
+
+
Set the active state (see ActiveEnum for supported values).
+
+
setActiveIdentifier(Integer) - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Sets the active identifier
+
+
setAirPlayEnable(Integer) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAirPlayEnable
+
+
Sets the AirPlay enable state
+
+
setBrightness(Integer) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithBrightness
+
+
Sets the current brightness of the light
+
+
setClosedCaptions(ClosedCaptionsEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithClosedCaptions
+
+
Set the closed captions state (see ClosedCaptionsEnum for supported values).
+
+
setColorTemperature(Integer) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColorTemperature
+
+
Sets the color temperature
+
+
setConfiguredName(String) - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Sets the configured name.
+
+
setConfiguredName(String) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithConfiguredName
+
+
Sets the configured name
+
+
setConfiguredName(String) - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Sets the configured name
+
+
setCoolingThresholdTemperature(Double) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCoolingThresholdTemperature
+
+
Sets the temperature above which the thermostat should begin cooling.
+
+
SetDurationCharacteristic - Class in io.github.hapjava.characteristics.impl.valve
+
+
This characteristic describes the duration, how long an accessory should be set to "InUse".
+
+
SetDurationCharacteristic(int, int, Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.valve.SetDurationCharacteristic
+
 
+
SetDurationCharacteristic(Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.valve.SetDurationCharacteristic
+
 
+
setHeatingThresholdTemperature(Double) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHeatingThresholdTemperature
+
+
Sets the temperature below which the thermostat should begin heating.
+
+
setHoldPosition(boolean) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHoldPosition
+
+
Sets the hold position state
+
+
setHue(Double) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColor
+
+
Sets the current hue of the light
+
+
setHumidityThreshold(Double) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityDehumidifierThreshold
+
+
Sets the humidity threshold above which the dehumidifier should be turned on.
+
+
setHumidityThreshold(Double) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityHumidifierThreshold
+
+
Sets the humidity threshold above which the humidifier should be turned on.
+
+
setIsConfigured(IsConfiguredEnum) - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
set the flag whether input source is configured.
+
+
setIsConfigured(IsConfiguredEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIsConfigured
+
+
Set the isConfigured (NOT_CONFIGURED, CONFIGURED).
+
+
setJsonValue(JsonObjectBuilder, T) - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Writes the value key to the serialized characteristic
+
+
setLightbulbPowerState(boolean) - Method in interface io.github.hapjava.accessories.LightbulbAccessory
+
+
Sets the binary state of the light
+
+
setLockControls(LockPhysicalControlsEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPhysicalControlsLock
+
+
Set the lock controls (DISABLED, ENABLED).
+
+
setLockTargetState(LockTargetStateEnum) - Method in interface io.github.hapjava.accessories.LockMechanismAccessory
+
+
set lock target state the lock target state.
+
+
setLockTargetState(LockTargetStateEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockTargetState
+
+
Sets the lock target state
+
+
setMute(boolean) - Method in interface io.github.hapjava.accessories.MicrophoneAccessory
+
+
Sets the mute status
+
+
setMute(boolean) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithMute
+
+
Sets the mute status
+
+
setMute(boolean) - Method in interface io.github.hapjava.accessories.SpeakerAccessory
+
+
Sets the mute status
+
+
setMute(boolean) - Method in interface io.github.hapjava.accessories.TelevisionSpeakerAccessory
+
+
Sets the mute status
+
+
setOn(boolean) - Method in interface io.github.hapjava.accessories.BasicFanAccessory
+
+
Sets the active state of the fan
+
+
setPictureMode(PictureModeEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPictureMode
+
+
Set the picture mode (see PictureModeEnum for supported values).
+
+
setPowerMode(PowerModeEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPowerMode
+
+
Set the power mode.
+
+
setPowerState(boolean) - Method in interface io.github.hapjava.accessories.OutletAccessory
+
+
Sets the binary state of the outlet's power.
+
+
setRemoteKey(RemoteKeyEnum) - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Sends the remote key.
+
+
setRotationDirection(RotationDirectionEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationDirection
+
+
Sets the rotation direction
+
+
setRotationSpeed(Double) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationSpeed
+
+
Sets the speed of the rotation
+
+
setSaturation(Double) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColor
+
+
Sets the saturation of the light.
+
+
setSetDuration(int) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithDuration
+
+
Sets the duration for which the service should run.
+
+
setSwingMode(SwingModeEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSwingMode
+
+
Set the swing mode (DISABLED, ENABLED).
+
+
setSwitchState(boolean) - Method in interface io.github.hapjava.accessories.SwitchAccessory
+
+
Sets the binary state of the switch
+
+
setTargetDoorState(TargetDoorStateEnum) - Method in interface io.github.hapjava.accessories.GarageDoorOpenerAccessory
+
+
Sets the targeted state of the door.
+
+
setTargetFanState(TargetFanStateEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFanState
+
+
Set the target state of the fan (MANUAL, AUTO).
+
+
setTargetHeaterCoolerState(TargetHeaterCoolerStateEnum) - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
set heater cooler target state the lock target state.
+
+
setTargetHorizontalTiltAngle(int) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetHorizontalTilting
+
+
Sets the target position
+
+
setTargetHumidifierDehumidifierState(TargetHumidifierDehumidifierStateEnum) - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
set humidifier/dehumidifier target state the lock target state.
+
+
setTargetMediaState(TargetMediaStateEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetMediaState
+
+
Set the target media state (see TargetMediaStateEnum for supported values).
+
+
setTargetMediaState(TargetMediaStateEnum) - Method in interface io.github.hapjava.accessories.SmartSpeakerAccessory
+
+
Set the target media state (see TargetMediaStateEnum for supported values).
+
+
setTargetPosition(int) - Method in interface io.github.hapjava.accessories.WindowCoveringAccessory
+
+
Sets the target position
+
+
setTargetPosition(Integer) - Method in interface io.github.hapjava.accessories.DoorAccessory
+
+
Sets the targeted state of the door.
+
+
setTargetPosition(Integer) - Method in interface io.github.hapjava.accessories.WindowAccessory
+
+
Sets the targeted state of the door.
+
+
setTargetRelativeHumidity(Double) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetRelativeHumidity
+
+
Sets the target relative humidity.
+
+
setTargetSecuritySystemState(TargetSecuritySystemStateEnum) - Method in interface io.github.hapjava.accessories.SecuritySystemAccessory
+
+
Sets the state of the security system.
+
+
setTargetState(TargetAirPurifierStateEnum) - Method in interface io.github.hapjava.accessories.AirPurifierAccessory
+
+
set target state the air purifier target state.
+
+
setTargetState(TargetHeatingCoolingStateEnum) - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Sets the TargetHeatingCoolingStateEnum of the thermostat.
+
+
setTargetTemperature(Double) - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Sets the target temperature.
+
+
setTargetTiltAngle(int) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetTilting
+
+
Sets the target tilt angle
+
+
setTargetVerticalTiltAngle(int) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVerticalTilting
+
+
Sets the target position
+
+
setTargetVerticalTiltAngle(int) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVerticalTilting
+
+
Sets the target position
+
+
setTargetVisibilityState(TargetVisibilityStateEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVisibilityState
+
+
Sets the target visibility state
+
+
setTemperatureDisplayUnit(TemperatureDisplayUnitEnum) - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Sets the temperature unit.
+
+
setTemperatureDisplayUnits(TemperatureDisplayUnitEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTemperatureDisplayUnits
+
+
Sets the temperature display units
+
+
setter - Variable in class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
 
+
setValue(Boolean) - Method in class io.github.hapjava.characteristics.impl.base.BooleanCharacteristic
+
 
+
setValue(Boolean, String) - Method in class io.github.hapjava.characteristics.impl.base.BooleanCharacteristic
+
 
+
setValue(Double) - Method in class io.github.hapjava.characteristics.impl.base.FloatCharacteristic
+
 
+
setValue(Double, String) - Method in class io.github.hapjava.characteristics.impl.base.FloatCharacteristic
+
 
+
setValue(Integer) - Method in class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
 
+
setValue(Integer) - Method in class io.github.hapjava.characteristics.impl.base.IntegerCharacteristic
+
 
+
setValue(Integer, String) - Method in class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
 
+
setValue(Integer, String) - Method in class io.github.hapjava.characteristics.impl.base.IntegerCharacteristic
+
 
+
setValue(String) - Method in class io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic
+
+
Update the characteristic value using a new value supplied by the connected client.
+
+
setValue(String) - Method in class io.github.hapjava.characteristics.impl.base.StringCharacteristic
+
+
Update the characteristic value using a new value supplied by the connected client.
+
+
setValue(String, String) - Method in class io.github.hapjava.characteristics.impl.base.StringCharacteristic
+
+
Update the characteristic value using a new value supplied by the connected client.
+
+
setValue(JsonValue) - Method in interface io.github.hapjava.characteristics.Characteristic
+
+
Invoked by the remote client, this updates the current value of the characteristic.
+
+
setValue(JsonValue) - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Invoked by the remote client, this updates the current value of the characteristic.
+
+
setValue(JsonValue, String) - Method in interface io.github.hapjava.characteristics.Characteristic
+
+
Invoked by the remote client, this updates the current value of the characteristic.
+
+
setValue(JsonValue, String) - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Invoked by the remote client, this updates the current value of the characteristic.
+
+
setValue(T) - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Update the characteristic value using a new value supplied by the connected client.
+
+
setValue(T) - Method in class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
 
+
setValue(T, String) - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Update the characteristic value using a new value supplied by the connected client.
+
+
setValue(T, String) - Method in class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
+
 
+
setValveActive(ActiveEnum) - Method in interface io.github.hapjava.accessories.ValveAccessory
+
+
Sets the valve active state
+
+
setVolume(Integer) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolume
+
+
Sets the current volume
+
+
setVolumeSelector(VolumeSelectorEnum) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolumeSelector
+
+
Sets the volume selector
+
+
SHOW - io.github.hapjava.characteristics.impl.television.PowerModeEnum
+
 
+
SHOWER - io.github.hapjava.characteristics.impl.valve.ValveTypeEnum
+
 
+
SHOWER_SYSTEMS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
SHOWN - io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateEnum
+
 
+
SHOWN - io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateEnum
+
 
+
SINGLE_PRESS - io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEnum
+
 
+
SlatAccessory - Interface in io.github.hapjava.accessories
+
+
A slat accessory which tilts on a vertical or a horizontal axis.
+
+
SlatService - Class in io.github.hapjava.services.impl
+
+
This service describes a slat
+
+
SlatService(SlatAccessory) - Constructor for class io.github.hapjava.services.impl.SlatService
+
 
+
SlatService(CurrentSlatStateCharacteristic, SlatTypeCharacteristic) - Constructor for class io.github.hapjava.services.impl.SlatService
+
 
+
SlatTypeCharacteristic - Class in io.github.hapjava.characteristics.impl.slat
+
+
This characteristic describes the type of the slats.
+
+
SlatTypeCharacteristic(Supplier<CompletableFuture<SlatTypeEnum>>) - Constructor for class io.github.hapjava.characteristics.impl.slat.SlatTypeCharacteristic
+
 
+
SlatTypeEnum - Enum in io.github.hapjava.characteristics.impl.slat
+
+
0 ”Horizontal” 1 ”Vertical”
+
+
SleepDiscoveryModeCharacteristic - Class in io.github.hapjava.characteristics.impl.television
+
+
This characteristic indicates whether the service can be discovered.
+
+
SleepDiscoveryModeCharacteristic(Supplier<CompletableFuture<SleepDiscoveryModeEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeCharacteristic
+
 
+
SleepDiscoveryModeEnum - Enum in io.github.hapjava.characteristics.impl.television
+
+
0 ”Not discoverable” 1 ”Always discoverable” 2-255 ”Reserved”
+
+
SmartSpeakerAccessory - Interface in io.github.hapjava.accessories
+
+
Smart Speaker accessory.
+
+
SmartSpeakerService - Class in io.github.hapjava.services.impl
+
+
A smart speaker service can be used to control the audio output settings on a speaker device.
+
+
SmartSpeakerService(SmartSpeakerAccessory) - Constructor for class io.github.hapjava.services.impl.SmartSpeakerService
+
 
+
SmartSpeakerService(CurrentMediaStateCharacteristic, TargetMediaStateCharacteristic) - Constructor for class io.github.hapjava.services.impl.SmartSpeakerService
+
 
+
SmokeDetectedCharacteristic - Class in io.github.hapjava.characteristics.impl.smokesensor
+
+
This characteristic indicates if a sensor detects smoke.
+
+
SmokeDetectedCharacteristic(Supplier<CompletableFuture<SmokeDetectedStateEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedCharacteristic
+
 
+
SmokeDetectedStateEnum - Enum in io.github.hapjava.characteristics.impl.smokesensor
+
+
0 ”Smoke is not detected” 1 ”Smoke is detected”
+
+
SmokeSensorAccessory - Interface in io.github.hapjava.accessories
+
+
A smoke sensor reports whether smoke has been detected or not.
+
+
SmokeSensorService - Class in io.github.hapjava.services.impl
+
+
This service describes a Smoke detector Sensor.
+
+
SmokeSensorService(SmokeSensorAccessory) - Constructor for class io.github.hapjava.services.impl.SmokeSensorService
+
 
+
SmokeSensorService(SmokeDetectedCharacteristic) - Constructor for class io.github.hapjava.services.impl.SmokeSensorService
+
 
+
SPEAKER - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
SpeakerAccessory - Interface in io.github.hapjava.accessories
+
+
Speaker accessory.
+
+
SpeakerService - Class in io.github.hapjava.services.impl
+
+
A Speaker service can be used to control the audio output settings on a speaker device.
+
+
SpeakerService(SpeakerAccessory) - Constructor for class io.github.hapjava.services.impl.SpeakerService
+
 
+
SpeakerService(MuteCharacteristic) - Constructor for class io.github.hapjava.services.impl.SpeakerService
+
 
+
SPRINKLERS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
STANDARD - io.github.hapjava.characteristics.impl.television.PictureModeEnum
+
 
+
start(HomekitClientConnectionFactory) - Method in interface io.github.hapjava.server.HomekitWebHandler
+
 
+
StatelessProgrammableSwitchAccessory - Interface in io.github.hapjava.accessories
+
+
The Stateless Programmable Switch accessory
+
+
StatelessProgrammableSwitchService - Class in io.github.hapjava.services.impl
+
+
This service describes a stateless programmable switch.
+
+
StatelessProgrammableSwitchService(StatelessProgrammableSwitchAccessory) - Constructor for class io.github.hapjava.services.impl.StatelessProgrammableSwitchService
+
 
+
StatelessProgrammableSwitchService(ProgrammableSwitchEventCharacteristic) - Constructor for class io.github.hapjava.services.impl.StatelessProgrammableSwitchService
+
 
+
StaticStringCharacteristic - Class in io.github.hapjava.characteristics.impl.base
+
+
A characteristic that provides an immutable String value.
+
+
StaticStringCharacteristic(String, String, Optional<Supplier<CompletableFuture<String>>>, Optional<Consumer<HomekitCharacteristicChangeCallback>>, Optional<Runnable>) - Constructor for class io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic
+
+
Default constructor
+
+
StatusActiveCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic describes current working (active and functional) status of accessory.
+
+
StatusActiveCharacteristic(Supplier<CompletableFuture<Boolean>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic
+
 
+
StatusFaultCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic describes fault status.
+
+
StatusFaultCharacteristic(Supplier<CompletableFuture<StatusFaultEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic
+
 
+
StatusFaultEnum - Enum in io.github.hapjava.characteristics.impl.common
+
+
0 ”No Fault” 1 ”General Fault”
+
+
StatusLowBatteryCharacteristic - Class in io.github.hapjava.characteristics.impl.battery
+
+
This characteristic describes an accessory battery status.
+
+
StatusLowBatteryCharacteristic(Supplier<CompletableFuture<StatusLowBatteryEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic
+
 
+
StatusLowBatteryEnum - Enum in io.github.hapjava.characteristics.impl.battery
+
+
0 ”Battery level is normal” 1 ”Battery level is low”
+
+
StatusTamperedCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic describes tampered status.
+
+
StatusTamperedCharacteristic(Supplier<CompletableFuture<StatusTamperedEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic
+
 
+
StatusTamperedEnum - Enum in io.github.hapjava.characteristics.impl.common
+
+
0 ”Accessory is not tampered” 1 ”Accessory is tampered with”
+
+
STAY_ARM - io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateEnum
+
+
The home is occupied and residents are active.
+
+
STAY_ARM - io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateEnum
+
+
Arm the system when the home is occupied and residents are active.
+
+
stop() - Method in interface io.github.hapjava.server.HomekitWebHandler
+
 
+
STOP - io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum
+
 
+
STOP - io.github.hapjava.characteristics.impl.television.TargetMediaStateEnum
+
 
+
STOPPED - io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateEnum
+
 
+
STOPPED - io.github.hapjava.characteristics.impl.windowcovering.PositionStateEnum
+
 
+
StringCharacteristic - Class in io.github.hapjava.characteristics.impl.base
+
+
A characteristic that provides an string value.
+
+
StringCharacteristic(String, String, Optional<Supplier<CompletableFuture<String>>>, Optional<ExceptionalConsumer<String>>, Optional<Consumer<HomekitCharacteristicChangeCallback>>, Optional<Runnable>) - Constructor for class io.github.hapjava.characteristics.impl.base.StringCharacteristic
+
+
Default constructor
+
+
subscribe(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.characteristics.EventableCharacteristic
+
+
Begin listening to changes to this characteristic.
+
+
subscribe(HomekitCharacteristicChangeCallback) - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Begin listening to changes to this characteristic.
+
+
subscribeAccessoryFlags(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAccessoryFlags
+
+
Subscribes to changes in accessory flags
+
+
subscribeActive(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.AirPurifierAccessory
+
+
Subscribes to changes in the active state of the fan.
+
+
subscribeActive(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.FanAccessory
+
+
Subscribes to changes in the active state of the fan.
+
+
subscribeActive(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.FaucetAccessory
+
+
Subscribes to changes in the active state of the faucet.
+
+
subscribeActive(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Subscribes to changes in the active state of the heater cooler .
+
+
subscribeActive(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Subscribes to changes in the active state of the humidifier/dehumidifier .
+
+
subscribeActive(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.IrrigationSystemAccessory
+
+
Subscribes to changes in the active state of the irrigation.
+
+
subscribeActive(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithActive
+
+
Subscribes to changes in the active state.
+
+
subscribeActive(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Subscribes to changes in the active state of the TV .
+
+
subscribeActiveIdentifier(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Subscribes to changes in the active identifier.
+
+
subscribeAirPlayEnable(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAirPlayEnable
+
+
Subscribes to changes in the AirPlay enable state.
+
+
subscribeAirQuality(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.AirQualityAccessory
+
+
Subscribes to changes in the air quality
+
+
subscribeBatteryChargingState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.BatteryAccessory
+
+
Subscribes to changes in the battery level.
+
+
subscribeBatteryLevel(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.BatteryAccessory
+
+
Subscribes to changes in the battery level.
+
+
subscribeBrightness(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithBrightness
+
+
Subscribes to changes in the brightness of the light.
+
+
subscribeCarbonDioxideDetectedState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.CarbonDioxideSensorAccessory
+
+
Subscribes to changes in the carbon dioxide's state.
+
+
subscribeCarbonDioxideLevel(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+
Subscribes to changes in the carbon dioxide level.
+
+
subscribeCarbonDioxidePeakLevel(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+
Subscribes to changes in the carbon dioxide level.
+
+
subscribeCarbonMonoxideDetectedState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.CarbonMonoxideSensorAccessory
+
+
Subscribes to changes in the carbon monoxide's state.
+
+
subscribeCarbonMonoxideLevel(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+
Subscribes to changes in the carbon monoxide level.
+
+
subscribeCarbonMonoxidePeakLevel(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+
Subscribes to changes in the carbon monoxide level.
+
+
subscribeClosedCaptions(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithClosedCaptions
+
+
Subscribes to changes in the closed captions.
+
+
subscribeColorTemperature(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColorTemperature
+
+
Subscribes to changes in color temperature.
+
+
subscribeConfiguredName(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Subscribes to changes in configured name.
+
+
subscribeConfiguredName(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithConfiguredName
+
+
Subscribes to changes in configured name.
+
+
subscribeConfiguredName(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Subscribes to changes in configured name.
+
+
subscribeContactState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.ContactSensorAccessory
+
+
Subscribes to changes in the contact state.
+
+
subscribeCoolingThresholdTemperature(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCoolingThresholdTemperature
+
+
Subscribes to changes in the cooling threshold.
+
+
subscribeCurrentAmbientLightLevel(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.LightSensorAccessory
+
+
Subscribes to changes in the current ambient light level.
+
+
subscribeCurrentDoorState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.GarageDoorOpenerAccessory
+
+
Subscribes to changes in the door's state
+
+
subscribeCurrentFanState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFanState
+
+
Subscribes to changes in the current fan state.
+
+
subscribeCurrentHeaterCoolerState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Subscribes to changes in the heater cooler current state.
+
+
subscribeCurrentHorizontalTiltAngle(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentHorizontalTilting
+
+
Subscribes to changes in the current horizontal tilt angle.
+
+
subscribeCurrentHumidifierDehumidifierState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Subscribes to changes in the humidifier/dehumidifier current state.
+
+
subscribeCurrentHumidity(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Subscribes to changes in the current humidity.
+
+
subscribeCurrentMediaState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentMediaState
+
+
Subscribes to changes in the current media state.
+
+
subscribeCurrentMediaState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.SmartSpeakerAccessory
+
+
Subscribes to changes in the current media state.
+
+
subscribeCurrentPosition(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.DoorAccessory
+
+
Subscribes to changes in the door's current position
+
+
subscribeCurrentPosition(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.WindowAccessory
+
+
Subscribes to changes in the door's current position
+
+
subscribeCurrentPosition(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.WindowCoveringAccessory
+
+
Subscribes to changes in the current position.
+
+
subscribeCurrentRelativeHumidity(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.HumiditySensorAccessory
+
+
Subscribes to changes in the current relative humidity.
+
+
subscribeCurrentRelativeHumidity(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentRelativeHumidity
+
+
Subscribes to changes in current relative humidity.
+
+
subscribeCurrentSecuritySystemState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.SecuritySystemAccessory
+
+
Subscribes to changes to the state of the security system.
+
+
subscribeCurrentState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.AirPurifierAccessory
+
+
Subscribes to changes in the state of the air purifier.
+
+
subscribeCurrentState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Subscribes to changes in the CurrentHeatingCoolingStateEnum of the thermostat.
+
+
subscribeCurrentTemperature(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Subscribes to changes in the current temperature.
+
+
subscribeCurrentTemperature(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.TemperatureSensorAccessory
+
+
Subscribes to changes in the current temperature.
+
+
subscribeCurrentTemperature(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Subscribes to changes in the current temperature.
+
+
subscribeCurrentTiltAngle(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentTilting
+
+
Subscribes to changes in the current tilt angle.
+
+
subscribeCurrentVerticalTiltAngle(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentVerticalTilting
+
+
Subscribes to changes in the current vertical tilt angle.
+
+
subscribeCurrentVerticalTiltAngle(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVerticalTilting
+
+
Subscribes to changes in the current vertical tilt angle.
+
+
subscribeCurrentVisibilityState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Subscribes to changes in current visibility state.
+
+
subscribeFilterChangeIndication(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.FilterMaintenanceAccessory
+
+
Subscribes to changes in the filter change indication.
+
+
subscribeFilterLifeLevel(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFilterLifeLevel
+
+
Subscribes to changes in the filter life level.
+
+
subscribeHeatingThresholdTemperature(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHeatingThresholdTemperature
+
+
Subscribes to changes in the heating threshold.
+
+
subscribeHue(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColor
+
+
Subscribes to changes in the hue of the light.
+
+
subscribeHumidityThreshold(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityDehumidifierThreshold
+
+
Subscribes to changes in the humidity threshold.
+
+
subscribeHumidityThreshold(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityHumidifierThreshold
+
+
Subscribes to changes in the humidity threshold.
+
+
subscribeInputDeviceType(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithInputDeviceType
+
+
Subscribes to changes in input device type.
+
+
subscribeInputSourceType(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Subscribes to changes in input source type.
+
+
subscribeInUse(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.IrrigationSystemAccessory
+
+
Subscribes to changes in the inUse state.
+
+
subscribeIsConfigured(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Subscribes to changes in isConfigured.
+
+
subscribeIsConfigured(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIsConfigured
+
+
Subscribes to changes in isConfigured state
+
+
subscribeLeakDetected(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.LeakSensorAccessory
+
+
Subscribes to changes in the leak sensor.
+
+
subscribeLightbulbPowerState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.LightbulbAccessory
+
+
Subscribes to changes in the binary state of the light.
+
+
subscribeLockControls(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPhysicalControlsLock
+
+
Subscribes to changes in the lock controls.
+
+
subscribeLockCurrentState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.LockMechanismAccessory
+
+
Subscribes to changes in the lock current state.
+
+
subscribeLockCurrentState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockCurrentState
+
+
Subscribes to changes in lock current state.
+
+
subscribeLockTargetState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.LockMechanismAccessory
+
+
Subscribes to changes in the lock target state.
+
+
subscribeLockTargetState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockTargetState
+
+
Subscribes to changes in lock target state.
+
+
subscribeLowBatteryState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.BatteryAccessory
+
+
Subscribes to changes in the battery level.
+
+
subscribeMotionDetected(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.MotionSensorAccessory
+
+
Subscribes to changes in the motion sensor.
+
+
subscribeMuteState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.MicrophoneAccessory
+
+
Subscribes to changes in mute state.
+
+
subscribeMuteState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithMute
+
+
Subscribes to changes in mute state.
+
+
subscribeMuteState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.SpeakerAccessory
+
+
Subscribes to changes in mute state.
+
+
subscribeMuteState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.TelevisionSpeakerAccessory
+
+
Subscribes to changes in mute state.
+
+
subscribeNitrogenDioxideDensity(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithNitrogenDioxideDensity
+
+
Subscribes to changes in nitrogen dioxide density.
+
+
subscribeObstructionDetected(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.GarageDoorOpenerAccessory
+
+
Subscribes to changes in the obstruction detected indicator
+
+
subscribeObstructionDetected(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithObstructionDetection
+
+
Subscribes to changes in the obstruction detected state
+
+
subscribeOccupancyDetected(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.OccupancySensorAccessory
+
+
Subscribes to changes in the occupancy sensor.
+
+
subscribeOn(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.BasicFanAccessory
+
+
Subscribes to changes in the active state of the fan.
+
+
subscribeOutletInUse(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.OutletAccessory
+
+
Subscribes to changes in the binary state indicating whether the outlet is in use.
+
+
subscribeOzoneDensity(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithOzoneDensity
+
+
Subscribes to changes in ozone density.
+
+
subscribePictureMode(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPictureMode
+
+
Subscribes to changes in the picture mode.
+
+
subscribePM10Density(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM10Density
+
+
Subscribes to changes in PM10 density.
+
+
subscribePM25Density(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM25Density
+
+
Subscribes to changes in PM25 density.
+
+
subscribePositionState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.DoorAccessory
+
+
Subscribes to changes in the door's position state
+
+
subscribePositionState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.WindowAccessory
+
+
Subscribes to changes in the door's position state
+
+
subscribePositionState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.WindowCoveringAccessory
+
+
Subscribes to changes in the position state: increasing, decreasing, or stopped
+
+
subscribePowerState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.OutletAccessory
+
+
Subscribes to changes in the binary state of the outlet's power.
+
+
subscribeProgramMode(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.IrrigationSystemAccessory
+
+
Subscribes to changes in the program mode of the irrigation system.
+
+
subscribeRemainingDuration(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRemainingDuration
+
+
Subscribes to changes in the duration; note it is not necessary to emit a change every second, + homekit infers the countdown progress client side.
+
+
subscribeRotationDirection(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationDirection
+
+
Subscribes to changes in the rotation direction.
+
+
subscribeRotationSpeed(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationSpeed
+
+
Subscribes to changes in the rotation speed.
+
+
subscribeSaturation(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColor
+
+
Subscribes to changes in the saturation of the light.
+
+
subscribeSecurityAlarmType(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSecurityAlarmType
+
+
Subscribes to changes in status alarm type
+
+
subscribeSetDuration(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithDuration
+
+
Subscribes to changes in the set duration
+
+
subscribeSlatState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.SlatAccessory
+
+
Subscribes to changes in the state of the slat.
+
+
subscribeSleepDiscoveryMode(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Subscribes to changes in sleep discovery mode.
+
+
subscribeSmokeDetectedState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.SmokeSensorAccessory
+
+
Subscribes to changes in the smoke sensor's state.
+
+
subscribeStatusActive(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive
+
+
Subscribes to changes in status active.
+
+
subscribeStatusFault(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault
+
+
Subscribes to changes in status fault.
+
+
subscribeStatusLowBattery(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery
+
+
Subscribes to changes in status low battery.
+
+
subscribeStatusTampered(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered
+
+
Subscribes to changes in status tampered.
+
+
subscribeSulphurDioxideDensity(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSulphurDioxideDensity
+
+
Subscribes to changes in sulphur dioxide density.
+
+
subscribeSwingMode(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSwingMode
+
+
Subscribes to changes in the swing mode.
+
+
subscribeSwitchEvent(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.DoorbellAccessory
+
+
Subscribes to changes in doorbell switch event, i.e.
+
+
subscribeSwitchEvent(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.StatelessProgrammableSwitchAccessory
+
+
Subscribes to changes in switch event, i.e.
+
+
subscribeSwitchState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.SwitchAccessory
+
+
Subscribes to changes in the binary state of the switch.
+
+
subscribeTargetDoorState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.GarageDoorOpenerAccessory
+
+
Subscribes to changes in the door's targeted state
+
+
subscribeTargetFanState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFanState
+
+
Subscribes to changes in the target fan state.
+
+
subscribeTargetHeaterCoolerState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Subscribes to changes in the heater cooler target state.
+
+
subscribeTargetHorizontalTiltAngle(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetHorizontalTilting
+
+
Subscribes to changes in the target horizontal tilt angle.
+
+
subscribeTargetHumidifierDehumidifierState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Subscribes to changes in the humidifier/dehumidifier target state.
+
+
subscribeTargetMediaState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetMediaState
+
+
Subscribes to changes in the target media state.
+
+
subscribeTargetMediaState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.SmartSpeakerAccessory
+
+
Subscribes to changes in the target media state.
+
+
subscribeTargetPosition(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.DoorAccessory
+
+
Subscribes to changes in the door's target position
+
+
subscribeTargetPosition(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.WindowAccessory
+
+
Subscribes to changes in the door's target position
+
+
subscribeTargetPosition(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.WindowCoveringAccessory
+
+
Subscribes to changes in the target position.
+
+
subscribeTargetRelativeHumidity(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetRelativeHumidity
+
+
Subscribes to changes in the target relative humidity.
+
+
subscribeTargetSecuritySystemState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.SecuritySystemAccessory
+
+
Subscribes to changes in the pending, but not yet completed, state of the security system.
+
+
subscribeTargetState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.AirPurifierAccessory
+
+
Subscribes to changes in the target state of the air purifier.
+
+
subscribeTargetState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Subscribes to changes in the pending, but not yet complete, TargetHeatingCoolingStateEnum of the thermostat.
+
+
subscribeTargetTemperature(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Subscribes to changes in the target temperature.
+
+
subscribeTargetTiltAngle(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetTilting
+
+
Subscribes to changes in the target tilt angle.
+
+
subscribeTargetVerticalTiltAngle(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVerticalTilting
+
+
Subscribes to changes in the target vertical tilt angle.
+
+
subscribeTargetVerticalTiltAngle(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVerticalTilting
+
+
Subscribes to changes in the target vertical tilt angle.
+
+
subscribeTargetVisibilityState(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVisibilityState
+
+
Subscribes to changes in t target visibility state.
+
+
subscribeTemperatureDisplayUnit(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Subscribes to changes in the temperature display unit.
+
+
subscribeTemperatureDisplayUnits(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTemperatureDisplayUnits
+
+
Subscribes to changes in the temperature display units
+
+
subscribeValveActive(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.ValveAccessory
+
+
Subscribes to changes in the active state of the valve.
+
+
subscribeValveInUse(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.ValveAccessory
+
+
Subscribes to changes in the inUse state of the valve.
+
+
subscribeValveType(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.ValveAccessory
+
+
Subscribes to changes in the valveType state of the valve.
+
+
subscribeVOCDensity(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVOCDensity
+
+
Subscribes to changes in VOC density.
+
+
subscribeVolume(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolume
+
+
Subscribes to changes in the volume.
+
+
subscribeVolumeControlType(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolumeControlType
+
+
Subscribes to changes in the volume.
+
+
subscribeWaterLevel(HomekitCharacteristicChangeCallback) - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithWaterLevel
+
+
Subscribes to changes in the water level.
+
+
SulphurDioxideDensityCharacteristic - Class in io.github.hapjava.characteristics.impl.airquality
+
+
This characteristic contains the current SO2 density in micrograms/m3.
+
+
SulphurDioxideDensityCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.SulphurDioxideDensityCharacteristic
+
 
+
SulphurDioxideDensityCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.SulphurDioxideDensityCharacteristic
+
 
+
supplyValue(JsonObjectBuilder) - Method in interface io.github.hapjava.characteristics.Characteristic
+
+
Adds an attribute to the passed JsonObjectBuilder named "value" with the current value of the + characteristic.
+
+
supplyValue(JsonObjectBuilder) - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Adds an attribute to the passed JsonObjectBuilder named "value" with the current value of the + characteristic.
+
+
SWING_DISABLED - io.github.hapjava.characteristics.impl.fan.SwingModeEnum
+
 
+
SWING_ENABLED - io.github.hapjava.characteristics.impl.fan.SwingModeEnum
+
 
+
SWINGING - io.github.hapjava.characteristics.impl.slat.CurrentSlatStateEnum
+
 
+
SwingModeCharacteristic - Class in io.github.hapjava.characteristics.impl.fan
+
+
This characteristic describes if swing mode is enabled.
+
+
SwingModeCharacteristic(Supplier<CompletableFuture<SwingModeEnum>>, ExceptionalConsumer<SwingModeEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.fan.SwingModeCharacteristic
+
 
+
SwingModeEnum - Enum in io.github.hapjava.characteristics.impl.fan
+
+
0 ”Swing disabled” 1 ”Swing enabled”
+
+
SwitchAccessory - Interface in io.github.hapjava.accessories
+
+
A simple switch with a binary state.
+
+
SWITCHES - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
SwitchService - Class in io.github.hapjava.services.impl
+
+
This service describes a binary switch.
+
+
SwitchService(SwitchAccessory) - Constructor for class io.github.hapjava.services.impl.SwitchService
+
 
+
SwitchService(OnCharacteristic) - Constructor for class io.github.hapjava.services.impl.SwitchService
+
 
+
+ + + +

T

+
+
TAMPERED - io.github.hapjava.characteristics.impl.common.StatusTamperedEnum
+
 
+
TargetAirPurifierStateCharacteristic - Class in io.github.hapjava.characteristics.impl.airpurifier
+
+
This characteristic describes the target state of the air purifier.
+
+
TargetAirPurifierStateCharacteristic(Supplier<CompletableFuture<TargetAirPurifierStateEnum>>, ExceptionalConsumer<TargetAirPurifierStateEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateCharacteristic
+
 
+
TargetAirPurifierStateEnum - Enum in io.github.hapjava.characteristics.impl.airpurifier
+
+
0 ”Manual” 1 ”Auto”
+
+
TargetDoorStateCharacteristic - Class in io.github.hapjava.characteristics.impl.garagedoor
+
+
This characteristic describes the target state of a door.
+
+
TargetDoorStateCharacteristic(Supplier<CompletableFuture<TargetDoorStateEnum>>, ExceptionalConsumer<TargetDoorStateEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateCharacteristic
+
 
+
TargetDoorStateEnum - Enum in io.github.hapjava.characteristics.impl.garagedoor
+
+
0 ”Open” 1 ”Closed” 2-255 ”Reserved”
+
+
TargetFanStateCharacteristic - Class in io.github.hapjava.characteristics.impl.fan
+
+
This characteristic describes the target state of the fan.
+
+
TargetFanStateCharacteristic(Supplier<CompletableFuture<TargetFanStateEnum>>, ExceptionalConsumer<TargetFanStateEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.fan.TargetFanStateCharacteristic
+
 
+
TargetFanStateEnum - Enum in io.github.hapjava.characteristics.impl.fan
+
+
0 ”Manual” 1 ”Auto”
+
+
TargetHeaterCoolerStateCharacteristic - Class in io.github.hapjava.characteristics.impl.heatercooler
+
+
This characteristic describes the target state of heater cooler.
+
+
TargetHeaterCoolerStateCharacteristic(TargetHeaterCoolerStateEnum[], Supplier<CompletableFuture<TargetHeaterCoolerStateEnum>>, ExceptionalConsumer<TargetHeaterCoolerStateEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateCharacteristic
+
 
+
TargetHeaterCoolerStateEnum - Enum in io.github.hapjava.characteristics.impl.heatercooler
+
+
0 AUTO - ”Heat or Cool” 1 ”Heat” 2 ”Cool”
+
+
TargetHeatingCoolingStateCharacteristic - Class in io.github.hapjava.characteristics.impl.thermostat
+
+
This characteristic describes the target mode of an accessory that supports heating/cooling,
+
+
TargetHeatingCoolingStateCharacteristic(TargetHeatingCoolingStateEnum[], Supplier<CompletableFuture<TargetHeatingCoolingStateEnum>>, ExceptionalConsumer<TargetHeatingCoolingStateEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateCharacteristic
+
 
+
TargetHeatingCoolingStateEnum - Enum in io.github.hapjava.characteristics.impl.thermostat
+
+
0 ”Off” 1 ”Heat.” 2 ”Cool." 3 ”Auto.
+
+
TargetHorizontalTiltAngleCharacteristic - Class in io.github.hapjava.characteristics.impl.windowcovering
+
+
This characteristic describes the target angle of horizontal slats for accessories.
+
+
TargetHorizontalTiltAngleCharacteristic(int, int, Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.windowcovering.TargetHorizontalTiltAngleCharacteristic
+
 
+
TargetHorizontalTiltAngleCharacteristic(Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.windowcovering.TargetHorizontalTiltAngleCharacteristic
+
 
+
TargetHumidifierDehumidifierStateCharacteristic - Class in io.github.hapjava.characteristics.impl.humidifier
+
+
This characteristic describes the target state of a humidifier or/and a dehumidifier..
+
+
TargetHumidifierDehumidifierStateCharacteristic(TargetHumidifierDehumidifierStateEnum[], Supplier<CompletableFuture<TargetHumidifierDehumidifierStateEnum>>, ExceptionalConsumer<TargetHumidifierDehumidifierStateEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateCharacteristic
+
 
+
TargetHumidifierDehumidifierStateEnum - Enum in io.github.hapjava.characteristics.impl.humidifier
+
+
0 - Auto - ”Humidifier or Dehumidifier” 1 ”Humidifier” 2 ”Dehumidifier”
+
+
TargetMediaStateCharacteristic - Class in io.github.hapjava.characteristics.impl.television
+
+
This characteristic sets media state.
+
+
TargetMediaStateCharacteristic(Supplier<CompletableFuture<TargetMediaStateEnum>>, ExceptionalConsumer<TargetMediaStateEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.television.TargetMediaStateCharacteristic
+
 
+
TargetMediaStateEnum - Enum in io.github.hapjava.characteristics.impl.television
+
+
0 ”Play” 1 ”Pause” 2 "Stop" 3-255 ”Reserved”
+
+
TargetPositionCharacteristic - Class in io.github.hapjava.characteristics.impl.windowcovering
+
+
This characteristic describes the target position of accessories like door, window, blinds.
+
+
TargetPositionCharacteristic(Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.windowcovering.TargetPositionCharacteristic
+
 
+
TargetRelativeHumidityCharacteristic - Class in io.github.hapjava.characteristics.impl.humiditysensor
+
+
This characteristic describes the target relative humidity.
+
+
TargetRelativeHumidityCharacteristic(Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.humiditysensor.TargetRelativeHumidityCharacteristic
+
 
+
TargetSecuritySystemStateCharacteristic - Class in io.github.hapjava.characteristics.impl.securitysystem
+
+
This characteristic describes the target state of the security system.
+
+
TargetSecuritySystemStateCharacteristic(TargetSecuritySystemStateEnum[], Supplier<CompletableFuture<TargetSecuritySystemStateEnum>>, ExceptionalConsumer<TargetSecuritySystemStateEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateCharacteristic
+
 
+
TargetSecuritySystemStateEnum - Enum in io.github.hapjava.characteristics.impl.securitysystem
+
+
The target state of a SecuritySystemAccessory.
+
+
TargetTemperatureCharacteristic - Class in io.github.hapjava.characteristics.impl.thermostat
+
+
This characteristic describes the target temperature in Celsius that the accessory is actively + attempting to reach.
+
+
TargetTemperatureCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.thermostat.TargetTemperatureCharacteristic
+
 
+
TargetTemperatureCharacteristic(Supplier<CompletableFuture<Double>>, ExceptionalConsumer<Double>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.thermostat.TargetTemperatureCharacteristic
+
 
+
TargetTiltAngleCharacteristic - Class in io.github.hapjava.characteristics.impl.slat
+
+
This characteristic describes the target angle of slats.
+
+
TargetTiltAngleCharacteristic(Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.slat.TargetTiltAngleCharacteristic
+
 
+
TargetVerticalTiltAngleCharacteristic - Class in io.github.hapjava.characteristics.impl.windowcovering
+
+
This characteristic describes the target angle of vertical slats.
+
+
TargetVerticalTiltAngleCharacteristic(int, int, Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.windowcovering.TargetVerticalTiltAngleCharacteristic
+
 
+
TargetVerticalTiltAngleCharacteristic(Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.windowcovering.TargetVerticalTiltAngleCharacteristic
+
 
+
TargetVisibilityStateCharacteristic - Class in io.github.hapjava.characteristics.impl.inputsource
+
+
This characteristic describes target visibility state.
+
+
TargetVisibilityStateCharacteristic(Supplier<CompletableFuture<TargetVisibilityStateEnum>>, ExceptionalConsumer<TargetVisibilityStateEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateCharacteristic
+
 
+
TargetVisibilityStateEnum - Enum in io.github.hapjava.characteristics.impl.inputsource
+
 
+
TELEVISION - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
TelevisionAccessory - Interface in io.github.hapjava.accessories
+
+
Television accessory.
+
+
TelevisionService - Class in io.github.hapjava.services.impl
+
+
This service describes a television.
+
+
TelevisionService(TelevisionAccessory) - Constructor for class io.github.hapjava.services.impl.TelevisionService
+
 
+
TelevisionService(ActiveCharacteristic, ActiveIdentifierCharacteristic, ConfiguredNameCharacteristic, RemoteKeyCharacteristic, SleepDiscoveryModeCharacteristic) - Constructor for class io.github.hapjava.services.impl.TelevisionService
+
 
+
TelevisionSpeakerAccessory - Interface in io.github.hapjava.accessories
+
+
Television speaker accessory.
+
+
TelevisionSpeakerService - Class in io.github.hapjava.services.impl
+
+
This service describes a television.
+
+
TelevisionSpeakerService(TelevisionSpeakerAccessory) - Constructor for class io.github.hapjava.services.impl.TelevisionSpeakerService
+
 
+
TelevisionSpeakerService(MuteCharacteristic) - Constructor for class io.github.hapjava.services.impl.TelevisionSpeakerService
+
 
+
TemperatureDisplayUnitCharacteristic - Class in io.github.hapjava.characteristics.impl.thermostat
+
+
This characteristic describes units of temperature used for presentation purposes (e.g.
+
+
TemperatureDisplayUnitCharacteristic(Supplier<CompletableFuture<TemperatureDisplayUnitEnum>>, ExceptionalConsumer<TemperatureDisplayUnitEnum>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitCharacteristic
+
 
+
TemperatureDisplayUnitEnum - Enum in io.github.hapjava.characteristics.impl.thermostat
+
+
The temperature unit used by a TemperatureSensorAccessory.
+
+
TemperatureSensorAccessory - Interface in io.github.hapjava.accessories
+
+
A temperature sensor that reports the current temperature
+
+
TemperatureSensorService - Class in io.github.hapjava.services.impl
+
+
This service describes a Temperature Sensor.
+
+
TemperatureSensorService(TemperatureSensorAccessory) - Constructor for class io.github.hapjava.services.impl.TemperatureSensorService
+
 
+
TemperatureSensorService(CurrentTemperatureCharacteristic) - Constructor for class io.github.hapjava.services.impl.TemperatureSensorService
+
 
+
ThermostatAccessory - Interface in io.github.hapjava.accessories
+
+
A thermostat with heating and cooling controls.
+
+
THERMOSTATS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
ThermostatService - Class in io.github.hapjava.services.impl
+
+
This service describes a thermostat.
+
+
ThermostatService(ThermostatAccessory) - Constructor for class io.github.hapjava.services.impl.ThermostatService
+
 
+
ThermostatService(CurrentHeatingCoolingStateCharacteristic, TargetHeatingCoolingStateCharacteristic, CurrentTemperatureCharacteristic, TargetTemperatureCharacteristic, TemperatureDisplayUnitCharacteristic) - Constructor for class io.github.hapjava.services.impl.ThermostatService
+
 
+
toJson(int) - Method in interface io.github.hapjava.characteristics.Characteristic
+
+
Creates the JSON representation of the characteristic, in accordance with the HomeKit Accessory + Protocol.
+
+
toJson(int) - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
 
+
TRIGGERED - io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateEnum
+
+
The security system is triggered.
+
+
TUNER - io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum
+
 
+
TUNER - io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
TV - io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum
+
 
+
TV_SET_TOP_BOX - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
TV_STREAMING_STICK - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
TYPE - Static variable in class io.github.hapjava.services.impl.AccessoryInformationService
+
 
+
+ + + +

U

+
+
UNKNOWN - io.github.hapjava.characteristics.impl.airquality.AirQualityEnum
+
 
+
UNKNOWN - io.github.hapjava.characteristics.impl.lock.LockCurrentStateEnum
+
 
+
UNKNOWN - io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeEnum
+
+
Alarm type is not known
+
+
UNKNOWN - io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum
+
 
+
UNKNOWN_1 - io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateEnum
+
 
+
UNKNOWN_2 - io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateEnum
+
 
+
UNSECURED - io.github.hapjava.characteristics.impl.lock.LockCurrentStateEnum
+
 
+
UNSECURED - io.github.hapjava.characteristics.impl.lock.LockTargetStateEnum
+
 
+
unsubscribe() - Method in interface io.github.hapjava.characteristics.EventableCharacteristic
+
+
Stop listening to changes to this characteristic.
+
+
unsubscribe() - Method in class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
+
+
Stop listening to changes to this characteristic.
+
+
unsubscribeAccessoryFlags() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAccessoryFlags
+
+
Unsubscribes from changes in the accessory flags .
+
+
unsubscribeActive() - Method in interface io.github.hapjava.accessories.AirPurifierAccessory
+
+
Unsubscribes from changes in the active state of the fan.
+
+
unsubscribeActive() - Method in interface io.github.hapjava.accessories.FanAccessory
+
+
Unsubscribes from changes in the active state of the fan.
+
+
unsubscribeActive() - Method in interface io.github.hapjava.accessories.FaucetAccessory
+
+
Unsubscribes from changes in the active state of the faucet.
+
+
unsubscribeActive() - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Unsubscribes from changes in the active state of the heater cooler .
+
+
unsubscribeActive() - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Unsubscribes from changes in the active state of the humidifier/dehumidifier .
+
+
unsubscribeActive() - Method in interface io.github.hapjava.accessories.IrrigationSystemAccessory
+
+
Unsubscribes from changes in the irrigation active state.
+
+
unsubscribeActive() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithActive
+
+
Unsubscribes from changes in the active state.
+
+
unsubscribeActive() - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Unsubscribes from changes in the active state of the TV.
+
+
unsubscribeActiveIdentifier() - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Unsubscribes from changes in the active identifier.
+
+
unsubscribeAirPlayEnable() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAirPlayEnable
+
+
Unsubscribes from changes in the AirPlay enable state.
+
+
unsubscribeAirQuality() - Method in interface io.github.hapjava.accessories.AirQualityAccessory
+
+
Unsubscribes from changes in the air quality.
+
+
unsubscribeBatteryChargingState() - Method in interface io.github.hapjava.accessories.BatteryAccessory
+
+
Unsubscribes from changes in the low battery state.
+
+
unsubscribeBatteryLevel() - Method in interface io.github.hapjava.accessories.BatteryAccessory
+
+
Unsubscribes from changes in the battery level.
+
+
unsubscribeBrightness() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithBrightness
+
+
Unsubscribes from changes in the brightness of the light.
+
+
unsubscribeCarbonDioxideDetectedState() - Method in interface io.github.hapjava.accessories.CarbonDioxideSensorAccessory
+
+
Unsubscribes from changes in the carbon dioxide's state.
+
+
unsubscribeCarbonDioxideLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+
Unsubscribes from changes in the carbon dioxide level.
+
+
unsubscribeCarbonDioxidePeakLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+
Unsubscribes from changes in the carbon dioxide level.
+
+
unsubscribeCarbonMonoxideDetectedState() - Method in interface io.github.hapjava.accessories.CarbonMonoxideSensorAccessory
+
+
Unsubscribes from changes in the carbon monoxide's state.
+
+
unsubscribeCarbonMonoxideLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+
Unsubscribes from changes in the carbon monoxide level.
+
+
unsubscribeCarbonMonoxidePeakLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+
Unsubscribes from changes in the carbon monoxide level.
+
+
unsubscribeClosedCaptions() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithClosedCaptions
+
+
Unsubscribes from changes in the closed captions.
+
+
unsubscribeColorTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColorTemperature
+
+
Unsubscribes from changes in the color temperature.
+
+
unsubscribeConfiguredName() - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Unsubscribes from changes in the configured name.
+
+
unsubscribeConfiguredName() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithConfiguredName
+
+
Unsubscribes from changes in the configured name state.
+
+
unsubscribeConfiguredName() - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Unsubscribes from changes in the configured name state.
+
+
unsubscribeContactState() - Method in interface io.github.hapjava.accessories.ContactSensorAccessory
+
+
Unsubscribes from changes in the contact state.
+
+
unsubscribeCoolingThresholdTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCoolingThresholdTemperature
+
+
Unsubscribes from changes in the cooling threshold.
+
+
unsubscribeCurrentAmbientLightLevel() - Method in interface io.github.hapjava.accessories.LightSensorAccessory
+
+
Unsubscribes from changes in the current ambient light level.
+
+
unsubscribeCurrentDoorState() - Method in interface io.github.hapjava.accessories.GarageDoorOpenerAccessory
+
+
Unsubscribes from changes in the door's state
+
+
unsubscribeCurrentFanState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFanState
+
+
Unsubscribes from changes in the current state of the fan.
+
+
unsubscribeCurrentHeaterCoolerState() - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Unsubscribes from changes in heater cooler current state.
+
+
unsubscribeCurrentHorizontalTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentHorizontalTilting
+
+
Unsubscribes from changes in the current horizontal tilt angle
+
+
unsubscribeCurrentHumidifierDehumidifierState() - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Unsubscribes from changes in humidifier/dehumidifier current state.
+
+
unsubscribeCurrentHumidity() - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Unsubscribes from changes in the current humidity.
+
+
unsubscribeCurrentMediaState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentMediaState
+
+
Unsubscribes from changes in the current media state.
+
+
unsubscribeCurrentMediaState() - Method in interface io.github.hapjava.accessories.SmartSpeakerAccessory
+
+
Unsubscribes from changes in the current media state.
+
+
unsubscribeCurrentPosition() - Method in interface io.github.hapjava.accessories.DoorAccessory
+
+
Unsubscribes from changes in the door's current position
+
+
unsubscribeCurrentPosition() - Method in interface io.github.hapjava.accessories.WindowAccessory
+
+
Unsubscribes from changes in the door's current position
+
+
unsubscribeCurrentPosition() - Method in interface io.github.hapjava.accessories.WindowCoveringAccessory
+
+
Unsubscribes from changes in the current position.
+
+
unsubscribeCurrentRelativeHumidity() - Method in interface io.github.hapjava.accessories.HumiditySensorAccessory
+
+
Unsubscribes from changes in the current relative humidity.
+
+
unsubscribeCurrentRelativeHumidity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentRelativeHumidity
+
+
Unsubscribes from changes in the current relative humidity.
+
+
unsubscribeCurrentSecuritySystemState() - Method in interface io.github.hapjava.accessories.SecuritySystemAccessory
+
+
Unsubscribes from changes in the state of the security system.
+
+
unsubscribeCurrentState() - Method in interface io.github.hapjava.accessories.AirPurifierAccessory
+
+
Unsubscribes from changes in the state of the air purifier.
+
+
unsubscribeCurrentState() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Unsubscribes from changes in the mode of the thermostat.
+
+
unsubscribeCurrentTemperature() - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Unsubscribes from changes in the current temperature.
+
+
unsubscribeCurrentTemperature() - Method in interface io.github.hapjava.accessories.TemperatureSensorAccessory
+
+
Unsubscribes from changes in the current temperature.
+
+
unsubscribeCurrentTemperature() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Unsubscribes from changes in the current temperature.
+
+
unsubscribeCurrentTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentTilting
+
+
Unsubscribes from changes in the current tilt angle
+
+
unsubscribeCurrentVerticalTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentVerticalTilting
+
+
Unsubscribes from changes in the current vertical tilt angle
+
+
unsubscribeCurrentVerticalTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVerticalTilting
+
+
Unsubscribes from changes in the current vertical tilt angle
+
+
unsubscribeCurrentVisibilityState() - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Unsubscribes from changes in the current visibility state.
+
+
unsubscribeFilterChangeIndication() - Method in interface io.github.hapjava.accessories.FilterMaintenanceAccessory
+
+
Unsubscribes from changes in the filter change indication.
+
+
unsubscribeFilterLifeLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFilterLifeLevel
+
+
Unsubscribes from changes in the current filter life level.
+
+
unsubscribeHeatingThresholdTemperature() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHeatingThresholdTemperature
+
+
Unsubscribes from changes in the heating threshold.
+
+
unsubscribeHue() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColor
+
+
Unsubscribes from changes in the hue of the light.
+
+
unsubscribeHumidityThreshold() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityDehumidifierThreshold
+
+
Unsubscribes from changes in the humidity threshold.
+
+
unsubscribeHumidityThreshold() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityHumidifierThreshold
+
+
Unsubscribes from changes in the humidity threshold.
+
+
unsubscribeInputDeviceType() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithInputDeviceType
+
+
Unsubscribes from changes
+
+
unsubscribeInputSourceType() - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Unsubscribes from changes in the input source type.
+
+
unsubscribeInUse() - Method in interface io.github.hapjava.accessories.IrrigationSystemAccessory
+
+
Unsubscribes from changes in the inUse state.
+
+
unsubscribeIsConfigured() - Method in interface io.github.hapjava.accessories.InputSourceAccessory
+
+
Unsubscribes from changes in isConfigured.
+
+
unsubscribeIsConfigured() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIsConfigured
+
+
Unsubscribes from changes in the isConfigured state.
+
+
unsubscribeLeakDetected() - Method in interface io.github.hapjava.accessories.LeakSensorAccessory
+
+
Unsubscribes from changes in the leak sensor.
+
+
unsubscribeLightbulbPowerState() - Method in interface io.github.hapjava.accessories.LightbulbAccessory
+
+
Unsubscribes from changes in the binary state of the light.
+
+
unsubscribeLockControls() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPhysicalControlsLock
+
+
Unsubscribes from changes in the lock controls.
+
+
unsubscribeLockCurrentState() - Method in interface io.github.hapjava.accessories.LockMechanismAccessory
+
+
Unsubscribes from changes in lock current state.
+
+
unsubscribeLockCurrentState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockCurrentState
+
+
Unsubscribes from changes
+
+
unsubscribeLockTargetState() - Method in interface io.github.hapjava.accessories.LockMechanismAccessory
+
+
Unsubscribes from changes in lock target state.
+
+
unsubscribeLockTargetState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockTargetState
+
+
Unsubscribes from changes
+
+
unsubscribeLowBatteryState() - Method in interface io.github.hapjava.accessories.BatteryAccessory
+
+
Unsubscribes from changes in the low battery state.
+
+
unsubscribeMotionDetected() - Method in interface io.github.hapjava.accessories.MotionSensorAccessory
+
+
Unsubscribes from changes in the motion sensor.
+
+
unsubscribeMuteState() - Method in interface io.github.hapjava.accessories.MicrophoneAccessory
+
+
Unsubscribes from changes in the mute state.
+
+
unsubscribeMuteState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithMute
+
+
Unsubscribes from changes in the mute state.
+
+
unsubscribeMuteState() - Method in interface io.github.hapjava.accessories.SpeakerAccessory
+
+
Unsubscribes from changes in the mute state.
+
+
unsubscribeMuteState() - Method in interface io.github.hapjava.accessories.TelevisionSpeakerAccessory
+
+
Unsubscribes from changes in the mute state.
+
+
unsubscribeNitrogenDioxideDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithNitrogenDioxideDensity
+
+
Unsubscribes from changes
+
+
unsubscribeObstructionDetected() - Method in interface io.github.hapjava.accessories.GarageDoorOpenerAccessory
+
+
Unsubscribes from changes in the door's obstruction detected indicator
+
+
unsubscribeObstructionDetected() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithObstructionDetection
+
+
Unsubscribes from changes in the obstruction detected state
+
+
unsubscribeOccupancyDetected() - Method in interface io.github.hapjava.accessories.OccupancySensorAccessory
+
+
Unsubscribes from changes in the occupancy sensor.
+
+
unsubscribeOn() - Method in interface io.github.hapjava.accessories.BasicFanAccessory
+
+
Unsubscribes from changes in the active state of the fan.
+
+
unsubscribeOutletInUse() - Method in interface io.github.hapjava.accessories.OutletAccessory
+
+
Unsubscribes from changes in the binary state indicating whether hte outlet is in use.
+
+
unsubscribeOzoneDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithOzoneDensity
+
+
Unsubscribes from changes
+
+
unsubscribePictureMode() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPictureMode
+
+
Unsubscribes from changes in the picture mode.
+
+
unsubscribePM10Density() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM10Density
+
+
Unsubscribes from changes
+
+
unsubscribePM25Density() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM25Density
+
+
Unsubscribes from changes
+
+
unsubscribePositionState() - Method in interface io.github.hapjava.accessories.DoorAccessory
+
+
Unsubscribes from changes in the door's state
+
+
unsubscribePositionState() - Method in interface io.github.hapjava.accessories.WindowAccessory
+
+
Unsubscribes from changes in the door's state
+
+
unsubscribePositionState() - Method in interface io.github.hapjava.accessories.WindowCoveringAccessory
+
+
Unsubscribes from changes in the position state
+
+
unsubscribePowerState() - Method in interface io.github.hapjava.accessories.OutletAccessory
+
+
Unsubscribes from changes in the binary state of the outlet's power.
+
+
unsubscribeProgramMode() - Method in interface io.github.hapjava.accessories.IrrigationSystemAccessory
+
+
Unsubscribes from changes in the program mode.
+
+
unsubscribeRemainingDuration() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRemainingDuration
+
+
Unsubscribes from changes
+
+
unsubscribeRotationDirection() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationDirection
+
+
Unsubscribes from changes in the rotation direction.
+
+
unsubscribeRotationSpeed() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationSpeed
+
+
Unsubscribes from changes in the rotation speed.
+
+
unsubscribeSaturation() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColor
+
+
Unsubscribes from changes in the saturation of the light.
+
+
unsubscribeSecurityAlarmType() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSecurityAlarmType
+
+
Unsubscribes from changes
+
+
unsubscribeSetDuration() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithDuration
+
+
Unsubscribes from changes
+
+
unsubscribeSlatState() - Method in interface io.github.hapjava.accessories.SlatAccessory
+
+
Unsubscribes from changes in the state of the slat.
+
+
unsubscribeSleepDiscoveryMode() - Method in interface io.github.hapjava.accessories.TelevisionAccessory
+
+
Unsubscribes from changes in the sleep discovery mode.
+
+
unsubscribeSmokeDetectedState() - Method in interface io.github.hapjava.accessories.SmokeSensorAccessory
+
+
Unsubscribes from changes in the smoke sensor's state.
+
+
unsubscribeStatusActive() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive
+
+
Unsubscribes from changes
+
+
unsubscribeStatusFault() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault
+
+
Unsubscribes from changes
+
+
unsubscribeStatusLowBattery() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery
+
+
Unsubscribes from changes
+
+
unsubscribeStatusTampered() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered
+
+
Unsubscribes from changes
+
+
unsubscribeSulphurDioxideDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSulphurDioxideDensity
+
+
Unsubscribes from changes
+
+
unsubscribeSwingMode() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSwingMode
+
+
Unsubscribes from changes in the swing mode.
+
+
unsubscribeSwitchEvent() - Method in interface io.github.hapjava.accessories.DoorbellAccessory
+
+
Unsubscribes from changes in doorbell switch event.
+
+
unsubscribeSwitchEvent() - Method in interface io.github.hapjava.accessories.StatelessProgrammableSwitchAccessory
+
+
Unsubscribes from changes in switch event.
+
+
unsubscribeSwitchState() - Method in interface io.github.hapjava.accessories.SwitchAccessory
+
+
Unsubscribes from changes in the binary state of the switch.
+
+
unsubscribeTargetDoorState() - Method in interface io.github.hapjava.accessories.GarageDoorOpenerAccessory
+
+
Unsubscribes from changes in the door's targeted state
+
+
unsubscribeTargetFanState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFanState
+
+
Unsubscribes from changes in the target state of the fan.
+
+
unsubscribeTargetHeaterCoolerState() - Method in interface io.github.hapjava.accessories.HeaterCoolerAccessory
+
+
Unsubscribes from changes in heater cooler target state.
+
+
unsubscribeTargetHorizontalTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetHorizontalTilting
+
+
Unsubscribes from changes in the target horizontal tilt angle
+
+
unsubscribeTargetHumidifierDehumidifierState() - Method in interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory
+
+
Unsubscribes from changes in humidifier/dehumidifier target state.
+
+
unsubscribeTargetMediaState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetMediaState
+
+
Unsubscribes from changes in the target media state.
+
+
unsubscribeTargetMediaState() - Method in interface io.github.hapjava.accessories.SmartSpeakerAccessory
+
+
Unsubscribes from changes in the target media state.
+
+
unsubscribeTargetPosition() - Method in interface io.github.hapjava.accessories.DoorAccessory
+
+
Unsubscribes from changes in the door's target position
+
+
unsubscribeTargetPosition() - Method in interface io.github.hapjava.accessories.WindowAccessory
+
+
Unsubscribes from changes in the door's target position
+
+
unsubscribeTargetPosition() - Method in interface io.github.hapjava.accessories.WindowCoveringAccessory
+
+
Unsubscribes from changes in the target position.
+
+
unsubscribeTargetRelativeHumidity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetRelativeHumidity
+
+
Unsubscribes from changes in the target relative humidity.
+
+
unsubscribeTargetSecuritySystemState() - Method in interface io.github.hapjava.accessories.SecuritySystemAccessory
+
+
Unsubscribes from changes in the pending, but not yet completed, state of the security system.
+
+
unsubscribeTargetState() - Method in interface io.github.hapjava.accessories.AirPurifierAccessory
+
+
Unsubscribes from changes in the target state of the air purifier.
+
+
unsubscribeTargetState() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Unsubscribes from changes in the pending, but not yet complete, TargetHeatingCoolingStateEnum of the thermostat.
+
+
unsubscribeTargetTemperature() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Unsubscribes from changes in the target temperature.
+
+
unsubscribeTargetTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetTilting
+
+
Unsubscribes from changes in the target tilt angle
+
+
unsubscribeTargetVerticalTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVerticalTilting
+
+
Unsubscribes from changes in the target vertical tilt angle
+
+
unsubscribeTargetVerticalTiltAngle() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVerticalTilting
+
+
Unsubscribes from changes in the target vertical tilt angle
+
+
unsubscribeTargetVisibilityState() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVisibilityState
+
+
Unsubscribes from changes in the target visibility state.
+
+
unsubscribeTemperatureDisplayUnit() - Method in interface io.github.hapjava.accessories.ThermostatAccessory
+
+
Unsubscribes from changes in temperature display unit
+
+
unsubscribeTemperatureDisplayUnits() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTemperatureDisplayUnits
+
+
Unsubscribes from changes in the temperature display units
+
+
unsubscribeValveActive() - Method in interface io.github.hapjava.accessories.ValveAccessory
+
+
Unsubscribes from changes in the valve active state.
+
+
unsubscribeValveInUse() - Method in interface io.github.hapjava.accessories.ValveAccessory
+
+
Unsubscribes from changes in the valve inUse state.
+
+
unsubscribeValveType() - Method in interface io.github.hapjava.accessories.ValveAccessory
+
+
Unsubscribes from changes in the valveType state.
+
+
unsubscribeVOCDensity() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVOCDensity
+
+
Unsubscribes from changes
+
+
unsubscribeVolume() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolume
+
+
Unsubscribes from changes in the volume.
+
+
unsubscribeVolumeControlType() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolumeControlType
+
+
Unsubscribes from changes in the volume.
+
+
unsubscribeWaterLevel() - Method in interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithWaterLevel
+
+
Unsubscribes from changes in the water level.
+
+
USB - io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
 
+
userIsAdmin(String) - Method in interface io.github.hapjava.server.HomekitAuthInfo
+
+
Determine if the specified user is an admin.
+
+
+ + + +

V

+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.airquality.AirQualityEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.battery.ChargingStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.battery.StatusLowBatteryEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.common.ActiveEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.common.InUseEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.common.IsConfiguredEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.common.ProgramModeEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.common.ServiceLabelNamespaceEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.common.StatusFaultEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.common.StatusTamperedEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.contactsensor.ContactStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.fan.CurrentFanStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.fan.RotationDirectionEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.fan.SwingModeEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.fan.TargetFanStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.lock.LockCurrentStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.lock.LockTargetStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.slat.CurrentSlatStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.slat.SlatTypeEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.television.ClosedCaptionsEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.television.PictureModeEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.television.PowerModeEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.television.TargetMediaStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.valve.ValveTypeEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.github.hapjava.characteristics.impl.windowcovering.PositionStateEnum
+
+
Returns the enum constant of this type with the specified name.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.airquality.AirQualityEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.battery.ChargingStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.battery.StatusLowBatteryEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.common.ActiveEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.common.InUseEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.common.IsConfiguredEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.common.ProgramModeEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.common.ServiceLabelNamespaceEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.common.StatusFaultEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.common.StatusTamperedEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.contactsensor.ContactStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.fan.CurrentFanStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.fan.RotationDirectionEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.fan.SwingModeEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.fan.TargetFanStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.lock.LockCurrentStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.lock.LockTargetStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.slat.CurrentSlatStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.slat.SlatTypeEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.television.ClosedCaptionsEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.television.PictureModeEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.television.PowerModeEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.television.RemoteKeyEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.television.TargetMediaStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.valve.ValveTypeEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.github.hapjava.characteristics.impl.windowcovering.PositionStateEnum
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
ValveAccessory - Interface in io.github.hapjava.accessories
+
+
A Valve (sprinkler head, faucet, etc.)
+
+
ValveService - Class in io.github.hapjava.services.impl
+
+
This service describes accessories valves.
+
+
ValveService(ValveAccessory) - Constructor for class io.github.hapjava.services.impl.ValveService
+
 
+
ValveService(ActiveCharacteristic, InUseCharacteristic, ValveTypeCharacteristic) - Constructor for class io.github.hapjava.services.impl.ValveService
+
 
+
ValveTypeCharacteristic - Class in io.github.hapjava.characteristics.impl.valve
+
+
This characteristic describes the type of valve.
+
+
ValveTypeCharacteristic(Supplier<CompletableFuture<ValveTypeEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.valve.ValveTypeCharacteristic
+
 
+
ValveTypeEnum - Enum in io.github.hapjava.characteristics.impl.valve
+
+
The mode used by a ValveAccessory
+
+
VersionCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic describes HAP version.
+
+
VersionCharacteristic(Supplier<CompletableFuture<String>>) - Constructor for class io.github.hapjava.characteristics.impl.common.VersionCharacteristic
+
 
+
VERTICAL - io.github.hapjava.characteristics.impl.slat.SlatTypeEnum
+
 
+
VIDEO_DOORBELLS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
VIVID - io.github.hapjava.characteristics.impl.television.PictureModeEnum
+
 
+
VOCDensityCharacteristic - Class in io.github.hapjava.characteristics.impl.airquality
+
+
This characteristic indicates the current volatile organic compound (VOC) density in + micrograms/m3.
+
+
VOCDensityCharacteristic(double, double, double, Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.VOCDensityCharacteristic
+
 
+
VOCDensityCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.airquality.VOCDensityCharacteristic
+
 
+
VolumeCharacteristic - Class in io.github.hapjava.characteristics.impl.audio
+
+
Volume characteristic to control audio volume.
+
+
VolumeCharacteristic(Supplier<CompletableFuture<Integer>>, ExceptionalConsumer<Integer>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.audio.VolumeCharacteristic
+
 
+
VolumeControlTypeCharacteristic - Class in io.github.hapjava.characteristics.impl.televisionspeaker
+
+
This characteristic indicates volume control type.
+
+
VolumeControlTypeCharacteristic(Supplier<CompletableFuture<VolumeControlTypeEnum>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeCharacteristic
+
 
+
VolumeControlTypeEnum - Enum in io.github.hapjava.characteristics.impl.televisionspeaker
+
 
+
VolumeSelectorCharacteristic - Class in io.github.hapjava.characteristics.impl.televisionspeaker
+
+
This characteristic sends information about volume changes.
+
+
VolumeSelectorCharacteristic(ExceptionalConsumer<VolumeSelectorEnum>) - Constructor for class io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorCharacteristic
+
 
+
VolumeSelectorEnum - Enum in io.github.hapjava.characteristics.impl.televisionspeaker
+
 
+
+ + + +

W

+
+
WATER_FAUCET - io.github.hapjava.characteristics.impl.valve.ValveTypeEnum
+
 
+
WaterLavelCharacteristic - Class in io.github.hapjava.characteristics.impl.common
+
+
This characteristic describes the water level.
+
+
WaterLavelCharacteristic(Supplier<CompletableFuture<Double>>, Consumer<HomekitCharacteristicChangeCallback>, Runnable) - Constructor for class io.github.hapjava.characteristics.impl.common.WaterLavelCharacteristic
+
 
+
WINDOW_COVERINGS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
WindowAccessory - Interface in io.github.hapjava.accessories
+
+
motorized window accessory.
+
+
WindowCoveringAccessory - Interface in io.github.hapjava.accessories
+
+
A window covering, like blinds, which can be remotely controlled.
+
+
WindowCoveringService - Class in io.github.hapjava.services.impl
+
+
This service describes motorized window coverings or shades
+
+
WindowCoveringService(WindowCoveringAccessory) - Constructor for class io.github.hapjava.services.impl.WindowCoveringService
+
 
+
WindowCoveringService(TargetPositionCharacteristic, CurrentPositionCharacteristic, PositionStateCharacteristic) - Constructor for class io.github.hapjava.services.impl.WindowCoveringService
+
 
+
WINDOWS - Static variable in class io.github.hapjava.server.HomekitAccessoryCategories
+
 
+
WindowService - Class in io.github.hapjava.services.impl
+
+
This service describes a motorized window.
+
+
WindowService(WindowAccessory) - Constructor for class io.github.hapjava.services.impl.WindowService
+
 
+
WindowService(CurrentPositionCharacteristic, TargetPositionCharacteristic, PositionStateCharacteristic) - Constructor for class io.github.hapjava.services.impl.WindowService
+
 
+
+A B C D E F G H I J L M N O P R S T U V W 
All Classes All Packages
+
+ + + \ No newline at end of file diff --git a/apidocs/index.html b/apidocs/index.html new file mode 100644 index 000000000..7eba631db --- /dev/null +++ b/apidocs/index.html @@ -0,0 +1,316 @@ + + + + + +Overview (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

hap-java 2.0.10-SNAPSHOT API

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages 
PackageDescription
io.github.hapjava.accessories +
Contains interfaces that can be implemented to represent an exposed accessory.
+
io.github.hapjava.accessories.optionalcharacteristic 
io.github.hapjava.characteristics +
Contains the basic characteristic types that can be supplied over the HomeKit Accessory Protocol.
+
io.github.hapjava.characteristics.impl.accessoryinformation 
io.github.hapjava.characteristics.impl.airpurifier 
io.github.hapjava.characteristics.impl.airquality 
io.github.hapjava.characteristics.impl.audio 
io.github.hapjava.characteristics.impl.base 
io.github.hapjava.characteristics.impl.battery 
io.github.hapjava.characteristics.impl.carbondioxidesensor 
io.github.hapjava.characteristics.impl.carbonmonoxidesensor 
io.github.hapjava.characteristics.impl.common 
io.github.hapjava.characteristics.impl.contactsensor 
io.github.hapjava.characteristics.impl.fan 
io.github.hapjava.characteristics.impl.filtermaintenance 
io.github.hapjava.characteristics.impl.garagedoor 
io.github.hapjava.characteristics.impl.heatercooler 
io.github.hapjava.characteristics.impl.humidifier 
io.github.hapjava.characteristics.impl.humiditysensor 
io.github.hapjava.characteristics.impl.inputsource 
io.github.hapjava.characteristics.impl.leaksensor 
io.github.hapjava.characteristics.impl.lightbulb 
io.github.hapjava.characteristics.impl.lightsensor 
io.github.hapjava.characteristics.impl.lock 
io.github.hapjava.characteristics.impl.motionsensor 
io.github.hapjava.characteristics.impl.occupancysensor 
io.github.hapjava.characteristics.impl.outlet 
io.github.hapjava.characteristics.impl.securitysystem 
io.github.hapjava.characteristics.impl.slat 
io.github.hapjava.characteristics.impl.smokesensor 
io.github.hapjava.characteristics.impl.television 
io.github.hapjava.characteristics.impl.televisionspeaker 
io.github.hapjava.characteristics.impl.thermostat 
io.github.hapjava.characteristics.impl.valve 
io.github.hapjava.characteristics.impl.windowcovering 
io.github.hapjava.server 
io.github.hapjava.services 
io.github.hapjava.services.impl 
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/AirPurifierAccessory.html b/apidocs/io/github/hapjava/accessories/AirPurifierAccessory.html new file mode 100644 index 000000000..4a8375458 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/AirPurifierAccessory.html @@ -0,0 +1,506 @@ + + + + + +AirPurifierAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AirPurifierAccessory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> isActive()
        +
        Mandatory: Retrieves the current active state of the fan'.
        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        setActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setActive​(boolean state)
        +                                                          throws java.lang.Exception
        +
        Sets the active state of the fan
        +
        +
        Parameters:
        +
        state - the binary state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeActive

        +
        void subscribeActive​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the active state of the fan.
        +
        +
        Parameters:
        +
        callback - the function to call when the direction changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeActive

        +
        void unsubscribeActive()
        +
        Unsubscribes from changes in the active state of the fan.
        +
      • +
      + + + +
        +
      • +

        getCurrentState

        +
        java.util.concurrent.CompletableFuture<CurrentAirPurifierStateEnum> getCurrentState()
        +
        Retrieves the current state of the air purifier
        +
        +
        Returns:
        +
        a future that will contain the state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentState

        +
        void subscribeCurrentState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the state of the air purifier.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentState

        +
        void unsubscribeCurrentState()
        +
        Unsubscribes from changes in the state of the air purifier.
        +
      • +
      + + + +
        +
      • +

        getTargetState

        +
        java.util.concurrent.CompletableFuture<TargetAirPurifierStateEnum> getTargetState()
        +
        Retrieves the air purifier target state.
        +
        +
        Returns:
        +
        a future that will contain the air purifier target state .
        +
        +
      • +
      + + + +
        +
      • +

        setTargetState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetState​(TargetAirPurifierStateEnum state)
        +
        set target state the air purifier target state.
        +
        +
        Parameters:
        +
        state - air purifier target state
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetState

        +
        void subscribeTargetState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the target state of the air purifier.
        +
        +
        Parameters:
        +
        callback - the function to call when the target state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetState

        +
        void unsubscribeTargetState()
        +
        Unsubscribes from changes in the target state of the air purifier.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/AirQualityAccessory.html b/apidocs/io/github/hapjava/accessories/AirQualityAccessory.html new file mode 100644 index 000000000..f1aa67020 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/AirQualityAccessory.html @@ -0,0 +1,339 @@ + + + + + +AirQualityAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AirQualityAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface AirQualityAccessory
    +extends HomekitAccessory
    +
    An air quality accessory which can include several sensors.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getAirQuality

        +
        java.util.concurrent.CompletableFuture<AirQualityEnum> getAirQuality()
        +
        Retrieves the state of the air quality
        +
        +
        Returns:
        +
        a future that will contain the state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeAirQuality

        +
        void subscribeAirQuality​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the air quality
        +
        +
        Parameters:
        +
        callback - the function to call when the air quality changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeAirQuality

        +
        void unsubscribeAirQuality()
        +
        Unsubscribes from changes in the air quality.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/BasicFanAccessory.html b/apidocs/io/github/hapjava/accessories/BasicFanAccessory.html new file mode 100644 index 000000000..2285d2169 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/BasicFanAccessory.html @@ -0,0 +1,369 @@ + + + + + +BasicFanAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface BasicFanAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface BasicFanAccessory
    +extends HomekitAccessory
    +
    A fan with mandatory characteristics.
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isOn

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> isOn()
        +
        Mandatory: Retrieves the current power state of the fan.
        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        setOn

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setOn​(boolean state)
        +                                                      throws java.lang.Exception
        +
        Sets the active state of the fan
        +
        +
        Parameters:
        +
        state - the binary state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeOn

        +
        void subscribeOn​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the active state of the fan.
        +
        +
        Parameters:
        +
        callback - the function to call when the active state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeOn

        +
        void unsubscribeOn()
        +
        Unsubscribes from changes in the active state of the fan.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/BatteryAccessory.html b/apidocs/io/github/hapjava/accessories/BatteryAccessory.html new file mode 100644 index 000000000..600960316 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/BatteryAccessory.html @@ -0,0 +1,463 @@ + + + + + +BatteryAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface BatteryAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface BatteryAccessory
    +extends HomekitAccessory
    +
    Devices with battery .
    +
    +
    Author:
    +
    Gaston Dombiak
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getBatteryLevel

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getBatteryLevel()
        +
        Retrieves the battery level of the accessory.
        +
        +
        Returns:
        +
        a future that will contain the accessory's battery state
        +
        +
      • +
      + + + +
        +
      • +

        getLowBatteryState

        +
        java.util.concurrent.CompletableFuture<StatusLowBatteryEnum> getLowBatteryState()
        +
        Queries if the device battery level is low; returning a value of true will cause a low-battery + status to appear in Home for the device.
        +
        +
        Returns:
        +
        a future that will contain the accessory's low battery state
        +
        +
      • +
      + + + +
        +
      • +

        getChargingState

        +
        java.util.concurrent.CompletableFuture<ChargingStateEnum> getChargingState()
        +
        Retriece the battery charging state.
        +
        +
        Returns:
        +
        a future that will contain the battery charging state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeBatteryLevel

        +
        void subscribeBatteryLevel​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the battery level.
        +
        +
        Parameters:
        +
        callback - the function to call when battery level changes.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeLowBatteryState

        +
        void subscribeLowBatteryState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the battery level.
        +
        +
        Parameters:
        +
        callback - the function to call when low battery state changes.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeBatteryChargingState

        +
        void subscribeBatteryChargingState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the battery level.
        +
        +
        Parameters:
        +
        callback - the function to call when low battery state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeBatteryLevel

        +
        void unsubscribeBatteryLevel()
        +
        Unsubscribes from changes in the battery level.
        +
      • +
      + + + +
        +
      • +

        unsubscribeLowBatteryState

        +
        void unsubscribeLowBatteryState()
        +
        Unsubscribes from changes in the low battery state.
        +
      • +
      + + + +
        +
      • +

        unsubscribeBatteryChargingState

        +
        void unsubscribeBatteryChargingState()
        +
        Unsubscribes from changes in the low battery state.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/Bridge.html b/apidocs/io/github/hapjava/accessories/Bridge.html new file mode 100644 index 000000000..e9270ef34 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/Bridge.html @@ -0,0 +1,274 @@ + + + + + +Bridge (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface Bridge

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        identify

        +
        default void identify()
        +
        Description copied from interface: HomekitAccessory
        +
        Performs an operation that can be used to identify the accessory. This action can be performed + without pairing.
        +
        +
        Specified by:
        +
        identify in interface HomekitAccessory
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/CarbonDioxideSensorAccessory.html b/apidocs/io/github/hapjava/accessories/CarbonDioxideSensorAccessory.html new file mode 100644 index 000000000..116fd0f50 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/CarbonDioxideSensorAccessory.html @@ -0,0 +1,339 @@ + + + + + +CarbonDioxideSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface CarbonDioxideSensorAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface CarbonDioxideSensorAccessory
    +extends HomekitAccessory
    +
    A carbon dioxide sensor reports carbon dioxide level.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCarbonDioxideDetectedState

        +
        java.util.concurrent.CompletableFuture<CarbonDioxideDetectedEnum> getCarbonDioxideDetectedState()
        +
        Retrieves the state of the sensor that indicates if carbon dioxide has been detected.
        +
        +
        Returns:
        +
        a future that will contain the carbon dioxide sensor's state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCarbonDioxideDetectedState

        +
        void subscribeCarbonDioxideDetectedState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the carbon dioxide's state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCarbonDioxideDetectedState

        +
        void unsubscribeCarbonDioxideDetectedState()
        +
        Unsubscribes from changes in the carbon dioxide's state.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/CarbonMonoxideSensorAccessory.html b/apidocs/io/github/hapjava/accessories/CarbonMonoxideSensorAccessory.html new file mode 100644 index 000000000..71d7ea2e0 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/CarbonMonoxideSensorAccessory.html @@ -0,0 +1,343 @@ + + + + + +CarbonMonoxideSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface CarbonMonoxideSensorAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface CarbonMonoxideSensorAccessory
    +extends HomekitAccessory
    +
    A carbon monoxide sensor reports whether carbon monoxide has been detected or not.
    +
    +
    Author:
    +
    Gaston Dombiak
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCarbonMonoxideDetectedState

        +
        java.util.concurrent.CompletableFuture<CarbonMonoxideDetectedEnum> getCarbonMonoxideDetectedState()
        +
        Retrieves the state of the sensor that indicates if carbon monoxide has been detected.
        +
        +
        Returns:
        +
        a future that will contain the carbon monoxide sensor's state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCarbonMonoxideDetectedState

        +
        void subscribeCarbonMonoxideDetectedState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the carbon monoxide's state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCarbonMonoxideDetectedState

        +
        void unsubscribeCarbonMonoxideDetectedState()
        +
        Unsubscribes from changes in the carbon monoxide's state.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/ContactSensorAccessory.html b/apidocs/io/github/hapjava/accessories/ContactSensorAccessory.html new file mode 100644 index 000000000..9c73e8da1 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/ContactSensorAccessory.html @@ -0,0 +1,345 @@ + + + + + +ContactSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface ContactSensorAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface ContactSensorAccessory
    +extends HomekitAccessory
    +
    A contact sensor that reports whether contact is detected or not. Typical contact sensors are + window/door sensors. When contact is detected it means that the door/window is closed.
    +
    +
    Author:
    +
    Gaston Dombiak
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentState

        +
        java.util.concurrent.CompletableFuture<ContactStateEnum> getCurrentState()
        +
        Retrieves the state of the contact. This is whether the contact is detected or not. Detected + contact means door/window is closed.
        +
        +
        Returns:
        +
        a future that will contain the contact's state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeContactState

        +
        void subscribeContactState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the contact state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeContactState

        +
        void unsubscribeContactState()
        +
        Unsubscribes from changes in the contact state.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/DoorAccessory.html b/apidocs/io/github/hapjava/accessories/DoorAccessory.html new file mode 100644 index 000000000..fa9ece466 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/DoorAccessory.html @@ -0,0 +1,483 @@ + + + + + +DoorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface DoorAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface DoorAccessory
    +extends HomekitAccessory
    +
    A motorized door with current and target position.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPositionState

        +
        java.util.concurrent.CompletableFuture<PositionStateEnum> getPositionState()
        +
        Retrieves the position state of the door
        +
        +
        Returns:
        +
        a future which will contain the door's position state
        +
        +
      • +
      + + + +
        +
      • +

        getCurrentPosition

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getCurrentPosition()
        +
        Retrieves the current position of the door
        +
        +
        Returns:
        +
        a future which will contain the door's current position
        +
        +
      • +
      + + + +
        +
      • +

        getTargetPosition

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getTargetPosition()
        +
        Retrieves the target position of the door
        +
        +
        Returns:
        +
        a future which will contain the door's target position
        +
        +
      • +
      + + + +
        +
      • +

        setTargetPosition

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetPosition​(java.lang.Integer position)
        +                                                                  throws java.lang.Exception
        +
        Sets the targeted state of the door.
        +
        +
        Parameters:
        +
        position - the targeted position
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribePositionState

        +
        void subscribePositionState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the door's position state
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentPosition

        +
        void subscribeCurrentPosition​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the door's current position
        +
        +
        Parameters:
        +
        callback - the function to call when the current position changes
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetPosition

        +
        void subscribeTargetPosition​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the door's target position
        +
        +
        Parameters:
        +
        callback - the function to call when the target position changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribePositionState

        +
        void unsubscribePositionState()
        +
        Unsubscribes from changes in the door's state
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentPosition

        +
        void unsubscribeCurrentPosition()
        +
        Unsubscribes from changes in the door's current position
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetPosition

        +
        void unsubscribeTargetPosition()
        +
        Unsubscribes from changes in the door's target position
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/DoorbellAccessory.html b/apidocs/io/github/hapjava/accessories/DoorbellAccessory.html new file mode 100644 index 000000000..1b023cd0d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/DoorbellAccessory.html @@ -0,0 +1,340 @@ + + + + + +DoorbellAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface DoorbellAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface DoorbellAccessory
    +extends HomekitAccessory
    +
    doorbell accessory with a switch (button push) event.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSwitchEvent

        +
        java.util.concurrent.CompletableFuture<ProgrammableSwitchEnum> getSwitchEvent()
        +
        Retrieves the last states of the doorbell. Bluetooth device should return the last event, the + IP device should always return null
        +
        +
        Returns:
        +
        state of the door bell event
        +
        +
      • +
      + + + +
        +
      • +

        subscribeSwitchEvent

        +
        void subscribeSwitchEvent​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in doorbell switch event, i.e. pressing on the door bell button.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeSwitchEvent

        +
        void unsubscribeSwitchEvent()
        +
        Unsubscribes from changes in doorbell switch event.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/FanAccessory.html b/apidocs/io/github/hapjava/accessories/FanAccessory.html new file mode 100644 index 000000000..026b1cd3d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/FanAccessory.html @@ -0,0 +1,369 @@ + + + + + +FanAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface FanAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface FanAccessory
    +extends HomekitAccessory
    +
    A fan with mandatory characteristics.
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> isActive()
        +
        Mandatory: Retrieves the current active state of the fan'.
        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        setActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setActive​(boolean state)
        +                                                          throws java.lang.Exception
        +
        Sets the active state of the fan
        +
        +
        Parameters:
        +
        state - the binary state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeActive

        +
        void subscribeActive​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the active state of the fan.
        +
        +
        Parameters:
        +
        callback - the function to call when the active state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeActive

        +
        void unsubscribeActive()
        +
        Unsubscribes from changes in the active state of the fan.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/FaucetAccessory.html b/apidocs/io/github/hapjava/accessories/FaucetAccessory.html new file mode 100644 index 000000000..a14c775d1 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/FaucetAccessory.html @@ -0,0 +1,365 @@ + + + + + +FaucetAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface FaucetAccessory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> isActive()
        +
        Mandatory: Retrieves the current active state of the faucet.
        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        setActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setActive​(boolean state)
        +                                                          throws java.lang.Exception
        +
        Sets the active state of the faucet
        +
        +
        Parameters:
        +
        state - the binary state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeActive

        +
        void subscribeActive​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the active state of the faucet.
        +
        +
        Parameters:
        +
        callback - the function to call when the active state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeActive

        +
        void unsubscribeActive()
        +
        Unsubscribes from changes in the active state of the faucet.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/FilterMaintenanceAccessory.html b/apidocs/io/github/hapjava/accessories/FilterMaintenanceAccessory.html new file mode 100644 index 000000000..eb164b670 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/FilterMaintenanceAccessory.html @@ -0,0 +1,342 @@ + + + + + +FilterMaintenanceAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface FilterMaintenanceAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface FilterMaintenanceAccessory
    +extends HomekitAccessory
    +
    A Filter maintenance with mandatory characteristics. + +

    The HomeKit app doesn't support a separate FilterMaintenance, but as a linked service to + AirPurifier.

    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getFilterChangeIndication

        +
        java.util.concurrent.CompletableFuture<FilterChangeIndicationEnum> getFilterChangeIndication()
        +
        The filter change indictaion. It's either yes or no.
        +
        +
        Returns:
        +
        FilterChangeIndicationEnum
        +
        +
      • +
      + + + +
        +
      • +

        subscribeFilterChangeIndication

        +
        void subscribeFilterChangeIndication​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the filter change indication.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeFilterChangeIndication

        +
        void unsubscribeFilterChangeIndication()
        +
        Unsubscribes from changes in the filter change indication.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/GarageDoorOpenerAccessory.html b/apidocs/io/github/hapjava/accessories/GarageDoorOpenerAccessory.html new file mode 100644 index 000000000..88cca11ba --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/GarageDoorOpenerAccessory.html @@ -0,0 +1,487 @@ + + + + + +GarageDoorOpenerAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface GarageDoorOpenerAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface GarageDoorOpenerAccessory
    +extends HomekitAccessory
    +
    garage door opener accessory with control and status of a garage door
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentDoorState

        +
        java.util.concurrent.CompletableFuture<CurrentDoorStateEnum> getCurrentDoorState()
        +
        Retrieves the current state of the door
        +
        +
        Returns:
        +
        a future which will contain the door's state
        +
        +
      • +
      + + + +
        +
      • +

        getTargetDoorState

        +
        java.util.concurrent.CompletableFuture<TargetDoorStateEnum> getTargetDoorState()
        +
        Retrieves the targeted state of the door
        +
        +
        Returns:
        +
        a future which will contain the door's targeted state
        +
        +
      • +
      + + + +
        +
      • +

        getObstructionDetected

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> getObstructionDetected()
        +
        Retrieves an indicator of an obstruction detected by the door
        +
        +
        Returns:
        +
        a future which will contain the indicator
        +
        +
      • +
      + + + +
        +
      • +

        setTargetDoorState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetDoorState​(TargetDoorStateEnum state)
        +                                                                   throws java.lang.Exception
        +
        Sets the targeted state of the door.
        +
        +
        Parameters:
        +
        state - the targeted state
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentDoorState

        +
        void subscribeCurrentDoorState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the door's state
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetDoorState

        +
        void subscribeTargetDoorState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the door's targeted state
        +
        +
        Parameters:
        +
        callback - the function to call when the targeted state changes
        +
        +
      • +
      + + + +
        +
      • +

        subscribeObstructionDetected

        +
        void subscribeObstructionDetected​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the obstruction detected indicator
        +
        +
        Parameters:
        +
        callback - the function to call when the indicator chnages
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentDoorState

        +
        void unsubscribeCurrentDoorState()
        +
        Unsubscribes from changes in the door's state
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetDoorState

        +
        void unsubscribeTargetDoorState()
        +
        Unsubscribes from changes in the door's targeted state
        +
      • +
      + + + +
        +
      • +

        unsubscribeObstructionDetected

        +
        void unsubscribeObstructionDetected()
        +
        Unsubscribes from changes in the door's obstruction detected indicator
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/HeaterCoolerAccessory.html b/apidocs/io/github/hapjava/accessories/HeaterCoolerAccessory.html new file mode 100644 index 000000000..a18ca35b1 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/HeaterCoolerAccessory.html @@ -0,0 +1,607 @@ + + + + + +HeaterCoolerAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface HeaterCoolerAccessory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentTemperature

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getCurrentTemperature()
        +
        Retrieves the current temperature, in celsius degrees.
        +
        +
        Returns:
        +
        a future that will contain the temperature.
        +
        +
      • +
      + + + +
        +
      • +

        isActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> isActive()
        +
        Mandatory: Retrieves the current active state of the Heater Cooler.
        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        setActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setActive​(boolean state)
        +                                                          throws java.lang.Exception
        +
        Sets the active state of the Heater Cooler
        +
        +
        Parameters:
        +
        state - the binary state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        getCurrentHeaterCoolerState

        +
        java.util.concurrent.CompletableFuture<CurrentHeaterCoolerStateEnum> getCurrentHeaterCoolerState()
        +
        Retrieves the heater /cooler current state.
        +
        +
        Returns:
        +
        a future that will contain the heater cooler current state .
        +
        +
      • +
      + + + +
        +
      • +

        getTargetHeaterCoolerState

        +
        java.util.concurrent.CompletableFuture<TargetHeaterCoolerStateEnum> getTargetHeaterCoolerState()
        +
        Retrieves the heater cooler target state.
        +
        +
        Returns:
        +
        a future that will contain the heater cooler target state .
        +
        +
      • +
      + + + +
        +
      • +

        setTargetHeaterCoolerState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetHeaterCoolerState​(TargetHeaterCoolerStateEnum state)
        +
        set heater cooler target state the lock target state.
        +
        +
        Parameters:
        +
        state - heater cooler target state
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentHeaterCoolerState

        +
        void subscribeCurrentHeaterCoolerState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the heater cooler current state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentHeaterCoolerState

        +
        void unsubscribeCurrentHeaterCoolerState()
        +
        Unsubscribes from changes in heater cooler current state.
        +
      • +
      + + + +
        +
      • +

        subscribeTargetHeaterCoolerState

        +
        void subscribeTargetHeaterCoolerState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the heater cooler target state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetHeaterCoolerState

        +
        void unsubscribeTargetHeaterCoolerState()
        +
        Unsubscribes from changes in heater cooler target state.
        +
      • +
      + + + +
        +
      • +

        subscribeActive

        +
        void subscribeActive​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the active state of the heater cooler .
        +
        +
        Parameters:
        +
        callback - the function to call when the active state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeActive

        +
        void unsubscribeActive()
        +
        Unsubscribes from changes in the active state of the heater cooler .
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentTemperature

        +
        void subscribeCurrentTemperature​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current temperature.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentTemperature

        +
        void unsubscribeCurrentTemperature()
        +
        Unsubscribes from changes in the current temperature.
        +
      • +
      + + + +
        +
      • +

        getCurrentHeaterCoolerStateValidValues

        +
        default CurrentHeaterCoolerStateEnum[] getCurrentHeaterCoolerStateValidValues()
        +
        Valid values for current state.
        +
        +
        Returns:
        +
        array of valid current states
        +
        +
      • +
      + + + +
        +
      • +

        getTargetHeaterCoolerStateValidValues

        +
        default TargetHeaterCoolerStateEnum[] getTargetHeaterCoolerStateValidValues()
        +
        Valid values for target state.
        +
        +
        Returns:
        +
        array of valid target states
        +
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/HomekitAccessory.html b/apidocs/io/github/hapjava/accessories/HomekitAccessory.html new file mode 100644 index 000000000..3120b1f50 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/HomekitAccessory.html @@ -0,0 +1,442 @@ + + + + + +HomekitAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface HomekitAccessory

+
+
+ +
+
    +
  • + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and TypeMethodDescription
      java.util.concurrent.CompletableFuture<java.lang.String>getFirmwareRevision() +
      Returns a firmware revision to display in iOS.
      +
      intgetId() +
      A unique identifier that must remain static across invocations to prevent errors with paired + iOS devices.
      +
      java.util.concurrent.CompletableFuture<java.lang.String>getManufacturer() +
      Returns a manufacturer to display in iOS.
      +
      java.util.concurrent.CompletableFuture<java.lang.String>getModel() +
      Returns a model name to display in iOS.
      +
      java.util.concurrent.CompletableFuture<java.lang.String>getName() +
      Returns a name to display in iOS.
      +
      default ServicegetPrimaryService() +
      default implementation which is sufficient if accessory has only one service
      +
      java.util.concurrent.CompletableFuture<java.lang.String>getSerialNumber() +
      Returns a serial number to display in iOS.
      +
      default java.util.Collection<Service>getServices() +
      The collection of Services this accessory supports.
      +
      voididentify() +
      Performs an operation that can be used to identify the accessory.
      +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getId

        +
        int getId()
        +
        A unique identifier that must remain static across invocations to prevent errors with paired + iOS devices. When used as a child of a Bridge, this value must be greater than 1, as that ID is + reserved for the Bridge itself.
        +
        +
        Returns:
        +
        the unique identifier.
        +
        +
      • +
      + + + +
        +
      • +

        getName

        +
        java.util.concurrent.CompletableFuture<java.lang.String> getName()
        +
        Returns a name to display in iOS.
        +
        +
        Returns:
        +
        the label.
        +
        +
      • +
      + + + +
        +
      • +

        identify

        +
        void identify()
        +
        Performs an operation that can be used to identify the accessory. This action can be performed + without pairing.
        +
      • +
      + + + +
        +
      • +

        getSerialNumber

        +
        java.util.concurrent.CompletableFuture<java.lang.String> getSerialNumber()
        +
        Returns a serial number to display in iOS.
        +
        +
        Returns:
        +
        the serial number, or null.
        +
        +
      • +
      + + + +
        +
      • +

        getModel

        +
        java.util.concurrent.CompletableFuture<java.lang.String> getModel()
        +
        Returns a model name to display in iOS.
        +
        +
        Returns:
        +
        the model name, or null.
        +
        +
      • +
      + + + +
        +
      • +

        getManufacturer

        +
        java.util.concurrent.CompletableFuture<java.lang.String> getManufacturer()
        +
        Returns a manufacturer to display in iOS.
        +
        +
        Returns:
        +
        the manufacturer, or null.
        +
        +
      • +
      + + + +
        +
      • +

        getFirmwareRevision

        +
        java.util.concurrent.CompletableFuture<java.lang.String> getFirmwareRevision()
        +
        Returns a firmware revision to display in iOS.
        +
        +
        Returns:
        +
        the firmware revision, or null.
        +
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      + + + +
        +
      • +

        getPrimaryService

        +
        default Service getPrimaryService()
        +
        default implementation which is sufficient if accessory has only one service
        +
        +
        Returns:
        +
        primary service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/HumidifierDehumidifierAccessory.html b/apidocs/io/github/hapjava/accessories/HumidifierDehumidifierAccessory.html new file mode 100644 index 000000000..2ae470ec7 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/HumidifierDehumidifierAccessory.html @@ -0,0 +1,586 @@ + + + + + +HumidifierDehumidifierAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface HumidifierDehumidifierAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface HumidifierDehumidifierAccessory
    +extends HomekitAccessory
    +
    Humidifier/Dehumidifier accessory
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentHumidity

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getCurrentHumidity()
        +
        Retrieves the current relative humidity.
        +
        +
        Returns:
        +
        a future that will contain the humidity as a value between 0 and 100.
        +
        +
      • +
      + + + +
        +
      • +

        isActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> isActive()
        +
        Mandatory: Retrieves the current active state of the humidifier/dehumidifier.
        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        setActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setActive​(boolean state)
        +                                                          throws java.lang.Exception
        +
        Sets the active state of the humidifier/dehumidifier
        +
        +
        Parameters:
        +
        state - the binary state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        getCurrentHumidifierDehumidifierState

        +
        java.util.concurrent.CompletableFuture<CurrentHumidifierDehumidifierStateEnum> getCurrentHumidifierDehumidifierState()
        +
        Retrieves the humidifier/dehumidifier current state.
        +
        +
        Returns:
        +
        a future that will contain the humidifier/dehumidifier current state .
        +
        +
      • +
      + + + +
        +
      • +

        getTargetHumidifierDehumidifierState

        +
        java.util.concurrent.CompletableFuture<TargetHumidifierDehumidifierStateEnum> getTargetHumidifierDehumidifierState()
        +
        Retrieves the humidifier/dehumidifier target state.
        +
        +
        Returns:
        +
        a future that will contain the humidifier/dehumidifier target state .
        +
        +
      • +
      + + + +
        +
      • +

        setTargetHumidifierDehumidifierState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetHumidifierDehumidifierState​(TargetHumidifierDehumidifierStateEnum state)
        +
        set humidifier/dehumidifier target state the lock target state.
        +
        +
        Parameters:
        +
        state - humidifier/dehumidifier target state
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        getTargetHumidifierDehumidifierStateValidValues

        +
        default TargetHumidifierDehumidifierStateEnum[] getTargetHumidifierDehumidifierStateValidValues()
        +
        Valid values for target state.
        +
        +
        Returns:
        +
        array of valid target states.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentHumidifierDehumidifierState

        +
        void subscribeCurrentHumidifierDehumidifierState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the humidifier/dehumidifier current state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentHumidifierDehumidifierState

        +
        void unsubscribeCurrentHumidifierDehumidifierState()
        +
        Unsubscribes from changes in humidifier/dehumidifier current state.
        +
      • +
      + + + +
        +
      • +

        subscribeTargetHumidifierDehumidifierState

        +
        void subscribeTargetHumidifierDehumidifierState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the humidifier/dehumidifier target state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetHumidifierDehumidifierState

        +
        void unsubscribeTargetHumidifierDehumidifierState()
        +
        Unsubscribes from changes in humidifier/dehumidifier target state.
        +
      • +
      + + + +
        +
      • +

        subscribeActive

        +
        void subscribeActive​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the active state of the humidifier/dehumidifier .
        +
        +
        Parameters:
        +
        callback - the function to call when the active state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeActive

        +
        void unsubscribeActive()
        +
        Unsubscribes from changes in the active state of the humidifier/dehumidifier .
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentHumidity

        +
        void subscribeCurrentHumidity​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current humidity.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentHumidity

        +
        void unsubscribeCurrentHumidity()
        +
        Unsubscribes from changes in the current humidity.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/HumiditySensorAccessory.html b/apidocs/io/github/hapjava/accessories/HumiditySensorAccessory.html new file mode 100644 index 000000000..58a8bab11 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/HumiditySensorAccessory.html @@ -0,0 +1,343 @@ + + + + + +HumiditySensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface HumiditySensorAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface HumiditySensorAccessory
    +extends HomekitAccessory
    +
    A humidity sensor that reports the current relative humidity.
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentRelativeHumidity

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getCurrentRelativeHumidity()
        +
        Retrieves the current relative humidity.
        +
        +
        Returns:
        +
        a future that will contain the humidity as a value between 0 and 100
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentRelativeHumidity

        +
        void subscribeCurrentRelativeHumidity​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current relative humidity.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentRelativeHumidity

        +
        void unsubscribeCurrentRelativeHumidity()
        +
        Unsubscribes from changes in the current relative humidity.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/InputSourceAccessory.html b/apidocs/io/github/hapjava/accessories/InputSourceAccessory.html new file mode 100644 index 000000000..0d6d9f7af --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/InputSourceAccessory.html @@ -0,0 +1,565 @@ + + + + + +InputSourceAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface InputSourceAccessory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getConfiguredName

        +
        java.util.concurrent.CompletableFuture<java.lang.String> getConfiguredName()
        +
        Retrieves configured name of input source.
        +
        +
        Returns:
        +
        configured name of input source
        +
        +
      • +
      + + + +
        +
      • +

        setConfiguredName

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setConfiguredName​(java.lang.String name)
        +                                                                  throws java.lang.Exception
        +
        Sets the configured name.
        +
        +
        Parameters:
        +
        name - configured name
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeConfiguredName

        +
        void subscribeConfiguredName​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in configured name.
        +
        +
        Parameters:
        +
        callback - the function to call when the configured name changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeConfiguredName

        +
        void unsubscribeConfiguredName()
        +
        Unsubscribes from changes in the configured name.
        +
      • +
      + + + +
        +
      • +

        isConfigured

        +
        java.util.concurrent.CompletableFuture<IsConfiguredEnum> isConfigured()
        +
        Retrieves the flag whether input source is configured.
        +
        +
        Returns:
        +
        a future that will contain the flag .
        +
        +
      • +
      + + + +
        +
      • +

        setIsConfigured

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setIsConfigured​(IsConfiguredEnum state)
        +
        set the flag whether input source is configured.
        +
        +
        Parameters:
        +
        state - is configured state
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeIsConfigured

        +
        void subscribeIsConfigured​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in isConfigured.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeIsConfigured

        +
        void unsubscribeIsConfigured()
        +
        Unsubscribes from changes in isConfigured.
        +
      • +
      + + + +
        +
      • +

        getInputSourceType

        +
        java.util.concurrent.CompletableFuture<InputSourceTypeEnum> getInputSourceType()
        +
        Retrieves the input source type.
        +
        +
        Returns:
        +
        a future that will contain the input source type.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeInputSourceType

        +
        void subscribeInputSourceType​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in input source type.
        +
        +
        Parameters:
        +
        callback - the function to call when the type changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeInputSourceType

        +
        void unsubscribeInputSourceType()
        +
        Unsubscribes from changes in the input source type.
        +
      • +
      + + + +
        +
      • +

        getCurrentVisibilityState

        +
        java.util.concurrent.CompletableFuture<CurrentVisibilityStateEnum> getCurrentVisibilityState()
        +
        Retrieves the current visibility state.
        +
        +
        Returns:
        +
        a future that will contain the current visibility state.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentVisibilityState

        +
        void subscribeCurrentVisibilityState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in current visibility state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentVisibilityState

        +
        void unsubscribeCurrentVisibilityState()
        +
        Unsubscribes from changes in the current visibility state.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/IrrigationSystemAccessory.html b/apidocs/io/github/hapjava/accessories/IrrigationSystemAccessory.html new file mode 100644 index 000000000..1f03983e1 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/IrrigationSystemAccessory.html @@ -0,0 +1,486 @@ + + + + + +IrrigationSystemAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface IrrigationSystemAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface IrrigationSystemAccessory
    +extends HomekitAccessory
    +
    irrigation system accessory that controls several valves.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getActive

        +
        java.util.concurrent.CompletableFuture<ActiveEnum> getActive()
        +
        An irrigation system is set to Active when the system is enabled. When one of the valves is set + to In Use, the irrigation system must be set to in use.
        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        setActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setActive​(ActiveEnum active)
        +                                                          throws java.lang.Exception
        +
        Sets the irrigation active state
        +
        +
        Parameters:
        +
        active - the binary state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        getProgramMode

        +
        java.util.concurrent.CompletableFuture<ProgramModeEnum> getProgramMode()
        +
        Retrieves the program mode status
        +
        +
        Returns:
        +
        a future that will contain the valve type.
        +
        +
      • +
      + + + +
        +
      • +

        getInUse

        +
        java.util.concurrent.CompletableFuture<InUseEnum> getInUse()
        +
        Retrieves the current inUse state of the irrigation; InUse means one of the valves is set to In + Use.
        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeInUse

        +
        void subscribeInUse​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the inUse state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeInUse

        +
        void unsubscribeInUse()
        +
        Unsubscribes from changes in the inUse state.
        +
      • +
      + + + +
        +
      • +

        subscribeActive

        +
        void subscribeActive​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the active state of the irrigation.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeActive

        +
        void unsubscribeActive()
        +
        Unsubscribes from changes in the irrigation active state.
        +
      • +
      + + + +
        +
      • +

        subscribeProgramMode

        +
        void subscribeProgramMode​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the program mode of the irrigation system.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeProgramMode

        +
        void unsubscribeProgramMode()
        +
        Unsubscribes from changes in the program mode.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/LeakSensorAccessory.html b/apidocs/io/github/hapjava/accessories/LeakSensorAccessory.html new file mode 100644 index 000000000..10db9834c --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/LeakSensorAccessory.html @@ -0,0 +1,343 @@ + + + + + +LeakSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface LeakSensorAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface LeakSensorAccessory
    +extends HomekitAccessory
    +
    A leak sensor that reports whether a leak has been detected.
    +
    +
    Author:
    +
    Tim Harper
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getLeakDetected

        +
        java.util.concurrent.CompletableFuture<LeakDetectedStateEnum> getLeakDetected()
        +
        Retrieves the state of the leak sensor. If true then leak has been detected.
        +
        +
        Returns:
        +
        a future that will contain the leak sensor's state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeLeakDetected

        +
        void subscribeLeakDetected​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the leak sensor.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeLeakDetected

        +
        void unsubscribeLeakDetected()
        +
        Unsubscribes from changes in the leak sensor.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/LightSensorAccessory.html b/apidocs/io/github/hapjava/accessories/LightSensorAccessory.html new file mode 100644 index 000000000..d7533de6c --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/LightSensorAccessory.html @@ -0,0 +1,409 @@ + + + + + +LightSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface LightSensorAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface LightSensorAccessory
    +extends HomekitAccessory
    +
    A light sensor that reports current ambient light level.
    +
    +
    Author:
    +
    Gaston Dombiak
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentAmbientLightLevel

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getCurrentAmbientLightLevel()
        +
        Retrieves the current ambient light level.
        +
        +
        Returns:
        +
        a future that will contain the luminance level expressed in LUX.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentAmbientLightLevel

        +
        void subscribeCurrentAmbientLightLevel​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current ambient light level.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentAmbientLightLevel

        +
        void unsubscribeCurrentAmbientLightLevel()
        +
        Unsubscribes from changes in the current ambient light level.
        +
      • +
      + + + +
        +
      • +

        getMinCurrentAmbientLightLevel

        +
        default double getMinCurrentAmbientLightLevel()
        +
        return the min value for current ambient light level. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        min current ambient light level
        +
        +
      • +
      + + + +
        +
      • +

        getMaxCurrentAmbientLightLevel

        +
        default double getMaxCurrentAmbientLightLevel()
        +
        return the max value for current ambient light level. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        max current ambient light level
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepCurrentAmbientLightLevel

        +
        default double getMinStepCurrentAmbientLightLevel()
        +
        return the min step value for current ambient light level. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        min step current ambient light level
        +
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/LightbulbAccessory.html b/apidocs/io/github/hapjava/accessories/LightbulbAccessory.html new file mode 100644 index 000000000..c4bc24408 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/LightbulbAccessory.html @@ -0,0 +1,369 @@ + + + + + +LightbulbAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface LightbulbAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface LightbulbAccessory
    +extends HomekitAccessory
    +
    A simple light with a binary state.
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getLightbulbPowerState

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> getLightbulbPowerState()
        +
        Retrieves the current binary state of the light.
        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        setLightbulbPowerState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setLightbulbPowerState​(boolean powerState)
        +                                                                       throws java.lang.Exception
        +
        Sets the binary state of the light
        +
        +
        Parameters:
        +
        powerState - the binary state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeLightbulbPowerState

        +
        void subscribeLightbulbPowerState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the binary state of the light.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeLightbulbPowerState

        +
        void unsubscribeLightbulbPowerState()
        +
        Unsubscribes from changes in the binary state of the light.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/LockMechanismAccessory.html b/apidocs/io/github/hapjava/accessories/LockMechanismAccessory.html new file mode 100644 index 000000000..9ab2eaf31 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/LockMechanismAccessory.html @@ -0,0 +1,421 @@ + + + + + +LockMechanismAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface LockMechanismAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface LockMechanismAccessory
    +extends HomekitAccessory
    +
    Lock mechanism with current and target state.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getLockCurrentState

        +
        java.util.concurrent.CompletableFuture<LockCurrentStateEnum> getLockCurrentState()
        +
        Retrieves the lock current state.
        +
        +
        Returns:
        +
        a future that will contain the lock current state .
        +
        +
      • +
      + + + +
        +
      • +

        getLockTargetState

        +
        java.util.concurrent.CompletableFuture<LockTargetStateEnum> getLockTargetState()
        +
        Retrieves the lock target state.
        +
        +
        Returns:
        +
        a future that will contain the lock target state .
        +
        +
      • +
      + + + +
        +
      • +

        setLockTargetState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setLockTargetState​(LockTargetStateEnum state)
        +
        set lock target state the lock target state.
        +
        +
        Parameters:
        +
        state - lock target state
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeLockCurrentState

        +
        void subscribeLockCurrentState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the lock current state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeLockCurrentState

        +
        void unsubscribeLockCurrentState()
        +
        Unsubscribes from changes in lock current state.
        +
      • +
      + + + +
        +
      • +

        subscribeLockTargetState

        +
        void subscribeLockTargetState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the lock target state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeLockTargetState

        +
        void unsubscribeLockTargetState()
        +
        Unsubscribes from changes in lock target state.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/MicrophoneAccessory.html b/apidocs/io/github/hapjava/accessories/MicrophoneAccessory.html new file mode 100644 index 000000000..cc828eed2 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/MicrophoneAccessory.html @@ -0,0 +1,365 @@ + + + + + +MicrophoneAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface MicrophoneAccessory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isMuted

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> isMuted()
        +
        Retrieves mute status.
        +
        +
        Returns:
        +
        true if accessory is muted
        +
        +
      • +
      + + + +
        +
      • +

        setMute

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setMute​(boolean mute)
        +                                                        throws java.lang.Exception
        +
        Sets the mute status
        +
        +
        Parameters:
        +
        mute - true if accessory should be muted
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeMuteState

        +
        void subscribeMuteState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in mute state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeMuteState

        +
        void unsubscribeMuteState()
        +
        Unsubscribes from changes in the mute state.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/MotionSensorAccessory.html b/apidocs/io/github/hapjava/accessories/MotionSensorAccessory.html new file mode 100644 index 000000000..5f701165d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/MotionSensorAccessory.html @@ -0,0 +1,343 @@ + + + + + +MotionSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface MotionSensorAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface MotionSensorAccessory
    +extends HomekitAccessory
    +
    A motion sensor that reports whether motion has been detected.
    +
    +
    Author:
    +
    Gaston Dombiak
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getMotionDetected

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> getMotionDetected()
        +
        Retrieves the state of the motion sensor. If true then motion has been detected.
        +
        +
        Returns:
        +
        a future that will contain the motion sensor's state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeMotionDetected

        +
        void subscribeMotionDetected​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the motion sensor.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeMotionDetected

        +
        void unsubscribeMotionDetected()
        +
        Unsubscribes from changes in the motion sensor.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/OccupancySensorAccessory.html b/apidocs/io/github/hapjava/accessories/OccupancySensorAccessory.html new file mode 100644 index 000000000..e339dbcf3 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/OccupancySensorAccessory.html @@ -0,0 +1,343 @@ + + + + + +OccupancySensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface OccupancySensorAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface OccupancySensorAccessory
    +extends HomekitAccessory
    +
    An occupancy sensor that reports whether occupancy has been detected.
    +
    +
    Author:
    +
    Tim Harper
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getOccupancyDetected

        +
        java.util.concurrent.CompletableFuture<OccupancyDetectedEnum> getOccupancyDetected()
        +
        Retrieves the state of the occupancy sensor. If true then occupancy has been detected.
        +
        +
        Returns:
        +
        a future that will contain the occupancy sensor's state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeOccupancyDetected

        +
        void subscribeOccupancyDetected​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the occupancy sensor.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeOccupancyDetected

        +
        void unsubscribeOccupancyDetected()
        +
        Unsubscribes from changes in the occupancy sensor.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/OutletAccessory.html b/apidocs/io/github/hapjava/accessories/OutletAccessory.html new file mode 100644 index 000000000..27efa7249 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/OutletAccessory.html @@ -0,0 +1,428 @@ + + + + + +OutletAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface OutletAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface OutletAccessory
    +extends HomekitAccessory
    +
    A power outlet with boolean power and usage states.
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPowerState

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> getPowerState()
        +
        Retrieves the current binary state of the outlet's power.
        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        getOutletInUse

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> getOutletInUse()
        +
        Retrieves the current binary state indicating whether the outlet is in use.
        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        setPowerState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setPowerState​(boolean state)
        +                                                              throws java.lang.Exception
        +
        Sets the binary state of the outlet's power.
        +
        +
        Parameters:
        +
        state - the binary state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribePowerState

        +
        void subscribePowerState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the binary state of the outlet's power.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeOutletInUse

        +
        void subscribeOutletInUse​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the binary state indicating whether the outlet is in use.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribePowerState

        +
        void unsubscribePowerState()
        +
        Unsubscribes from changes in the binary state of the outlet's power.
        +
      • +
      + + + +
        +
      • +

        unsubscribeOutletInUse

        +
        void unsubscribeOutletInUse()
        +
        Unsubscribes from changes in the binary state indicating whether hte outlet is in use.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/SecuritySystemAccessory.html b/apidocs/io/github/hapjava/accessories/SecuritySystemAccessory.html new file mode 100644 index 000000000..c2c90e2b8 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/SecuritySystemAccessory.html @@ -0,0 +1,472 @@ + + + + + +SecuritySystemAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface SecuritySystemAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface SecuritySystemAccessory
    +extends HomekitAccessory
    +
    A security system that can be armed so that when a contact sensor is opened or a motion sensor + detects movement, then a siren could be fired off. There are different modes for arming the + system. See TargetSecuritySystemStateEnum for more information.
    +
    +
    Author:
    +
    Gaston Dombiak
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentSecuritySystemState

        +
        java.util.concurrent.CompletableFuture<CurrentSecuritySystemStateEnum> getCurrentSecuritySystemState()
        +
        Retrieves the current state of the security system. The state describes if the system is armed + in any of its variations; or if the alarm has been triggered; or if the system is disarmed.
        +
        +
        Returns:
        +
        current state of the security system.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentSecuritySystemState

        +
        void subscribeCurrentSecuritySystemState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes to the state of the security system.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentSecuritySystemState

        +
        void unsubscribeCurrentSecuritySystemState()
        +
        Unsubscribes from changes in the state of the security system.
        +
      • +
      + + + +
        +
      • +

        setTargetSecuritySystemState

        +
        void setTargetSecuritySystemState​(TargetSecuritySystemStateEnum state)
        +                           throws java.lang.Exception
        +
        Sets the state of the security system. The security system could be armed in any of its + variations or disarmed.
        +
        +
        Parameters:
        +
        state - target state of the security system.
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made.
        +
        +
      • +
      + + + +
        +
      • +

        getTargetSecuritySystemState

        +
        java.util.concurrent.CompletableFuture<TargetSecuritySystemStateEnum> getTargetSecuritySystemState()
        +
        Retrieves the pending, but not yet completed, state of the security system.
        +
        +
        Returns:
        +
        target state of the security system.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetSecuritySystemState

        +
        void subscribeTargetSecuritySystemState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the pending, but not yet completed, state of the security system.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetSecuritySystemState

        +
        void unsubscribeTargetSecuritySystemState()
        +
        Unsubscribes from changes in the pending, but not yet completed, state of the security system.
        +
      • +
      + + + +
        +
      • +

        getCurrentSecuritySystemStateValidValues

        +
        default CurrentSecuritySystemStateEnum[] getCurrentSecuritySystemStateValidValues()
        +
        Valid values for current state.
        +
        +
        Returns:
        +
        array of valid current states.
        +
        +
      • +
      + + + +
        +
      • +

        getTargetSecuritySystemStateValidValues

        +
        default TargetSecuritySystemStateEnum[] getTargetSecuritySystemStateValidValues()
        +
        Valid values for target state.
        +
        +
        Returns:
        +
        array of valid targe states.
        +
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/SlatAccessory.html b/apidocs/io/github/hapjava/accessories/SlatAccessory.html new file mode 100644 index 000000000..cfc00b06c --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/SlatAccessory.html @@ -0,0 +1,360 @@ + + + + + +SlatAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface SlatAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface SlatAccessory
    +extends HomekitAccessory
    +
    A slat accessory which tilts on a vertical or a horizontal axis.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSlatState

        +
        java.util.concurrent.CompletableFuture<CurrentSlatStateEnum> getSlatState()
        +
        Retrieves the current state of the slat
        +
        +
        Returns:
        +
        a future that will contain the state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeSlatState

        +
        void subscribeSlatState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the state of the slat.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeSlatState

        +
        void unsubscribeSlatState()
        +
        Unsubscribes from changes in the state of the slat.
        +
      • +
      + + + +
        +
      • +

        getSlatType

        +
        java.util.concurrent.CompletableFuture<SlatTypeEnum> getSlatType()
        +
        Retrieves the slat type.
        +
        +
        Returns:
        +
        a future that will slat type.
        +
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/SmartSpeakerAccessory.html b/apidocs/io/github/hapjava/accessories/SmartSpeakerAccessory.html new file mode 100644 index 000000000..2daad6fdf --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/SmartSpeakerAccessory.html @@ -0,0 +1,421 @@ + + + + + +SmartSpeakerAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface SmartSpeakerAccessory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentMediaState

        +
        java.util.concurrent.CompletableFuture<CurrentMediaStateEnum> getCurrentMediaState()
        +
        Retrieves the current media state (see CurrentMediaStateEnum for supported values).
        +
        +
        Returns:
        +
        a future that will contain the current media state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentMediaState

        +
        void subscribeCurrentMediaState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current media state.
        +
        +
        Parameters:
        +
        callback - the function to call when the current media state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentMediaState

        +
        void unsubscribeCurrentMediaState()
        +
        Unsubscribes from changes in the current media state.
        +
      • +
      + + + +
        +
      • +

        getTargetMediaState

        +
        java.util.concurrent.CompletableFuture<TargetMediaStateEnum> getTargetMediaState()
        +
        Retrieves the target media state (see TargetMediaStateEnum for supported values).
        +
        +
        Returns:
        +
        a future that will contain the target media state
        +
        +
      • +
      + + + +
        +
      • +

        setTargetMediaState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetMediaState​(TargetMediaStateEnum targetMediaState)
        +
        Set the target media state (see TargetMediaStateEnum for supported values).
        +
        +
        Parameters:
        +
        targetMediaState - target media state
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetMediaState

        +
        void subscribeTargetMediaState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the target media state.
        +
        +
        Parameters:
        +
        callback - the function to call when the target media state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetMediaState

        +
        void unsubscribeTargetMediaState()
        +
        Unsubscribes from changes in the target media state.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/SmokeSensorAccessory.html b/apidocs/io/github/hapjava/accessories/SmokeSensorAccessory.html new file mode 100644 index 000000000..603fdcd02 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/SmokeSensorAccessory.html @@ -0,0 +1,343 @@ + + + + + +SmokeSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface SmokeSensorAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface SmokeSensorAccessory
    +extends HomekitAccessory
    +
    A smoke sensor reports whether smoke has been detected or not.
    +
    +
    Author:
    +
    Gaston Dombiak
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSmokeDetectedState

        +
        java.util.concurrent.CompletableFuture<SmokeDetectedStateEnum> getSmokeDetectedState()
        +
        Retrieves the state of the smoke sensor. This is whether smoke has been detected or not.
        +
        +
        Returns:
        +
        a future that will contain the smoke sensor's state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeSmokeDetectedState

        +
        void subscribeSmokeDetectedState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the smoke sensor's state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeSmokeDetectedState

        +
        void unsubscribeSmokeDetectedState()
        +
        Unsubscribes from changes in the smoke sensor's state.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/SpeakerAccessory.html b/apidocs/io/github/hapjava/accessories/SpeakerAccessory.html new file mode 100644 index 000000000..d05de3ea8 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/SpeakerAccessory.html @@ -0,0 +1,365 @@ + + + + + +SpeakerAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface SpeakerAccessory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isMuted

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> isMuted()
        +
        Retrieves mute status.
        +
        +
        Returns:
        +
        true if accessory is muted
        +
        +
      • +
      + + + +
        +
      • +

        setMute

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setMute​(boolean mute)
        +                                                        throws java.lang.Exception
        +
        Sets the mute status
        +
        +
        Parameters:
        +
        mute - true if accessory should be muted
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeMuteState

        +
        void subscribeMuteState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in mute state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeMuteState

        +
        void unsubscribeMuteState()
        +
        Unsubscribes from changes in the mute state.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/StatelessProgrammableSwitchAccessory.html b/apidocs/io/github/hapjava/accessories/StatelessProgrammableSwitchAccessory.html new file mode 100644 index 000000000..e0668d1f2 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/StatelessProgrammableSwitchAccessory.html @@ -0,0 +1,340 @@ + + + + + +StatelessProgrammableSwitchAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface StatelessProgrammableSwitchAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface StatelessProgrammableSwitchAccessory
    +extends HomekitAccessory
    +
    The Stateless Programmable Switch accessory
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSwitchEvent

        +
        java.util.concurrent.CompletableFuture<ProgrammableSwitchEnum> getSwitchEvent()
        +
        Retrieves the last states of the switch. Bluetooth device should return the last event, the IP + device should always return null
        +
        +
        Returns:
        +
        state of the switch event
        +
        +
      • +
      + + + +
        +
      • +

        subscribeSwitchEvent

        +
        void subscribeSwitchEvent​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in switch event, i.e. pressing on the button.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeSwitchEvent

        +
        void unsubscribeSwitchEvent()
        +
        Unsubscribes from changes in switch event.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/SwitchAccessory.html b/apidocs/io/github/hapjava/accessories/SwitchAccessory.html new file mode 100644 index 000000000..2aecd0415 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/SwitchAccessory.html @@ -0,0 +1,369 @@ + + + + + +SwitchAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface SwitchAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface SwitchAccessory
    +extends HomekitAccessory
    +
    A simple switch with a binary state.
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSwitchState

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> getSwitchState()
        +
        Retrieves the current binary state of the switch.
        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        setSwitchState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setSwitchState​(boolean state)
        +                                                               throws java.lang.Exception
        +
        Sets the binary state of the switch
        +
        +
        Parameters:
        +
        state - the binary state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeSwitchState

        +
        void subscribeSwitchState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the binary state of the switch.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeSwitchState

        +
        void unsubscribeSwitchState()
        +
        Unsubscribes from changes in the binary state of the switch.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/TelevisionAccessory.html b/apidocs/io/github/hapjava/accessories/TelevisionAccessory.html new file mode 100644 index 000000000..11f53ff6d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/TelevisionAccessory.html @@ -0,0 +1,620 @@ + + + + + +TelevisionAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface TelevisionAccessory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> isActive()
        +
        Retrieves the current active state of the TV.
        +
        +
        Returns:
        +
        a future that will contain the state
        +
        +
      • +
      + + + +
        +
      • +

        setActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setActive​(boolean state)
        +                                                          throws java.lang.Exception
        +
        Sets the active state of the TV
        +
        +
        Parameters:
        +
        state - the state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeActive

        +
        void subscribeActive​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the active state of the TV .
        +
        +
        Parameters:
        +
        callback - the function to call when the active state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeActive

        +
        void unsubscribeActive()
        +
        Unsubscribes from changes in the active state of the TV.
        +
      • +
      + + + +
        +
      • +

        getActiveIdentifier

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getActiveIdentifier()
        +
        Retrieves the active identifier
        +
        +
        Returns:
        +
        a future that will contain the active identifier.
        +
        +
      • +
      + + + +
        +
      • +

        setActiveIdentifier

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setActiveIdentifier​(java.lang.Integer identifier)
        +                                                                    throws java.lang.Exception
        +
        Sets the active identifier
        +
        +
        Parameters:
        +
        identifier - the active identifier
        +
        Returns:
        +
        a future that completes when the active identifier is changed
        +
        Throws:
        +
        java.lang.Exception - when the active identifier cannot be set
        +
        +
      • +
      + + + +
        +
      • +

        subscribeActiveIdentifier

        +
        void subscribeActiveIdentifier​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the active identifier.
        +
        +
        Parameters:
        +
        callback - the function to call when the active identifier changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeActiveIdentifier

        +
        void unsubscribeActiveIdentifier()
        +
        Unsubscribes from changes in the active identifier.
        +
      • +
      + + + +
        +
      • +

        getConfiguredName

        +
        java.util.concurrent.CompletableFuture<java.lang.String> getConfiguredName()
        +
        Retrieves configured name.
        +
        +
        Returns:
        +
        configured name
        +
        +
      • +
      + + + +
        +
      • +

        setConfiguredName

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setConfiguredName​(java.lang.String name)
        +                                                                  throws java.lang.Exception
        +
        Sets the configured name
        +
        +
        Parameters:
        +
        name - configured name
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeConfiguredName

        +
        void subscribeConfiguredName​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in configured name.
        +
        +
        Parameters:
        +
        callback - the function to call when the configureed name changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeConfiguredName

        +
        void unsubscribeConfiguredName()
        +
        Unsubscribes from changes in the configured name state.
        +
      • +
      + + + +
        +
      • +

        setRemoteKey

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setRemoteKey​(RemoteKeyEnum key)
        +                                                             throws java.lang.Exception
        +
        Sends the remote key.
        +
        +
        Parameters:
        +
        key - remote key
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        getSleepDiscoveryMode

        +
        java.util.concurrent.CompletableFuture<SleepDiscoveryModeEnum> getSleepDiscoveryMode()
        +
        Retrieves the sleep discovery mode.
        +
        +
        Returns:
        +
        a future that will contain the sleep discovery mode .
        +
        +
      • +
      + + + +
        +
      • +

        subscribeSleepDiscoveryMode

        +
        void subscribeSleepDiscoveryMode​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in sleep discovery mode.
        +
        +
        Parameters:
        +
        callback - the function to call when the sleep discovery mode changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeSleepDiscoveryMode

        +
        void unsubscribeSleepDiscoveryMode()
        +
        Unsubscribes from changes in the sleep discovery mode.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/TelevisionSpeakerAccessory.html b/apidocs/io/github/hapjava/accessories/TelevisionSpeakerAccessory.html new file mode 100644 index 000000000..12e388312 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/TelevisionSpeakerAccessory.html @@ -0,0 +1,365 @@ + + + + + +TelevisionSpeakerAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface TelevisionSpeakerAccessory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isMuted

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> isMuted()
        +
        Retrieves mute status.
        +
        +
        Returns:
        +
        true if accessory is muted
        +
        +
      • +
      + + + +
        +
      • +

        setMute

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setMute​(boolean mute)
        +                                                        throws java.lang.Exception
        +
        Sets the mute status
        +
        +
        Parameters:
        +
        mute - true if accessory should be muted
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeMuteState

        +
        void subscribeMuteState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in mute state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeMuteState

        +
        void unsubscribeMuteState()
        +
        Unsubscribes from changes in the mute state.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/TemperatureSensorAccessory.html b/apidocs/io/github/hapjava/accessories/TemperatureSensorAccessory.html new file mode 100644 index 000000000..ac819735f --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/TemperatureSensorAccessory.html @@ -0,0 +1,409 @@ + + + + + +TemperatureSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface TemperatureSensorAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface TemperatureSensorAccessory
    +extends HomekitAccessory
    +
    A temperature sensor that reports the current temperature
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentTemperature

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getCurrentTemperature()
        +
        Retrieves the current temperature, in celsius degrees.
        +
        +
        Returns:
        +
        a future that will contain the temperature.
        +
        +
      • +
      + + + +
        +
      • +

        getMinCurrentTemperature

        +
        default double getMinCurrentTemperature()
        +
        return the min value for current temperature. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        min current temperature
        +
        +
      • +
      + + + +
        +
      • +

        getMaxCurrentTemperature

        +
        default double getMaxCurrentTemperature()
        +
        return the max value for current temperature. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        max current temperature
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepCurrentTemperature

        +
        default double getMinStepCurrentTemperature()
        +
        return the min step value for current temperature. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        min step current temperature
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentTemperature

        +
        void subscribeCurrentTemperature​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current temperature.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentTemperature

        +
        void unsubscribeCurrentTemperature()
        +
        Unsubscribes from changes in the current temperature.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/ThermostatAccessory.html b/apidocs/io/github/hapjava/accessories/ThermostatAccessory.html new file mode 100644 index 000000000..a8f5c49eb --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/ThermostatAccessory.html @@ -0,0 +1,825 @@ + + + + + +ThermostatAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface ThermostatAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface ThermostatAccessory
    +extends HomekitAccessory
    +
    A thermostat with heating and cooling controls.
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentTemperature

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getCurrentTemperature()
        +
        Retrieves the current temperature, in celsius degrees.
        +
        +
        Returns:
        +
        a future that will contain the temperature.
        +
        +
      • +
      + + + +
        +
      • +

        getMinCurrentTemperature

        +
        default double getMinCurrentTemperature()
        +
        return the min value for current temperature. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        min current temperature
        +
        +
      • +
      + + + +
        +
      • +

        getMaxCurrentTemperature

        +
        default double getMaxCurrentTemperature()
        +
        return the max value for current temperature. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        max current temperature
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepCurrentTemperature

        +
        default double getMinStepCurrentTemperature()
        +
        return the min step value for current temperature. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        min step current temperature
        +
        +
      • +
      + + + +
        +
      • +

        getTargetTemperature

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getTargetTemperature()
        +
        Retrieves the target temperature, in celsius degrees.
        +
        +
        Returns:
        +
        a future that will contain the target temperature.
        +
        +
      • +
      + + + +
        +
      • +

        setTargetTemperature

        +
        void setTargetTemperature​(java.lang.Double value)
        +                   throws java.lang.Exception
        +
        Sets the target temperature.
        +
        +
        Parameters:
        +
        value - the target temperature, in celsius degrees.
        +
        Throws:
        +
        java.lang.Exception - when the temperature cannot be changed.
        +
        +
      • +
      + + + +
        +
      • +

        getMinTargetTemperature

        +
        default double getMinTargetTemperature()
        +
        return the min value for target temperature. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        min target temperature
        +
        +
      • +
      + + + +
        +
      • +

        getMaxTargetTemperature

        +
        default double getMaxTargetTemperature()
        +
        return the max value for target temperature. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        max target temperature
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepTargetTemperature

        +
        default double getMinStepTargetTemperature()
        +
        return the min step value for target temperature. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        min step target temperature
        +
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        getTemperatureDisplayUnit

        +
        java.util.concurrent.CompletableFuture<TemperatureDisplayUnitEnum> getTemperatureDisplayUnit()
        +
        Retrieves the temperture display units, e.g. C or F.
        +
        +
        Returns:
        +
        a future that will contain the temperature unit.
        +
        +
      • +
      + + + +
        +
      • +

        setTemperatureDisplayUnit

        +
        void setTemperatureDisplayUnit​(TemperatureDisplayUnitEnum value)
        +                        throws java.lang.Exception
        +
        Sets the temperature unit.
        +
        +
        Parameters:
        +
        value - the temperature display unit.
        +
        Throws:
        +
        java.lang.Exception - when the temperature cannot be changed.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        subscribeTargetTemperature

        +
        void subscribeTargetTemperature​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the target temperature.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTemperatureDisplayUnit

        +
        void subscribeTemperatureDisplayUnit​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the temperature display unit.
        +
        +
        Parameters:
        +
        callback - the function to call when the uni changes.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentTemperature

        +
        void subscribeCurrentTemperature​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current temperature.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + + + + + +
        +
      • +

        unsubscribeCurrentState

        +
        void unsubscribeCurrentState()
        +
        Unsubscribes from changes in the mode of the thermostat.
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetState

        +
        void unsubscribeTargetState()
        +
        Unsubscribes from changes in the pending, but not yet complete, TargetHeatingCoolingStateEnum of the thermostat.
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentTemperature

        +
        void unsubscribeCurrentTemperature()
        +
        Unsubscribes from changes in the current temperature.
        +
      • +
      + + + +
        +
      • +

        unsubscribeTemperatureDisplayUnit

        +
        void unsubscribeTemperatureDisplayUnit()
        +
        Unsubscribes from changes in temperature display unit
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetTemperature

        +
        void unsubscribeTargetTemperature()
        +
        Unsubscribes from changes in the target temperature.
        +
      • +
      + + + +
        +
      • +

        getCurrentHeatingCoolingStateValidValues

        +
        default CurrentHeatingCoolingStateEnum[] getCurrentHeatingCoolingStateValidValues()
        +
        Valid values for current state.
        +
        +
        Returns:
        +
        array of valid current states.
        +
        +
      • +
      + + + +
        +
      • +

        getTargetHeatingCoolingStateValidValues

        +
        default TargetHeatingCoolingStateEnum[] getTargetHeatingCoolingStateValidValues()
        +
        Valid values for target state.
        +
        +
        Returns:
        +
        array of valid targe states.
        +
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/ValveAccessory.html b/apidocs/io/github/hapjava/accessories/ValveAccessory.html new file mode 100644 index 000000000..6919f1ee0 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/ValveAccessory.html @@ -0,0 +1,497 @@ + + + + + +ValveAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface ValveAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface ValveAccessory
    +extends HomekitAccessory
    +
    A Valve (sprinkler head, faucet, etc.)
    +
    +
    Author:
    +
    Tim Harper
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getValveActive

        +
        java.util.concurrent.CompletableFuture<ActiveEnum> getValveActive()
        +
        Retrieves the current active state of the valve; Active could mean the valve is open (but not + necessarily running), or that the valve is associated with an active watering program (like a + watering program) but is not currently running. + +

        To communicate water is flowing through a valve, inUse should be used.

        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        setValveActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setValveActive​(ActiveEnum active)
        +                                                               throws java.lang.Exception
        +
        Sets the valve active state
        +
        +
        Parameters:
        +
        active - the binary state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeValveActive

        +
        void subscribeValveActive​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the active state of the valve.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeValveActive

        +
        void unsubscribeValveActive()
        +
        Unsubscribes from changes in the valve active state.
        +
      • +
      + + + +
        +
      • +

        getValveInUse

        +
        java.util.concurrent.CompletableFuture<InUseEnum> getValveInUse()
        +
        Retrieves the current inUse state of the valve; InUse usually means water is flowing through + the valve. + +

        To communicate water is flowing through a valve, inUse should be used.

        +
        +
        Returns:
        +
        a future that will contain the binary state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeValveInUse

        +
        void subscribeValveInUse​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the inUse state of the valve.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeValveInUse

        +
        void unsubscribeValveInUse()
        +
        Unsubscribes from changes in the valve inUse state.
        +
      • +
      + + + +
        +
      • +

        getValveType

        +
        java.util.concurrent.CompletableFuture<ValveTypeEnum> getValveType()
        +
        Retrieves the valve type.
        +
        +
        Returns:
        +
        a future that will contain the valve type.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeValveType

        +
        void subscribeValveType​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the valveType state of the valve.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeValveType

        +
        void unsubscribeValveType()
        +
        Unsubscribes from changes in the valveType state.
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/WindowAccessory.html b/apidocs/io/github/hapjava/accessories/WindowAccessory.html new file mode 100644 index 000000000..654ab5f76 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/WindowAccessory.html @@ -0,0 +1,483 @@ + + + + + +WindowAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface WindowAccessory

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPositionState

        +
        java.util.concurrent.CompletableFuture<PositionStateEnum> getPositionState()
        +
        Retrieves the position state of the door
        +
        +
        Returns:
        +
        a future which will contain the door's position state
        +
        +
      • +
      + + + +
        +
      • +

        getCurrentPosition

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getCurrentPosition()
        +
        Retrieves the current position of the door
        +
        +
        Returns:
        +
        a future which will contain the door's current position
        +
        +
      • +
      + + + +
        +
      • +

        getTargetPosition

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getTargetPosition()
        +
        Retrieves the target position of the door
        +
        +
        Returns:
        +
        a future which will contain the door's target position
        +
        +
      • +
      + + + +
        +
      • +

        setTargetPosition

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetPosition​(java.lang.Integer position)
        +                                                                  throws java.lang.Exception
        +
        Sets the targeted state of the door.
        +
        +
        Parameters:
        +
        position - the targeted position
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribePositionState

        +
        void subscribePositionState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the door's position state
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentPosition

        +
        void subscribeCurrentPosition​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the door's current position
        +
        +
        Parameters:
        +
        callback - the function to call when the current position changes
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetPosition

        +
        void subscribeTargetPosition​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the door's target position
        +
        +
        Parameters:
        +
        callback - the function to call when the target position changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribePositionState

        +
        void unsubscribePositionState()
        +
        Unsubscribes from changes in the door's state
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentPosition

        +
        void unsubscribeCurrentPosition()
        +
        Unsubscribes from changes in the door's current position
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetPosition

        +
        void unsubscribeTargetPosition()
        +
        Unsubscribes from changes in the door's target position
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/WindowCoveringAccessory.html b/apidocs/io/github/hapjava/accessories/WindowCoveringAccessory.html new file mode 100644 index 000000000..f97c54468 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/WindowCoveringAccessory.html @@ -0,0 +1,483 @@ + + + + + +WindowCoveringAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface WindowCoveringAccessory

+
+
+
+
    +
  • +
    +
    All Superinterfaces:
    +
    HomekitAccessory
    +
    +
    +
    public interface WindowCoveringAccessory
    +extends HomekitAccessory
    +
    A window covering, like blinds, which can be remotely controlled.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentPosition

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getCurrentPosition()
        +
        Retrieves the current position
        +
        +
        Returns:
        +
        a future that will contain the position as a value between 0 and 100
        +
        +
      • +
      + + + +
        +
      • +

        getTargetPosition

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getTargetPosition()
        +
        Retrieves the target position
        +
        +
        Returns:
        +
        a future that will contain the target position as a value between 0 and 100
        +
        +
      • +
      + + + +
        +
      • +

        getPositionState

        +
        java.util.concurrent.CompletableFuture<PositionStateEnum> getPositionState()
        +
        Retrieves the state of the position: increasing, decreasing, or stopped
        +
        +
        Returns:
        +
        a future that will contain the current state
        +
        +
      • +
      + + + +
        +
      • +

        setTargetPosition

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetPosition​(int position)
        +                                                                  throws java.lang.Exception
        +
        Sets the target position
        +
        +
        Parameters:
        +
        position - the target position to set, as a value between 1 and 100
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentPosition

        +
        void subscribeCurrentPosition​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current position.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetPosition

        +
        void subscribeTargetPosition​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the target position.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        subscribePositionState

        +
        void subscribePositionState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the position state: increasing, decreasing, or stopped
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentPosition

        +
        void unsubscribeCurrentPosition()
        +
        Unsubscribes from changes in the current position.
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetPosition

        +
        void unsubscribeTargetPosition()
        +
        Unsubscribes from changes in the target position.
        +
      • +
      + + + +
        +
      • +

        unsubscribePositionState

        +
        void unsubscribePositionState()
        +
        Unsubscribes from changes in the position state
        +
      • +
      + + + +
        +
      • +

        getServices

        +
        default java.util.Collection<Service> getServices()
        +
        Description copied from interface: HomekitAccessory
        +
        The collection of Services this accessory supports. Services are the primary way to interact + with the accessory via HomeKit. Besides the Services offered here, the accessory will + automatically include the required information service. + +

        This method will only be useful if you're implementing your own accessory type. For the + standard accessories, use the default implementation provided by the interfaces in io.github.hapjava.accessories.

        +
        +
        Specified by:
        +
        getServices in interface HomekitAccessory
        +
        Returns:
        +
        the collection of services.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/AirPurifierAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/AirPurifierAccessory.html new file mode 100644 index 000000000..dec024e61 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/AirPurifierAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.AirPurifierAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.AirPurifierAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/AirQualityAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/AirQualityAccessory.html new file mode 100644 index 000000000..56d21e254 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/AirQualityAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.AirQualityAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.AirQualityAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/BasicFanAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/BasicFanAccessory.html new file mode 100644 index 000000000..f1dad8d9c --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/BasicFanAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.BasicFanAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.BasicFanAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/BatteryAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/BatteryAccessory.html new file mode 100644 index 000000000..ab565489e --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/BatteryAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.BatteryAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.BatteryAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/Bridge.html b/apidocs/io/github/hapjava/accessories/class-use/Bridge.html new file mode 100644 index 000000000..1c8fea6d2 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/Bridge.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.Bridge (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.Bridge

+
+
No usage of io.github.hapjava.accessories.Bridge
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/CarbonDioxideSensorAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/CarbonDioxideSensorAccessory.html new file mode 100644 index 000000000..04bb01e9b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/CarbonDioxideSensorAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.CarbonDioxideSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.CarbonDioxideSensorAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/CarbonMonoxideSensorAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/CarbonMonoxideSensorAccessory.html new file mode 100644 index 000000000..c8f3e0d4a --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/CarbonMonoxideSensorAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.CarbonMonoxideSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.CarbonMonoxideSensorAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/ContactSensorAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/ContactSensorAccessory.html new file mode 100644 index 000000000..7c5efcb7a --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/ContactSensorAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.ContactSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.ContactSensorAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/DoorAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/DoorAccessory.html new file mode 100644 index 000000000..971e1f418 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/DoorAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.DoorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.DoorAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/DoorbellAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/DoorbellAccessory.html new file mode 100644 index 000000000..4639efb85 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/DoorbellAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.DoorbellAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.DoorbellAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/FanAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/FanAccessory.html new file mode 100644 index 000000000..f8a706921 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/FanAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.FanAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.FanAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/FaucetAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/FaucetAccessory.html new file mode 100644 index 000000000..cfb2214e6 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/FaucetAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.FaucetAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.FaucetAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/FilterMaintenanceAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/FilterMaintenanceAccessory.html new file mode 100644 index 000000000..ced1b78a5 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/FilterMaintenanceAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.FilterMaintenanceAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.FilterMaintenanceAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/GarageDoorOpenerAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/GarageDoorOpenerAccessory.html new file mode 100644 index 000000000..435336766 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/GarageDoorOpenerAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.GarageDoorOpenerAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.GarageDoorOpenerAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/HeaterCoolerAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/HeaterCoolerAccessory.html new file mode 100644 index 000000000..5890b025a --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/HeaterCoolerAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.HeaterCoolerAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.HeaterCoolerAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/HomekitAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/HomekitAccessory.html new file mode 100644 index 000000000..bf4b73569 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/HomekitAccessory.html @@ -0,0 +1,503 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.HomekitAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.HomekitAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/HumidifierDehumidifierAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/HumidifierDehumidifierAccessory.html new file mode 100644 index 000000000..ffb313d18 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/HumidifierDehumidifierAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.HumidifierDehumidifierAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.HumidifierDehumidifierAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/HumiditySensorAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/HumiditySensorAccessory.html new file mode 100644 index 000000000..6c376cc88 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/HumiditySensorAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.HumiditySensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.HumiditySensorAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/InputSourceAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/InputSourceAccessory.html new file mode 100644 index 000000000..f01adb115 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/InputSourceAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.InputSourceAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.InputSourceAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/IrrigationSystemAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/IrrigationSystemAccessory.html new file mode 100644 index 000000000..37499a54c --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/IrrigationSystemAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.IrrigationSystemAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.IrrigationSystemAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/LeakSensorAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/LeakSensorAccessory.html new file mode 100644 index 000000000..a34fa19c9 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/LeakSensorAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.LeakSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.LeakSensorAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/LightSensorAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/LightSensorAccessory.html new file mode 100644 index 000000000..a815eeb61 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/LightSensorAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.LightSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.LightSensorAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/LightbulbAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/LightbulbAccessory.html new file mode 100644 index 000000000..c8b59d050 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/LightbulbAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.LightbulbAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.LightbulbAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/LockMechanismAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/LockMechanismAccessory.html new file mode 100644 index 000000000..7f204bd2a --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/LockMechanismAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.LockMechanismAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.LockMechanismAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/MicrophoneAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/MicrophoneAccessory.html new file mode 100644 index 000000000..a7c18a7e7 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/MicrophoneAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.MicrophoneAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.MicrophoneAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/MotionSensorAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/MotionSensorAccessory.html new file mode 100644 index 000000000..fcc7ae88c --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/MotionSensorAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.MotionSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.MotionSensorAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/OccupancySensorAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/OccupancySensorAccessory.html new file mode 100644 index 000000000..92e78988f --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/OccupancySensorAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.OccupancySensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.OccupancySensorAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/OutletAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/OutletAccessory.html new file mode 100644 index 000000000..ba06a9977 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/OutletAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.OutletAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.OutletAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/SecuritySystemAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/SecuritySystemAccessory.html new file mode 100644 index 000000000..3ac23e64c --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/SecuritySystemAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.SecuritySystemAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.SecuritySystemAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/SlatAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/SlatAccessory.html new file mode 100644 index 000000000..e2d832e20 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/SlatAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.SlatAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.SlatAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/SmartSpeakerAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/SmartSpeakerAccessory.html new file mode 100644 index 000000000..b7856debf --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/SmartSpeakerAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.SmartSpeakerAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.SmartSpeakerAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/SmokeSensorAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/SmokeSensorAccessory.html new file mode 100644 index 000000000..d6aaf8023 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/SmokeSensorAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.SmokeSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.SmokeSensorAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/SpeakerAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/SpeakerAccessory.html new file mode 100644 index 000000000..c363fdb9d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/SpeakerAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.SpeakerAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.SpeakerAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/StatelessProgrammableSwitchAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/StatelessProgrammableSwitchAccessory.html new file mode 100644 index 000000000..8a460f101 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/StatelessProgrammableSwitchAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.StatelessProgrammableSwitchAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.StatelessProgrammableSwitchAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/SwitchAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/SwitchAccessory.html new file mode 100644 index 000000000..d56b10800 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/SwitchAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.SwitchAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.SwitchAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/TelevisionAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/TelevisionAccessory.html new file mode 100644 index 000000000..7a36ee70b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/TelevisionAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.TelevisionAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.TelevisionAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/TelevisionSpeakerAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/TelevisionSpeakerAccessory.html new file mode 100644 index 000000000..60f1cc69f --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/TelevisionSpeakerAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.TelevisionSpeakerAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.TelevisionSpeakerAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/TemperatureSensorAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/TemperatureSensorAccessory.html new file mode 100644 index 000000000..71779139b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/TemperatureSensorAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.TemperatureSensorAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.TemperatureSensorAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/ThermostatAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/ThermostatAccessory.html new file mode 100644 index 000000000..11892654f --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/ThermostatAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.ThermostatAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.ThermostatAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/ValveAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/ValveAccessory.html new file mode 100644 index 000000000..f8fe10af5 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/ValveAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.ValveAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.ValveAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/WindowAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/WindowAccessory.html new file mode 100644 index 000000000..8f9bca793 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/WindowAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.WindowAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.WindowAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/class-use/WindowCoveringAccessory.html b/apidocs/io/github/hapjava/accessories/class-use/WindowCoveringAccessory.html new file mode 100644 index 000000000..c35a09040 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/class-use/WindowCoveringAccessory.html @@ -0,0 +1,192 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.WindowCoveringAccessory (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.WindowCoveringAccessory

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithAccessoryFlags.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithAccessoryFlags.html new file mode 100644 index 000000000..af9589f66 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithAccessoryFlags.html @@ -0,0 +1,298 @@ + + + + + +AccessoryWithAccessoryFlags (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithAccessoryFlags

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithAccessoryFlags
    +
    Accessory with accessory flags, which indicates that additional setup is required
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getAccessoryFlags

        +
        java.util.concurrent.CompletableFuture<AccessoryFlagsEnum> getAccessoryFlags()
        +
        When set indicates accessory requires additional setup.
        +
        +
        Returns:
        +
        a future that will contain the accessory flags
        +
        +
      • +
      + + + +
        +
      • +

        subscribeAccessoryFlags

        +
        void subscribeAccessoryFlags​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in accessory flags
        +
        +
        Parameters:
        +
        callback - the function to call when the accessory flags changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeAccessoryFlags

        +
        void unsubscribeAccessoryFlags()
        +
        Unsubscribes from changes in the accessory flags .
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithActive.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithActive.html new file mode 100644 index 000000000..d7a21a1bc --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithActive.html @@ -0,0 +1,321 @@ + + + + + +AccessoryWithActive (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithActive

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithActive
    +
    Accessory with active characteristic ActiveCharacteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getActive

        +
        java.util.concurrent.CompletableFuture<ActiveEnum> getActive()
        +
        Retrieves the active state (see ActiveEnum for supported values).
        +
        +
        Returns:
        +
        a future that will contain the active state
        +
        +
      • +
      + + + +
        +
      • +

        setActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setActive​(ActiveEnum active)
        +
        Set the active state (see ActiveEnum for supported values).
        +
        +
        Parameters:
        +
        active - active state
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeActive

        +
        void subscribeActive​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the active state.
        +
        +
        Parameters:
        +
        callback - the function to call when the active state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeActive

        +
        void unsubscribeActive()
        +
        Unsubscribes from changes in the active state.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithAirPlayEnable.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithAirPlayEnable.html new file mode 100644 index 000000000..18d7aca4b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithAirPlayEnable.html @@ -0,0 +1,324 @@ + + + + + +AccessoryWithAirPlayEnable (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithAirPlayEnable

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getAirPlayEnable

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getAirPlayEnable()
        +
        Retrieves the AirPlay enable state
        +
        +
        Returns:
        +
        a future that will contain the AirPlay enable state.
        +
        +
      • +
      + + + +
        +
      • +

        setAirPlayEnable

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setAirPlayEnable​(java.lang.Integer state)
        +                                                                 throws java.lang.Exception
        +
        Sets the AirPlay enable state
        +
        +
        Parameters:
        +
        state - AirPlay enable state
        +
        Returns:
        +
        a future that completes when the AirPlay enable is changed
        +
        Throws:
        +
        java.lang.Exception - when the AirPlay enable cannot be set
        +
        +
      • +
      + + + +
        +
      • +

        subscribeAirPlayEnable

        +
        void subscribeAirPlayEnable​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the AirPlay enable state.
        +
        +
        Parameters:
        +
        callback - the function to call when the AirPlay enable state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeAirPlayEnable

        +
        void unsubscribeAirPlayEnable()
        +
        Unsubscribes from changes in the AirPlay enable state.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithBrightness.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithBrightness.html new file mode 100644 index 000000000..57deda6d5 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithBrightness.html @@ -0,0 +1,328 @@ + + + + + +AccessoryWithBrightness (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithBrightness

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithBrightness
    +
    Accessory with brightness values.
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getBrightness

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getBrightness()
        +
        Retrieves the current brightness of the light
        +
        +
        Returns:
        +
        a future that will contain the brightness, expressed as an integer between 0 and 100.
        +
        +
      • +
      + + + +
        +
      • +

        setBrightness

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setBrightness​(java.lang.Integer value)
        +                                                              throws java.lang.Exception
        +
        Sets the current brightness of the light
        +
        +
        Parameters:
        +
        value - the brightness, on a scale of 0 to 100, to set
        +
        Returns:
        +
        a future that completes when the brightness is changed
        +
        Throws:
        +
        java.lang.Exception - when the brightness cannot be set
        +
        +
      • +
      + + + +
        +
      • +

        subscribeBrightness

        +
        void subscribeBrightness​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the brightness of the light.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeBrightness

        +
        void unsubscribeBrightness()
        +
        Unsubscribes from changes in the brightness of the light.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCarbonDioxideLevel.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCarbonDioxideLevel.html new file mode 100644 index 000000000..d34292244 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCarbonDioxideLevel.html @@ -0,0 +1,489 @@ + + + + + +AccessoryWithCarbonDioxideLevel (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithCarbonDioxideLevel

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithCarbonDioxideLevel
    +
    Accessory with carbon dioxide level and peak level characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCarbonDioxidePeakLevel

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getCarbonDioxidePeakLevel()
        +
        Retrieves the carbon dioxide peak level
        +
        +
        Returns:
        +
        a future that will contain the carbon dioxide level as a value between 0 and 100000
        +
        +
      • +
      + + + +
        +
      • +

        getCarbonDioxideLevel

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getCarbonDioxideLevel()
        +
        Retrieves the carbon dioxide level
        +
        +
        Returns:
        +
        a future that will contain the carbon dioxide level as a value between 0 and 100000
        +
        +
      • +
      + + + +
        +
      • +

        getMinCarbonDioxideLevel

        +
        default double getMinCarbonDioxideLevel()
        +
        return the min value for carbon dioxide level. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        min carbon dioxide level
        +
        +
      • +
      + + + +
        +
      • +

        getMaxCarbonDioxideLevel

        +
        default double getMaxCarbonDioxideLevel()
        +
        return the max value for carbon dioxide level. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        max carbon dioxide level
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepCarbonDioxideLevel

        +
        default double getMinStepCarbonDioxideLevel()
        +
        return the min step value for carbon dioxide level. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        min step carbon dioxide level
        +
        +
      • +
      + + + +
        +
      • +

        getMinCarbonDioxidePeakLevel

        +
        default double getMinCarbonDioxidePeakLevel()
        +
        return the min value for carbon dioxide peak level. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        min carbon dioxide peak level
        +
        +
      • +
      + + + +
        +
      • +

        getMaxCarbonDioxidePeakLevel

        +
        default double getMaxCarbonDioxidePeakLevel()
        +
        return the max value for carbon dioxide peak level. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        max carbon dioxide peak level
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepCarbonDioxidePeakLevel

        +
        default double getMinStepCarbonDioxidePeakLevel()
        +
        return the min step value for carbon dioxide peak level. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        min step carbon dioxide peak level
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCarbonDioxideLevel

        +
        void subscribeCarbonDioxideLevel​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the carbon dioxide level.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCarbonDioxideLevel

        +
        void unsubscribeCarbonDioxideLevel()
        +
        Unsubscribes from changes in the carbon dioxide level.
        +
      • +
      + + + +
        +
      • +

        subscribeCarbonDioxidePeakLevel

        +
        void subscribeCarbonDioxidePeakLevel​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the carbon dioxide level.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCarbonDioxidePeakLevel

        +
        void unsubscribeCarbonDioxidePeakLevel()
        +
        Unsubscribes from changes in the carbon dioxide level.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCarbonMonoxideLevel.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCarbonMonoxideLevel.html new file mode 100644 index 000000000..986719f7b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCarbonMonoxideLevel.html @@ -0,0 +1,489 @@ + + + + + +AccessoryWithCarbonMonoxideLevel (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithCarbonMonoxideLevel

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithCarbonMonoxideLevel
    +
    Accessory with carbon monoxide level and peak level characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCarbonMonoxidePeakLevel

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getCarbonMonoxidePeakLevel()
        +
        Retrieves the carbon monoxide peak level
        +
        +
        Returns:
        +
        a future that will contain the carbon monoxide level as a value between 0 and 100000
        +
        +
      • +
      + + + +
        +
      • +

        getCarbonMonoxideLevel

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getCarbonMonoxideLevel()
        +
        Retrieves the carbon monoxide level
        +
        +
        Returns:
        +
        a future that will contain the carbon monoxide level as a value between 0 and 100000
        +
        +
      • +
      + + + +
        +
      • +

        getMinCarbonMonoxideLevel

        +
        default double getMinCarbonMonoxideLevel()
        +
        return the min value for carbon monoxide level. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        min carbon monoxide level
        +
        +
      • +
      + + + +
        +
      • +

        getMaxCarbonMonoxideLevel

        +
        default double getMaxCarbonMonoxideLevel()
        +
        return the max value for carbon monoxide level. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        max carbon monoxide level
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepCarbonMonoxideLevel

        +
        default double getMinStepCarbonMonoxideLevel()
        +
        return the min step value for carbon monoxide level. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        min step carbon monoxide level
        +
        +
      • +
      + + + +
        +
      • +

        getMinCarbonMonoxidePeakLevel

        +
        default double getMinCarbonMonoxidePeakLevel()
        +
        return the min value for carbon monoxide peak level. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        min carbon monoxide peak level
        +
        +
      • +
      + + + +
        +
      • +

        getMaxCarbonMonoxidePeakLevel

        +
        default double getMaxCarbonMonoxidePeakLevel()
        +
        return the max value for carbon monoxide peak level. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        max carbon monoxide peak level
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepCarbonMonoxidePeakLevel

        +
        default double getMinStepCarbonMonoxidePeakLevel()
        +
        return the min step value for carbon monoxide peak level. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        min step carbon monoxide peak level
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCarbonMonoxideLevel

        +
        void subscribeCarbonMonoxideLevel​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the carbon monoxide level.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCarbonMonoxideLevel

        +
        void unsubscribeCarbonMonoxideLevel()
        +
        Unsubscribes from changes in the carbon monoxide level.
        +
      • +
      + + + +
        +
      • +

        subscribeCarbonMonoxidePeakLevel

        +
        void subscribeCarbonMonoxidePeakLevel​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the carbon monoxide level.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCarbonMonoxidePeakLevel

        +
        void unsubscribeCarbonMonoxidePeakLevel()
        +
        Unsubscribes from changes in the carbon monoxide level.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithClosedCaptions.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithClosedCaptions.html new file mode 100644 index 000000000..2401751c2 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithClosedCaptions.html @@ -0,0 +1,321 @@ + + + + + +AccessoryWithClosedCaptions (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithClosedCaptions

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getClosedCaptions

        +
        java.util.concurrent.CompletableFuture<ClosedCaptionsEnum> getClosedCaptions()
        +
        Retrieves the closed captions state (see ClosedCaptionsEnum for supported values).
        +
        +
        Returns:
        +
        a future that will contain the closed captions
        +
        +
      • +
      + + + +
        +
      • +

        setClosedCaptions

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setClosedCaptions​(ClosedCaptionsEnum closedCaptions)
        +
        Set the closed captions state (see ClosedCaptionsEnum for supported values).
        +
        +
        Parameters:
        +
        closedCaptions - closed captions
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeClosedCaptions

        +
        void subscribeClosedCaptions​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the closed captions.
        +
        +
        Parameters:
        +
        callback - the function to call when the closed captions changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeClosedCaptions

        +
        void unsubscribeClosedCaptions()
        +
        Unsubscribes from changes in the closed captions.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithColor.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithColor.html new file mode 100644 index 000000000..28703e137 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithColor.html @@ -0,0 +1,413 @@ + + + + + +AccessoryWithColor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithColor

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithColor
    +
    Accessory with Color
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      java.util.concurrent.CompletableFuture<java.lang.Double>getHue() +
      Retrieves the current hue of the light.
      +
      java.util.concurrent.CompletableFuture<java.lang.Double>getSaturation() +
      Retrieves the saturation of the light.
      +
      java.util.concurrent.CompletableFuture<java.lang.Void>setHue​(java.lang.Double value) +
      Sets the current hue of the light
      +
      java.util.concurrent.CompletableFuture<java.lang.Void>setSaturation​(java.lang.Double value) +
      Sets the saturation of the light.
      +
      voidsubscribeHue​(HomekitCharacteristicChangeCallback callback) +
      Subscribes to changes in the hue of the light.
      +
      voidsubscribeSaturation​(HomekitCharacteristicChangeCallback callback) +
      Subscribes to changes in the saturation of the light.
      +
      voidunsubscribeHue() +
      Unsubscribes from changes in the hue of the light.
      +
      voidunsubscribeSaturation() +
      Unsubscribes from changes in the saturation of the light.
      +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getHue

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getHue()
        +
        Retrieves the current hue of the light.
        +
        +
        Returns:
        +
        a future that will contain the hue, expressed in arc degrees from 0 to 360.
        +
        +
      • +
      + + + +
        +
      • +

        setHue

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setHue​(java.lang.Double value)
        +                                                       throws java.lang.Exception
        +
        Sets the current hue of the light
        +
        +
        Parameters:
        +
        value - the hue to set, expressed in arc degrees from 0 to 360.
        +
        Returns:
        +
        a future that completes when the hue is changed
        +
        Throws:
        +
        java.lang.Exception - when the hue cannot be changed.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeHue

        +
        void subscribeHue​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the hue of the light.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeHue

        +
        void unsubscribeHue()
        +
        Unsubscribes from changes in the hue of the light.
        +
      • +
      + + + +
        +
      • +

        getSaturation

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getSaturation()
        +
        Retrieves the saturation of the light.
        +
        +
        Returns:
        +
        a future that will contain the saturation, expressed as a value between 0 and 100.
        +
        +
      • +
      + + + +
        +
      • +

        setSaturation

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setSaturation​(java.lang.Double value)
        +                                                              throws java.lang.Exception
        +
        Sets the saturation of the light.
        +
        +
        Parameters:
        +
        value - the saturation to set, expressed as a value between 0 and 100.
        +
        Returns:
        +
        a future that completes when the saturation is changed.
        +
        Throws:
        +
        java.lang.Exception - when the saturation cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeSaturation

        +
        void subscribeSaturation​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the saturation of the light.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeSaturation

        +
        void unsubscribeSaturation()
        +
        Unsubscribes from changes in the saturation of the light.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithColorTemperature.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithColorTemperature.html new file mode 100644 index 000000000..f2e003c8d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithColorTemperature.html @@ -0,0 +1,366 @@ + + + + + +AccessoryWithColorTemperature (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithColorTemperature

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithColorTemperature
    +
    Accessory with color temperature.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getColorTemperature

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getColorTemperature()
        +
        Retrieves the color temperature
        +
        +
        Returns:
        +
        a future that will contain the brightness, expressed as an integer between 0 and 100.
        +
        +
      • +
      + + + +
        +
      • +

        setColorTemperature

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setColorTemperature​(java.lang.Integer value)
        +                                                                    throws java.lang.Exception
        +
        Sets the color temperature
        +
        +
        Parameters:
        +
        value - the brightness, on a scale of 0 to 100, to set
        +
        Returns:
        +
        a future that completes when the brightness is changed
        +
        Throws:
        +
        java.lang.Exception - when the brightness cannot be set
        +
        +
      • +
      + + + +
        +
      • +

        getMinColorTemperature

        +
        default int getMinColorTemperature()
        +
        return the min value for color temperature. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        min color temperature
        +
        +
      • +
      + + + +
        +
      • +

        getMaxColorTemperature

        +
        default int getMaxColorTemperature()
        +
        return the max value for color temperature. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        max color temperature
        +
        +
      • +
      + + + +
        +
      • +

        subscribeColorTemperature

        +
        void subscribeColorTemperature​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in color temperature.
        +
        +
        Parameters:
        +
        callback - the function to call when the color temperature changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeColorTemperature

        +
        void unsubscribeColorTemperature()
        +
        Unsubscribes from changes in the color temperature.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithConfiguredName.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithConfiguredName.html new file mode 100644 index 000000000..1ca5f7f7d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithConfiguredName.html @@ -0,0 +1,324 @@ + + + + + +AccessoryWithConfiguredName (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithConfiguredName

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithConfiguredName
    +
    Accessory with configured name.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getConfiguredName

        +
        java.util.concurrent.CompletableFuture<java.lang.String> getConfiguredName()
        +
        Retrieves configured name.
        +
        +
        Returns:
        +
        configured name
        +
        +
      • +
      + + + +
        +
      • +

        setConfiguredName

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setConfiguredName​(java.lang.String name)
        +                                                                  throws java.lang.Exception
        +
        Sets the configured name
        +
        +
        Parameters:
        +
        name - configured name
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeConfiguredName

        +
        void subscribeConfiguredName​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in configured name.
        +
        +
        Parameters:
        +
        callback - the function to call when the configureed name changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeConfiguredName

        +
        void unsubscribeConfiguredName()
        +
        Unsubscribes from changes in the configured name state.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCoolingThresholdTemperature.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCoolingThresholdTemperature.html new file mode 100644 index 000000000..0e592df0f --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCoolingThresholdTemperature.html @@ -0,0 +1,388 @@ + + + + + +AccessoryWithCoolingThresholdTemperature (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithCoolingThresholdTemperature

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithCoolingThresholdTemperature
    +
    Accessory with cooling threshold temperature.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCoolingThresholdTemperature

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getCoolingThresholdTemperature()
        +
        Retrieves the temperature above which the thermostat should begin cooling.
        +
        +
        Returns:
        +
        a future that will contain the threshold temperature, in celsius degrees.
        +
        +
      • +
      + + + +
        +
      • +

        setCoolingThresholdTemperature

        +
        void setCoolingThresholdTemperature​(java.lang.Double value)
        +                             throws java.lang.Exception
        +
        Sets the temperature above which the thermostat should begin cooling.
        +
        +
        Parameters:
        +
        value - the threshold temperature, in celsius degrees.
        +
        Throws:
        +
        java.lang.Exception - when the threshold temperature cannot be changed.
        +
        +
      • +
      + + + +
        +
      • +

        getMinCoolingThresholdTemperature

        +
        default double getMinCoolingThresholdTemperature()
        +
        return the min value for cooling threshold temperature. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        min threshold temperature
        +
        +
      • +
      + + + +
        +
      • +

        getMaxCoolingThresholdTemperature

        +
        default double getMaxCoolingThresholdTemperature()
        +
        return the max value for cooling threshold temperature. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        max threshold temperature
        +
        +
      • +
      + + + +
        +
      • +

        getStepCoolingThresholdTemperature

        +
        default double getStepCoolingThresholdTemperature()
        +
        return the min step value for cooling threshold temperature. overwrite if you want to change + the default value.
        +
        +
        Returns:
        +
        step for threshold temperature
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCoolingThresholdTemperature

        +
        void subscribeCoolingThresholdTemperature​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the cooling threshold.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCoolingThresholdTemperature

        +
        void unsubscribeCoolingThresholdTemperature()
        +
        Unsubscribes from changes in the cooling threshold.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentHorizontalTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentHorizontalTilting.html new file mode 100644 index 000000000..99ce91882 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentHorizontalTilting.html @@ -0,0 +1,302 @@ + + + + + +AccessoryWithCurrentHorizontalTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithCurrentHorizontalTilting

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithCurrentHorizontalTilting
    +
    Accessory with current horizontal tilting characteristic.
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentHorizontalTiltAngle

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getCurrentHorizontalTiltAngle()
        +
        Retrieves the current horizontal tilt angle
        +
        +
        Returns:
        +
        a future that will contain the position as a value between -90 and 90
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentHorizontalTiltAngle

        +
        void subscribeCurrentHorizontalTiltAngle​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current horizontal tilt angle.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentHorizontalTiltAngle

        +
        void unsubscribeCurrentHorizontalTiltAngle()
        +
        Unsubscribes from changes in the current horizontal tilt angle
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentMediaState.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentMediaState.html new file mode 100644 index 000000000..5583a0d44 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentMediaState.html @@ -0,0 +1,298 @@ + + + + + +AccessoryWithCurrentMediaState (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithCurrentMediaState

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentMediaState

        +
        java.util.concurrent.CompletableFuture<CurrentMediaStateEnum> getCurrentMediaState()
        +
        Retrieves the current media state (see CurrentMediaStateEnum for supported values).
        +
        +
        Returns:
        +
        a future that will contain the current media state
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentMediaState

        +
        void subscribeCurrentMediaState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current media state.
        +
        +
        Parameters:
        +
        callback - the function to call when the current media state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentMediaState

        +
        void unsubscribeCurrentMediaState()
        +
        Unsubscribes from changes in the current media state.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentRelativeHumidity.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentRelativeHumidity.html new file mode 100644 index 000000000..d6d8349a9 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentRelativeHumidity.html @@ -0,0 +1,298 @@ + + + + + +AccessoryWithCurrentRelativeHumidity (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithCurrentRelativeHumidity

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithCurrentRelativeHumidity
    +
    accessory with current relative humidity.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentRelativeHumidity

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getCurrentRelativeHumidity()
        +
        Retrieves the current relative humidity.
        +
        +
        Returns:
        +
        a future that will contain the current relative humidity.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentRelativeHumidity

        +
        void subscribeCurrentRelativeHumidity​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in current relative humidity.
        +
        +
        Parameters:
        +
        callback - the function to call when the current relative humidity changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentRelativeHumidity

        +
        void unsubscribeCurrentRelativeHumidity()
        +
        Unsubscribes from changes in the current relative humidity.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentTilting.html new file mode 100644 index 000000000..b214bcf00 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentTilting.html @@ -0,0 +1,298 @@ + + + + + +AccessoryWithCurrentTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithCurrentTilting

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithCurrentTilting
    +
    Accessory with current tilting characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentTiltAngle

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getCurrentTiltAngle()
        +
        Retrieves the current tilt angle
        +
        +
        Returns:
        +
        a future that will contain the position as a value between -90 and 90
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentTiltAngle

        +
        void subscribeCurrentTiltAngle​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current tilt angle.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentTiltAngle

        +
        void unsubscribeCurrentTiltAngle()
        +
        Unsubscribes from changes in the current tilt angle
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentVerticalTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentVerticalTilting.html new file mode 100644 index 000000000..65f52b089 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentVerticalTilting.html @@ -0,0 +1,298 @@ + + + + + +AccessoryWithCurrentVerticalTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithCurrentVerticalTilting

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithCurrentVerticalTilting
    +
    Accessory with current vertical tilting characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentVerticalTiltAngle

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getCurrentVerticalTiltAngle()
        +
        Retrieves the current vertical tilt angle
        +
        +
        Returns:
        +
        a future that will contain the position as a value between -90 and 90
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentVerticalTiltAngle

        +
        void subscribeCurrentVerticalTiltAngle​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current vertical tilt angle.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentVerticalTiltAngle

        +
        void unsubscribeCurrentVerticalTiltAngle()
        +
        Unsubscribes from changes in the current vertical tilt angle
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithDuration.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithDuration.html new file mode 100644 index 000000000..a71cad08b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithDuration.html @@ -0,0 +1,363 @@ + + + + + +AccessoryWithDuration (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithDuration

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithDuration
    +
    Accessory with duration characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSetDuration

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getSetDuration()
        +
        Retrieves the current set duration;
        +
        +
        Returns:
        +
        a future with the value
        +
        +
      • +
      + + + +
        +
      • +

        getMinDuration

        +
        default int getMinDuration()
        +
        return the min value for duration. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        min remaining duration
        +
        +
      • +
      + + + +
        +
      • +

        getMaxDuration

        +
        default int getMaxDuration()
        +
        return the max value for duration. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        max duration
        +
        +
      • +
      + + + +
        +
      • +

        setSetDuration

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setSetDuration​(int value)
        +
        Sets the duration for which the service should run.
        +
        +
        Parameters:
        +
        value - duration in seconds
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeSetDuration

        +
        void subscribeSetDuration​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the set duration
        +
        +
        Parameters:
        +
        callback - the function when the duration has changed
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeSetDuration

        +
        void unsubscribeSetDuration()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithFanState.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithFanState.html new file mode 100644 index 000000000..57fb0b67d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithFanState.html @@ -0,0 +1,384 @@ + + + + + +AccessoryWithFanState (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithFanState

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithFanState
    +
    An accessory with current and target fan states.
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentFanState

        +
        java.util.concurrent.CompletableFuture<CurrentFanStateEnum> getCurrentFanState()
        +
        Retrieves the current state of the fan (INACTIVE, IDLE, BLOWING AIR).
        +
        +
        Returns:
        +
        a future that will contain the state
        +
        +
      • +
      + + + +
        +
      • +

        getTargetFanState

        +
        java.util.concurrent.CompletableFuture<TargetFanStateEnum> getTargetFanState()
        +
        Retrieves the target state of the fan (MANUAL, AUTO).
        +
        +
        Returns:
        +
        a future that will contain the state
        +
        +
      • +
      + + + +
        +
      • +

        setTargetFanState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetFanState​(TargetFanStateEnum targetState)
        +
        Set the target state of the fan (MANUAL, AUTO).
        +
        +
        Parameters:
        +
        targetState - target state
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentFanState

        +
        void subscribeCurrentFanState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current fan state.
        +
        +
        Parameters:
        +
        callback - the function to call when the direction changes.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetFanState

        +
        void subscribeTargetFanState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the target fan state.
        +
        +
        Parameters:
        +
        callback - the function to call when the direction changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentFanState

        +
        void unsubscribeCurrentFanState()
        +
        Unsubscribes from changes in the current state of the fan.
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetFanState

        +
        void unsubscribeTargetFanState()
        +
        Unsubscribes from changes in the target state of the fan.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithFilterLifeLevel.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithFilterLifeLevel.html new file mode 100644 index 000000000..f35ca9e77 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithFilterLifeLevel.html @@ -0,0 +1,298 @@ + + + + + +AccessoryWithFilterLifeLevel (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithFilterLifeLevel

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithFilterLifeLevel
    +
    Accessory with filter level characteristics
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getFilterLifeLevel

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getFilterLifeLevel()
        +
        what's the filter life level, percentage wise
        +
        +
        Returns:
        +
        filter life level
        +
        +
      • +
      + + + +
        +
      • +

        subscribeFilterLifeLevel

        +
        void subscribeFilterLifeLevel​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the filter life level.
        +
        +
        Parameters:
        +
        callback - the function to call when the level changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeFilterLifeLevel

        +
        void unsubscribeFilterLifeLevel()
        +
        Unsubscribes from changes in the current filter life level.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHardwareRevision.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHardwareRevision.html new file mode 100644 index 000000000..76516c842 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHardwareRevision.html @@ -0,0 +1,260 @@ + + + + + +AccessoryWithHardwareRevision (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithHardwareRevision

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithHardwareRevision
    +
    Accessory with hardware revision.
    +
  • +
+
+
+
    +
  • + +
    + +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getHardwareRevision

        +
        java.util.concurrent.CompletableFuture<java.lang.String> getHardwareRevision()
        +
        Returns a hardware revision to display in iOS.
        +
        +
        Returns:
        +
        the hardware revision, or null.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHeatingThresholdTemperature.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHeatingThresholdTemperature.html new file mode 100644 index 000000000..e123e2afd --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHeatingThresholdTemperature.html @@ -0,0 +1,387 @@ + + + + + +AccessoryWithHeatingThresholdTemperature (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithHeatingThresholdTemperature

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithHeatingThresholdTemperature
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getHeatingThresholdTemperature

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getHeatingThresholdTemperature()
        +
        Retrieves the temperature below which the thermostat should begin heating.
        +
        +
        Returns:
        +
        a future that will contain the threshold temperature, in celsius degrees.
        +
        +
      • +
      + + + +
        +
      • +

        setHeatingThresholdTemperature

        +
        void setHeatingThresholdTemperature​(java.lang.Double value)
        +                             throws java.lang.Exception
        +
        Sets the temperature below which the thermostat should begin heating.
        +
        +
        Parameters:
        +
        value - the threshold temperature, in celsius degrees.
        +
        Throws:
        +
        java.lang.Exception - when the threshold temperature cannot be changed.
        +
        +
      • +
      + + + +
        +
      • +

        getMinHeatingThresholdTemperature

        +
        default double getMinHeatingThresholdTemperature()
        +
        return the min value for heating threshold temperature. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        min threshold temperature
        +
        +
      • +
      + + + +
        +
      • +

        getMaxHeatingThresholdTemperature

        +
        default double getMaxHeatingThresholdTemperature()
        +
        return the max value for heating threshold temperature. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        max threshold temperature
        +
        +
      • +
      + + + +
        +
      • +

        getStepHeatingThresholdTemperature

        +
        default double getStepHeatingThresholdTemperature()
        +
        return the min step value for heating threshold temperature. overwrite if you want to change + the default value.
        +
        +
        Returns:
        +
        step for threshold temperature
        +
        +
      • +
      + + + +
        +
      • +

        subscribeHeatingThresholdTemperature

        +
        void subscribeHeatingThresholdTemperature​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the heating threshold.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeHeatingThresholdTemperature

        +
        void unsubscribeHeatingThresholdTemperature()
        +
        Unsubscribes from changes in the heating threshold.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHoldPosition.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHoldPosition.html new file mode 100644 index 000000000..54253fdf9 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHoldPosition.html @@ -0,0 +1,265 @@ + + + + + +AccessoryWithHoldPosition (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithHoldPosition

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithHoldPosition
    +
    Accessory with hold position
    +
  • +
+
+
+
    +
  • + +
    + +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setHoldPosition

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setHoldPosition​(boolean hold)
        +                                                                throws java.lang.Exception
        +
        Sets the hold position state
        +
        +
        Parameters:
        +
        hold - whether or not to hold the current position state
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHumidityDehumidifierThreshold.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHumidityDehumidifierThreshold.html new file mode 100644 index 000000000..60bb261ab --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHumidityDehumidifierThreshold.html @@ -0,0 +1,322 @@ + + + + + +AccessoryWithHumidityDehumidifierThreshold (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithHumidityDehumidifierThreshold

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithHumidityDehumidifierThreshold
    +
    Dehumidifier with humidity threshold.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getHumidityThreshold

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getHumidityThreshold()
        +
        Retrieves the humidity threshold.
        +
        +
        Returns:
        +
        a future that will contain the humidity threshold.
        +
        +
      • +
      + + + +
        +
      • +

        setHumidityThreshold

        +
        void setHumidityThreshold​(java.lang.Double value)
        +                   throws java.lang.Exception
        +
        Sets the humidity threshold above which the dehumidifier should be turned on.
        +
        +
        Parameters:
        +
        value - the humidity threshold, in celsius degrees.
        +
        Throws:
        +
        java.lang.Exception - when the threshold cannot be changed.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeHumidityThreshold

        +
        void subscribeHumidityThreshold​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the humidity threshold.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeHumidityThreshold

        +
        void unsubscribeHumidityThreshold()
        +
        Unsubscribes from changes in the humidity threshold.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHumidityHumidifierThreshold.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHumidityHumidifierThreshold.html new file mode 100644 index 000000000..7fe406373 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHumidityHumidifierThreshold.html @@ -0,0 +1,322 @@ + + + + + +AccessoryWithHumidityHumidifierThreshold (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithHumidityHumidifierThreshold

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithHumidityHumidifierThreshold
    +
    Humidifier with humidity threshold.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getHumidityThreshold

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getHumidityThreshold()
        +
        Retrieves the humidity threshold.
        +
        +
        Returns:
        +
        a future that will contain the humidity threshold.
        +
        +
      • +
      + + + +
        +
      • +

        setHumidityThreshold

        +
        void setHumidityThreshold​(java.lang.Double value)
        +                   throws java.lang.Exception
        +
        Sets the humidity threshold above which the humidifier should be turned on.
        +
        +
        Parameters:
        +
        value - the humidity threshold, in celsius degrees.
        +
        Throws:
        +
        java.lang.Exception - when the threshold cannot be changed.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeHumidityThreshold

        +
        void subscribeHumidityThreshold​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the humidity threshold.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeHumidityThreshold

        +
        void unsubscribeHumidityThreshold()
        +
        Unsubscribes from changes in the humidity threshold.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithIdentifier.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithIdentifier.html new file mode 100644 index 000000000..99c12dba6 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithIdentifier.html @@ -0,0 +1,260 @@ + + + + + +AccessoryWithIdentifier (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithIdentifier

+
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      java.util.concurrent.CompletableFuture<java.lang.Integer>getIdentifier() +
      Retrieves the identifier of service.
      +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getIdentifier

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getIdentifier()
        +
        Retrieves the identifier of service.
        +
        +
        Returns:
        +
        a future with the identifier
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithInputDeviceType.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithInputDeviceType.html new file mode 100644 index 000000000..348267778 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithInputDeviceType.html @@ -0,0 +1,298 @@ + + + + + +AccessoryWithInputDeviceType (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithInputDeviceType

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getInputDeviceType

        +
        java.util.concurrent.CompletableFuture<InputDeviceTypeEnum> getInputDeviceType()
        +
        Retrieves the input device type. See InputDeviceTypeEnum for supported values.
        +
        +
        Returns:
        +
        a future with the value
        +
        +
      • +
      + + + +
        +
      • +

        subscribeInputDeviceType

        +
        void subscribeInputDeviceType​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in input device type.
        +
        +
        Parameters:
        +
        callback - the function when the input device type changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeInputDeviceType

        +
        void unsubscribeInputDeviceType()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithIsConfigured.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithIsConfigured.html new file mode 100644 index 000000000..b95cd5612 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithIsConfigured.html @@ -0,0 +1,323 @@ + + + + + +AccessoryWithIsConfigured (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithIsConfigured

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithIsConfigured
    +
    Accessory with isConfigured characteristics. This characteristic describes if the service is + configured for use. For example, all of the valves in an irrigation system may not be configured + depending on physical wire connection.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getIsConfigured

        +
        java.util.concurrent.CompletableFuture<IsConfiguredEnum> getIsConfigured()
        +
        isConfigured state
        +
        +
        Returns:
        +
        a future that will contain the isConfigured state
        +
        +
      • +
      + + + +
        +
      • +

        setIsConfigured

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setIsConfigured​(IsConfiguredEnum isConfigured)
        +
        Set the isConfigured (NOT_CONFIGURED, CONFIGURED).
        +
        +
        Parameters:
        +
        isConfigured - isConfigured state
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeIsConfigured

        +
        void subscribeIsConfigured​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in isConfigured state
        +
        +
        Parameters:
        +
        callback - the function to call when the isConfigured state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeIsConfigured

        +
        void unsubscribeIsConfigured()
        +
        Unsubscribes from changes in the isConfigured state.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithLockCurrentState.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithLockCurrentState.html new file mode 100644 index 000000000..7a4d95bff --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithLockCurrentState.html @@ -0,0 +1,298 @@ + + + + + +AccessoryWithLockCurrentState (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithLockCurrentState

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithLockCurrentState
    +
    Accessory with current lock state.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getLockCurrentState

        +
        java.util.concurrent.CompletableFuture<LockCurrentStateEnum> getLockCurrentState()
        +
        Retrieves the lock states. The current state of the physical security mechanism (e.g. deadbolt)
        +
        +
        Returns:
        +
        a future with the value
        +
        +
      • +
      + + + +
        +
      • +

        subscribeLockCurrentState

        +
        void subscribeLockCurrentState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in lock current state.
        +
        +
        Parameters:
        +
        callback - the function when the lock current state changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeLockCurrentState

        +
        void unsubscribeLockCurrentState()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithLockTargetState.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithLockTargetState.html new file mode 100644 index 000000000..fefe1df9b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithLockTargetState.html @@ -0,0 +1,324 @@ + + + + + +AccessoryWithLockTargetState (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithLockTargetState

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithLockTargetState
    +
    Accessory with lock target state.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getLockTargetState

        +
        java.util.concurrent.CompletableFuture<LockTargetStateEnum> getLockTargetState()
        +
        Retrieves the lock states. The target state of the physical security mechanism (e.g. deadbolt)
        +
        +
        Returns:
        +
        a future with the value
        +
        +
      • +
      + + + +
        +
      • +

        setLockTargetState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setLockTargetState​(LockTargetStateEnum state)
        +                                                                   throws java.lang.Exception
        +
        Sets the lock target state
        +
        +
        Parameters:
        +
        state - the target state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeLockTargetState

        +
        void subscribeLockTargetState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in lock target state.
        +
        +
        Parameters:
        +
        callback - the function when the lock target state changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeLockTargetState

        +
        void unsubscribeLockTargetState()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithMute.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithMute.html new file mode 100644 index 000000000..bb0462b77 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithMute.html @@ -0,0 +1,324 @@ + + + + + +AccessoryWithMute (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithMute

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithMute
    +
    Accessory with mute characteristic MuteCharacteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        isMuted

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> isMuted()
        +
        Retrieves mute status.
        +
        +
        Returns:
        +
        true if accessory is muted
        +
        +
      • +
      + + + +
        +
      • +

        setMute

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setMute​(boolean mute)
        +                                                        throws java.lang.Exception
        +
        Sets the mute status
        +
        +
        Parameters:
        +
        mute - true if accessory should be muted
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeMuteState

        +
        void subscribeMuteState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in mute state.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeMuteState

        +
        void unsubscribeMuteState()
        +
        Unsubscribes from changes in the mute state.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithName.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithName.html new file mode 100644 index 000000000..3a1b3e6c7 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithName.html @@ -0,0 +1,260 @@ + + + + + +AccessoryWithName (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithName

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithName
    +
    Accessory with name.
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      java.util.concurrent.CompletableFuture<java.lang.String>getName() +
      Retrieves the name of service.
      +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getName

        +
        java.util.concurrent.CompletableFuture<java.lang.String> getName()
        +
        Retrieves the name of service.
        +
        +
        Returns:
        +
        a future with the name
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithNitrogenDioxideDensity.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithNitrogenDioxideDensity.html new file mode 100644 index 000000000..7b1c97400 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithNitrogenDioxideDensity.html @@ -0,0 +1,364 @@ + + + + + +AccessoryWithNitrogenDioxideDensity (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithNitrogenDioxideDensity

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithNitrogenDioxideDensity
    +
    Accessory with nitrogen dioxide density characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getNitrogenDioxideDensity

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getNitrogenDioxideDensity()
        +
        Retrieves the nitrogen dioxide density.
        +
        +
        Returns:
        +
        a future with the nitrogen dioxide density
        +
        +
      • +
      + + + +
        +
      • +

        getMinNitrogenDioxideDensity

        +
        default double getMinNitrogenDioxideDensity()
        +
        return the min value for nitrogen dioxide density. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        min nitrogen dioxide density
        +
        +
      • +
      + + + +
        +
      • +

        getMaxNitrogenDioxideDensity

        +
        default double getMaxNitrogenDioxideDensity()
        +
        return the max value for nitrogen dioxide density. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        max nitrogen dioxide density
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepNitrogenDioxideDensity

        +
        default double getMinStepNitrogenDioxideDensity()
        +
        return the min step value for nitrogen dioxide density. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        min step nitrogen dioxide density
        +
        +
      • +
      + + + +
        +
      • +

        subscribeNitrogenDioxideDensity

        +
        void subscribeNitrogenDioxideDensity​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in nitrogen dioxide density.
        +
        +
        Parameters:
        +
        callback - the function when nitrogen dioxide density changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeNitrogenDioxideDensity

        +
        void unsubscribeNitrogenDioxideDensity()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithObstructionDetection.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithObstructionDetection.html new file mode 100644 index 000000000..d8ab010aa --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithObstructionDetection.html @@ -0,0 +1,298 @@ + + + + + +AccessoryWithObstructionDetection (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithObstructionDetection

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithObstructionDetection
    +
    Accessory with hold position
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getObstructionDetected

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> getObstructionDetected()
        +
        Retrieves an indication obstructed is detected
        +
        +
        Returns:
        +
        a future that will contain a boolean indicating whether an obstruction is present
        +
        +
      • +
      + + + +
        +
      • +

        subscribeObstructionDetected

        +
        void subscribeObstructionDetected​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the obstruction detected state
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeObstructionDetected

        +
        void unsubscribeObstructionDetected()
        +
        Unsubscribes from changes in the obstruction detected state
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithOzoneDensity.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithOzoneDensity.html new file mode 100644 index 000000000..15d190ee6 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithOzoneDensity.html @@ -0,0 +1,361 @@ + + + + + +AccessoryWithOzoneDensity (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithOzoneDensity

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithOzoneDensity
    +
    Accessory with Ozone Density characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getOzoneDensity

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getOzoneDensity()
        +
        Retrieves the ozone density.
        +
        +
        Returns:
        +
        a future with the ozone density
        +
        +
      • +
      + + + +
        +
      • +

        getMinOzoneDensity

        +
        default double getMinOzoneDensity()
        +
        return the min value for ozone density. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        min ozone density
        +
        +
      • +
      + + + +
        +
      • +

        getMaxOzoneDensity

        +
        default double getMaxOzoneDensity()
        +
        return the max value for ozone density. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        max ozone density
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepOzoneDensity

        +
        default double getMinStepOzoneDensity()
        +
        return the min step value for ozone density. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        min step ozone density
        +
        +
      • +
      + + + +
        +
      • +

        subscribeOzoneDensity

        +
        void subscribeOzoneDensity​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in ozone density.
        +
        +
        Parameters:
        +
        callback - the function when ozone density changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeOzoneDensity

        +
        void unsubscribeOzoneDensity()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPM10Density.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPM10Density.html new file mode 100644 index 000000000..5bfe9b51b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPM10Density.html @@ -0,0 +1,361 @@ + + + + + +AccessoryWithPM10Density (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithPM10Density

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithPM10Density
    +
    Accessory with PM10 Density characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPM10Density

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getPM10Density()
        +
        Retrieves the PM10 density.
        +
        +
        Returns:
        +
        a future with the PM10 density
        +
        +
      • +
      + + + +
        +
      • +

        getMinPM10Density

        +
        default double getMinPM10Density()
        +
        return the min value for PM10 density. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        min PM10 density
        +
        +
      • +
      + + + +
        +
      • +

        getMaxPM10Density

        +
        default double getMaxPM10Density()
        +
        return the max value for PM10 density. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        max PM10 density
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepPM10Density

        +
        default double getMinStepPM10Density()
        +
        return the min step value for PM10 density. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        min step PM10 density
        +
        +
      • +
      + + + +
        +
      • +

        subscribePM10Density

        +
        void subscribePM10Density​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in PM10 density.
        +
        +
        Parameters:
        +
        callback - the function when PM10 density changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribePM10Density

        +
        void unsubscribePM10Density()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPM25Density.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPM25Density.html new file mode 100644 index 000000000..9c25b02a9 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPM25Density.html @@ -0,0 +1,361 @@ + + + + + +AccessoryWithPM25Density (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithPM25Density

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithPM25Density
    +
    Accessory with PM25 Density characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPM25Density

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getPM25Density()
        +
        Retrieves the PM25 density.
        +
        +
        Returns:
        +
        a future with the PM25 density
        +
        +
      • +
      + + + +
        +
      • +

        getMinPM25Density

        +
        default double getMinPM25Density()
        +
        return the min value for PM25 density. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        min PM25 density
        +
        +
      • +
      + + + +
        +
      • +

        getMaxPM25Density

        +
        default double getMaxPM25Density()
        +
        return the max value for PM25 density. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        max PM25 density
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepPM25Density

        +
        default double getMinStepPM25Density()
        +
        return the min step value for PM25 density. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        min step PM25 density
        +
        +
      • +
      + + + +
        +
      • +

        subscribePM25Density

        +
        void subscribePM25Density​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in PM25 density.
        +
        +
        Parameters:
        +
        callback - the function when PM25 density changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribePM25Density

        +
        void unsubscribePM25Density()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPhysicalControlsLock.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPhysicalControlsLock.html new file mode 100644 index 000000000..30b7b876a --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPhysicalControlsLock.html @@ -0,0 +1,321 @@ + + + + + +AccessoryWithPhysicalControlsLock (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithPhysicalControlsLock

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithPhysicalControlsLock
    +
    Accessory with physical controls which can be locked, e.g. child lock
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getLockControls

        +
        java.util.concurrent.CompletableFuture<LockPhysicalControlsEnum> getLockControls()
        +
        OPTIONAL: Retrieves the lock controls.
        +
        +
        Returns:
        +
        a future that will contain the lock controls
        +
        +
      • +
      + + + +
        +
      • +

        setLockControls

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setLockControls​(LockPhysicalControlsEnum lockControls)
        +
        Set the lock controls (DISABLED, ENABLED).
        +
        +
        Parameters:
        +
        lockControls - lock controls mode
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeLockControls

        +
        void subscribeLockControls​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the lock controls.
        +
        +
        Parameters:
        +
        callback - the function to call when the lock controls changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeLockControls

        +
        void unsubscribeLockControls()
        +
        Unsubscribes from changes in the lock controls.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPictureMode.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPictureMode.html new file mode 100644 index 000000000..e1e570f42 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPictureMode.html @@ -0,0 +1,321 @@ + + + + + +AccessoryWithPictureMode (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithPictureMode

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPictureMode

        +
        java.util.concurrent.CompletableFuture<PictureModeEnum> getPictureMode()
        +
        Retrieves the picture mode (see PictureModeEnum for supported values).
        +
        +
        Returns:
        +
        a future that will contain the picture mode
        +
        +
      • +
      + + + +
        +
      • +

        setPictureMode

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setPictureMode​(PictureModeEnum pictureMode)
        +
        Set the picture mode (see PictureModeEnum for supported values).
        +
        +
        Parameters:
        +
        pictureMode - picture mode
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribePictureMode

        +
        void subscribePictureMode​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the picture mode.
        +
        +
        Parameters:
        +
        callback - the function to call when the picture mode changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribePictureMode

        +
        void unsubscribePictureMode()
        +
        Unsubscribes from changes in the picture mode.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPowerMode.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPowerMode.html new file mode 100644 index 000000000..92b6ecd1a --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPowerMode.html @@ -0,0 +1,262 @@ + + + + + +AccessoryWithPowerMode (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithPowerMode

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithPowerMode
    +
    An accessory with power mode.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setPowerMode

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setPowerMode​(PowerModeEnum mode)
        +
        Set the power mode. See PowerModeEnum for supported values
        +
        +
        Parameters:
        +
        mode - target power mode
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRemainingDuration.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRemainingDuration.html new file mode 100644 index 000000000..858f21f31 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRemainingDuration.html @@ -0,0 +1,346 @@ + + + + + +AccessoryWithRemainingDuration (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithRemainingDuration

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithRemainingDuration
    +
    Accessory with remaining duration characteristic.
    +
    +
    Author:
    +
    Tim Harper
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getRemainingDuration

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getRemainingDuration()
        +
        Retrieves the remaining duration
        +
        +
        Returns:
        +
        a future with the duration in seconds
        +
        +
      • +
      + + + +
        +
      • +

        getMinRemainingDuration

        +
        default int getMinRemainingDuration()
        +
        return the min value for remaining duration. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        min remaining duration
        +
        +
      • +
      + + + +
        +
      • +

        getMaxRemainingDuration

        +
        default int getMaxRemainingDuration()
        +
        return the max value for remaining duration. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        max remaining duration
        +
        +
      • +
      + + + +
        +
      • +

        subscribeRemainingDuration

        +
        void subscribeRemainingDuration​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the duration; note it is not necessary to emit a change every second, + homekit infers the countdown progress client side.
        +
        +
        Parameters:
        +
        callback - the function when the existing duration has been replaced with a new one.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeRemainingDuration

        +
        void unsubscribeRemainingDuration()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithResetFilterIndication.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithResetFilterIndication.html new file mode 100644 index 000000000..d4c42e15d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithResetFilterIndication.html @@ -0,0 +1,265 @@ + + + + + +AccessoryWithResetFilterIndication (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithResetFilterIndication

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithResetFilterIndication
    +
    Accessory with filter reset characteristics
    +
  • +
+
+
+
    +
  • + +
    + +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        resetFilterIndication

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> resetFilterIndication​(java.lang.Integer indication)
        +                                                                      throws java.lang.Exception
        +
        Request to reset the filter level
        +
        +
        Parameters:
        +
        indication - always 1, by HomeKit protocol. (to be ignored)
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRotationDirection.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRotationDirection.html new file mode 100644 index 000000000..75bf47759 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRotationDirection.html @@ -0,0 +1,324 @@ + + + + + +AccessoryWithRotationDirection (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithRotationDirection

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithRotationDirection
    +
    accessory with rotation direction characteristics.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getRotationDirection

        +
        java.util.concurrent.CompletableFuture<RotationDirectionEnum> getRotationDirection()
        +
        Retrieves the current rotation direction.
        +
        +
        Returns:
        +
        a future that will contain the direction
        +
        +
      • +
      + + + +
        +
      • +

        setRotationDirection

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setRotationDirection​(RotationDirectionEnum direction)
        +                                                                     throws java.lang.Exception
        +
        Sets the rotation direction
        +
        +
        Parameters:
        +
        direction - the direction to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeRotationDirection

        +
        void subscribeRotationDirection​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the rotation direction.
        +
        +
        Parameters:
        +
        callback - the function to call when the direction changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeRotationDirection

        +
        void unsubscribeRotationDirection()
        +
        Unsubscribes from changes in the rotation direction.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRotationSpeed.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRotationSpeed.html new file mode 100644 index 000000000..61854bf51 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRotationSpeed.html @@ -0,0 +1,324 @@ + + + + + +AccessoryWithRotationSpeed (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithRotationSpeed

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithRotationSpeed
    +
    accessory with rotation speed characteristics.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getRotationSpeed

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getRotationSpeed()
        +
        Retrieves the current speed of the rotation
        +
        +
        Returns:
        +
        a future that will contain the speed, expressed as an integer between 0 and 100.
        +
        +
      • +
      + + + +
        +
      • +

        setRotationSpeed

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setRotationSpeed​(java.lang.Double speed)
        +                                                                 throws java.lang.Exception
        +
        Sets the speed of the rotation
        +
        +
        Parameters:
        +
        speed - the speed to set, expressed as an integer between 0 and 100.
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeRotationSpeed

        +
        void subscribeRotationSpeed​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the rotation speed.
        +
        +
        Parameters:
        +
        callback - the function to call when the speed changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeRotationSpeed

        +
        void unsubscribeRotationSpeed()
        +
        Unsubscribes from changes in the rotation speed.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSecurityAlarmType.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSecurityAlarmType.html new file mode 100644 index 000000000..9bfc97e59 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSecurityAlarmType.html @@ -0,0 +1,298 @@ + + + + + +AccessoryWithSecurityAlarmType (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithSecurityAlarmType

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithSecurityAlarmType
    +
    This characteristic describes the type of alarm triggered by a security system.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        subscribeSecurityAlarmType

        +
        void subscribeSecurityAlarmType​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in status alarm type
        +
        +
        Parameters:
        +
        callback - the function when the alarm type changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeSecurityAlarmType

        +
        void unsubscribeSecurityAlarmType()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithServiceLabelIndex.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithServiceLabelIndex.html new file mode 100644 index 000000000..8d1cec30a --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithServiceLabelIndex.html @@ -0,0 +1,260 @@ + + + + + +AccessoryWithServiceLabelIndex (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithServiceLabelIndex

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithServiceLabelIndex
    +
    Accessory with service label index. T
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getServiceLabelIndex

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getServiceLabelIndex()
        +
        Retrieves the service label index.
        +
        +
        Returns:
        +
        a future with the service label index
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusActive.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusActive.html new file mode 100644 index 000000000..f9afed74d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusActive.html @@ -0,0 +1,299 @@ + + + + + +AccessoryWithStatusActive (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithStatusActive

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithStatusActive
    +
    Accessory with status active.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getStatusActive

        +
        java.util.concurrent.CompletableFuture<java.lang.Boolean> getStatusActive()
        +
        Retrieves the status active. A value of true indicates that the accessory is active and is + functioning without any errors.
        +
        +
        Returns:
        +
        a future with the value
        +
        +
      • +
      + + + +
        +
      • +

        subscribeStatusActive

        +
        void subscribeStatusActive​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in status active.
        +
        +
        Parameters:
        +
        callback - the function when the status active changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeStatusActive

        +
        void unsubscribeStatusActive()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusFault.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusFault.html new file mode 100644 index 000000000..98bce3547 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusFault.html @@ -0,0 +1,300 @@ + + + + + +AccessoryWithStatusFault (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithStatusFault

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithStatusFault
    +
    Accessory with characteristic that describes an accessory which has a fault.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getStatusFault

        +
        java.util.concurrent.CompletableFuture<StatusFaultEnum> getStatusFault()
        +
        Retrieves the status fault. A non-zero value indicates that the accessory has experienced a + fault that may be interfering with its intended functionality. A value of 0 indicates that + there is no fault.
        +
        +
        Returns:
        +
        a future with the value
        +
        +
      • +
      + + + +
        +
      • +

        subscribeStatusFault

        +
        void subscribeStatusFault​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in status fault.
        +
        +
        Parameters:
        +
        callback - the function when the status fault changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeStatusFault

        +
        void unsubscribeStatusFault()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusLowBattery.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusLowBattery.html new file mode 100644 index 000000000..1524f383d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusLowBattery.html @@ -0,0 +1,299 @@ + + + + + +AccessoryWithStatusLowBattery (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithStatusLowBattery

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithStatusLowBattery
    +
    This characteristic describes an accessoryʼs battery status.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getStatusLowBattery

        +
        java.util.concurrent.CompletableFuture<StatusLowBatteryEnum> getStatusLowBattery()
        +
        A status of 1 indicates that the battery level of the accessory is low. Value should return to + 0 when the battery charges to a level thats above the low threshold.
        +
        +
        Returns:
        +
        a future with the value
        +
        +
      • +
      + + + +
        +
      • +

        subscribeStatusLowBattery

        +
        void subscribeStatusLowBattery​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in status low battery.
        +
        +
        Parameters:
        +
        callback - the function when the status low batter changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeStatusLowBattery

        +
        void unsubscribeStatusLowBattery()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusTampered.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusTampered.html new file mode 100644 index 000000000..d0f0990dc --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusTampered.html @@ -0,0 +1,298 @@ + + + + + +AccessoryWithStatusTampered (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithStatusTampered

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithStatusTampered
    +
    This characteristic describes an accessory which has been tampered with.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getStatusTampered

        +
        java.util.concurrent.CompletableFuture<StatusTamperedEnum> getStatusTampered()
        +
        Retrieves the status tampered.
        +
        +
        Returns:
        +
        a future with the value
        +
        +
      • +
      + + + +
        +
      • +

        subscribeStatusTampered

        +
        void subscribeStatusTampered​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in status tampered.
        +
        +
        Parameters:
        +
        callback - the function when the status tampered changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeStatusTampered

        +
        void unsubscribeStatusTampered()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSulphurDioxideDensity.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSulphurDioxideDensity.html new file mode 100644 index 000000000..4d864e313 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSulphurDioxideDensity.html @@ -0,0 +1,364 @@ + + + + + +AccessoryWithSulphurDioxideDensity (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithSulphurDioxideDensity

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithSulphurDioxideDensity
    +
    Accessory with sulphur dioxide density characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSulphurDioxideDensity

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getSulphurDioxideDensity()
        +
        Retrieves the sulphur dioxide density.
        +
        +
        Returns:
        +
        a future with the sulphur dioxide density
        +
        +
      • +
      + + + +
        +
      • +

        getMinSulphurDioxideDensity

        +
        default double getMinSulphurDioxideDensity()
        +
        return the min value for sulphur dioxide density. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        min sulphur dioxide density
        +
        +
      • +
      + + + +
        +
      • +

        getMaxSulphurDioxideDensity

        +
        default double getMaxSulphurDioxideDensity()
        +
        return the max value for sulphur dioxide density. overwrite if you want to change the default + value.
        +
        +
        Returns:
        +
        max sulphur dioxide density
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepSulphurDioxideDensity

        +
        default double getMinStepSulphurDioxideDensity()
        +
        return the min step value for sulphur dioxide density. overwrite if you want to change the + default value.
        +
        +
        Returns:
        +
        min step sulphur dioxide density
        +
        +
      • +
      + + + +
        +
      • +

        subscribeSulphurDioxideDensity

        +
        void subscribeSulphurDioxideDensity​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in sulphur dioxide density.
        +
        +
        Parameters:
        +
        callback - the function when sulphur dioxide density changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeSulphurDioxideDensity

        +
        void unsubscribeSulphurDioxideDensity()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSwingMode.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSwingMode.html new file mode 100644 index 000000000..6831a0a31 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSwingMode.html @@ -0,0 +1,321 @@ + + + + + +AccessoryWithSwingMode (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithSwingMode

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithSwingMode
    +
    Accessory with Swing Mode characteristics.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSwingMode

        +
        java.util.concurrent.CompletableFuture<SwingModeEnum> getSwingMode()
        +
        Retrieves the swing mode.
        +
        +
        Returns:
        +
        a future that will contain the swing mode
        +
        +
      • +
      + + + +
        +
      • +

        setSwingMode

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setSwingMode​(SwingModeEnum swingMode)
        +
        Set the swing mode (DISABLED, ENABLED).
        +
        +
        Parameters:
        +
        swingMode - swing mode
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeSwingMode

        +
        void subscribeSwingMode​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the swing mode.
        +
        +
        Parameters:
        +
        callback - the function to call when the swing mode changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeSwingMode

        +
        void unsubscribeSwingMode()
        +
        Unsubscribes from changes in the swing mode.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetHorizontalTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetHorizontalTilting.html new file mode 100644 index 000000000..dffdb441a --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetHorizontalTilting.html @@ -0,0 +1,328 @@ + + + + + +AccessoryWithTargetHorizontalTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithTargetHorizontalTilting

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithTargetHorizontalTilting
    +
    Accessory with target horizontal tilting characteristic.
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTargetHorizontalTiltAngle

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getTargetHorizontalTiltAngle()
        +
        Retrieves the target horizontal tilt angle
        +
        +
        Returns:
        +
        a future that will contain the target position as a value between -90 and 90
        +
        +
      • +
      + + + +
        +
      • +

        setTargetHorizontalTiltAngle

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetHorizontalTiltAngle​(int angle)
        +                                                                             throws java.lang.Exception
        +
        Sets the target position
        +
        +
        Parameters:
        +
        angle - the target angle to set, as a value between -90 and 90
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetHorizontalTiltAngle

        +
        void subscribeTargetHorizontalTiltAngle​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the target horizontal tilt angle.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetHorizontalTiltAngle

        +
        void unsubscribeTargetHorizontalTiltAngle()
        +
        Unsubscribes from changes in the target horizontal tilt angle
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetMediaState.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetMediaState.html new file mode 100644 index 000000000..0ec0599b2 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetMediaState.html @@ -0,0 +1,321 @@ + + + + + +AccessoryWithTargetMediaState (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithTargetMediaState

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTargetMediaState

        +
        java.util.concurrent.CompletableFuture<TargetMediaStateEnum> getTargetMediaState()
        +
        Retrieves the target media state (see TargetMediaStateEnum for supported values).
        +
        +
        Returns:
        +
        a future that will contain the target media state
        +
        +
      • +
      + + + +
        +
      • +

        setTargetMediaState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetMediaState​(TargetMediaStateEnum targetMediaState)
        +
        Set the target media state (see TargetMediaStateEnum for supported values).
        +
        +
        Parameters:
        +
        targetMediaState - target media state
        +
        Returns:
        +
        a future that completes when the change is made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetMediaState

        +
        void subscribeTargetMediaState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the target media state.
        +
        +
        Parameters:
        +
        callback - the function to call when the target media state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetMediaState

        +
        void unsubscribeTargetMediaState()
        +
        Unsubscribes from changes in the target media state.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetRelativeHumidity.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetRelativeHumidity.html new file mode 100644 index 000000000..6a62241f8 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetRelativeHumidity.html @@ -0,0 +1,322 @@ + + + + + +AccessoryWithTargetRelativeHumidity (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithTargetRelativeHumidity

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithTargetRelativeHumidity
    +
    accessory with target relative humidity.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTargetRelativeHumidity

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getTargetRelativeHumidity()
        +
        Retrieves the target relative humidity.
        +
        +
        Returns:
        +
        a future that will contain the target relative humidity.
        +
        +
      • +
      + + + +
        +
      • +

        setTargetRelativeHumidity

        +
        void setTargetRelativeHumidity​(java.lang.Double value)
        +                        throws java.lang.Exception
        +
        Sets the target relative humidity.
        +
        +
        Parameters:
        +
        value - the target relative humidity.
        +
        Throws:
        +
        java.lang.Exception - when the target relative humidity cannot be changed.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetRelativeHumidity

        +
        void subscribeTargetRelativeHumidity​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the target relative humidity.
        +
        +
        Parameters:
        +
        callback - the function to call when the target relative humidity changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetRelativeHumidity

        +
        void unsubscribeTargetRelativeHumidity()
        +
        Unsubscribes from changes in the target relative humidity.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetTilting.html new file mode 100644 index 000000000..12a66074b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetTilting.html @@ -0,0 +1,324 @@ + + + + + +AccessoryWithTargetTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithTargetTilting

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithTargetTilting
    +
    Accessory with target tilting characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTargetTiltAngle

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getTargetTiltAngle()
        +
        Retrieves the target tilt angle
        +
        +
        Returns:
        +
        a future that will contain the target position as a value between -90 and 90
        +
        +
      • +
      + + + +
        +
      • +

        setTargetTiltAngle

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetTiltAngle​(int angle)
        +                                                                   throws java.lang.Exception
        +
        Sets the target tilt angle
        +
        +
        Parameters:
        +
        angle - the target angle to set, as a value between -90 and 90
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetTiltAngle

        +
        void subscribeTargetTiltAngle​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the target tilt angle.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetTiltAngle

        +
        void unsubscribeTargetTiltAngle()
        +
        Unsubscribes from changes in the target tilt angle
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetVerticalTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetVerticalTilting.html new file mode 100644 index 000000000..9b0ec84e1 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetVerticalTilting.html @@ -0,0 +1,324 @@ + + + + + +AccessoryWithTargetVerticalTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithTargetVerticalTilting

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithTargetVerticalTilting
    +
    Accessory with target vertical tilting characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTargetVerticalTiltAngle

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getTargetVerticalTiltAngle()
        +
        Retrieves the target vertical tilt angle
        +
        +
        Returns:
        +
        a future that will contain the target position as a value between -90 and 90
        +
        +
      • +
      + + + +
        +
      • +

        setTargetVerticalTiltAngle

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetVerticalTiltAngle​(int angle)
        +                                                                           throws java.lang.Exception
        +
        Sets the target position
        +
        +
        Parameters:
        +
        angle - the target angle to set, as a value between -90 and 90
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetVerticalTiltAngle

        +
        void subscribeTargetVerticalTiltAngle​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the target vertical tilt angle.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetVerticalTiltAngle

        +
        void unsubscribeTargetVerticalTiltAngle()
        +
        Unsubscribes from changes in the target vertical tilt angle
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetVisibilityState.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetVisibilityState.html new file mode 100644 index 000000000..9af0900d8 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetVisibilityState.html @@ -0,0 +1,324 @@ + + + + + +AccessoryWithTargetVisibilityState (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithTargetVisibilityState

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithTargetVisibilityState
    +
    accessory with target visibility state characteristics.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTargetVisibilityState

        +
        java.util.concurrent.CompletableFuture<TargetVisibilityStateEnum> getTargetVisibilityState()
        +
        Retrieves the target visibility state.
        +
        +
        Returns:
        +
        a future that will contain the target visibility state
        +
        +
      • +
      + + + +
        +
      • +

        setTargetVisibilityState

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetVisibilityState​(TargetVisibilityStateEnum state)
        +                                                                         throws java.lang.Exception
        +
        Sets the target visibility state
        +
        +
        Parameters:
        +
        state - the target visibility state to set
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetVisibilityState

        +
        void subscribeTargetVisibilityState​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in t target visibility state.
        +
        +
        Parameters:
        +
        callback - the function to call when the target visibility state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetVisibilityState

        +
        void unsubscribeTargetVisibilityState()
        +
        Unsubscribes from changes in the target visibility state.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTemperatureDisplayUnits.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTemperatureDisplayUnits.html new file mode 100644 index 000000000..9dcac070d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTemperatureDisplayUnits.html @@ -0,0 +1,325 @@ + + + + + +AccessoryWithTemperatureDisplayUnits (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithTemperatureDisplayUnits

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithTemperatureDisplayUnits
    +
    Accessory with characteristic that describes units of temperature used for presentation purposes + (e.g. the units of temperature displayed on the screen).
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getTemperatureDisplayUnits

        +
        java.util.concurrent.CompletableFuture<TemperatureDisplayUnitEnum> getTemperatureDisplayUnits()
        +
        Retrieves temperature display units
        +
        +
        Returns:
        +
        a future that will contain temperature display units
        +
        +
      • +
      + + + +
        +
      • +

        setTemperatureDisplayUnits

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTemperatureDisplayUnits​(TemperatureDisplayUnitEnum units)
        +                                                                           throws java.lang.Exception
        +
        Sets the temperature display units
        +
        +
        Parameters:
        +
        units - the target temperature display units
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTemperatureDisplayUnits

        +
        void subscribeTemperatureDisplayUnits​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the temperature display units
        +
        +
        Parameters:
        +
        callback - the function to call when temperature display units changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeTemperatureDisplayUnits

        +
        void unsubscribeTemperatureDisplayUnits()
        +
        Unsubscribes from changes in the temperature display units
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVOCDensity.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVOCDensity.html new file mode 100644 index 000000000..8b590ddb8 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVOCDensity.html @@ -0,0 +1,361 @@ + + + + + +AccessoryWithVOCDensity (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithVOCDensity

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithVOCDensity
    +
    Accessory with VOC Density characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getVOCDensity

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getVOCDensity()
        +
        Retrieves the VOC density.
        +
        +
        Returns:
        +
        a future with the VOC density
        +
        +
      • +
      + + + +
        +
      • +

        getMinVOCDensity

        +
        default double getMinVOCDensity()
        +
        return the min value for VOC density. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        min VOC density
        +
        +
      • +
      + + + +
        +
      • +

        getMaxVOCDensity

        +
        default double getMaxVOCDensity()
        +
        return the max value for VOC density. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        max VOC density
        +
        +
      • +
      + + + +
        +
      • +

        getMinStepVOCDensity

        +
        default double getMinStepVOCDensity()
        +
        return the min step value for VOC density. overwrite if you want to change the default value.
        +
        +
        Returns:
        +
        min step VOC density
        +
        +
      • +
      + + + +
        +
      • +

        subscribeVOCDensity

        +
        void subscribeVOCDensity​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in VOC density.
        +
        +
        Parameters:
        +
        callback - the function when VOC density changes
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeVOCDensity

        +
        void unsubscribeVOCDensity()
        +
        Unsubscribes from changes
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVerticalTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVerticalTilting.html new file mode 100644 index 000000000..67a2d4388 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVerticalTilting.html @@ -0,0 +1,383 @@ + + + + + +AccessoryWithVerticalTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithVerticalTilting

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithVerticalTilting
    +
    Accessory with vertical tilting characteristic.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCurrentVerticalTiltAngle

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getCurrentVerticalTiltAngle()
        +
        Retrieves the current vertical tilt angle
        +
        +
        Returns:
        +
        a future that will contain the position as a value between -90 and 90
        +
        +
      • +
      + + + +
        +
      • +

        getTargetVerticalTiltAngle

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getTargetVerticalTiltAngle()
        +
        Retrieves the target vertical tilt angle
        +
        +
        Returns:
        +
        a future that will contain the target position as a value between -90 and 90
        +
        +
      • +
      + + + +
        +
      • +

        setTargetVerticalTiltAngle

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setTargetVerticalTiltAngle​(int angle)
        +                                                                           throws java.lang.Exception
        +
        Sets the target position
        +
        +
        Parameters:
        +
        angle - the target angle to set, as a value between -90 and 90
        +
        Returns:
        +
        a future that completes when the change is made
        +
        Throws:
        +
        java.lang.Exception - when the change cannot be made
        +
        +
      • +
      + + + +
        +
      • +

        subscribeCurrentVerticalTiltAngle

        +
        void subscribeCurrentVerticalTiltAngle​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the current vertical tilt angle.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeTargetVerticalTiltAngle

        +
        void subscribeTargetVerticalTiltAngle​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the target vertical tilt angle.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeCurrentVerticalTiltAngle

        +
        void unsubscribeCurrentVerticalTiltAngle()
        +
        Unsubscribes from changes in the current vertical tilt angle
        +
      • +
      + + + +
        +
      • +

        unsubscribeTargetVerticalTiltAngle

        +
        void unsubscribeTargetVerticalTiltAngle()
        +
        Unsubscribes from changes in the target vertical tilt angle
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolume.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolume.html new file mode 100644 index 000000000..b0c940209 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolume.html @@ -0,0 +1,324 @@ + + + + + +AccessoryWithVolume (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithVolume

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithVolume
    +
    Accessory with volume values.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getVolume

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> getVolume()
        +
        Retrieves the current volume
        +
        +
        Returns:
        +
        a future that will contain the volume, expressed as an integer between 0 and 100.
        +
        +
      • +
      + + + +
        +
      • +

        setVolume

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setVolume​(java.lang.Integer value)
        +                                                          throws java.lang.Exception
        +
        Sets the current volume
        +
        +
        Parameters:
        +
        value - the volume, on a scale of 0 to 100, to set
        +
        Returns:
        +
        a future that completes when the volume is changed
        +
        Throws:
        +
        java.lang.Exception - when the volume cannot be set
        +
        +
      • +
      + + + +
        +
      • +

        subscribeVolume

        +
        void subscribeVolume​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the volume.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeVolume

        +
        void unsubscribeVolume()
        +
        Unsubscribes from changes in the volume.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolumeControlType.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolumeControlType.html new file mode 100644 index 000000000..4b96af96f --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolumeControlType.html @@ -0,0 +1,299 @@ + + + + + +AccessoryWithVolumeControlType (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithVolumeControlType

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getVolumeControlType

        +
        java.util.concurrent.CompletableFuture<VolumeControlTypeEnum> getVolumeControlType()
        +
        Retrieves the current volume control type. see VolumeControlTypeEnum for possible + values
        +
        +
        Returns:
        +
        a future that will contain the type.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeVolumeControlType

        +
        void subscribeVolumeControlType​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the volume.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeVolumeControlType

        +
        void unsubscribeVolumeControlType()
        +
        Unsubscribes from changes in the volume.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolumeSelector.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolumeSelector.html new file mode 100644 index 000000000..2d8f3bd00 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolumeSelector.html @@ -0,0 +1,265 @@ + + + + + +AccessoryWithVolumeSelector (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithVolumeSelector

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setVolumeSelector

        +
        java.util.concurrent.CompletableFuture<java.lang.Void> setVolumeSelector​(VolumeSelectorEnum value)
        +                                                                  throws java.lang.Exception
        +
        Sets the volume selector
        +
        +
        Parameters:
        +
        value - the volume selector
        +
        Returns:
        +
        a future that completes when the volume selector is changed
        +
        Throws:
        +
        java.lang.Exception - when the volume selector cannot be set
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithWaterLevel.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithWaterLevel.html new file mode 100644 index 000000000..a910bc70f --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithWaterLevel.html @@ -0,0 +1,298 @@ + + + + + +AccessoryWithWaterLevel (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface AccessoryWithWaterLevel

+
+
+
+
    +
  • +
    +
    public interface AccessoryWithWaterLevel
    +
    Accessory with water level.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getWaterLevel

        +
        java.util.concurrent.CompletableFuture<java.lang.Double> getWaterLevel()
        +
        Retrieves the water level in percent.
        +
        +
        Returns:
        +
        a future that will contain the water level, expressed as an double between 0 and 100.
        +
        +
      • +
      + + + +
        +
      • +

        subscribeWaterLevel

        +
        void subscribeWaterLevel​(HomekitCharacteristicChangeCallback callback)
        +
        Subscribes to changes in the water level.
        +
        +
        Parameters:
        +
        callback - the function to call when the state changes.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribeWaterLevel

        +
        void unsubscribeWaterLevel()
        +
        Unsubscribes from changes in the water level.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithAccessoryFlags.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithAccessoryFlags.html new file mode 100644 index 000000000..7bd00e615 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithAccessoryFlags.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAccessoryFlags (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAccessoryFlags

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAccessoryFlags
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithActive.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithActive.html new file mode 100644 index 000000000..aded58a54 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithActive.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithActive (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithActive

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithActive
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithAirPlayEnable.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithAirPlayEnable.html new file mode 100644 index 000000000..20d1ed256 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithAirPlayEnable.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAirPlayEnable (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAirPlayEnable

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAirPlayEnable
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithBrightness.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithBrightness.html new file mode 100644 index 000000000..32ad52f5d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithBrightness.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithBrightness (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithBrightness

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithBrightness
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCarbonDioxideLevel.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCarbonDioxideLevel.html new file mode 100644 index 000000000..03bd8106e --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCarbonDioxideLevel.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCarbonMonoxideLevel.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCarbonMonoxideLevel.html new file mode 100644 index 000000000..c2c0329bb --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCarbonMonoxideLevel.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithClosedCaptions.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithClosedCaptions.html new file mode 100644 index 000000000..e91717aeb --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithClosedCaptions.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithClosedCaptions (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithClosedCaptions

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithClosedCaptions
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithColor.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithColor.html new file mode 100644 index 000000000..fb2acee69 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithColor.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColor

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColor
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithColorTemperature.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithColorTemperature.html new file mode 100644 index 000000000..c6680d6c3 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithColorTemperature.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColorTemperature (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColorTemperature

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColorTemperature
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithConfiguredName.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithConfiguredName.html new file mode 100644 index 000000000..d16690333 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithConfiguredName.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithConfiguredName (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithConfiguredName

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithConfiguredName
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCoolingThresholdTemperature.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCoolingThresholdTemperature.html new file mode 100644 index 000000000..21c2fb7ef --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCoolingThresholdTemperature.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCoolingThresholdTemperature (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCoolingThresholdTemperature

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCoolingThresholdTemperature
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentHorizontalTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentHorizontalTilting.html new file mode 100644 index 000000000..41e84bb44 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentHorizontalTilting.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentHorizontalTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentHorizontalTilting

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentHorizontalTilting
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentMediaState.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentMediaState.html new file mode 100644 index 000000000..f61f510e4 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentMediaState.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentMediaState (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentMediaState

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentMediaState
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentRelativeHumidity.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentRelativeHumidity.html new file mode 100644 index 000000000..fb5504f2b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentRelativeHumidity.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentRelativeHumidity (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentRelativeHumidity

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentRelativeHumidity
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentTilting.html new file mode 100644 index 000000000..283d5f701 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentTilting.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentTilting

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentTilting
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentVerticalTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentVerticalTilting.html new file mode 100644 index 000000000..7a314833a --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithCurrentVerticalTilting.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentVerticalTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentVerticalTilting

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentVerticalTilting
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithDuration.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithDuration.html new file mode 100644 index 000000000..7f115d1c1 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithDuration.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithDuration (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithDuration

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithDuration
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithFanState.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithFanState.html new file mode 100644 index 000000000..9f2038ca3 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithFanState.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFanState (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFanState

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFanState
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithFilterLifeLevel.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithFilterLifeLevel.html new file mode 100644 index 000000000..2f92def25 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithFilterLifeLevel.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFilterLifeLevel (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFilterLifeLevel

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFilterLifeLevel
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHardwareRevision.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHardwareRevision.html new file mode 100644 index 000000000..5c6153025 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHardwareRevision.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHardwareRevision (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHardwareRevision

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHardwareRevision
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHeatingThresholdTemperature.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHeatingThresholdTemperature.html new file mode 100644 index 000000000..d6f9d92fc --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHeatingThresholdTemperature.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHeatingThresholdTemperature (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHeatingThresholdTemperature

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHeatingThresholdTemperature
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHoldPosition.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHoldPosition.html new file mode 100644 index 000000000..44cb1c6cf --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHoldPosition.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHoldPosition (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHoldPosition

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHoldPosition
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHumidityDehumidifierThreshold.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHumidityDehumidifierThreshold.html new file mode 100644 index 000000000..772ab00bc --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHumidityDehumidifierThreshold.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityDehumidifierThreshold (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityDehumidifierThreshold

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityDehumidifierThreshold
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHumidityHumidifierThreshold.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHumidityHumidifierThreshold.html new file mode 100644 index 000000000..0480b7a84 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithHumidityHumidifierThreshold.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityHumidifierThreshold (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityHumidifierThreshold

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityHumidifierThreshold
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithIdentifier.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithIdentifier.html new file mode 100644 index 000000000..acc5f6570 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithIdentifier.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIdentifier (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIdentifier

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIdentifier
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithInputDeviceType.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithInputDeviceType.html new file mode 100644 index 000000000..1510e93a4 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithInputDeviceType.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithInputDeviceType (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithInputDeviceType

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithInputDeviceType
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithIsConfigured.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithIsConfigured.html new file mode 100644 index 000000000..1d2e7f484 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithIsConfigured.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIsConfigured (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIsConfigured

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIsConfigured
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithLockCurrentState.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithLockCurrentState.html new file mode 100644 index 000000000..b0489c8c6 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithLockCurrentState.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockCurrentState (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockCurrentState

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockCurrentState
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithLockTargetState.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithLockTargetState.html new file mode 100644 index 000000000..46b9da75c --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithLockTargetState.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockTargetState (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockTargetState

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockTargetState
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithMute.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithMute.html new file mode 100644 index 000000000..150c2156b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithMute.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithMute (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithMute

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithMute
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithName.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithName.html new file mode 100644 index 000000000..e54115c00 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithName.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithNitrogenDioxideDensity.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithNitrogenDioxideDensity.html new file mode 100644 index 000000000..810fc33b7 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithNitrogenDioxideDensity.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithNitrogenDioxideDensity (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithNitrogenDioxideDensity

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithNitrogenDioxideDensity
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithObstructionDetection.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithObstructionDetection.html new file mode 100644 index 000000000..bedd3e08d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithObstructionDetection.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithObstructionDetection (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithObstructionDetection

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithObstructionDetection
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithOzoneDensity.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithOzoneDensity.html new file mode 100644 index 000000000..42ec7f246 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithOzoneDensity.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithOzoneDensity (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithOzoneDensity

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithOzoneDensity
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPM10Density.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPM10Density.html new file mode 100644 index 000000000..c6e5c8fd1 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPM10Density.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM10Density (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM10Density

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM10Density
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPM25Density.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPM25Density.html new file mode 100644 index 000000000..32530a798 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPM25Density.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM25Density (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM25Density

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM25Density
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPhysicalControlsLock.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPhysicalControlsLock.html new file mode 100644 index 000000000..06716f94f --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPhysicalControlsLock.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPhysicalControlsLock (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPhysicalControlsLock

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPhysicalControlsLock
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPictureMode.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPictureMode.html new file mode 100644 index 000000000..dacc25a59 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPictureMode.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPictureMode (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPictureMode

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPictureMode
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPowerMode.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPowerMode.html new file mode 100644 index 000000000..e95fc3606 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithPowerMode.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPowerMode (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPowerMode

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPowerMode
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithRemainingDuration.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithRemainingDuration.html new file mode 100644 index 000000000..40518e212 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithRemainingDuration.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRemainingDuration (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRemainingDuration

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRemainingDuration
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithResetFilterIndication.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithResetFilterIndication.html new file mode 100644 index 000000000..5f9766e8a --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithResetFilterIndication.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithResetFilterIndication (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithResetFilterIndication

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithResetFilterIndication
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithRotationDirection.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithRotationDirection.html new file mode 100644 index 000000000..eaa682fbb --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithRotationDirection.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationDirection (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationDirection

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationDirection
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithRotationSpeed.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithRotationSpeed.html new file mode 100644 index 000000000..6ecf106a1 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithRotationSpeed.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationSpeed (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationSpeed

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationSpeed
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithSecurityAlarmType.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithSecurityAlarmType.html new file mode 100644 index 000000000..b5891dfb9 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithSecurityAlarmType.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSecurityAlarmType (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSecurityAlarmType

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSecurityAlarmType
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithServiceLabelIndex.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithServiceLabelIndex.html new file mode 100644 index 000000000..aeccb447d --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithServiceLabelIndex.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithServiceLabelIndex (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithServiceLabelIndex

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithServiceLabelIndex
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithStatusActive.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithStatusActive.html new file mode 100644 index 000000000..9cc0ed7ed --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithStatusActive.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithStatusFault.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithStatusFault.html new file mode 100644 index 000000000..c1bc673bb --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithStatusFault.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithStatusLowBattery.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithStatusLowBattery.html new file mode 100644 index 000000000..722daf4e1 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithStatusLowBattery.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithStatusTampered.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithStatusTampered.html new file mode 100644 index 000000000..3131567f4 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithStatusTampered.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithSulphurDioxideDensity.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithSulphurDioxideDensity.html new file mode 100644 index 000000000..a74bc759b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithSulphurDioxideDensity.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSulphurDioxideDensity (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSulphurDioxideDensity

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSulphurDioxideDensity
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithSwingMode.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithSwingMode.html new file mode 100644 index 000000000..e39e3bf68 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithSwingMode.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSwingMode (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSwingMode

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSwingMode
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetHorizontalTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetHorizontalTilting.html new file mode 100644 index 000000000..fa669268e --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetHorizontalTilting.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetHorizontalTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetHorizontalTilting

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetHorizontalTilting
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetMediaState.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetMediaState.html new file mode 100644 index 000000000..0616987d9 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetMediaState.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetMediaState (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetMediaState

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetMediaState
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetRelativeHumidity.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetRelativeHumidity.html new file mode 100644 index 000000000..a439734ab --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetRelativeHumidity.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetRelativeHumidity (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetRelativeHumidity

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetRelativeHumidity
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetTilting.html new file mode 100644 index 000000000..095fe78cb --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetTilting.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetTilting

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetTilting
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetVerticalTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetVerticalTilting.html new file mode 100644 index 000000000..b4283cb15 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetVerticalTilting.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVerticalTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVerticalTilting

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVerticalTilting
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetVisibilityState.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetVisibilityState.html new file mode 100644 index 000000000..74174926c --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTargetVisibilityState.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVisibilityState (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVisibilityState

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVisibilityState
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTemperatureDisplayUnits.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTemperatureDisplayUnits.html new file mode 100644 index 000000000..841a6a210 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithTemperatureDisplayUnits.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTemperatureDisplayUnits (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTemperatureDisplayUnits

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTemperatureDisplayUnits
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVOCDensity.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVOCDensity.html new file mode 100644 index 000000000..93941c63f --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVOCDensity.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVOCDensity (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVOCDensity

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVOCDensity
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVerticalTilting.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVerticalTilting.html new file mode 100644 index 000000000..bcc163f71 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVerticalTilting.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVerticalTilting (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVerticalTilting

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVerticalTilting
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVolume.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVolume.html new file mode 100644 index 000000000..5d5f24ae6 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVolume.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolume (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolume

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolume
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVolumeControlType.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVolumeControlType.html new file mode 100644 index 000000000..b303f0e10 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVolumeControlType.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolumeControlType (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolumeControlType

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolumeControlType
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVolumeSelector.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVolumeSelector.html new file mode 100644 index 000000000..a26ffc0f1 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithVolumeSelector.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolumeSelector (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolumeSelector

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolumeSelector
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithWaterLevel.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithWaterLevel.html new file mode 100644 index 000000000..584d46841 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/class-use/AccessoryWithWaterLevel.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithWaterLevel (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithWaterLevel

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithWaterLevel
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/package-summary.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/package-summary.html new file mode 100644 index 000000000..c4287edf3 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/package-summary.html @@ -0,0 +1,547 @@ + + + + + +io.github.hapjava.accessories.optionalcharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.accessories.optionalcharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/package-tree.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/package-tree.html new file mode 100644 index 000000000..d53f70d79 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/package-tree.html @@ -0,0 +1,224 @@ + + + + + +io.github.hapjava.accessories.optionalcharacteristic Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.accessories.optionalcharacteristic

+Package Hierarchies: + +
+
+
+

Interface Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/optionalcharacteristic/package-use.html b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/package-use.html new file mode 100644 index 000000000..0fceda897 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/optionalcharacteristic/package-use.html @@ -0,0 +1,150 @@ + + + + + +Uses of Package io.github.hapjava.accessories.optionalcharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.accessories.optionalcharacteristic

+
+
No usage of io.github.hapjava.accessories.optionalcharacteristic
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/package-summary.html b/apidocs/io/github/hapjava/accessories/package-summary.html new file mode 100644 index 000000000..48801cad1 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/package-summary.html @@ -0,0 +1,422 @@ + + + + + +io.github.hapjava.accessories (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.accessories

+
+
+
+ + +
Contains interfaces that can be implemented to represent an exposed accessory.
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/package-tree.html b/apidocs/io/github/hapjava/accessories/package-tree.html new file mode 100644 index 000000000..913b29712 --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/package-tree.html @@ -0,0 +1,205 @@ + + + + + +io.github.hapjava.accessories Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.accessories

+Package Hierarchies: + +
+
+
+

Interface Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/accessories/package-use.html b/apidocs/io/github/hapjava/accessories/package-use.html new file mode 100644 index 000000000..7d90a226b --- /dev/null +++ b/apidocs/io/github/hapjava/accessories/package-use.html @@ -0,0 +1,453 @@ + + + + + +Uses of Package io.github.hapjava.accessories (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.accessories

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/Characteristic.html b/apidocs/io/github/hapjava/characteristics/Characteristic.html new file mode 100644 index 000000000..6f9667298 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/Characteristic.html @@ -0,0 +1,368 @@ + + + + + +Characteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface Characteristic

+
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and TypeMethodDescription
      java.lang.StringgetType() 
      voidsetValue​(javax.json.JsonValue jsonValue) +
      Invoked by the remote client, this updates the current value of the characteristic.
      +
      default voidsetValue​(javax.json.JsonValue jsonValue, + java.lang.String username) +
      Invoked by the remote client, this updates the current value of the characteristic.
      +
      voidsupplyValue​(javax.json.JsonObjectBuilder characteristicBuilder) +
      Adds an attribute to the passed JsonObjectBuilder named "value" with the current value of the + characteristic.
      +
      java.util.concurrent.CompletableFuture<javax.json.JsonObject>toJson​(int iid) +
      Creates the JSON representation of the characteristic, in accordance with the HomeKit Accessory + Protocol.
      +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getType

        +
        java.lang.String getType()
        +
        +
        Returns:
        +
        The UUID type for this characteristic.
        +
        +
      • +
      + + + +
        +
      • +

        supplyValue

        +
        void supplyValue​(javax.json.JsonObjectBuilder characteristicBuilder)
        +
        Adds an attribute to the passed JsonObjectBuilder named "value" with the current value of the + characteristic.
        +
        +
        Parameters:
        +
        characteristicBuilder - the JsonObjectBuilder to add the value attribute to.
        +
        +
      • +
      + + + +
        +
      • +

        toJson

        +
        java.util.concurrent.CompletableFuture<javax.json.JsonObject> toJson​(int iid)
        +
        Creates the JSON representation of the characteristic, in accordance with the HomeKit Accessory + Protocol.
        +
        +
        Parameters:
        +
        iid - The instance ID of the characteristic to be included in the serialization.
        +
        Returns:
        +
        the future completing with the resulting JSON.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        void setValue​(javax.json.JsonValue jsonValue)
        +
        Invoked by the remote client, this updates the current value of the characteristic.
        +
        +
        Parameters:
        +
        jsonValue - the JSON serialized value to set.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        default void setValue​(javax.json.JsonValue jsonValue,
        +                      java.lang.String username)
        +
        Invoked by the remote client, this updates the current value of the characteristic.
        +
        +
        Parameters:
        +
        jsonValue - the JSON serialized value to set.
        +
        username - the authenticated username making the request
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/CharacteristicEnum.html b/apidocs/io/github/hapjava/characteristics/CharacteristicEnum.html new file mode 100644 index 000000000..cc5f4e7c9 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/CharacteristicEnum.html @@ -0,0 +1,256 @@ + + + + + +CharacteristicEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface CharacteristicEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCode

        +
        int getCode()
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/EventableCharacteristic.html b/apidocs/io/github/hapjava/characteristics/EventableCharacteristic.html new file mode 100644 index 000000000..868341663 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/EventableCharacteristic.html @@ -0,0 +1,298 @@ + + + + + +EventableCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface EventableCharacteristic

+
+
+
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        subscribe

        +
        void subscribe​(HomekitCharacteristicChangeCallback callback)
        +
        Begin listening to changes to this characteristic. When a change is made, call the provided + function.
        +
        +
        Parameters:
        +
        callback - a function to call when a change is made to the characteristic value.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribe

        +
        void unsubscribe()
        +
        Stop listening to changes to this characteristic.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/ExceptionalConsumer.html b/apidocs/io/github/hapjava/characteristics/ExceptionalConsumer.html new file mode 100644 index 000000000..7d7254445 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/ExceptionalConsumer.html @@ -0,0 +1,282 @@ + + + + + +ExceptionalConsumer (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface ExceptionalConsumer<T>

+
+
+
+
    +
  • +
    +
    public interface ExceptionalConsumer<T>
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        accept

        +
        void accept​(T t)
        +     throws java.lang.Exception
        +
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      + + + + + +
        +
      • +

        accept

        +
        default void accept​(T t,
        +                    java.lang.String username)
        +             throws java.lang.Exception
        +
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/HomekitCharacteristicChangeCallback.html b/apidocs/io/github/hapjava/characteristics/HomekitCharacteristicChangeCallback.html new file mode 100644 index 000000000..475af44b9 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/HomekitCharacteristicChangeCallback.html @@ -0,0 +1,271 @@ + + + + + +HomekitCharacteristicChangeCallback (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface HomekitCharacteristicChangeCallback

+
+
+
+
    +
  • +
    +
    Functional Interface:
    +
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
    +
    +
    +
    @FunctionalInterface
    +public interface HomekitCharacteristicChangeCallback
    +
    A callback interface for notifying subscribers that a characteristic value has changed. + +

    EventableCharacteristics can be subscribed to, and in doing so, are supplied an + instance of this class. Implementors should call the changed() method on the passed + object when a subscribed characteristic changes.

    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      voidchanged() +
      Call when the value of the characteristic that was subscribed to when this object was passed + changes.
      +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        changed

        +
        void changed()
        +
        Call when the value of the characteristic that was subscribed to when this object was passed + changes.
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/class-use/Characteristic.html b/apidocs/io/github/hapjava/characteristics/class-use/Characteristic.html new file mode 100644 index 000000000..ff87b0e73 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/class-use/Characteristic.html @@ -0,0 +1,1755 @@ + + + + + +Uses of Interface io.github.hapjava.characteristics.Characteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.characteristics.Characteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/class-use/CharacteristicEnum.html b/apidocs/io/github/hapjava/characteristics/class-use/CharacteristicEnum.html new file mode 100644 index 000000000..093357137 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/class-use/CharacteristicEnum.html @@ -0,0 +1,1139 @@ + + + + + +Uses of Interface io.github.hapjava.characteristics.CharacteristicEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.characteristics.CharacteristicEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/class-use/EventableCharacteristic.html b/apidocs/io/github/hapjava/characteristics/class-use/EventableCharacteristic.html new file mode 100644 index 000000000..152014a7b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/class-use/EventableCharacteristic.html @@ -0,0 +1,1696 @@ + + + + + +Uses of Interface io.github.hapjava.characteristics.EventableCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.characteristics.EventableCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/class-use/ExceptionalConsumer.html b/apidocs/io/github/hapjava/characteristics/class-use/ExceptionalConsumer.html new file mode 100644 index 000000000..39f164ce0 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/class-use/ExceptionalConsumer.html @@ -0,0 +1,978 @@ + + + + + +Uses of Interface io.github.hapjava.characteristics.ExceptionalConsumer (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.characteristics.ExceptionalConsumer

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/class-use/HomekitCharacteristicChangeCallback.html b/apidocs/io/github/hapjava/characteristics/class-use/HomekitCharacteristicChangeCallback.html new file mode 100644 index 000000000..9f50abb1e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/class-use/HomekitCharacteristicChangeCallback.html @@ -0,0 +1,2727 @@ + + + + + +Uses of Interface io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/AccessoryFlagsCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/AccessoryFlagsCharacteristic.html new file mode 100644 index 000000000..79d94a041 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/AccessoryFlagsCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +AccessoryFlagsCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class AccessoryFlagsCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AccessoryFlagsCharacteristic

        +
        public AccessoryFlagsCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<AccessoryFlagsEnum>> getter,
        +                                    java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                    java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/AccessoryFlagsEnum.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/AccessoryFlagsEnum.html new file mode 100644 index 000000000..d78a64a46 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/AccessoryFlagsEnum.html @@ -0,0 +1,414 @@ + + + + + +AccessoryFlagsEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum AccessoryFlagsEnum

+
+
+ +
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static AccessoryFlagsEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static AccessoryFlagsEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static AccessoryFlagsEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static AccessoryFlagsEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (AccessoryFlagsEnum c : AccessoryFlagsEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static AccessoryFlagsEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/FirmwareRevisionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/FirmwareRevisionCharacteristic.html new file mode 100644 index 000000000..d8e42aa99 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/FirmwareRevisionCharacteristic.html @@ -0,0 +1,299 @@ + + + + + +FirmwareRevisionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class FirmwareRevisionCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FirmwareRevisionCharacteristic

        +
        public FirmwareRevisionCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.String>> getter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/HardwareRevisionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/HardwareRevisionCharacteristic.html new file mode 100644 index 000000000..a3883ea63 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/HardwareRevisionCharacteristic.html @@ -0,0 +1,299 @@ + + + + + +HardwareRevisionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class HardwareRevisionCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HardwareRevisionCharacteristic

        +
        public HardwareRevisionCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.String>> getter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/IdentifyCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/IdentifyCharacteristic.html new file mode 100644 index 000000000..b3f332a37 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/IdentifyCharacteristic.html @@ -0,0 +1,299 @@ + + + + + +IdentifyCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class IdentifyCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IdentifyCharacteristic

        +
        public IdentifyCharacteristic​(ExceptionalConsumer<java.lang.Boolean> setter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/ManufacturerCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/ManufacturerCharacteristic.html new file mode 100644 index 000000000..cb380d248 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/ManufacturerCharacteristic.html @@ -0,0 +1,299 @@ + + + + + +ManufacturerCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ManufacturerCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ManufacturerCharacteristic

        +
        public ManufacturerCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.String>> getter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/ModelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/ModelCharacteristic.html new file mode 100644 index 000000000..238743a76 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/ModelCharacteristic.html @@ -0,0 +1,299 @@ + + + + + +ModelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ModelCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ModelCharacteristic

        +
        public ModelCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.String>> getter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/SerialNumberCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/SerialNumberCharacteristic.html new file mode 100644 index 000000000..0ad18ef2c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/SerialNumberCharacteristic.html @@ -0,0 +1,299 @@ + + + + + +SerialNumberCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SerialNumberCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SerialNumberCharacteristic

        +
        public SerialNumberCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.String>> getter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/AccessoryFlagsCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/AccessoryFlagsCharacteristic.html new file mode 100644 index 000000000..9109e092f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/AccessoryFlagsCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/AccessoryFlagsEnum.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/AccessoryFlagsEnum.html new file mode 100644 index 000000000..2517de478 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/AccessoryFlagsEnum.html @@ -0,0 +1,252 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/FirmwareRevisionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/FirmwareRevisionCharacteristic.html new file mode 100644 index 000000000..b9aff8e90 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/FirmwareRevisionCharacteristic.html @@ -0,0 +1,197 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.accessoryinformation.FirmwareRevisionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.accessoryinformation.FirmwareRevisionCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/HardwareRevisionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/HardwareRevisionCharacteristic.html new file mode 100644 index 000000000..e721366b4 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/HardwareRevisionCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.accessoryinformation.HardwareRevisionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.accessoryinformation.HardwareRevisionCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/IdentifyCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/IdentifyCharacteristic.html new file mode 100644 index 000000000..4b1f9ca11 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/IdentifyCharacteristic.html @@ -0,0 +1,197 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.accessoryinformation.IdentifyCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.accessoryinformation.IdentifyCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/ManufacturerCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/ManufacturerCharacteristic.html new file mode 100644 index 000000000..368b62d87 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/ManufacturerCharacteristic.html @@ -0,0 +1,197 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.accessoryinformation.ManufacturerCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.accessoryinformation.ManufacturerCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/ModelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/ModelCharacteristic.html new file mode 100644 index 000000000..bbc80123c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/ModelCharacteristic.html @@ -0,0 +1,197 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.accessoryinformation.ModelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.accessoryinformation.ModelCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/SerialNumberCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/SerialNumberCharacteristic.html new file mode 100644 index 000000000..9e4e1d581 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/class-use/SerialNumberCharacteristic.html @@ -0,0 +1,197 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.accessoryinformation.SerialNumberCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.accessoryinformation.SerialNumberCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/package-summary.html new file mode 100644 index 000000000..dadab0a0f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/package-summary.html @@ -0,0 +1,223 @@ + + + + + +io.github.hapjava.characteristics.impl.accessoryinformation (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.accessoryinformation

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/package-tree.html new file mode 100644 index 000000000..4fac31e37 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/package-tree.html @@ -0,0 +1,201 @@ + + + + + +io.github.hapjava.characteristics.impl.accessoryinformation Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.accessoryinformation

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/package-use.html new file mode 100644 index 000000000..dcdea891d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/accessoryinformation/package-use.html @@ -0,0 +1,269 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.accessoryinformation (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.accessoryinformation

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airpurifier/CurrentAirPurifierCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/CurrentAirPurifierCharacteristic.html new file mode 100644 index 000000000..0af2c5edd --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/CurrentAirPurifierCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +CurrentAirPurifierCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentAirPurifierCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airpurifier/CurrentAirPurifierStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/CurrentAirPurifierStateEnum.html new file mode 100644 index 000000000..487a6afac --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/CurrentAirPurifierStateEnum.html @@ -0,0 +1,427 @@ + + + + + +CurrentAirPurifierStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum CurrentAirPurifierStateEnum

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CurrentAirPurifierStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CurrentAirPurifierStateEnum c : CurrentAirPurifierStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CurrentAirPurifierStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airpurifier/TargetAirPurifierStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/TargetAirPurifierStateCharacteristic.html new file mode 100644 index 000000000..daadf58ab --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/TargetAirPurifierStateCharacteristic.html @@ -0,0 +1,322 @@ + + + + + +TargetAirPurifierStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetAirPurifierStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airpurifier/TargetAirPurifierStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/TargetAirPurifierStateEnum.html new file mode 100644 index 000000000..410a0568d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/TargetAirPurifierStateEnum.html @@ -0,0 +1,414 @@ + + + + + +TargetAirPurifierStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum TargetAirPurifierStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      AUTO 
      MANUAL 
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static TargetAirPurifierStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (TargetAirPurifierStateEnum c : TargetAirPurifierStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static TargetAirPurifierStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airpurifier/class-use/CurrentAirPurifierCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/class-use/CurrentAirPurifierCharacteristic.html new file mode 100644 index 000000000..8e5f107cd --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/class-use/CurrentAirPurifierCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airpurifier/class-use/CurrentAirPurifierStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/class-use/CurrentAirPurifierStateEnum.html new file mode 100644 index 000000000..25fbcc5d8 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/class-use/CurrentAirPurifierStateEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airpurifier/class-use/TargetAirPurifierStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/class-use/TargetAirPurifierStateCharacteristic.html new file mode 100644 index 000000000..a56d695df --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/class-use/TargetAirPurifierStateCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airpurifier/class-use/TargetAirPurifierStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/class-use/TargetAirPurifierStateEnum.html new file mode 100644 index 000000000..3a3a3cccc --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/class-use/TargetAirPurifierStateEnum.html @@ -0,0 +1,279 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airpurifier/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/package-summary.html new file mode 100644 index 000000000..0808410bf --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/package-summary.html @@ -0,0 +1,199 @@ + + + + + +io.github.hapjava.characteristics.impl.airpurifier (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.airpurifier

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airpurifier/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/package-tree.html new file mode 100644 index 000000000..0797e96eb --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/package-tree.html @@ -0,0 +1,189 @@ + + + + + +io.github.hapjava.characteristics.impl.airpurifier Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.airpurifier

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airpurifier/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/package-use.html new file mode 100644 index 000000000..1287993da --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airpurifier/package-use.html @@ -0,0 +1,253 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.airpurifier (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.airpurifier

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/AirQualityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/AirQualityCharacteristic.html new file mode 100644 index 000000000..5fd7b6b44 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/AirQualityCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +AirQualityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class AirQualityCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AirQualityCharacteristic

        +
        public AirQualityCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<AirQualityEnum>> getter,
        +                                java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/AirQualityEnum.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/AirQualityEnum.html new file mode 100644 index 000000000..6a26b53f4 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/AirQualityEnum.html @@ -0,0 +1,466 @@ + + + + + +AirQualityEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum AirQualityEnum

+
+
+ +
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static AirQualityEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static AirQualityEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static AirQualityEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static AirQualityEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (AirQualityEnum c : AirQualityEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static AirQualityEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static AirQualityEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/NitrogenDioxideDensityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/NitrogenDioxideDensityCharacteristic.html new file mode 100644 index 000000000..593448194 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/NitrogenDioxideDensityCharacteristic.html @@ -0,0 +1,408 @@ + + + + + +NitrogenDioxideDensityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class NitrogenDioxideDensityCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        NitrogenDioxideDensityCharacteristic

        +
        public NitrogenDioxideDensityCharacteristic​(double minValue,
        +                                            double maxValue,
        +                                            double minStep,
        +                                            java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                            java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                            java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        NitrogenDioxideDensityCharacteristic

        +
        public NitrogenDioxideDensityCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                            java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                            java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/OzoneDensityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/OzoneDensityCharacteristic.html new file mode 100644 index 000000000..738917106 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/OzoneDensityCharacteristic.html @@ -0,0 +1,408 @@ + + + + + +OzoneDensityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class OzoneDensityCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OzoneDensityCharacteristic

        +
        public OzoneDensityCharacteristic​(double minValue,
        +                                  double maxValue,
        +                                  double minStep,
        +                                  java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                  java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                  java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        OzoneDensityCharacteristic

        +
        public OzoneDensityCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                  java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                  java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/PM10DensityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/PM10DensityCharacteristic.html new file mode 100644 index 000000000..3bad2510f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/PM10DensityCharacteristic.html @@ -0,0 +1,408 @@ + + + + + +PM10DensityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class PM10DensityCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PM10DensityCharacteristic

        +
        public PM10DensityCharacteristic​(double minValue,
        +                                 double maxValue,
        +                                 double minStep,
        +                                 java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                 java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        PM10DensityCharacteristic

        +
        public PM10DensityCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                 java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/PM25DensityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/PM25DensityCharacteristic.html new file mode 100644 index 000000000..6825af46c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/PM25DensityCharacteristic.html @@ -0,0 +1,408 @@ + + + + + +PM25DensityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class PM25DensityCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PM25DensityCharacteristic

        +
        public PM25DensityCharacteristic​(double minValue,
        +                                 double maxValue,
        +                                 double minStep,
        +                                 java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                 java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        PM25DensityCharacteristic

        +
        public PM25DensityCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                 java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/SulphurDioxideDensityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/SulphurDioxideDensityCharacteristic.html new file mode 100644 index 000000000..0b2ee4890 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/SulphurDioxideDensityCharacteristic.html @@ -0,0 +1,408 @@ + + + + + +SulphurDioxideDensityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SulphurDioxideDensityCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SulphurDioxideDensityCharacteristic

        +
        public SulphurDioxideDensityCharacteristic​(double minValue,
        +                                           double maxValue,
        +                                           double minStep,
        +                                           java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                           java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                           java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        SulphurDioxideDensityCharacteristic

        +
        public SulphurDioxideDensityCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                           java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                           java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/VOCDensityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/VOCDensityCharacteristic.html new file mode 100644 index 000000000..87a7c61d4 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/VOCDensityCharacteristic.html @@ -0,0 +1,409 @@ + + + + + +VOCDensityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class VOCDensityCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VOCDensityCharacteristic

        +
        public VOCDensityCharacteristic​(double minValue,
        +                                double maxValue,
        +                                double minStep,
        +                                java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        VOCDensityCharacteristic

        +
        public VOCDensityCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/AirQualityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/AirQualityCharacteristic.html new file mode 100644 index 000000000..d88201e41 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/AirQualityCharacteristic.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.airquality.AirQualityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.airquality.AirQualityCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/AirQualityEnum.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/AirQualityEnum.html new file mode 100644 index 000000000..174abdd32 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/AirQualityEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.airquality.AirQualityEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.airquality.AirQualityEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/NitrogenDioxideDensityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/NitrogenDioxideDensityCharacteristic.html new file mode 100644 index 000000000..c8a96300c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/NitrogenDioxideDensityCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.airquality.NitrogenDioxideDensityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.airquality.NitrogenDioxideDensityCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/OzoneDensityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/OzoneDensityCharacteristic.html new file mode 100644 index 000000000..05a08fea1 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/OzoneDensityCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.airquality.OzoneDensityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.airquality.OzoneDensityCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/PM10DensityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/PM10DensityCharacteristic.html new file mode 100644 index 000000000..ed5649c98 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/PM10DensityCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.airquality.PM10DensityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.airquality.PM10DensityCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/PM25DensityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/PM25DensityCharacteristic.html new file mode 100644 index 000000000..9ec63b8e3 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/PM25DensityCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.airquality.PM25DensityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.airquality.PM25DensityCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/SulphurDioxideDensityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/SulphurDioxideDensityCharacteristic.html new file mode 100644 index 000000000..2c121fa49 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/SulphurDioxideDensityCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.airquality.SulphurDioxideDensityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.airquality.SulphurDioxideDensityCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/VOCDensityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/VOCDensityCharacteristic.html new file mode 100644 index 000000000..92949d9cc --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/class-use/VOCDensityCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.airquality.VOCDensityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.airquality.VOCDensityCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/package-summary.html new file mode 100644 index 000000000..7db5b48c7 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/package-summary.html @@ -0,0 +1,224 @@ + + + + + +io.github.hapjava.characteristics.impl.airquality (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.airquality

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/package-tree.html new file mode 100644 index 000000000..4e378e9c7 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/package-tree.html @@ -0,0 +1,197 @@ + + + + + +io.github.hapjava.characteristics.impl.airquality Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.airquality

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/airquality/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/airquality/package-use.html new file mode 100644 index 000000000..90b6b9ad8 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/airquality/package-use.html @@ -0,0 +1,272 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.airquality (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.airquality

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/audio/MuteCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/audio/MuteCharacteristic.html new file mode 100644 index 000000000..b4f0c59c6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/audio/MuteCharacteristic.html @@ -0,0 +1,305 @@ + + + + + +MuteCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class MuteCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MuteCharacteristic

        +
        public MuteCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Boolean>> getter,
        +                          ExceptionalConsumer<java.lang.Boolean> setter,
        +                          java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                          java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/audio/VolumeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/audio/VolumeCharacteristic.html new file mode 100644 index 000000000..112068b11 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/audio/VolumeCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +VolumeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class VolumeCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VolumeCharacteristic

        +
        public VolumeCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                            ExceptionalConsumer<java.lang.Integer> setter,
        +                            java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                            java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/audio/class-use/MuteCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/audio/class-use/MuteCharacteristic.html new file mode 100644 index 000000000..379f420db --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/audio/class-use/MuteCharacteristic.html @@ -0,0 +1,225 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.audio.MuteCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.audio.MuteCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/audio/class-use/VolumeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/audio/class-use/VolumeCharacteristic.html new file mode 100644 index 000000000..89c3fa6a4 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/audio/class-use/VolumeCharacteristic.html @@ -0,0 +1,214 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.audio.VolumeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.audio.VolumeCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/audio/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/audio/package-summary.html new file mode 100644 index 000000000..e68816d92 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/audio/package-summary.html @@ -0,0 +1,176 @@ + + + + + +io.github.hapjava.characteristics.impl.audio (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.audio

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/audio/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/audio/package-tree.html new file mode 100644 index 000000000..cf57e8f62 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/audio/package-tree.html @@ -0,0 +1,178 @@ + + + + + +io.github.hapjava.characteristics.impl.audio Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.audio

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/audio/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/audio/package-use.html new file mode 100644 index 000000000..ef430c948 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/audio/package-use.html @@ -0,0 +1,193 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.audio (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.audio

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/BaseCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/BaseCharacteristic.html new file mode 100644 index 000000000..0f4965751 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/BaseCharacteristic.html @@ -0,0 +1,673 @@ + + + + + +BaseCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class BaseCharacteristic<T>

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      BaseCharacteristic​(java.lang.String type, + java.lang.String format, + java.lang.String description, + boolean isReadable, + boolean isWritable, + java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber, + java.util.Optional<java.lang.Runnable> unsubscriber) +
      Default constructor
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and TypeMethodDescription
      protected abstract Tconvert​(javax.json.JsonValue jsonValue) +
      Converts from the JSON value to a Java object of the type T
      +
      abstract TgetDefault() +
      Supplies a default value for the characteristic to send to connected clients when the real + value.
      +
      java.lang.StringgetType() 
      abstract java.util.concurrent.CompletableFuture<T>getValue() +
      Retrieves the current value of the characteristic.
      +
      protected java.util.concurrent.CompletableFuture<javax.json.JsonObjectBuilder>makeBuilder​(int instanceId) +
      Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
      +
      protected voidsetJsonValue​(javax.json.JsonObjectBuilder builder, + T value) +
      Writes the value key to the serialized characteristic
      +
      voidsetValue​(javax.json.JsonValue jsonValue) +
      Invoked by the remote client, this updates the current value of the characteristic.
      +
      voidsetValue​(javax.json.JsonValue jsonValue, + java.lang.String username) +
      Invoked by the remote client, this updates the current value of the characteristic.
      +
      abstract voidsetValue​(T value) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      voidsetValue​(T value, + java.lang.String username) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      voidsubscribe​(HomekitCharacteristicChangeCallback callback) +
      Begin listening to changes to this characteristic.
      +
      voidsupplyValue​(javax.json.JsonObjectBuilder builder) +
      Adds an attribute to the passed JsonObjectBuilder named "value" with the current value of the + characteristic.
      +
      java.util.concurrent.CompletableFuture<javax.json.JsonObject>toJson​(int iid) +
      Creates the JSON representation of the characteristic, in accordance with the HomeKit Accessory + Protocol.
      +
      voidunsubscribe() +
      Stop listening to changes to this characteristic.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BaseCharacteristic

        +
        public BaseCharacteristic​(java.lang.String type,
        +                          java.lang.String format,
        +                          java.lang.String description,
        +                          boolean isReadable,
        +                          boolean isWritable,
        +                          java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber,
        +                          java.util.Optional<java.lang.Runnable> unsubscriber)
        +
        Default constructor
        +
        +
        Parameters:
        +
        type - a string containing a UUID that indicates the type of characteristic. Apple defines + a set of these, however implementors can create their own as well.
        +
        format - a string indicating the value type, which must be a recognized type by the + consuming device.
        +
        isWritable - indicates whether the value can be changed.
        +
        isReadable - indicates whether the value can be retrieved.
        +
        description - a description of the characteristic to be passed to the consuming device.
        +
        subscriber - subscribes to changes
        +
        unsubscriber - unsubscribes to changes
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        +
        Specified by:
        +
        getType in interface Characteristic
        +
        Returns:
        +
        The UUID type for this characteristic.
        +
        +
      • +
      + + + +
        +
      • +

        toJson

        +
        public final java.util.concurrent.CompletableFuture<javax.json.JsonObject> toJson​(int iid)
        +
        Description copied from interface: Characteristic
        +
        Creates the JSON representation of the characteristic, in accordance with the HomeKit Accessory + Protocol.
        +
        +
        Specified by:
        +
        toJson in interface Characteristic
        +
        Parameters:
        +
        iid - The instance ID of the characteristic to be included in the serialization.
        +
        Returns:
        +
        the future completing with the resulting JSON.
        +
        +
      • +
      + + + +
        +
      • +

        makeBuilder

        +
        protected java.util.concurrent.CompletableFuture<javax.json.JsonObjectBuilder> makeBuilder​(int instanceId)
        +
        Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
        +
        +
        Parameters:
        +
        instanceId - the static id of the accessory.
        +
        Returns:
        +
        a future that will complete with the JSON builder for the object.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public final void setValue​(javax.json.JsonValue jsonValue)
        +
        Invoked by the remote client, this updates the current value of the characteristic.
        +
        +
        Specified by:
        +
        setValue in interface Characteristic
        +
        Parameters:
        +
        jsonValue - the JSON serialized value to set.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public final void setValue​(javax.json.JsonValue jsonValue,
        +                           java.lang.String username)
        +
        Invoked by the remote client, this updates the current value of the characteristic.
        +
        +
        Specified by:
        +
        setValue in interface Characteristic
        +
        Parameters:
        +
        jsonValue - the JSON serialized value to set.
        +
        username - the authenticated username making the request
        +
        +
      • +
      + + + +
        +
      • +

        supplyValue

        +
        public void supplyValue​(javax.json.JsonObjectBuilder builder)
        +
        Adds an attribute to the passed JsonObjectBuilder named "value" with the current value of the + characteristic.
        +
        +
        Specified by:
        +
        supplyValue in interface Characteristic
        +
        Parameters:
        +
        builder - the JsonObjectBuilder to add the value attribute to.
        +
        +
      • +
      + + + +
        +
      • +

        subscribe

        +
        public void subscribe​(HomekitCharacteristicChangeCallback callback)
        +
        Begin listening to changes to this characteristic. When a change is made, call the provided + function.
        +
        +
        Specified by:
        +
        subscribe in interface EventableCharacteristic
        +
        Parameters:
        +
        callback - a function to call when a change is made to the characteristic value.
        +
        +
      • +
      + + + +
        +
      • +

        unsubscribe

        +
        public void unsubscribe()
        +
        Stop listening to changes to this characteristic.
        +
        +
        Specified by:
        +
        unsubscribe in interface EventableCharacteristic
        +
        +
      • +
      + + + +
        +
      • +

        convert

        +
        protected abstract T convert​(javax.json.JsonValue jsonValue)
        +
        Converts from the JSON value to a Java object of the type T
        +
        +
        Parameters:
        +
        jsonValue - the JSON value to convert from.
        +
        Returns:
        +
        the converted Java object.
        +
        +
      • +
      + + + + + +
        +
      • +

        setValue

        +
        public abstract void setValue​(T value)
        +                       throws java.lang.Exception
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Parameters:
        +
        value - the new value to set.
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + + + +
        +
      • +

        setValue

        +
        public void setValue​(T value,
        +                     java.lang.String username)
        +              throws java.lang.Exception
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Parameters:
        +
        value - the new value to set.
        +
        username - the authenticated username making the request
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        getValue

        +
        public abstract java.util.concurrent.CompletableFuture<T> getValue()
        +
        Retrieves the current value of the characteristic.
        +
        +
        Returns:
        +
        a future that will complete with the current value.
        +
        +
      • +
      + + + +
        +
      • +

        getDefault

        +
        public abstract T getDefault()
        +
        Supplies a default value for the characteristic to send to connected clients when the real + value. cannot be retrieved.
        +
        +
        Returns:
        +
        a sensible default value.
        +
        +
      • +
      + + + + + +
        +
      • +

        setJsonValue

        +
        protected void setJsonValue​(javax.json.JsonObjectBuilder builder,
        +                            T value)
        +
        Writes the value key to the serialized characteristic
        +
        +
        Parameters:
        +
        builder - The JSON builder to add the value to
        +
        value - The value to add
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/BooleanCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/BooleanCharacteristic.html new file mode 100644 index 000000000..ae16d317d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/BooleanCharacteristic.html @@ -0,0 +1,473 @@ + + + + + +BooleanCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class BooleanCharacteristic

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      BooleanCharacteristic​(java.lang.String type, + java.lang.String description, + java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Boolean>>> getter, + java.util.Optional<ExceptionalConsumer<java.lang.Boolean>> setter, + java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber, + java.util.Optional<java.lang.Runnable> unsubscriber) +
      Default constructor
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      protected java.lang.Booleanconvert​(javax.json.JsonValue jsonValue) +
      Converts from the JSON value to a Java object of the type T
      +
      java.lang.BooleangetDefault() +
      Supplies a default value for the characteristic to send to connected clients when the real + value.
      +
      java.util.concurrent.CompletableFuture<java.lang.Boolean>getValue() +
      Retrieves the current value of the characteristic.
      +
      voidsetValue​(java.lang.Boolean value) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      voidsetValue​(java.lang.Boolean value, + java.lang.String username) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BooleanCharacteristic

        +
        public BooleanCharacteristic​(java.lang.String type,
        +                             java.lang.String description,
        +                             java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Boolean>>> getter,
        +                             java.util.Optional<ExceptionalConsumer<java.lang.Boolean>> setter,
        +                             java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber,
        +                             java.util.Optional<java.lang.Runnable> unsubscriber)
        +
        Default constructor
        +
        +
        Parameters:
        +
        type - a string containing a UUID that indicates the type of characteristic. Apple defines + a set of these, however implementors can create their own as well.
        +
        description - a description of the characteristic to be passed to the consuming device.
        +
        getter - getter to retrieve the value
        +
        setter - setter to set value
        +
        subscriber - subscriber to subscribe to changes
        +
        unsubscriber - unsubscriber to unsubscribe from chnages
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        convert

        +
        protected java.lang.Boolean convert​(javax.json.JsonValue jsonValue)
        +
        Converts from the JSON value to a Java object of the type T
        +
        +
        Specified by:
        +
        convert in class BaseCharacteristic<java.lang.Boolean>
        +
        Parameters:
        +
        jsonValue - the JSON value to convert from.
        +
        Returns:
        +
        the converted Java object.
        +
        +
      • +
      + + + +
        +
      • +

        getValue

        +
        public java.util.concurrent.CompletableFuture<java.lang.Boolean> getValue()
        +
        Description copied from class: BaseCharacteristic
        +
        Retrieves the current value of the characteristic.
        +
        +
        Specified by:
        +
        getValue in class BaseCharacteristic<java.lang.Boolean>
        +
        Returns:
        +
        a future that will complete with the current value.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue​(java.lang.Boolean value)
        +              throws java.lang.Exception
        +
        Description copied from class: BaseCharacteristic
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Specified by:
        +
        setValue in class BaseCharacteristic<java.lang.Boolean>
        +
        Parameters:
        +
        value - the new value to set.
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue​(java.lang.Boolean value,
        +                     java.lang.String username)
        +              throws java.lang.Exception
        +
        Description copied from class: BaseCharacteristic
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Overrides:
        +
        setValue in class BaseCharacteristic<java.lang.Boolean>
        +
        Parameters:
        +
        value - the new value to set.
        +
        username - the authenticated username making the request
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        getDefault

        +
        public java.lang.Boolean getDefault()
        +
        Supplies a default value for the characteristic to send to connected clients when the real + value. cannot be retrieved.
        +
        +
        Specified by:
        +
        getDefault in class BaseCharacteristic<java.lang.Boolean>
        +
        Returns:
        +
        a sensible default value.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/EnumCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/EnumCharacteristic.html new file mode 100644 index 000000000..e3721cee4 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/EnumCharacteristic.html @@ -0,0 +1,638 @@ + + + + + +EnumCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class EnumCharacteristic<T extends CharacteristicEnum>

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeFieldDescription
      protected java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<T>>>getter 
      protected java.util.Optional<ExceptionalConsumer<T>>setter 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      EnumCharacteristic​(java.lang.String type, + java.lang.String description, + T[] validValues, + java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<T>>> getter, + java.util.Optional<ExceptionalConsumer<T>> setter, + java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber, + java.util.Optional<java.lang.Runnable> unsubscriber) +
      Default constructor
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      protected java.lang.Integerconvert​(javax.json.JsonValue jsonValue) +
      Converts from the JSON value to a Java object of the type T
      +
      java.lang.IntegergetDefault() +
      Supplies a default value for the characteristic to send to connected clients when the real + value.
      +
      java.util.concurrent.CompletableFuture<T>getEnumValue() 
      T[]getValidValues() 
      java.util.concurrent.CompletableFuture<java.lang.Integer>getValue() +
      Retrieves the current value of the characteristic.
      +
      protected java.util.concurrent.CompletableFuture<javax.json.JsonObjectBuilder>makeBuilder​(int iid) +
      Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
      +
      voidsetValue​(java.lang.Integer value) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      voidsetValue​(java.lang.Integer value, + java.lang.String username) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      voidsetValue​(T value) 
      voidsetValue​(T value, + java.lang.String username) 
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + + + +
        +
      • +

        EnumCharacteristic

        +
        public EnumCharacteristic​(java.lang.String type,
        +                          java.lang.String description,
        +                          T[] validValues,
        +                          java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<T>>> getter,
        +                          java.util.Optional<ExceptionalConsumer<T>> setter,
        +                          java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber,
        +                          java.util.Optional<java.lang.Runnable> unsubscriber)
        +
        Default constructor
        +
        +
        Parameters:
        +
        type - a string containing a UUID that indicates the type of characteristic. Apple defines + a set of these, however implementors can create their own as well.
        +
        description - a description of the characteristic to be passed to the consuming device.
        +
        validValues - an array of valid values for enum.
        +
        getter - getter to retrieve the value
        +
        setter - setter to set value
        +
        subscriber - subscriber to subscribe to changes
        +
        unsubscriber - unsubscriber to unsubscribe from chnages
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        makeBuilder

        +
        protected java.util.concurrent.CompletableFuture<javax.json.JsonObjectBuilder> makeBuilder​(int iid)
        +
        Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
        +
        +
        Overrides:
        +
        makeBuilder in class BaseCharacteristic<java.lang.Integer>
        +
        Parameters:
        +
        iid - the static id of the accessory.
        +
        Returns:
        +
        a future that will complete with the JSON builder for the object.
        +
        +
      • +
      + + + +
        +
      • +

        convert

        +
        protected java.lang.Integer convert​(javax.json.JsonValue jsonValue)
        +
        Converts from the JSON value to a Java object of the type T
        +
        +
        Specified by:
        +
        convert in class BaseCharacteristic<java.lang.Integer>
        +
        Parameters:
        +
        jsonValue - the JSON value to convert from.
        +
        Returns:
        +
        the converted Java object.
        +
        +
      • +
      + + + +
        +
      • +

        getEnumValue

        +
        public java.util.concurrent.CompletableFuture<T> getEnumValue()
        +
        +
        Returns:
        +
        the current value of this characteristic, or null if it has no value or can't be + fetched
        +
        +
      • +
      + + + +
        +
      • +

        getValue

        +
        public java.util.concurrent.CompletableFuture<java.lang.Integer> getValue()
        +
        Description copied from class: BaseCharacteristic
        +
        Retrieves the current value of the characteristic.
        +
        +
        Specified by:
        +
        getValue in class BaseCharacteristic<java.lang.Integer>
        +
        Returns:
        +
        a future that will complete with the current value.
        +
        +
      • +
      + + + + + +
        +
      • +

        setValue

        +
        public void setValue​(T value)
        +              throws java.lang.Exception
        +
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      + + + + + +
        +
      • +

        setValue

        +
        public void setValue​(T value,
        +                     java.lang.String username)
        +              throws java.lang.Exception
        +
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue​(java.lang.Integer value)
        +              throws java.lang.Exception
        +
        Description copied from class: BaseCharacteristic
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Specified by:
        +
        setValue in class BaseCharacteristic<java.lang.Integer>
        +
        Parameters:
        +
        value - the new value to set.
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue​(java.lang.Integer value,
        +                     java.lang.String username)
        +              throws java.lang.Exception
        +
        Description copied from class: BaseCharacteristic
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Overrides:
        +
        setValue in class BaseCharacteristic<java.lang.Integer>
        +
        Parameters:
        +
        value - the new value to set.
        +
        username - the authenticated username making the request
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        getDefault

        +
        public java.lang.Integer getDefault()
        +
        Supplies a default value for the characteristic to send to connected clients when the real + value. cannot be retrieved.
        +
        +
        Specified by:
        +
        getDefault in class BaseCharacteristic<java.lang.Integer>
        +
        Returns:
        +
        a sensible default value.
        +
        +
      • +
      + + + +
        +
      • +

        getValidValues

        +
        public T[] getValidValues()
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/FloatCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/FloatCharacteristic.html new file mode 100644 index 000000000..da61d700f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/FloatCharacteristic.html @@ -0,0 +1,552 @@ + + + + + +FloatCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class FloatCharacteristic

+
+
+ + +
+
    +
  • + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      FloatCharacteristic​(java.lang.String type, + java.lang.String description, + double minValue, + double maxValue, + double minStep, + java.lang.String unit, + java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>>> getter, + java.util.Optional<ExceptionalConsumer<java.lang.Double>> setter, + java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber, + java.util.Optional<java.lang.Runnable> unsubscriber) +
      Default constructor
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      protected java.lang.Doubleconvert​(javax.json.JsonValue jsonValue) +
      Converts from the JSON value to a Java object of the type T
      +
      java.lang.DoublegetDefault() +
      Supplies a default value for the characteristic to send to connected clients when the real + value.
      +
      doublegetMaxValue() 
      doublegetMinStep() 
      doublegetMinValue() 
      java.util.concurrent.CompletableFuture<java.lang.Double>getValue() +
      Retrieves the current value of the characteristic.
      +
      protected java.util.concurrent.CompletableFuture<javax.json.JsonObjectBuilder>makeBuilder​(int iid) +
      Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
      +
      voidsetValue​(java.lang.Double value) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      voidsetValue​(java.lang.Double value, + java.lang.String username) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FloatCharacteristic

        +
        public FloatCharacteristic​(java.lang.String type,
        +                           java.lang.String description,
        +                           double minValue,
        +                           double maxValue,
        +                           double minStep,
        +                           java.lang.String unit,
        +                           java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>>> getter,
        +                           java.util.Optional<ExceptionalConsumer<java.lang.Double>> setter,
        +                           java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber,
        +                           java.util.Optional<java.lang.Runnable> unsubscriber)
        +
        Default constructor
        +
        +
        Parameters:
        +
        type - a string containing a UUID that indicates the type of characteristic. Apple defines + a set of these, however implementors can create their own as well.
        +
        description - a description of the characteristic to be passed to the consuming device.
        +
        minValue - the minimum supported value.
        +
        maxValue - the maximum supported value
        +
        minStep - the smallest supported step. Values will be rounded to a multiple of this.
        +
        unit - a description of the unit this characteristic supports.
        +
        getter - getter to retrieve the value
        +
        setter - setter to set value
        +
        subscriber - subscriber to subscribe to changes
        +
        unsubscriber - unsubscriber to unsubscribe from chnages
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        makeBuilder

        +
        protected java.util.concurrent.CompletableFuture<javax.json.JsonObjectBuilder> makeBuilder​(int iid)
        +
        Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
        +
        +
        Overrides:
        +
        makeBuilder in class BaseCharacteristic<java.lang.Double>
        +
        Parameters:
        +
        iid - the static id of the accessory.
        +
        Returns:
        +
        a future that will complete with the JSON builder for the object.
        +
        +
      • +
      + + + +
        +
      • +

        convert

        +
        protected java.lang.Double convert​(javax.json.JsonValue jsonValue)
        +
        Converts from the JSON value to a Java object of the type T
        +
        +
        Specified by:
        +
        convert in class BaseCharacteristic<java.lang.Double>
        +
        Parameters:
        +
        jsonValue - the JSON value to convert from.
        +
        Returns:
        +
        the converted Java object.
        +
        +
      • +
      + + + +
        +
      • +

        getValue

        +
        public final java.util.concurrent.CompletableFuture<java.lang.Double> getValue()
        +
        Retrieves the current value of the characteristic.. Calls the getDoubleValue method and applies rounding to the minStep supplied in + the constructor.
        +
        +
        Specified by:
        +
        getValue in class BaseCharacteristic<java.lang.Double>
        +
        Returns:
        +
        a future that will complete with the current value.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue​(java.lang.Double value)
        +              throws java.lang.Exception
        +
        Description copied from class: BaseCharacteristic
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Specified by:
        +
        setValue in class BaseCharacteristic<java.lang.Double>
        +
        Parameters:
        +
        value - the new value to set.
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue​(java.lang.Double value,
        +                     java.lang.String username)
        +              throws java.lang.Exception
        +
        Description copied from class: BaseCharacteristic
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Overrides:
        +
        setValue in class BaseCharacteristic<java.lang.Double>
        +
        Parameters:
        +
        value - the new value to set.
        +
        username - the authenticated username making the request
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        getDefault

        +
        public java.lang.Double getDefault()
        +
        Supplies a default value for the characteristic to send to connected clients when the real + value. cannot be retrieved.
        +
        +
        Specified by:
        +
        getDefault in class BaseCharacteristic<java.lang.Double>
        +
        Returns:
        +
        a sensible default value.
        +
        +
      • +
      + + + +
        +
      • +

        getMinValue

        +
        public double getMinValue()
        +
      • +
      + + + +
        +
      • +

        getMaxValue

        +
        public double getMaxValue()
        +
      • +
      + + + +
        +
      • +

        getMinStep

        +
        public double getMinStep()
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/IntegerCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/IntegerCharacteristic.html new file mode 100644 index 000000000..681934858 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/IntegerCharacteristic.html @@ -0,0 +1,560 @@ + + + + + +IntegerCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class IntegerCharacteristic

+
+
+ + +
+
    +
  • + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + + + + + + + +
      Constructors 
      ModifierConstructorDescription
       IntegerCharacteristic​(java.lang.String type, + java.lang.String description, + int minValue, + int maxValue, + java.lang.String unit, + java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>>> getter, + java.util.Optional<ExceptionalConsumer<java.lang.Integer>> setter, + java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber, + java.util.Optional<java.lang.Runnable> unsubscriber) +
      Default constructor
      +
      protected IntegerCharacteristic​(java.lang.String type, + java.lang.String format, + java.lang.String description, + int minValue, + int maxValue, + java.lang.String unit, + java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>>> getter, + java.util.Optional<ExceptionalConsumer<java.lang.Integer>> setter, + java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber, + java.util.Optional<java.lang.Runnable> unsubscriber) +
      Constructor for characteristics whose HAP format differs from the default "int", e.g.
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      protected java.lang.Integerconvert​(javax.json.JsonValue jsonValue) +
      Converts from the JSON value to a Java object of the type T
      +
      java.lang.IntegergetDefault() +
      Supplies a default value for the characteristic to send to connected clients when the real + value.
      +
      java.util.concurrent.CompletableFuture<java.lang.Integer>getValue() +
      Retrieves the current value of the characteristic.
      +
      protected java.util.concurrent.CompletableFuture<javax.json.JsonObjectBuilder>makeBuilder​(int iid) +
      Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
      +
      voidsetValue​(java.lang.Integer value) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      voidsetValue​(java.lang.Integer value, + java.lang.String username) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IntegerCharacteristic

        +
        public IntegerCharacteristic​(java.lang.String type,
        +                             java.lang.String description,
        +                             int minValue,
        +                             int maxValue,
        +                             java.lang.String unit,
        +                             java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>>> getter,
        +                             java.util.Optional<ExceptionalConsumer<java.lang.Integer>> setter,
        +                             java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber,
        +                             java.util.Optional<java.lang.Runnable> unsubscriber)
        +
        Default constructor
        +
        +
        Parameters:
        +
        type - a string containing a UUID that indicates the type of characteristic. Apple defines + a set of these, however implementors can create their own as well.
        +
        description - a description of the characteristic to be passed to the consuming device.
        +
        minValue - the minimum supported value.
        +
        maxValue - the maximum supported value
        +
        unit - a description of the unit this characteristic supports.
        +
        getter - getter for value
        +
        setter - setter for value
        +
        subscriber - subscribers to changes
        +
        unsubscriber - unsubscribers to changes
        +
        +
      • +
      + + + +
        +
      • +

        IntegerCharacteristic

        +
        protected IntegerCharacteristic​(java.lang.String type,
        +                                java.lang.String format,
        +                                java.lang.String description,
        +                                int minValue,
        +                                int maxValue,
        +                                java.lang.String unit,
        +                                java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>>> getter,
        +                                java.util.Optional<ExceptionalConsumer<java.lang.Integer>> setter,
        +                                java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber,
        +                                java.util.Optional<java.lang.Runnable> unsubscriber)
        +
        Constructor for characteristics whose HAP format differs from the default "int", e.g. "uint8", + "uint16" or "uint32". Values are still handled as Java Integer, so the supported range + must fit into a signed 32-bit integer.
        +
        +
        Parameters:
        +
        type - a string containing a UUID that indicates the type of characteristic. Apple defines + a set of these, however implementors can create their own as well.
        +
        format - the HAP format to advertise, e.g. "int" or "uint32".
        +
        description - a description of the characteristic to be passed to the consuming device.
        +
        minValue - the minimum supported value.
        +
        maxValue - the maximum supported value
        +
        unit - a description of the unit this characteristic supports.
        +
        getter - getter for value
        +
        setter - setter for value
        +
        subscriber - subscribers to changes
        +
        unsubscriber - unsubscribers to changes
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        makeBuilder

        +
        protected java.util.concurrent.CompletableFuture<javax.json.JsonObjectBuilder> makeBuilder​(int iid)
        +
        Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
        +
        +
        Overrides:
        +
        makeBuilder in class BaseCharacteristic<java.lang.Integer>
        +
        Parameters:
        +
        iid - the static id of the accessory.
        +
        Returns:
        +
        a future that will complete with the JSON builder for the object.
        +
        +
      • +
      + + + +
        +
      • +

        getValue

        +
        public java.util.concurrent.CompletableFuture<java.lang.Integer> getValue()
        +
        Description copied from class: BaseCharacteristic
        +
        Retrieves the current value of the characteristic.
        +
        +
        Specified by:
        +
        getValue in class BaseCharacteristic<java.lang.Integer>
        +
        Returns:
        +
        a future that will complete with the current value.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue​(java.lang.Integer value)
        +              throws java.lang.Exception
        +
        Description copied from class: BaseCharacteristic
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Specified by:
        +
        setValue in class BaseCharacteristic<java.lang.Integer>
        +
        Parameters:
        +
        value - the new value to set.
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue​(java.lang.Integer value,
        +                     java.lang.String username)
        +              throws java.lang.Exception
        +
        Description copied from class: BaseCharacteristic
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Overrides:
        +
        setValue in class BaseCharacteristic<java.lang.Integer>
        +
        Parameters:
        +
        value - the new value to set.
        +
        username - the authenticated username making the request
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        getDefault

        +
        public java.lang.Integer getDefault()
        +
        Supplies a default value for the characteristic to send to connected clients when the real + value. cannot be retrieved.
        +
        +
        Specified by:
        +
        getDefault in class BaseCharacteristic<java.lang.Integer>
        +
        Returns:
        +
        a sensible default value.
        +
        +
      • +
      + + + +
        +
      • +

        convert

        +
        protected java.lang.Integer convert​(javax.json.JsonValue jsonValue)
        +
        Converts from the JSON value to a Java object of the type T
        +
        +
        Specified by:
        +
        convert in class BaseCharacteristic<java.lang.Integer>
        +
        Parameters:
        +
        jsonValue - the JSON value to convert from.
        +
        Returns:
        +
        the converted Java object.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/StaticStringCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/StaticStringCharacteristic.html new file mode 100644 index 000000000..4c49a091f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/StaticStringCharacteristic.html @@ -0,0 +1,463 @@ + + + + + +StaticStringCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class StaticStringCharacteristic

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      StaticStringCharacteristic​(java.lang.String type, + java.lang.String description, + java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.String>>> getter, + java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber, + java.util.Optional<java.lang.Runnable> unsubscriber) +
      Default constructor
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.lang.Stringconvert​(javax.json.JsonValue jsonValue) +
      Converts from the JSON value to a Java object of the type T
      +
      java.lang.StringgetDefault() +
      Supplies a default value for the characteristic to send to connected clients when the real + value.
      +
      java.util.concurrent.CompletableFuture<java.lang.String>getValue() +
      Retrieves the current value of the characteristic.
      +
      protected java.util.concurrent.CompletableFuture<javax.json.JsonObjectBuilder>makeBuilder​(int iid) +
      Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
      +
      voidsetValue​(java.lang.String value) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StaticStringCharacteristic

        +
        public StaticStringCharacteristic​(java.lang.String type,
        +                                  java.lang.String description,
        +                                  java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.String>>> getter,
        +                                  java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber,
        +                                  java.util.Optional<java.lang.Runnable> unsubscriber)
        +
        Default constructor
        +
        +
        Parameters:
        +
        type - a string containing a UUID that indicates the type of characteristic. Apple defines + a set of these, however implementors can create their own as well.
        +
        description - a description of the characteristic to be passed to the consuming device.
        +
        getter - getter to retrieve the value
        +
        subscriber - subscriber to subscribe to changes
        +
        unsubscriber - unsubscriber to unsubscribe from chnages
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        makeBuilder

        +
        protected java.util.concurrent.CompletableFuture<javax.json.JsonObjectBuilder> makeBuilder​(int iid)
        +
        Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
        +
        +
        Overrides:
        +
        makeBuilder in class BaseCharacteristic<java.lang.String>
        +
        Parameters:
        +
        iid - the static id of the accessory.
        +
        Returns:
        +
        a future that will complete with the JSON builder for the object.
        +
        +
      • +
      + + + +
        +
      • +

        convert

        +
        public java.lang.String convert​(javax.json.JsonValue jsonValue)
        +
        Converts from the JSON value to a Java object of the type T
        +
        +
        Specified by:
        +
        convert in class BaseCharacteristic<java.lang.String>
        +
        Parameters:
        +
        jsonValue - the JSON value to convert from.
        +
        Returns:
        +
        the converted Java object.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue​(java.lang.String value)
        +              throws java.lang.Exception
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Specified by:
        +
        setValue in class BaseCharacteristic<java.lang.String>
        +
        Parameters:
        +
        value - the new value to set.
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        getValue

        +
        public java.util.concurrent.CompletableFuture<java.lang.String> getValue()
        +
        Retrieves the current value of the characteristic.
        +
        +
        Specified by:
        +
        getValue in class BaseCharacteristic<java.lang.String>
        +
        Returns:
        +
        a future that will complete with the current value.
        +
        +
      • +
      + + + +
        +
      • +

        getDefault

        +
        public java.lang.String getDefault()
        +
        Supplies a default value for the characteristic to send to connected clients when the real + value. cannot be retrieved.
        +
        +
        Specified by:
        +
        getDefault in class BaseCharacteristic<java.lang.String>
        +
        Returns:
        +
        a sensible default value.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/StringCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/StringCharacteristic.html new file mode 100644 index 000000000..8e5a93fa5 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/StringCharacteristic.html @@ -0,0 +1,495 @@ + + + + + +StringCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class StringCharacteristic

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      StringCharacteristic​(java.lang.String type, + java.lang.String description, + java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.String>>> getter, + java.util.Optional<ExceptionalConsumer<java.lang.String>> setter, + java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber, + java.util.Optional<java.lang.Runnable> unsubscriber) +
      Default constructor
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.lang.Stringconvert​(javax.json.JsonValue jsonValue) +
      Converts from the JSON value to a Java object of the type T
      +
      java.lang.StringgetDefault() +
      Supplies a default value for the characteristic to send to connected clients when the real + value.
      +
      java.util.concurrent.CompletableFuture<java.lang.String>getValue() +
      Retrieves the current value of the characteristic.
      +
      protected java.util.concurrent.CompletableFuture<javax.json.JsonObjectBuilder>makeBuilder​(int iid) +
      Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
      +
      voidsetValue​(java.lang.String value) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      voidsetValue​(java.lang.String value, + java.lang.String username) +
      Update the characteristic value using a new value supplied by the connected client.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StringCharacteristic

        +
        public StringCharacteristic​(java.lang.String type,
        +                            java.lang.String description,
        +                            java.util.Optional<java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.String>>> getter,
        +                            java.util.Optional<ExceptionalConsumer<java.lang.String>> setter,
        +                            java.util.Optional<java.util.function.Consumer<HomekitCharacteristicChangeCallback>> subscriber,
        +                            java.util.Optional<java.lang.Runnable> unsubscriber)
        +
        Default constructor
        +
        +
        Parameters:
        +
        type - a string containing a UUID that indicates the type of characteristic. Apple defines + a set of these, however implementors can create their own as well.
        +
        description - a description of the characteristic to be passed to the consuming device.
        +
        getter - getter to retrieve the value
        +
        setter - setter for value
        +
        subscriber - subscriber to subscribe to changes
        +
        unsubscriber - unsubscriber to unsubscribe from chnages
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        makeBuilder

        +
        protected java.util.concurrent.CompletableFuture<javax.json.JsonObjectBuilder> makeBuilder​(int iid)
        +
        Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol.
        +
        +
        Overrides:
        +
        makeBuilder in class BaseCharacteristic<java.lang.String>
        +
        Parameters:
        +
        iid - the static id of the accessory.
        +
        Returns:
        +
        a future that will complete with the JSON builder for the object.
        +
        +
      • +
      + + + +
        +
      • +

        convert

        +
        public java.lang.String convert​(javax.json.JsonValue jsonValue)
        +
        Converts from the JSON value to a Java object of the type T
        +
        +
        Specified by:
        +
        convert in class BaseCharacteristic<java.lang.String>
        +
        Parameters:
        +
        jsonValue - the JSON value to convert from.
        +
        Returns:
        +
        the converted Java object.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue​(java.lang.String value)
        +              throws java.lang.Exception
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Specified by:
        +
        setValue in class BaseCharacteristic<java.lang.String>
        +
        Parameters:
        +
        value - the new value to set.
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        setValue

        +
        public void setValue​(java.lang.String value,
        +                     java.lang.String username)
        +              throws java.lang.Exception
        +
        Update the characteristic value using a new value supplied by the connected client.
        +
        +
        Overrides:
        +
        setValue in class BaseCharacteristic<java.lang.String>
        +
        Parameters:
        +
        value - the new value to set.
        +
        username - the authenticated username making the request
        +
        Throws:
        +
        java.lang.Exception - if the value cannot be set.
        +
        +
      • +
      + + + +
        +
      • +

        getValue

        +
        public java.util.concurrent.CompletableFuture<java.lang.String> getValue()
        +
        Retrieves the current value of the characteristic.
        +
        +
        Specified by:
        +
        getValue in class BaseCharacteristic<java.lang.String>
        +
        Returns:
        +
        a future that will complete with the current value.
        +
        +
      • +
      + + + +
        +
      • +

        getDefault

        +
        public java.lang.String getDefault()
        +
        Supplies a default value for the characteristic to send to connected clients when the real + value. cannot be retrieved.
        +
        +
        Specified by:
        +
        getDefault in class BaseCharacteristic<java.lang.String>
        +
        Returns:
        +
        a sensible default value.
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/class-use/BaseCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/BaseCharacteristic.html new file mode 100644 index 000000000..7c79b5869 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/BaseCharacteristic.html @@ -0,0 +1,1689 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.base.BaseCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.base.BaseCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/class-use/BooleanCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/BooleanCharacteristic.html new file mode 100644 index 000000000..ffa735153 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/BooleanCharacteristic.html @@ -0,0 +1,350 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.base.BooleanCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.base.BooleanCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/class-use/EnumCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/EnumCharacteristic.html new file mode 100644 index 000000000..d0fc7037a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/EnumCharacteristic.html @@ -0,0 +1,1090 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.base.EnumCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.base.EnumCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/class-use/FloatCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/FloatCharacteristic.html new file mode 100644 index 000000000..62527840b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/FloatCharacteristic.html @@ -0,0 +1,569 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.base.FloatCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.base.FloatCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/class-use/IntegerCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/IntegerCharacteristic.html new file mode 100644 index 000000000..9fa2699ea --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/IntegerCharacteristic.html @@ -0,0 +1,464 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.base.IntegerCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.base.IntegerCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/class-use/StaticStringCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/StaticStringCharacteristic.html new file mode 100644 index 000000000..097a5d2e3 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/StaticStringCharacteristic.html @@ -0,0 +1,259 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/class-use/StringCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/StringCharacteristic.html new file mode 100644 index 000000000..2787f4b18 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/class-use/StringCharacteristic.html @@ -0,0 +1,196 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.base.StringCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.base.StringCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/base/package-summary.html new file mode 100644 index 000000000..b406b2089 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/package-summary.html @@ -0,0 +1,206 @@ + + + + + +io.github.hapjava.characteristics.impl.base (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.base

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/base/package-tree.html new file mode 100644 index 000000000..70788f4c0 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/package-tree.html @@ -0,0 +1,174 @@ + + + + + +io.github.hapjava.characteristics.impl.base Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.base

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/base/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/base/package-use.html new file mode 100644 index 000000000..02e69ac0f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/base/package-use.html @@ -0,0 +1,1218 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.base (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.base

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/BatteryLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/battery/BatteryLevelCharacteristic.html new file mode 100644 index 000000000..13b8992de --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/BatteryLevelCharacteristic.html @@ -0,0 +1,318 @@ + + + + + +BatteryLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class BatteryLevelCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BatteryLevelCharacteristic

        +
        public BatteryLevelCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                  java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                  java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/ChargingStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/battery/ChargingStateCharacteristic.html new file mode 100644 index 000000000..73cd27670 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/ChargingStateCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +ChargingStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ChargingStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ChargingStateCharacteristic

        +
        public ChargingStateCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<ChargingStateEnum>> getter,
        +                                   java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                   java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/ChargingStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/battery/ChargingStateEnum.html new file mode 100644 index 000000000..6ccbec5ed --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/ChargingStateEnum.html @@ -0,0 +1,427 @@ + + + + + +ChargingStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum ChargingStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static ChargingStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static ChargingStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ChargingStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ChargingStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ChargingStateEnum c : ChargingStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ChargingStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static ChargingStateEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/StatusLowBatteryCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/battery/StatusLowBatteryCharacteristic.html new file mode 100644 index 000000000..b070eea8b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/StatusLowBatteryCharacteristic.html @@ -0,0 +1,321 @@ + + + + + +StatusLowBatteryCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class StatusLowBatteryCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StatusLowBatteryCharacteristic

        +
        public StatusLowBatteryCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<StatusLowBatteryEnum>> getter,
        +                                      java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                      java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/StatusLowBatteryEnum.html b/apidocs/io/github/hapjava/characteristics/impl/battery/StatusLowBatteryEnum.html new file mode 100644 index 000000000..ec769de58 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/StatusLowBatteryEnum.html @@ -0,0 +1,414 @@ + + + + + +StatusLowBatteryEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum StatusLowBatteryEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      LOW 
      NORMAL 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static StatusLowBatteryEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static StatusLowBatteryEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static StatusLowBatteryEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static StatusLowBatteryEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (StatusLowBatteryEnum c : StatusLowBatteryEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static StatusLowBatteryEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/BatteryLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/BatteryLevelCharacteristic.html new file mode 100644 index 000000000..129fb64c7 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/BatteryLevelCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.battery.BatteryLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.battery.BatteryLevelCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/ChargingStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/ChargingStateCharacteristic.html new file mode 100644 index 000000000..634a914a9 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/ChargingStateCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.battery.ChargingStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.battery.ChargingStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/ChargingStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/ChargingStateEnum.html new file mode 100644 index 000000000..a8fa0afc8 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/ChargingStateEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.battery.ChargingStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.battery.ChargingStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/StatusLowBatteryCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/StatusLowBatteryCharacteristic.html new file mode 100644 index 000000000..6c9b1f7b9 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/StatusLowBatteryCharacteristic.html @@ -0,0 +1,259 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/StatusLowBatteryEnum.html b/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/StatusLowBatteryEnum.html new file mode 100644 index 000000000..fe6f6d37b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/class-use/StatusLowBatteryEnum.html @@ -0,0 +1,283 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.battery.StatusLowBatteryEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.battery.StatusLowBatteryEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/battery/package-summary.html new file mode 100644 index 000000000..46d63d573 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/package-summary.html @@ -0,0 +1,205 @@ + + + + + +io.github.hapjava.characteristics.impl.battery (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.battery

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/battery/package-tree.html new file mode 100644 index 000000000..545febac2 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/package-tree.html @@ -0,0 +1,194 @@ + + + + + +io.github.hapjava.characteristics.impl.battery Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.battery

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/battery/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/battery/package-use.html new file mode 100644 index 000000000..ad36cf6df --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/battery/package-use.html @@ -0,0 +1,282 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.battery (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.battery

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideDetectedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideDetectedCharacteristic.html new file mode 100644 index 000000000..b26be4569 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideDetectedCharacteristic.html @@ -0,0 +1,336 @@ + + + + + +CarbonDioxideDetectedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CarbonDioxideDetectedCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CarbonDioxideDetectedCharacteristic

        +
        public CarbonDioxideDetectedCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<CarbonDioxideDetectedEnum>> getter,
        +                                           java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                           java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideDetectedEnum.html b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideDetectedEnum.html new file mode 100644 index 000000000..97aef41f2 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideDetectedEnum.html @@ -0,0 +1,414 @@ + + + + + +CarbonDioxideDetectedEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum CarbonDioxideDetectedEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      ABNORMAL 
      NORMAL 
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CarbonDioxideDetectedEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CarbonDioxideDetectedEnum c : CarbonDioxideDetectedEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CarbonDioxideDetectedEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideLevelCharacteristic.html new file mode 100644 index 000000000..27241f359 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideLevelCharacteristic.html @@ -0,0 +1,408 @@ + + + + + +CarbonDioxideLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CarbonDioxideLevelCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CarbonDioxideLevelCharacteristic

        +
        public CarbonDioxideLevelCharacteristic​(double minValue,
        +                                        double maxValue,
        +                                        double minStep,
        +                                        java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                        java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                        java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        CarbonDioxideLevelCharacteristic

        +
        public CarbonDioxideLevelCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                        java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                        java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxidePeakLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxidePeakLevelCharacteristic.html new file mode 100644 index 000000000..de1c9a718 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxidePeakLevelCharacteristic.html @@ -0,0 +1,408 @@ + + + + + +CarbonDioxidePeakLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CarbonDioxidePeakLevelCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CarbonDioxidePeakLevelCharacteristic

        +
        public CarbonDioxidePeakLevelCharacteristic​(double minValue,
        +                                            double maxValue,
        +                                            double minStep,
        +                                            java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                            java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                            java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        CarbonDioxidePeakLevelCharacteristic

        +
        public CarbonDioxidePeakLevelCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                            java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                            java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/class-use/CarbonDioxideDetectedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/class-use/CarbonDioxideDetectedCharacteristic.html new file mode 100644 index 000000000..a1c2c5bc6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/class-use/CarbonDioxideDetectedCharacteristic.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/class-use/CarbonDioxideDetectedEnum.html b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/class-use/CarbonDioxideDetectedEnum.html new file mode 100644 index 000000000..ede86429c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/class-use/CarbonDioxideDetectedEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/class-use/CarbonDioxideLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/class-use/CarbonDioxideLevelCharacteristic.html new file mode 100644 index 000000000..4e96d87de --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/class-use/CarbonDioxideLevelCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideLevelCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/class-use/CarbonDioxidePeakLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/class-use/CarbonDioxidePeakLevelCharacteristic.html new file mode 100644 index 000000000..da0a5130d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/class-use/CarbonDioxidePeakLevelCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxidePeakLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxidePeakLevelCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/package-summary.html new file mode 100644 index 000000000..dacc89b33 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/package-summary.html @@ -0,0 +1,199 @@ + + + + + +io.github.hapjava.characteristics.impl.carbondioxidesensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.carbondioxidesensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/package-tree.html new file mode 100644 index 000000000..c17b9a7e3 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/package-tree.html @@ -0,0 +1,193 @@ + + + + + +io.github.hapjava.characteristics.impl.carbondioxidesensor Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.carbondioxidesensor

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/package-use.html new file mode 100644 index 000000000..0cf2fa16a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbondioxidesensor/package-use.html @@ -0,0 +1,247 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.carbondioxidesensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.carbondioxidesensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideDetectedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideDetectedCharacteristic.html new file mode 100644 index 000000000..eb06998ac --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideDetectedCharacteristic.html @@ -0,0 +1,335 @@ + + + + + +CarbonMonoxideDetectedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CarbonMonoxideDetectedCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CarbonMonoxideDetectedCharacteristic

        +
        public CarbonMonoxideDetectedCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<CarbonMonoxideDetectedEnum>> getter,
        +                                            java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                            java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideDetectedEnum.html b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideDetectedEnum.html new file mode 100644 index 000000000..20a1c2275 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideDetectedEnum.html @@ -0,0 +1,414 @@ + + + + + +CarbonMonoxideDetectedEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum CarbonMonoxideDetectedEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      ABNORMAL 
      NORMAL 
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CarbonMonoxideDetectedEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CarbonMonoxideDetectedEnum c : CarbonMonoxideDetectedEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CarbonMonoxideDetectedEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideLevelCharacteristic.html new file mode 100644 index 000000000..aeeab90e6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideLevelCharacteristic.html @@ -0,0 +1,408 @@ + + + + + +CarbonMonoxideLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CarbonMonoxideLevelCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CarbonMonoxideLevelCharacteristic

        +
        public CarbonMonoxideLevelCharacteristic​(double minValue,
        +                                         double maxValue,
        +                                         double minStep,
        +                                         java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                         java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                         java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        CarbonMonoxideLevelCharacteristic

        +
        public CarbonMonoxideLevelCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                         java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                         java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxidePeakLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxidePeakLevelCharacteristic.html new file mode 100644 index 000000000..9fdb6df73 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxidePeakLevelCharacteristic.html @@ -0,0 +1,408 @@ + + + + + +CarbonMonoxidePeakLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CarbonMonoxidePeakLevelCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CarbonMonoxidePeakLevelCharacteristic

        +
        public CarbonMonoxidePeakLevelCharacteristic​(double minValue,
        +                                             double maxValue,
        +                                             double minStep,
        +                                             java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                             java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                             java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        CarbonMonoxidePeakLevelCharacteristic

        +
        public CarbonMonoxidePeakLevelCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                             java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                             java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/class-use/CarbonMonoxideDetectedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/class-use/CarbonMonoxideDetectedCharacteristic.html new file mode 100644 index 000000000..336f28b98 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/class-use/CarbonMonoxideDetectedCharacteristic.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/class-use/CarbonMonoxideDetectedEnum.html b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/class-use/CarbonMonoxideDetectedEnum.html new file mode 100644 index 000000000..454d1c57f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/class-use/CarbonMonoxideDetectedEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/class-use/CarbonMonoxideLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/class-use/CarbonMonoxideLevelCharacteristic.html new file mode 100644 index 000000000..5d144c156 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/class-use/CarbonMonoxideLevelCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideLevelCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/class-use/CarbonMonoxidePeakLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/class-use/CarbonMonoxidePeakLevelCharacteristic.html new file mode 100644 index 000000000..c4a4ebc5a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/class-use/CarbonMonoxidePeakLevelCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxidePeakLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxidePeakLevelCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/package-summary.html new file mode 100644 index 000000000..d4adfca30 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/package-summary.html @@ -0,0 +1,199 @@ + + + + + +io.github.hapjava.characteristics.impl.carbonmonoxidesensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.carbonmonoxidesensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/package-tree.html new file mode 100644 index 000000000..802f6798e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/package-tree.html @@ -0,0 +1,193 @@ + + + + + +io.github.hapjava.characteristics.impl.carbonmonoxidesensor Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.carbonmonoxidesensor

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/package-use.html new file mode 100644 index 000000000..cfdbb4da1 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/package-use.html @@ -0,0 +1,247 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.carbonmonoxidesensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.carbonmonoxidesensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/ActiveCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/ActiveCharacteristic.html new file mode 100644 index 000000000..cfb9236c7 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/ActiveCharacteristic.html @@ -0,0 +1,323 @@ + + + + + +ActiveCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ActiveCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/ActiveEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/ActiveEnum.html new file mode 100644 index 000000000..7116b81b9 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/ActiveEnum.html @@ -0,0 +1,414 @@ + + + + + +ActiveEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum ActiveEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      ACTIVE 
      INACTIVE 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static ActiveEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static ActiveEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ActiveEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        INACTIVE

        +
        public static final ActiveEnum INACTIVE
        +
      • +
      + + + +
        +
      • +

        ACTIVE

        +
        public static final ActiveEnum ACTIVE
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ActiveEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ActiveEnum c : ActiveEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ActiveEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static ActiveEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/ActiveIdentifierCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/ActiveIdentifierCharacteristic.html new file mode 100644 index 000000000..94874c337 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/ActiveIdentifierCharacteristic.html @@ -0,0 +1,304 @@ + + + + + +ActiveIdentifierCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ActiveIdentifierCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ActiveIdentifierCharacteristic

        +
        public ActiveIdentifierCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                      ExceptionalConsumer<java.lang.Integer> setter,
        +                                      java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                      java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/AirPlayEnableCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/AirPlayEnableCharacteristic.html new file mode 100644 index 000000000..8edfb7681 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/AirPlayEnableCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +AirPlayEnableCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class AirPlayEnableCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AirPlayEnableCharacteristic

        +
        public AirPlayEnableCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                   ExceptionalConsumer<java.lang.Integer> setter,
        +                                   java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                   java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/ConfiguredNameCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/ConfiguredNameCharacteristic.html new file mode 100644 index 000000000..2fe8d6349 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/ConfiguredNameCharacteristic.html @@ -0,0 +1,305 @@ + + + + + +ConfiguredNameCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ConfiguredNameCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ConfiguredNameCharacteristic

        +
        public ConfiguredNameCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.String>> getter,
        +                                    ExceptionalConsumer<java.lang.String> setter,
        +                                    java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                    java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/IdentifierCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/IdentifierCharacteristic.html new file mode 100644 index 000000000..dc7d069b6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/IdentifierCharacteristic.html @@ -0,0 +1,298 @@ + + + + + +IdentifierCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class IdentifierCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        IdentifierCharacteristic

        +
        public IdentifierCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/InUseCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/InUseCharacteristic.html new file mode 100644 index 000000000..d6a750612 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/InUseCharacteristic.html @@ -0,0 +1,321 @@ + + + + + +InUseCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class InUseCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        InUseCharacteristic

        +
        public InUseCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<InUseEnum>> getter,
        +                           java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                           java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/InUseEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/InUseEnum.html new file mode 100644 index 000000000..0e31495f2 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/InUseEnum.html @@ -0,0 +1,414 @@ + + + + + +InUseEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum InUseEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      IN_USE 
      NOT_IN_USE 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static InUseEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static InUseEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static InUseEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        NOT_IN_USE

        +
        public static final InUseEnum NOT_IN_USE
        +
      • +
      + + + +
        +
      • +

        IN_USE

        +
        public static final InUseEnum IN_USE
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static InUseEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (InUseEnum c : InUseEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static InUseEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static InUseEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/IsConfiguredCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/IsConfiguredCharacteristic.html new file mode 100644 index 000000000..2647d8c85 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/IsConfiguredCharacteristic.html @@ -0,0 +1,322 @@ + + + + + +IsConfiguredCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class IsConfiguredCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/IsConfiguredEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/IsConfiguredEnum.html new file mode 100644 index 000000000..e8e56e0af --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/IsConfiguredEnum.html @@ -0,0 +1,414 @@ + + + + + +IsConfiguredEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum IsConfiguredEnum

+
+
+ +
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static IsConfiguredEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static IsConfiguredEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static IsConfiguredEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static IsConfiguredEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (IsConfiguredEnum c : IsConfiguredEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static IsConfiguredEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static IsConfiguredEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/NameCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/NameCharacteristic.html new file mode 100644 index 000000000..f67731a91 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/NameCharacteristic.html @@ -0,0 +1,299 @@ + + + + + +NameCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class NameCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        NameCharacteristic

        +
        public NameCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.String>> getter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/ObstructionDetectedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/ObstructionDetectedCharacteristic.html new file mode 100644 index 000000000..dd5f33cef --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/ObstructionDetectedCharacteristic.html @@ -0,0 +1,303 @@ + + + + + +ObstructionDetectedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ObstructionDetectedCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ObstructionDetectedCharacteristic

        +
        public ObstructionDetectedCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Boolean>> getter,
        +                                         java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                         java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/OnCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/OnCharacteristic.html new file mode 100644 index 000000000..c4e31a723 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/OnCharacteristic.html @@ -0,0 +1,305 @@ + + + + + +OnCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class OnCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OnCharacteristic

        +
        public OnCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Boolean>> getter,
        +                        ExceptionalConsumer<java.lang.Boolean> setter,
        +                        java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                        java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/ProgramModeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/ProgramModeCharacteristic.html new file mode 100644 index 000000000..f861830b6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/ProgramModeCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +ProgramModeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ProgramModeCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ProgramModeCharacteristic

        +
        public ProgramModeCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<ProgramModeEnum>> getter,
        +                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                 java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/ProgramModeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/ProgramModeEnum.html new file mode 100644 index 000000000..94cb57063 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/ProgramModeEnum.html @@ -0,0 +1,428 @@ + + + + + +ProgramModeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum ProgramModeEnum

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    CharacteristicEnum, java.io.Serializable, java.lang.Comparable<ProgramModeEnum>
    +
    +
    +
    public enum ProgramModeEnum
    +extends java.lang.Enum<ProgramModeEnum>
    +implements CharacteristicEnum
    +
    0 ”No Programs Scheduled” 1 ”Program Scheduled” 2 ”Program Scheduled, currently overriden to + manual mode”
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static ProgramModeEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static ProgramModeEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ProgramModeEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ProgramModeEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ProgramModeEnum c : ProgramModeEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ProgramModeEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static ProgramModeEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/ProgrammableSwitchEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/ProgrammableSwitchEnum.html new file mode 100644 index 000000000..154a36ea5 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/ProgrammableSwitchEnum.html @@ -0,0 +1,427 @@ + + + + + +ProgrammableSwitchEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum ProgrammableSwitchEnum

+
+
+ +
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static ProgrammableSwitchEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static ProgrammableSwitchEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ProgrammableSwitchEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ProgrammableSwitchEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ProgrammableSwitchEnum c : ProgrammableSwitchEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ProgrammableSwitchEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/ProgrammableSwitchEventCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/ProgrammableSwitchEventCharacteristic.html new file mode 100644 index 000000000..5ef286bde --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/ProgrammableSwitchEventCharacteristic.html @@ -0,0 +1,343 @@ + + + + + +ProgrammableSwitchEventCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ProgrammableSwitchEventCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/ServiceLabelIndexCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/ServiceLabelIndexCharacteristic.html new file mode 100644 index 000000000..71bc512e0 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/ServiceLabelIndexCharacteristic.html @@ -0,0 +1,314 @@ + + + + + +ServiceLabelIndexCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ServiceLabelIndexCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ServiceLabelIndexCharacteristic

        +
        public ServiceLabelIndexCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/ServiceLabelNamespaceCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/ServiceLabelNamespaceCharacteristic.html new file mode 100644 index 000000000..45fbaca5b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/ServiceLabelNamespaceCharacteristic.html @@ -0,0 +1,316 @@ + + + + + +ServiceLabelNamespaceCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ServiceLabelNamespaceCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ServiceLabelNamespaceCharacteristic

        +
        public ServiceLabelNamespaceCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<ServiceLabelNamespaceEnum>> getter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/ServiceLabelNamespaceEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/ServiceLabelNamespaceEnum.html new file mode 100644 index 000000000..1d8ccfc5a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/ServiceLabelNamespaceEnum.html @@ -0,0 +1,414 @@ + + + + + +ServiceLabelNamespaceEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum ServiceLabelNamespaceEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      ARABIC_NUMERALS 
      DOTS 
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ServiceLabelNamespaceEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ServiceLabelNamespaceEnum c : ServiceLabelNamespaceEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ServiceLabelNamespaceEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/StatusActiveCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/StatusActiveCharacteristic.html new file mode 100644 index 000000000..d9da59fec --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/StatusActiveCharacteristic.html @@ -0,0 +1,303 @@ + + + + + +StatusActiveCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class StatusActiveCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StatusActiveCharacteristic

        +
        public StatusActiveCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Boolean>> getter,
        +                                  java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                  java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/StatusFaultCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/StatusFaultCharacteristic.html new file mode 100644 index 000000000..1dc0ddc32 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/StatusFaultCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +StatusFaultCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class StatusFaultCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StatusFaultCharacteristic

        +
        public StatusFaultCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<StatusFaultEnum>> getter,
        +                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                 java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/StatusFaultEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/StatusFaultEnum.html new file mode 100644 index 000000000..7eaf09b94 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/StatusFaultEnum.html @@ -0,0 +1,414 @@ + + + + + +StatusFaultEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum StatusFaultEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      GENERAL_FAULT 
      NO_FAULT 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static StatusFaultEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static StatusFaultEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static StatusFaultEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static StatusFaultEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (StatusFaultEnum c : StatusFaultEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static StatusFaultEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static StatusFaultEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/StatusTamperedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/StatusTamperedCharacteristic.html new file mode 100644 index 000000000..ec6cd9fb7 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/StatusTamperedCharacteristic.html @@ -0,0 +1,321 @@ + + + + + +StatusTamperedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class StatusTamperedCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        StatusTamperedCharacteristic

        +
        public StatusTamperedCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<StatusTamperedEnum>> getter,
        +                                    java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                    java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/StatusTamperedEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/StatusTamperedEnum.html new file mode 100644 index 000000000..4ddd0c6fb --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/StatusTamperedEnum.html @@ -0,0 +1,414 @@ + + + + + +StatusTamperedEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum StatusTamperedEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      NOT_TAMPERED 
      TAMPERED 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static StatusTamperedEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static StatusTamperedEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static StatusTamperedEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static StatusTamperedEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (StatusTamperedEnum c : StatusTamperedEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static StatusTamperedEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/VersionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/VersionCharacteristic.html new file mode 100644 index 000000000..63b6a15f4 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/VersionCharacteristic.html @@ -0,0 +1,299 @@ + + + + + +VersionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class VersionCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VersionCharacteristic

        +
        public VersionCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.String>> getter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/WaterLavelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/WaterLavelCharacteristic.html new file mode 100644 index 000000000..37e4787fc --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/WaterLavelCharacteristic.html @@ -0,0 +1,318 @@ + + + + + +WaterLavelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class WaterLavelCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        WaterLavelCharacteristic

        +
        public WaterLavelCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ActiveCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ActiveCharacteristic.html new file mode 100644 index 000000000..ac5b9d2dc --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ActiveCharacteristic.html @@ -0,0 +1,251 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.ActiveCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.ActiveCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ActiveEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ActiveEnum.html new file mode 100644 index 000000000..289f2a76f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ActiveEnum.html @@ -0,0 +1,340 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.ActiveEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.ActiveEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ActiveIdentifierCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ActiveIdentifierCharacteristic.html new file mode 100644 index 000000000..dd53a55fc --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ActiveIdentifierCharacteristic.html @@ -0,0 +1,196 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.ActiveIdentifierCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.ActiveIdentifierCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/AirPlayEnableCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/AirPlayEnableCharacteristic.html new file mode 100644 index 000000000..6cf792db2 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/AirPlayEnableCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.AirPlayEnableCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.AirPlayEnableCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ConfiguredNameCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ConfiguredNameCharacteristic.html new file mode 100644 index 000000000..d4b970d9b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ConfiguredNameCharacteristic.html @@ -0,0 +1,218 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.ConfiguredNameCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.ConfiguredNameCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/IdentifierCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/IdentifierCharacteristic.html new file mode 100644 index 000000000..977b8eca1 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/IdentifierCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.IdentifierCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.IdentifierCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/InUseCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/InUseCharacteristic.html new file mode 100644 index 000000000..50935f89b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/InUseCharacteristic.html @@ -0,0 +1,200 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.InUseCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.InUseCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/InUseEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/InUseEnum.html new file mode 100644 index 000000000..95afe282a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/InUseEnum.html @@ -0,0 +1,263 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.InUseEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.InUseEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/IsConfiguredCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/IsConfiguredCharacteristic.html new file mode 100644 index 000000000..161a967ca --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/IsConfiguredCharacteristic.html @@ -0,0 +1,210 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.IsConfiguredCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.IsConfiguredCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/IsConfiguredEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/IsConfiguredEnum.html new file mode 100644 index 000000000..bf0970af5 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/IsConfiguredEnum.html @@ -0,0 +1,324 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.IsConfiguredEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.IsConfiguredEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/NameCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/NameCharacteristic.html new file mode 100644 index 000000000..797577d53 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/NameCharacteristic.html @@ -0,0 +1,402 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.NameCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.NameCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ObstructionDetectedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ObstructionDetectedCharacteristic.html new file mode 100644 index 000000000..3e3b78a56 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ObstructionDetectedCharacteristic.html @@ -0,0 +1,219 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.ObstructionDetectedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.ObstructionDetectedCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/OnCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/OnCharacteristic.html new file mode 100644 index 000000000..ca728549c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/OnCharacteristic.html @@ -0,0 +1,205 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.OnCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.OnCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ProgramModeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ProgramModeCharacteristic.html new file mode 100644 index 000000000..549090920 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ProgramModeCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.ProgramModeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.ProgramModeCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ProgramModeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ProgramModeEnum.html new file mode 100644 index 000000000..7e921a15b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ProgramModeEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.ProgramModeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.ProgramModeEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ProgrammableSwitchEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ProgrammableSwitchEnum.html new file mode 100644 index 000000000..a76dc39e1 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ProgrammableSwitchEnum.html @@ -0,0 +1,284 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ProgrammableSwitchEventCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ProgrammableSwitchEventCharacteristic.html new file mode 100644 index 000000000..2da9eb237 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ProgrammableSwitchEventCharacteristic.html @@ -0,0 +1,196 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEventCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEventCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ServiceLabelIndexCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ServiceLabelIndexCharacteristic.html new file mode 100644 index 000000000..a1477d236 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ServiceLabelIndexCharacteristic.html @@ -0,0 +1,199 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.ServiceLabelIndexCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.ServiceLabelIndexCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ServiceLabelNamespaceCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ServiceLabelNamespaceCharacteristic.html new file mode 100644 index 000000000..1f11b7608 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ServiceLabelNamespaceCharacteristic.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.ServiceLabelNamespaceCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.ServiceLabelNamespaceCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ServiceLabelNamespaceEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ServiceLabelNamespaceEnum.html new file mode 100644 index 000000000..64164aa74 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/ServiceLabelNamespaceEnum.html @@ -0,0 +1,222 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.ServiceLabelNamespaceEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.ServiceLabelNamespaceEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusActiveCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusActiveCharacteristic.html new file mode 100644 index 000000000..be6a40891 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusActiveCharacteristic.html @@ -0,0 +1,244 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusFaultCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusFaultCharacteristic.html new file mode 100644 index 000000000..5b82fc19c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusFaultCharacteristic.html @@ -0,0 +1,264 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusFaultEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusFaultEnum.html new file mode 100644 index 000000000..c36c9292b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusFaultEnum.html @@ -0,0 +1,252 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.StatusFaultEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.StatusFaultEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusTamperedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusTamperedCharacteristic.html new file mode 100644 index 000000000..88e72c0a4 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusTamperedCharacteristic.html @@ -0,0 +1,249 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusTamperedEnum.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusTamperedEnum.html new file mode 100644 index 000000000..6af039825 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/StatusTamperedEnum.html @@ -0,0 +1,252 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.StatusTamperedEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.StatusTamperedEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/VersionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/VersionCharacteristic.html new file mode 100644 index 000000000..e4dffa584 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/VersionCharacteristic.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.VersionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.VersionCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/class-use/WaterLavelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/WaterLavelCharacteristic.html new file mode 100644 index 000000000..a9723e243 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/class-use/WaterLavelCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.common.WaterLavelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.common.WaterLavelCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/common/package-summary.html new file mode 100644 index 000000000..a0b180e36 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/package-summary.html @@ -0,0 +1,334 @@ + + + + + +io.github.hapjava.characteristics.impl.common (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.common

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/common/package-tree.html new file mode 100644 index 000000000..964832c12 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/package-tree.html @@ -0,0 +1,232 @@ + + + + + +io.github.hapjava.characteristics.impl.common Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.common

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/common/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/common/package-use.html new file mode 100644 index 000000000..97aee6b2a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/common/package-use.html @@ -0,0 +1,448 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.common (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.common

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/contactsensor/ContactSensorStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/ContactSensorStateCharacteristic.html new file mode 100644 index 000000000..e41b19f2e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/ContactSensorStateCharacteristic.html @@ -0,0 +1,335 @@ + + + + + +ContactSensorStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ContactSensorStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ContactSensorStateCharacteristic

        +
        public ContactSensorStateCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<ContactStateEnum>> getter,
        +                                        java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                        java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/contactsensor/ContactStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/ContactStateEnum.html new file mode 100644 index 000000000..a4752973b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/ContactStateEnum.html @@ -0,0 +1,413 @@ + + + + + +ContactStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum ContactStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      DETECTED 
      NOT_DETECTED 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static ContactStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static ContactStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ContactStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ContactStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ContactStateEnum c : ContactStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ContactStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static ContactStateEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/contactsensor/class-use/ContactSensorStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/class-use/ContactSensorStateCharacteristic.html new file mode 100644 index 000000000..3f80e82e3 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/class-use/ContactSensorStateCharacteristic.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.contactsensor.ContactSensorStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.contactsensor.ContactSensorStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/contactsensor/class-use/ContactStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/class-use/ContactStateEnum.html new file mode 100644 index 000000000..d59822191 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/class-use/ContactStateEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.contactsensor.ContactStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.contactsensor.ContactStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/contactsensor/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/package-summary.html new file mode 100644 index 000000000..d26562218 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/package-summary.html @@ -0,0 +1,185 @@ + + + + + +io.github.hapjava.characteristics.impl.contactsensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.contactsensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/contactsensor/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/package-tree.html new file mode 100644 index 000000000..b835c0ac4 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/package-tree.html @@ -0,0 +1,187 @@ + + + + + +io.github.hapjava.characteristics.impl.contactsensor Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.contactsensor

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/contactsensor/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/package-use.html new file mode 100644 index 000000000..de6e0cd5a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/contactsensor/package-use.html @@ -0,0 +1,231 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.contactsensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.contactsensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/CurrentFanStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/fan/CurrentFanStateCharacteristic.html new file mode 100644 index 000000000..b6ead5e0e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/CurrentFanStateCharacteristic.html @@ -0,0 +1,336 @@ + + + + + +CurrentFanStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentFanStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CurrentFanStateCharacteristic

        +
        public CurrentFanStateCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<CurrentFanStateEnum>> getter,
        +                                     java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                     java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/CurrentFanStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/fan/CurrentFanStateEnum.html new file mode 100644 index 000000000..70d001cd0 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/CurrentFanStateEnum.html @@ -0,0 +1,426 @@ + + + + + +CurrentFanStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum CurrentFanStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      BLOWING_AIR 
      IDLE 
      INACTIVE 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static CurrentFanStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static CurrentFanStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static CurrentFanStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CurrentFanStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CurrentFanStateEnum c : CurrentFanStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CurrentFanStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/LockPhysicalControlsCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/fan/LockPhysicalControlsCharacteristic.html new file mode 100644 index 000000000..34d9f3bb9 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/LockPhysicalControlsCharacteristic.html @@ -0,0 +1,337 @@ + + + + + +LockPhysicalControlsCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class LockPhysicalControlsCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/LockPhysicalControlsEnum.html b/apidocs/io/github/hapjava/characteristics/impl/fan/LockPhysicalControlsEnum.html new file mode 100644 index 000000000..f8f12ab32 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/LockPhysicalControlsEnum.html @@ -0,0 +1,414 @@ + + + + + +LockPhysicalControlsEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum LockPhysicalControlsEnum

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static LockPhysicalControlsEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (LockPhysicalControlsEnum c : LockPhysicalControlsEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static LockPhysicalControlsEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/RotationDirectionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/fan/RotationDirectionCharacteristic.html new file mode 100644 index 000000000..9e54ab1f2 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/RotationDirectionCharacteristic.html @@ -0,0 +1,337 @@ + + + + + +RotationDirectionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class RotationDirectionCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/RotationDirectionEnum.html b/apidocs/io/github/hapjava/characteristics/impl/fan/RotationDirectionEnum.html new file mode 100644 index 000000000..b796d1adf --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/RotationDirectionEnum.html @@ -0,0 +1,414 @@ + + + + + +RotationDirectionEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum RotationDirectionEnum

+
+
+ +
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static RotationDirectionEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static RotationDirectionEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static RotationDirectionEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static RotationDirectionEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (RotationDirectionEnum c : RotationDirectionEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static RotationDirectionEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/RotationSpeedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/fan/RotationSpeedCharacteristic.html new file mode 100644 index 000000000..902e5e861 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/RotationSpeedCharacteristic.html @@ -0,0 +1,427 @@ + + + + + +RotationSpeedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class RotationSpeedCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RotationSpeedCharacteristic

        +
        public RotationSpeedCharacteristic​(double minValue,
        +                                   double maxValue,
        +                                   double minStep,
        +                                   java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                   ExceptionalConsumer<java.lang.Double> setter,
        +                                   java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                   java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        RotationSpeedCharacteristic

        +
        public RotationSpeedCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                   ExceptionalConsumer<java.lang.Double> setter,
        +                                   java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                   java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/SwingModeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/fan/SwingModeCharacteristic.html new file mode 100644 index 000000000..f47ef8655 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/SwingModeCharacteristic.html @@ -0,0 +1,337 @@ + + + + + +SwingModeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SwingModeCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/SwingModeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/fan/SwingModeEnum.html new file mode 100644 index 000000000..79ed17d40 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/SwingModeEnum.html @@ -0,0 +1,414 @@ + + + + + +SwingModeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum SwingModeEnum

+
+
+ +
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static SwingModeEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static SwingModeEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static SwingModeEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        SWING_DISABLED

        +
        public static final SwingModeEnum SWING_DISABLED
        +
      • +
      + + + +
        +
      • +

        SWING_ENABLED

        +
        public static final SwingModeEnum SWING_ENABLED
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static SwingModeEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (SwingModeEnum c : SwingModeEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static SwingModeEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static SwingModeEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/TargetFanStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/fan/TargetFanStateCharacteristic.html new file mode 100644 index 000000000..d04693bbe --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/TargetFanStateCharacteristic.html @@ -0,0 +1,337 @@ + + + + + +TargetFanStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetFanStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/TargetFanStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/fan/TargetFanStateEnum.html new file mode 100644 index 000000000..7ad4c6d44 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/TargetFanStateEnum.html @@ -0,0 +1,414 @@ + + + + + +TargetFanStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum TargetFanStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      AUTO 
      MANUAL 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static TargetFanStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static TargetFanStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static TargetFanStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static TargetFanStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (TargetFanStateEnum c : TargetFanStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static TargetFanStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/CurrentFanStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/CurrentFanStateCharacteristic.html new file mode 100644 index 000000000..6b6f1a7ee --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/CurrentFanStateCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.fan.CurrentFanStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.fan.CurrentFanStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/CurrentFanStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/CurrentFanStateEnum.html new file mode 100644 index 000000000..e4d809825 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/CurrentFanStateEnum.html @@ -0,0 +1,252 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.fan.CurrentFanStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.fan.CurrentFanStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/LockPhysicalControlsCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/LockPhysicalControlsCharacteristic.html new file mode 100644 index 000000000..b6e264338 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/LockPhysicalControlsCharacteristic.html @@ -0,0 +1,209 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/LockPhysicalControlsEnum.html b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/LockPhysicalControlsEnum.html new file mode 100644 index 000000000..32ab9b008 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/LockPhysicalControlsEnum.html @@ -0,0 +1,277 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/RotationDirectionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/RotationDirectionCharacteristic.html new file mode 100644 index 000000000..a2f513d47 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/RotationDirectionCharacteristic.html @@ -0,0 +1,199 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.fan.RotationDirectionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.fan.RotationDirectionCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/RotationDirectionEnum.html b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/RotationDirectionEnum.html new file mode 100644 index 000000000..39af3d62b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/RotationDirectionEnum.html @@ -0,0 +1,277 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.fan.RotationDirectionEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.fan.RotationDirectionEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/RotationSpeedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/RotationSpeedCharacteristic.html new file mode 100644 index 000000000..e9f776d61 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/RotationSpeedCharacteristic.html @@ -0,0 +1,214 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.fan.RotationSpeedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.fan.RotationSpeedCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/SwingModeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/SwingModeCharacteristic.html new file mode 100644 index 000000000..f2bf73181 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/SwingModeCharacteristic.html @@ -0,0 +1,214 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.fan.SwingModeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.fan.SwingModeCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/SwingModeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/SwingModeEnum.html new file mode 100644 index 000000000..fcd9e261d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/SwingModeEnum.html @@ -0,0 +1,277 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.fan.SwingModeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.fan.SwingModeEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/TargetFanStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/TargetFanStateCharacteristic.html new file mode 100644 index 000000000..c0d615591 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/TargetFanStateCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.fan.TargetFanStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.fan.TargetFanStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/TargetFanStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/TargetFanStateEnum.html new file mode 100644 index 000000000..66f1e7557 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/class-use/TargetFanStateEnum.html @@ -0,0 +1,277 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.fan.TargetFanStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.fan.TargetFanStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/fan/package-summary.html new file mode 100644 index 000000000..229e9fa85 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/package-summary.html @@ -0,0 +1,239 @@ + + + + + +io.github.hapjava.characteristics.impl.fan (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.fan

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/fan/package-tree.html new file mode 100644 index 000000000..b118e9566 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/package-tree.html @@ -0,0 +1,200 @@ + + + + + +io.github.hapjava.characteristics.impl.fan Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.fan

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/fan/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/fan/package-use.html new file mode 100644 index 000000000..3a33e5705 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/fan/package-use.html @@ -0,0 +1,307 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.fan (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.fan

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/FilterChangeIndicationCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/FilterChangeIndicationCharacteristic.html new file mode 100644 index 000000000..f968d015e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/FilterChangeIndicationCharacteristic.html @@ -0,0 +1,334 @@ + + + + + +FilterChangeIndicationCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class FilterChangeIndicationCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FilterChangeIndicationCharacteristic

        +
        public FilterChangeIndicationCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<FilterChangeIndicationEnum>> getter,
        +                                            java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                            java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/FilterChangeIndicationEnum.html b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/FilterChangeIndicationEnum.html new file mode 100644 index 000000000..46b89a916 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/FilterChangeIndicationEnum.html @@ -0,0 +1,413 @@ + + + + + +FilterChangeIndicationEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum FilterChangeIndicationEnum

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static FilterChangeIndicationEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (FilterChangeIndicationEnum c : FilterChangeIndicationEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static FilterChangeIndicationEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/FilterLifeLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/FilterLifeLevelCharacteristic.html new file mode 100644 index 000000000..9ea635d1d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/FilterLifeLevelCharacteristic.html @@ -0,0 +1,317 @@ + + + + + +FilterLifeLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class FilterLifeLevelCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FilterLifeLevelCharacteristic

        +
        public FilterLifeLevelCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                     java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                     java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/ResetFilterIndicationCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/ResetFilterIndicationCharacteristic.html new file mode 100644 index 000000000..3f8c418f8 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/ResetFilterIndicationCharacteristic.html @@ -0,0 +1,298 @@ + + + + + +ResetFilterIndicationCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ResetFilterIndicationCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ResetFilterIndicationCharacteristic

        +
        public ResetFilterIndicationCharacteristic​(ExceptionalConsumer<java.lang.Integer> setter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/class-use/FilterChangeIndicationCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/class-use/FilterChangeIndicationCharacteristic.html new file mode 100644 index 000000000..ce494fee9 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/class-use/FilterChangeIndicationCharacteristic.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/class-use/FilterChangeIndicationEnum.html b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/class-use/FilterChangeIndicationEnum.html new file mode 100644 index 000000000..d3aa649b3 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/class-use/FilterChangeIndicationEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/class-use/FilterLifeLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/class-use/FilterLifeLevelCharacteristic.html new file mode 100644 index 000000000..05ea23d41 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/class-use/FilterLifeLevelCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.filtermaintenance.FilterLifeLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.filtermaintenance.FilterLifeLevelCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/class-use/ResetFilterIndicationCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/class-use/ResetFilterIndicationCharacteristic.html new file mode 100644 index 000000000..d7215d48c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/class-use/ResetFilterIndicationCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.filtermaintenance.ResetFilterIndicationCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.filtermaintenance.ResetFilterIndicationCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/package-summary.html new file mode 100644 index 000000000..18930c132 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/package-summary.html @@ -0,0 +1,191 @@ + + + + + +io.github.hapjava.characteristics.impl.filtermaintenance (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.filtermaintenance

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/package-tree.html new file mode 100644 index 000000000..6ed8479d4 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/package-tree.html @@ -0,0 +1,197 @@ + + + + + +io.github.hapjava.characteristics.impl.filtermaintenance Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.filtermaintenance

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/package-use.html new file mode 100644 index 000000000..6b770a6ee --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/filtermaintenance/package-use.html @@ -0,0 +1,237 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.filtermaintenance (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.filtermaintenance

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/garagedoor/CurrentDoorStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/CurrentDoorStateCharacteristic.html new file mode 100644 index 000000000..281f0bda5 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/CurrentDoorStateCharacteristic.html @@ -0,0 +1,335 @@ + + + + + +CurrentDoorStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentDoorStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CurrentDoorStateCharacteristic

        +
        public CurrentDoorStateCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<CurrentDoorStateEnum>> getter,
        +                                      java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                      java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/garagedoor/CurrentDoorStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/CurrentDoorStateEnum.html new file mode 100644 index 000000000..465485b92 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/CurrentDoorStateEnum.html @@ -0,0 +1,455 @@ + + + + + +CurrentDoorStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum CurrentDoorStateEnum

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    CharacteristicEnum, java.io.Serializable, java.lang.Comparable<CurrentDoorStateEnum>
    +
    +
    +
    public enum CurrentDoorStateEnum
    +extends java.lang.Enum<CurrentDoorStateEnum>
    +implements CharacteristicEnum
    +
    0 ”Open. The door is fully open.” 1 ”Closed. The door is fully closed.” 2 ”Opening. The door is + actively opening.” 3 ”Closing. The door is actively closing.” 4 ”Stopped. The door is not moving, + and it is not fully open nor fully closed.”
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static CurrentDoorStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static CurrentDoorStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static CurrentDoorStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CurrentDoorStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CurrentDoorStateEnum c : CurrentDoorStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CurrentDoorStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/garagedoor/TargetDoorStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/TargetDoorStateCharacteristic.html new file mode 100644 index 000000000..006ebffd7 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/TargetDoorStateCharacteristic.html @@ -0,0 +1,337 @@ + + + + + +TargetDoorStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetDoorStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/garagedoor/TargetDoorStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/TargetDoorStateEnum.html new file mode 100644 index 000000000..a89c96e0c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/TargetDoorStateEnum.html @@ -0,0 +1,414 @@ + + + + + +TargetDoorStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum TargetDoorStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      CLOSED 
      OPEN 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static TargetDoorStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static TargetDoorStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static TargetDoorStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static TargetDoorStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (TargetDoorStateEnum c : TargetDoorStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static TargetDoorStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/garagedoor/class-use/CurrentDoorStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/class-use/CurrentDoorStateCharacteristic.html new file mode 100644 index 000000000..94210d060 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/class-use/CurrentDoorStateCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/garagedoor/class-use/CurrentDoorStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/class-use/CurrentDoorStateEnum.html new file mode 100644 index 000000000..7c91886ac --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/class-use/CurrentDoorStateEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/garagedoor/class-use/TargetDoorStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/class-use/TargetDoorStateCharacteristic.html new file mode 100644 index 000000000..49bd91d2a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/class-use/TargetDoorStateCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/garagedoor/class-use/TargetDoorStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/class-use/TargetDoorStateEnum.html new file mode 100644 index 000000000..12992724c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/class-use/TargetDoorStateEnum.html @@ -0,0 +1,279 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/garagedoor/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/package-summary.html new file mode 100644 index 000000000..1544e29eb --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/package-summary.html @@ -0,0 +1,199 @@ + + + + + +io.github.hapjava.characteristics.impl.garagedoor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.garagedoor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/garagedoor/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/package-tree.html new file mode 100644 index 000000000..442707d57 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/package-tree.html @@ -0,0 +1,189 @@ + + + + + +io.github.hapjava.characteristics.impl.garagedoor Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.garagedoor

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object + +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/garagedoor/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/package-use.html new file mode 100644 index 000000000..7bd7b6dfa --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/garagedoor/package-use.html @@ -0,0 +1,253 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.garagedoor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.garagedoor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/heatercooler/CurrentHeaterCoolerStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/CurrentHeaterCoolerStateCharacteristic.html new file mode 100644 index 000000000..5b3a373b8 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/CurrentHeaterCoolerStateCharacteristic.html @@ -0,0 +1,337 @@ + + + + + +CurrentHeaterCoolerStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentHeaterCoolerStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/heatercooler/CurrentHeaterCoolerStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/CurrentHeaterCoolerStateEnum.html new file mode 100644 index 000000000..2219c7b8a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/CurrentHeaterCoolerStateEnum.html @@ -0,0 +1,440 @@ + + + + + +CurrentHeaterCoolerStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum CurrentHeaterCoolerStateEnum

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CurrentHeaterCoolerStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CurrentHeaterCoolerStateEnum c : CurrentHeaterCoolerStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CurrentHeaterCoolerStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/heatercooler/TargetHeaterCoolerStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/TargetHeaterCoolerStateCharacteristic.html new file mode 100644 index 000000000..135aabedf --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/TargetHeaterCoolerStateCharacteristic.html @@ -0,0 +1,339 @@ + + + + + +TargetHeaterCoolerStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetHeaterCoolerStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/heatercooler/TargetHeaterCoolerStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/TargetHeaterCoolerStateEnum.html new file mode 100644 index 000000000..d28f73a34 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/TargetHeaterCoolerStateEnum.html @@ -0,0 +1,427 @@ + + + + + +TargetHeaterCoolerStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum TargetHeaterCoolerStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      AUTO 
      COOL 
      HEAT 
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static TargetHeaterCoolerStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (TargetHeaterCoolerStateEnum c : TargetHeaterCoolerStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static TargetHeaterCoolerStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/heatercooler/class-use/CurrentHeaterCoolerStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/class-use/CurrentHeaterCoolerStateCharacteristic.html new file mode 100644 index 000000000..15608d4a5 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/class-use/CurrentHeaterCoolerStateCharacteristic.html @@ -0,0 +1,195 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/heatercooler/class-use/CurrentHeaterCoolerStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/class-use/CurrentHeaterCoolerStateEnum.html new file mode 100644 index 000000000..88fd3a670 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/class-use/CurrentHeaterCoolerStateEnum.html @@ -0,0 +1,288 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/heatercooler/class-use/TargetHeaterCoolerStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/class-use/TargetHeaterCoolerStateCharacteristic.html new file mode 100644 index 000000000..22e3db7c3 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/class-use/TargetHeaterCoolerStateCharacteristic.html @@ -0,0 +1,195 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/heatercooler/class-use/TargetHeaterCoolerStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/class-use/TargetHeaterCoolerStateEnum.html new file mode 100644 index 000000000..73d411bde --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/class-use/TargetHeaterCoolerStateEnum.html @@ -0,0 +1,315 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/heatercooler/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/package-summary.html new file mode 100644 index 000000000..aebedea2e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/package-summary.html @@ -0,0 +1,199 @@ + + + + + +io.github.hapjava.characteristics.impl.heatercooler (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.heatercooler

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/heatercooler/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/package-tree.html new file mode 100644 index 000000000..d4f54cc70 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/package-tree.html @@ -0,0 +1,189 @@ + + + + + +io.github.hapjava.characteristics.impl.heatercooler Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.heatercooler

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/heatercooler/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/package-use.html new file mode 100644 index 000000000..5812181fb --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/heatercooler/package-use.html @@ -0,0 +1,253 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.heatercooler (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.heatercooler

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/CurrentHumidifierDehumidifierStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/CurrentHumidifierDehumidifierStateCharacteristic.html new file mode 100644 index 000000000..1fb8b17fc --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/CurrentHumidifierDehumidifierStateCharacteristic.html @@ -0,0 +1,335 @@ + + + + + +CurrentHumidifierDehumidifierStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentHumidifierDehumidifierStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/CurrentHumidifierDehumidifierStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/CurrentHumidifierDehumidifierStateEnum.html new file mode 100644 index 000000000..00b9c2ffa --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/CurrentHumidifierDehumidifierStateEnum.html @@ -0,0 +1,440 @@ + + + + + +CurrentHumidifierDehumidifierStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum CurrentHumidifierDehumidifierStateEnum

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CurrentHumidifierDehumidifierStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CurrentHumidifierDehumidifierStateEnum c : CurrentHumidifierDehumidifierStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CurrentHumidifierDehumidifierStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/HumidityDehumidifierThresholdCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/HumidityDehumidifierThresholdCharacteristic.html new file mode 100644 index 000000000..3c1bb22af --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/HumidityDehumidifierThresholdCharacteristic.html @@ -0,0 +1,306 @@ + + + + + +HumidityDehumidifierThresholdCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class HumidityDehumidifierThresholdCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HumidityDehumidifierThresholdCharacteristic

        +
        public HumidityDehumidifierThresholdCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                                   ExceptionalConsumer<java.lang.Double> setter,
        +                                                   java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                                   java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/HumidityHumidifierThresholdCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/HumidityHumidifierThresholdCharacteristic.html new file mode 100644 index 000000000..a128564a9 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/HumidityHumidifierThresholdCharacteristic.html @@ -0,0 +1,306 @@ + + + + + +HumidityHumidifierThresholdCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class HumidityHumidifierThresholdCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HumidityHumidifierThresholdCharacteristic

        +
        public HumidityHumidifierThresholdCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                                 ExceptionalConsumer<java.lang.Double> setter,
        +                                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                                 java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/TargetHumidifierDehumidifierStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/TargetHumidifierDehumidifierStateCharacteristic.html new file mode 100644 index 000000000..ef9ba7965 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/TargetHumidifierDehumidifierStateCharacteristic.html @@ -0,0 +1,339 @@ + + + + + +TargetHumidifierDehumidifierStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetHumidifierDehumidifierStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/TargetHumidifierDehumidifierStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/TargetHumidifierDehumidifierStateEnum.html new file mode 100644 index 000000000..ce02a2391 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/TargetHumidifierDehumidifierStateEnum.html @@ -0,0 +1,427 @@ + + + + + +TargetHumidifierDehumidifierStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum TargetHumidifierDehumidifierStateEnum

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static TargetHumidifierDehumidifierStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (TargetHumidifierDehumidifierStateEnum c : TargetHumidifierDehumidifierStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static TargetHumidifierDehumidifierStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/CurrentHumidifierDehumidifierStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/CurrentHumidifierDehumidifierStateCharacteristic.html new file mode 100644 index 000000000..5965a2963 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/CurrentHumidifierDehumidifierStateCharacteristic.html @@ -0,0 +1,195 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/CurrentHumidifierDehumidifierStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/CurrentHumidifierDehumidifierStateEnum.html new file mode 100644 index 000000000..744a01973 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/CurrentHumidifierDehumidifierStateEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/HumidityDehumidifierThresholdCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/HumidityDehumidifierThresholdCharacteristic.html new file mode 100644 index 000000000..4b15e06d6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/HumidityDehumidifierThresholdCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.humidifier.HumidityDehumidifierThresholdCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.humidifier.HumidityDehumidifierThresholdCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/HumidityHumidifierThresholdCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/HumidityHumidifierThresholdCharacteristic.html new file mode 100644 index 000000000..02e42e9b1 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/HumidityHumidifierThresholdCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.humidifier.HumidityHumidifierThresholdCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.humidifier.HumidityHumidifierThresholdCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/TargetHumidifierDehumidifierStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/TargetHumidifierDehumidifierStateCharacteristic.html new file mode 100644 index 000000000..9e1f09519 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/TargetHumidifierDehumidifierStateCharacteristic.html @@ -0,0 +1,195 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/TargetHumidifierDehumidifierStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/TargetHumidifierDehumidifierStateEnum.html new file mode 100644 index 000000000..af88bac7b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/class-use/TargetHumidifierDehumidifierStateEnum.html @@ -0,0 +1,315 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/package-summary.html new file mode 100644 index 000000000..b8c4d0567 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/package-summary.html @@ -0,0 +1,213 @@ + + + + + +io.github.hapjava.characteristics.impl.humidifier (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.humidifier

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/package-tree.html new file mode 100644 index 000000000..f0ef8c3b1 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/package-tree.html @@ -0,0 +1,195 @@ + + + + + +io.github.hapjava.characteristics.impl.humidifier Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.humidifier

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humidifier/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/humidifier/package-use.html new file mode 100644 index 000000000..86df11d45 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humidifier/package-use.html @@ -0,0 +1,267 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.humidifier (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.humidifier

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/CurrentRelativeHumidityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/CurrentRelativeHumidityCharacteristic.html new file mode 100644 index 000000000..0283b1754 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/CurrentRelativeHumidityCharacteristic.html @@ -0,0 +1,303 @@ + + + + + +CurrentRelativeHumidityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentRelativeHumidityCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CurrentRelativeHumidityCharacteristic

        +
        public CurrentRelativeHumidityCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                             java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                             java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/TargetRelativeHumidityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/TargetRelativeHumidityCharacteristic.html new file mode 100644 index 000000000..ad3eafa59 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/TargetRelativeHumidityCharacteristic.html @@ -0,0 +1,305 @@ + + + + + +TargetRelativeHumidityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetRelativeHumidityCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TargetRelativeHumidityCharacteristic

        +
        public TargetRelativeHumidityCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                            ExceptionalConsumer<java.lang.Double> setter,
        +                                            java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                            java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/class-use/CurrentRelativeHumidityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/class-use/CurrentRelativeHumidityCharacteristic.html new file mode 100644 index 000000000..fa176501a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/class-use/CurrentRelativeHumidityCharacteristic.html @@ -0,0 +1,214 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.humiditysensor.CurrentRelativeHumidityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.humiditysensor.CurrentRelativeHumidityCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/class-use/TargetRelativeHumidityCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/class-use/TargetRelativeHumidityCharacteristic.html new file mode 100644 index 000000000..a01bde010 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/class-use/TargetRelativeHumidityCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.humiditysensor.TargetRelativeHumidityCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.humiditysensor.TargetRelativeHumidityCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/package-summary.html new file mode 100644 index 000000000..664fb8739 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/package-summary.html @@ -0,0 +1,176 @@ + + + + + +io.github.hapjava.characteristics.impl.humiditysensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.humiditysensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/package-tree.html new file mode 100644 index 000000000..92d2f3635 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/package-tree.html @@ -0,0 +1,174 @@ + + + + + +io.github.hapjava.characteristics.impl.humiditysensor Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.humiditysensor

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/package-use.html new file mode 100644 index 000000000..1bf176307 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/humiditysensor/package-use.html @@ -0,0 +1,193 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.humiditysensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.humiditysensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/CurrentVisibilityStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/CurrentVisibilityStateCharacteristic.html new file mode 100644 index 000000000..305e4502f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/CurrentVisibilityStateCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +CurrentVisibilityStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentVisibilityStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CurrentVisibilityStateCharacteristic

        +
        public CurrentVisibilityStateCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<CurrentVisibilityStateEnum>> getter,
        +                                            java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                            java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/CurrentVisibilityStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/CurrentVisibilityStateEnum.html new file mode 100644 index 000000000..f1435a0b6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/CurrentVisibilityStateEnum.html @@ -0,0 +1,439 @@ + + + + + +CurrentVisibilityStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum CurrentVisibilityStateEnum

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CurrentVisibilityStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CurrentVisibilityStateEnum c : CurrentVisibilityStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CurrentVisibilityStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/InputDeviceTypeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/InputDeviceTypeCharacteristic.html new file mode 100644 index 000000000..9c8622928 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/InputDeviceTypeCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +InputDeviceTypeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class InputDeviceTypeCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        InputDeviceTypeCharacteristic

        +
        public InputDeviceTypeCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<InputDeviceTypeEnum>> getter,
        +                                     java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                     java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/InputDeviceTypeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/InputDeviceTypeEnum.html new file mode 100644 index 000000000..c1ead5757 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/InputDeviceTypeEnum.html @@ -0,0 +1,465 @@ + + + + + +InputDeviceTypeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum InputDeviceTypeEnum

+
+
+ +
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static InputDeviceTypeEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static InputDeviceTypeEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static InputDeviceTypeEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static InputDeviceTypeEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (InputDeviceTypeEnum c : InputDeviceTypeEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static InputDeviceTypeEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/InputSourceTypeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/InputSourceTypeCharacteristic.html new file mode 100644 index 000000000..6e6a7a6b5 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/InputSourceTypeCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +InputSourceTypeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class InputSourceTypeCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        InputSourceTypeCharacteristic

        +
        public InputSourceTypeCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<InputSourceTypeEnum>> getter,
        +                                     java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                     java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/InputSourceTypeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/InputSourceTypeEnum.html new file mode 100644 index 000000000..1f1670175 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/InputSourceTypeEnum.html @@ -0,0 +1,530 @@ + + + + + +InputSourceTypeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum InputSourceTypeEnum

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static InputSourceTypeEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (InputSourceTypeEnum c : InputSourceTypeEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static InputSourceTypeEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/TargetVisibilityStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/TargetVisibilityStateCharacteristic.html new file mode 100644 index 000000000..54d5ad1d7 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/TargetVisibilityStateCharacteristic.html @@ -0,0 +1,322 @@ + + + + + +TargetVisibilityStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetVisibilityStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/TargetVisibilityStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/TargetVisibilityStateEnum.html new file mode 100644 index 000000000..ffd09c61f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/TargetVisibilityStateEnum.html @@ -0,0 +1,413 @@ + + + + + +TargetVisibilityStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum TargetVisibilityStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      HIDDEN 
      SHOWN 
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static TargetVisibilityStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (TargetVisibilityStateEnum c : TargetVisibilityStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static TargetVisibilityStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/CurrentVisibilityStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/CurrentVisibilityStateCharacteristic.html new file mode 100644 index 000000000..26399e304 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/CurrentVisibilityStateCharacteristic.html @@ -0,0 +1,195 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/CurrentVisibilityStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/CurrentVisibilityStateEnum.html new file mode 100644 index 000000000..ec05f4698 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/CurrentVisibilityStateEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/InputDeviceTypeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/InputDeviceTypeCharacteristic.html new file mode 100644 index 000000000..3a92e280d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/InputDeviceTypeCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/InputDeviceTypeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/InputDeviceTypeEnum.html new file mode 100644 index 000000000..9bbb7df26 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/InputDeviceTypeEnum.html @@ -0,0 +1,252 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/InputSourceTypeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/InputSourceTypeCharacteristic.html new file mode 100644 index 000000000..86b1f6ae1 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/InputSourceTypeCharacteristic.html @@ -0,0 +1,195 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/InputSourceTypeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/InputSourceTypeEnum.html new file mode 100644 index 000000000..897aa2687 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/InputSourceTypeEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/TargetVisibilityStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/TargetVisibilityStateCharacteristic.html new file mode 100644 index 000000000..f2a2d58ea --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/TargetVisibilityStateCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/TargetVisibilityStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/TargetVisibilityStateEnum.html new file mode 100644 index 000000000..18915dc8a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/class-use/TargetVisibilityStateEnum.html @@ -0,0 +1,277 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/package-summary.html new file mode 100644 index 000000000..f2bb8895a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/package-summary.html @@ -0,0 +1,215 @@ + + + + + +io.github.hapjava.characteristics.impl.inputsource (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.inputsource

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/package-tree.html new file mode 100644 index 000000000..09d79e750 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/package-tree.html @@ -0,0 +1,193 @@ + + + + + +io.github.hapjava.characteristics.impl.inputsource Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.inputsource

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/inputsource/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/inputsource/package-use.html new file mode 100644 index 000000000..23bad833f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/inputsource/package-use.html @@ -0,0 +1,290 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.inputsource (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.inputsource

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/leaksensor/LeakDetectedStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/LeakDetectedStateCharacteristic.html new file mode 100644 index 000000000..04ea54145 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/LeakDetectedStateCharacteristic.html @@ -0,0 +1,335 @@ + + + + + +LeakDetectedStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class LeakDetectedStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LeakDetectedStateCharacteristic

        +
        public LeakDetectedStateCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<LeakDetectedStateEnum>> getter,
        +                                       java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                       java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/leaksensor/LeakDetectedStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/LeakDetectedStateEnum.html new file mode 100644 index 000000000..6f8e17520 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/LeakDetectedStateEnum.html @@ -0,0 +1,414 @@ + + + + + +LeakDetectedStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum LeakDetectedStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static LeakDetectedStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static LeakDetectedStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static LeakDetectedStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static LeakDetectedStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (LeakDetectedStateEnum c : LeakDetectedStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static LeakDetectedStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/leaksensor/class-use/LeakDetectedStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/class-use/LeakDetectedStateCharacteristic.html new file mode 100644 index 000000000..252a73290 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/class-use/LeakDetectedStateCharacteristic.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/leaksensor/class-use/LeakDetectedStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/class-use/LeakDetectedStateEnum.html new file mode 100644 index 000000000..a68190595 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/class-use/LeakDetectedStateEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/leaksensor/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/package-summary.html new file mode 100644 index 000000000..6d310c79f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/package-summary.html @@ -0,0 +1,187 @@ + + + + + +io.github.hapjava.characteristics.impl.leaksensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.leaksensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/leaksensor/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/package-tree.html new file mode 100644 index 000000000..98e072df2 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/package-tree.html @@ -0,0 +1,187 @@ + + + + + +io.github.hapjava.characteristics.impl.leaksensor Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.leaksensor

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/leaksensor/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/package-use.html new file mode 100644 index 000000000..026324c01 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/leaksensor/package-use.html @@ -0,0 +1,235 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.leaksensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.leaksensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightbulb/BrightnessCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/BrightnessCharacteristic.html new file mode 100644 index 000000000..ad63324a6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/BrightnessCharacteristic.html @@ -0,0 +1,321 @@ + + + + + +BrightnessCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class BrightnessCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        BrightnessCharacteristic

        +
        public BrightnessCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                ExceptionalConsumer<java.lang.Integer> setter,
        +                                java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightbulb/ColorTemperatureCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/ColorTemperatureCharacteristic.html new file mode 100644 index 000000000..f77ae3b0c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/ColorTemperatureCharacteristic.html @@ -0,0 +1,407 @@ + + + + + +ColorTemperatureCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ColorTemperatureCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ColorTemperatureCharacteristic

        +
        public ColorTemperatureCharacteristic​(int minValue,
        +                                      int maxValue,
        +                                      java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                      ExceptionalConsumer<java.lang.Integer> setter,
        +                                      java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                      java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        ColorTemperatureCharacteristic

        +
        public ColorTemperatureCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                      ExceptionalConsumer<java.lang.Integer> setter,
        +                                      java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                      java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightbulb/HueCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/HueCharacteristic.html new file mode 100644 index 000000000..c699b002c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/HueCharacteristic.html @@ -0,0 +1,305 @@ + + + + + +HueCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class HueCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HueCharacteristic

        +
        public HueCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                         ExceptionalConsumer<java.lang.Double> setter,
        +                         java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                         java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightbulb/SaturationCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/SaturationCharacteristic.html new file mode 100644 index 000000000..b85fbde05 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/SaturationCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +SaturationCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SaturationCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SaturationCharacteristic

        +
        public SaturationCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                ExceptionalConsumer<java.lang.Double> setter,
        +                                java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightbulb/class-use/BrightnessCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/class-use/BrightnessCharacteristic.html new file mode 100644 index 000000000..aec7b63b8 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/class-use/BrightnessCharacteristic.html @@ -0,0 +1,204 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.lightbulb.BrightnessCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.lightbulb.BrightnessCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightbulb/class-use/ColorTemperatureCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/class-use/ColorTemperatureCharacteristic.html new file mode 100644 index 000000000..90036f482 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/class-use/ColorTemperatureCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.lightbulb.ColorTemperatureCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.lightbulb.ColorTemperatureCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightbulb/class-use/HueCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/class-use/HueCharacteristic.html new file mode 100644 index 000000000..2d7c9a637 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/class-use/HueCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.lightbulb.HueCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.lightbulb.HueCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightbulb/class-use/SaturationCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/class-use/SaturationCharacteristic.html new file mode 100644 index 000000000..d9abc4c03 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/class-use/SaturationCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.lightbulb.SaturationCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.lightbulb.SaturationCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightbulb/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/package-summary.html new file mode 100644 index 000000000..c9770d2d8 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/package-summary.html @@ -0,0 +1,189 @@ + + + + + +io.github.hapjava.characteristics.impl.lightbulb (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.lightbulb

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightbulb/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/package-tree.html new file mode 100644 index 000000000..645f5f00f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/package-tree.html @@ -0,0 +1,180 @@ + + + + + +io.github.hapjava.characteristics.impl.lightbulb Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.lightbulb

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightbulb/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/package-use.html new file mode 100644 index 000000000..7261b6d5f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightbulb/package-use.html @@ -0,0 +1,206 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.lightbulb (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.lightbulb

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightsensor/CurrentAmbientLightLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lightsensor/CurrentAmbientLightLevelCharacteristic.html new file mode 100644 index 000000000..ce1e9b95f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightsensor/CurrentAmbientLightLevelCharacteristic.html @@ -0,0 +1,408 @@ + + + + + +CurrentAmbientLightLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentAmbientLightLevelCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CurrentAmbientLightLevelCharacteristic

        +
        public CurrentAmbientLightLevelCharacteristic​(double minValue,
        +                                              double maxValue,
        +                                              double minStep,
        +                                              java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                              java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                              java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        CurrentAmbientLightLevelCharacteristic

        +
        public CurrentAmbientLightLevelCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                              java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                              java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightsensor/class-use/CurrentAmbientLightLevelCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lightsensor/class-use/CurrentAmbientLightLevelCharacteristic.html new file mode 100644 index 000000000..0da4e0473 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightsensor/class-use/CurrentAmbientLightLevelCharacteristic.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.lightsensor.CurrentAmbientLightLevelCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.lightsensor.CurrentAmbientLightLevelCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightsensor/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/lightsensor/package-summary.html new file mode 100644 index 000000000..abc314fd7 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightsensor/package-summary.html @@ -0,0 +1,170 @@ + + + + + +io.github.hapjava.characteristics.impl.lightsensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.lightsensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightsensor/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/lightsensor/package-tree.html new file mode 100644 index 000000000..ccbe5d831 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightsensor/package-tree.html @@ -0,0 +1,173 @@ + + + + + +io.github.hapjava.characteristics.impl.lightsensor Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.lightsensor

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lightsensor/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/lightsensor/package-use.html new file mode 100644 index 000000000..8b25af8a8 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lightsensor/package-use.html @@ -0,0 +1,187 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.lightsensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.lightsensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lock/LockCurrentStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lock/LockCurrentStateCharacteristic.html new file mode 100644 index 000000000..1cd2b567b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lock/LockCurrentStateCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +LockCurrentStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class LockCurrentStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LockCurrentStateCharacteristic

        +
        public LockCurrentStateCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<LockCurrentStateEnum>> getter,
        +                                      java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                      java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lock/LockCurrentStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/lock/LockCurrentStateEnum.html new file mode 100644 index 000000000..a053530bf --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lock/LockCurrentStateEnum.html @@ -0,0 +1,440 @@ + + + + + +LockCurrentStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum LockCurrentStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static LockCurrentStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static LockCurrentStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static LockCurrentStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static LockCurrentStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (LockCurrentStateEnum c : LockCurrentStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static LockCurrentStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lock/LockTargetStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lock/LockTargetStateCharacteristic.html new file mode 100644 index 000000000..3e8f0a300 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lock/LockTargetStateCharacteristic.html @@ -0,0 +1,322 @@ + + + + + +LockTargetStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class LockTargetStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lock/LockTargetStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/lock/LockTargetStateEnum.html new file mode 100644 index 000000000..4addc6e3c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lock/LockTargetStateEnum.html @@ -0,0 +1,414 @@ + + + + + +LockTargetStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum LockTargetStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      SECURED 
      UNSECURED 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static LockTargetStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static LockTargetStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static LockTargetStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static LockTargetStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (LockTargetStateEnum c : LockTargetStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static LockTargetStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lock/class-use/LockCurrentStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lock/class-use/LockCurrentStateCharacteristic.html new file mode 100644 index 000000000..af98f5477 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lock/class-use/LockCurrentStateCharacteristic.html @@ -0,0 +1,208 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.lock.LockCurrentStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.lock.LockCurrentStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lock/class-use/LockCurrentStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/lock/class-use/LockCurrentStateEnum.html new file mode 100644 index 000000000..edf10b41c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lock/class-use/LockCurrentStateEnum.html @@ -0,0 +1,282 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.lock.LockCurrentStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.lock.LockCurrentStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lock/class-use/LockTargetStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/lock/class-use/LockTargetStateCharacteristic.html new file mode 100644 index 000000000..fbe91aa09 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lock/class-use/LockTargetStateCharacteristic.html @@ -0,0 +1,208 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.lock.LockTargetStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.lock.LockTargetStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lock/class-use/LockTargetStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/lock/class-use/LockTargetStateEnum.html new file mode 100644 index 000000000..7ca2f185d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lock/class-use/LockTargetStateEnum.html @@ -0,0 +1,324 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.lock.LockTargetStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.lock.LockTargetStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lock/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/lock/package-summary.html new file mode 100644 index 000000000..134c1b3b3 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lock/package-summary.html @@ -0,0 +1,199 @@ + + + + + +io.github.hapjava.characteristics.impl.lock (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.lock

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lock/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/lock/package-tree.html new file mode 100644 index 000000000..1732c1f67 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lock/package-tree.html @@ -0,0 +1,189 @@ + + + + + +io.github.hapjava.characteristics.impl.lock Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.lock

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/lock/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/lock/package-use.html new file mode 100644 index 000000000..14a694caa --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/lock/package-use.html @@ -0,0 +1,282 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.lock (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.lock

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/motionsensor/MotionDetectedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/motionsensor/MotionDetectedCharacteristic.html new file mode 100644 index 000000000..b0c999e23 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/motionsensor/MotionDetectedCharacteristic.html @@ -0,0 +1,303 @@ + + + + + +MotionDetectedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class MotionDetectedCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MotionDetectedCharacteristic

        +
        public MotionDetectedCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Boolean>> getter,
        +                                    java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                    java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/motionsensor/class-use/MotionDetectedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/motionsensor/class-use/MotionDetectedCharacteristic.html new file mode 100644 index 000000000..43330ec39 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/motionsensor/class-use/MotionDetectedCharacteristic.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.motionsensor.MotionDetectedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.motionsensor.MotionDetectedCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/motionsensor/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/motionsensor/package-summary.html new file mode 100644 index 000000000..280e50d18 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/motionsensor/package-summary.html @@ -0,0 +1,170 @@ + + + + + +io.github.hapjava.characteristics.impl.motionsensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.motionsensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/motionsensor/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/motionsensor/package-tree.html new file mode 100644 index 000000000..d070ed317 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/motionsensor/package-tree.html @@ -0,0 +1,173 @@ + + + + + +io.github.hapjava.characteristics.impl.motionsensor Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.motionsensor

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/motionsensor/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/motionsensor/package-use.html new file mode 100644 index 000000000..8a7613513 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/motionsensor/package-use.html @@ -0,0 +1,187 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.motionsensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.motionsensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/OccupancyDetectedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/OccupancyDetectedCharacteristic.html new file mode 100644 index 000000000..fe6511974 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/OccupancyDetectedCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +OccupancyDetectedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class OccupancyDetectedCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OccupancyDetectedCharacteristic

        +
        public OccupancyDetectedCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<OccupancyDetectedEnum>> getter,
        +                                       java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                       java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/OccupancyDetectedEnum.html b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/OccupancyDetectedEnum.html new file mode 100644 index 000000000..dc75c4861 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/OccupancyDetectedEnum.html @@ -0,0 +1,414 @@ + + + + + +OccupancyDetectedEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum OccupancyDetectedEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      DETECTED 
      NOT_DETECTED 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static OccupancyDetectedEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static OccupancyDetectedEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static OccupancyDetectedEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static OccupancyDetectedEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (OccupancyDetectedEnum c : OccupancyDetectedEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static OccupancyDetectedEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/class-use/OccupancyDetectedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/class-use/OccupancyDetectedCharacteristic.html new file mode 100644 index 000000000..5a9773b87 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/class-use/OccupancyDetectedCharacteristic.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/class-use/OccupancyDetectedEnum.html b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/class-use/OccupancyDetectedEnum.html new file mode 100644 index 000000000..8a2170f46 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/class-use/OccupancyDetectedEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/package-summary.html new file mode 100644 index 000000000..321337ea6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/package-summary.html @@ -0,0 +1,187 @@ + + + + + +io.github.hapjava.characteristics.impl.occupancysensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.occupancysensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/package-tree.html new file mode 100644 index 000000000..c659e88bb --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/package-tree.html @@ -0,0 +1,187 @@ + + + + + +io.github.hapjava.characteristics.impl.occupancysensor Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.occupancysensor

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/package-use.html new file mode 100644 index 000000000..1ebdceaf1 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/occupancysensor/package-use.html @@ -0,0 +1,235 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.occupancysensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.occupancysensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/outlet/OutletInUseCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/outlet/OutletInUseCharacteristic.html new file mode 100644 index 000000000..025d2ac7b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/outlet/OutletInUseCharacteristic.html @@ -0,0 +1,304 @@ + + + + + +OutletInUseCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class OutletInUseCharacteristic

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Characteristic, EventableCharacteristic
    +
    +
    +
    public class OutletInUseCharacteristic
    +extends BooleanCharacteristic
    +
    This characteristic describes if the power outlet has an appliance physically plugged in. This + characteristic is set to True even if the plugged-in appliance is off.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        OutletInUseCharacteristic

        +
        public OutletInUseCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Boolean>> getter,
        +                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                 java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/outlet/class-use/OutletInUseCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/outlet/class-use/OutletInUseCharacteristic.html new file mode 100644 index 000000000..332df7d28 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/outlet/class-use/OutletInUseCharacteristic.html @@ -0,0 +1,193 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.outlet.OutletInUseCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.outlet.OutletInUseCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/outlet/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/outlet/package-summary.html new file mode 100644 index 000000000..1ddf1066d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/outlet/package-summary.html @@ -0,0 +1,170 @@ + + + + + +io.github.hapjava.characteristics.impl.outlet (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.outlet

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/outlet/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/outlet/package-tree.html new file mode 100644 index 000000000..803946c38 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/outlet/package-tree.html @@ -0,0 +1,173 @@ + + + + + +io.github.hapjava.characteristics.impl.outlet Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.outlet

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/outlet/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/outlet/package-use.html new file mode 100644 index 000000000..ce91abe4e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/outlet/package-use.html @@ -0,0 +1,187 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.outlet (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.outlet

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/CurrentSecuritySystemStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/CurrentSecuritySystemStateCharacteristic.html new file mode 100644 index 000000000..aa5443c31 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/CurrentSecuritySystemStateCharacteristic.html @@ -0,0 +1,322 @@ + + + + + +CurrentSecuritySystemStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentSecuritySystemStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/CurrentSecuritySystemStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/CurrentSecuritySystemStateEnum.html new file mode 100644 index 000000000..294dab8ab --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/CurrentSecuritySystemStateEnum.html @@ -0,0 +1,475 @@ + + + + + +CurrentSecuritySystemStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum CurrentSecuritySystemStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      AWAY_ARM +
      The home is unoccupied.
      +
      DISARMED +
      The security system is disarmed.
      +
      NIGHT_ARM +
      The home is occupied and residents are sleeping.
      +
      STAY_ARM +
      The home is occupied and residents are active.
      +
      TRIGGERED +
      The security system is triggered.
      +
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CurrentSecuritySystemStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CurrentSecuritySystemStateEnum c : CurrentSecuritySystemStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CurrentSecuritySystemStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/SecuritySystemAlarmTypeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/SecuritySystemAlarmTypeCharacteristic.html new file mode 100644 index 000000000..ecf37f346 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/SecuritySystemAlarmTypeCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +SecuritySystemAlarmTypeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SecuritySystemAlarmTypeCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SecuritySystemAlarmTypeCharacteristic

        +
        public SecuritySystemAlarmTypeCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<SecuritySystemAlarmTypeEnum>> getter,
        +                                             java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                             java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/SecuritySystemAlarmTypeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/SecuritySystemAlarmTypeEnum.html new file mode 100644 index 000000000..6c8f7a29f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/SecuritySystemAlarmTypeEnum.html @@ -0,0 +1,427 @@ + + + + + +SecuritySystemAlarmTypeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum SecuritySystemAlarmTypeEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      NO_ALARM +
      Alarm conditions are cleared
      +
      UNKNOWN +
      Alarm type is not known
      +
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static SecuritySystemAlarmTypeEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (SecuritySystemAlarmTypeEnum c : SecuritySystemAlarmTypeEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static SecuritySystemAlarmTypeEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/TargetSecuritySystemStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/TargetSecuritySystemStateCharacteristic.html new file mode 100644 index 000000000..f0d8117bd --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/TargetSecuritySystemStateCharacteristic.html @@ -0,0 +1,324 @@ + + + + + +TargetSecuritySystemStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetSecuritySystemStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/TargetSecuritySystemStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/TargetSecuritySystemStateEnum.html new file mode 100644 index 000000000..33108bef5 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/TargetSecuritySystemStateEnum.html @@ -0,0 +1,460 @@ + + + + + +TargetSecuritySystemStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum TargetSecuritySystemStateEnum

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    CharacteristicEnum, java.io.Serializable, java.lang.Comparable<TargetSecuritySystemStateEnum>
    +
    +
    +
    public enum TargetSecuritySystemStateEnum
    +extends java.lang.Enum<TargetSecuritySystemStateEnum>
    +implements CharacteristicEnum
    +
    The target state of a SecuritySystemAccessory. + +

    0 ”Stay Arm. The home is occupied and the residents are active. e.g. morning or evenings” 1 + ”Away Arm. The home is unoccupied” 2 ”Night Arm. The home is occupied and the residents are + sleeping” 3 ”Disarm” 4-255 ”Reserved”

    +
    +
    Author:
    +
    Gaston Dombiak
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      AWAY_ARM +
      Arm the system when the home is unoccupied.
      +
      DISARM +
      Disarm the system.
      +
      NIGHT_ARM +
      Arm the system when the home is occupied and residents are sleeping.
      +
      STAY_ARM +
      Arm the system when the home is occupied and residents are active.
      +
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static TargetSecuritySystemStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (TargetSecuritySystemStateEnum c : TargetSecuritySystemStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static TargetSecuritySystemStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/CurrentSecuritySystemStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/CurrentSecuritySystemStateCharacteristic.html new file mode 100644 index 000000000..42f42e48d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/CurrentSecuritySystemStateCharacteristic.html @@ -0,0 +1,193 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/CurrentSecuritySystemStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/CurrentSecuritySystemStateEnum.html new file mode 100644 index 000000000..e1c1e88ce --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/CurrentSecuritySystemStateEnum.html @@ -0,0 +1,288 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/SecuritySystemAlarmTypeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/SecuritySystemAlarmTypeCharacteristic.html new file mode 100644 index 000000000..0534c8706 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/SecuritySystemAlarmTypeCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/SecuritySystemAlarmTypeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/SecuritySystemAlarmTypeEnum.html new file mode 100644 index 000000000..10c35688f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/SecuritySystemAlarmTypeEnum.html @@ -0,0 +1,252 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/TargetSecuritySystemStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/TargetSecuritySystemStateCharacteristic.html new file mode 100644 index 000000000..681e2b9b4 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/TargetSecuritySystemStateCharacteristic.html @@ -0,0 +1,193 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/TargetSecuritySystemStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/TargetSecuritySystemStateEnum.html new file mode 100644 index 000000000..cdd21f8ac --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/class-use/TargetSecuritySystemStateEnum.html @@ -0,0 +1,315 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/package-summary.html new file mode 100644 index 000000000..6581228cb --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/package-summary.html @@ -0,0 +1,211 @@ + + + + + +io.github.hapjava.characteristics.impl.securitysystem (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.securitysystem

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/package-tree.html new file mode 100644 index 000000000..dc3d787f2 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/package-tree.html @@ -0,0 +1,191 @@ + + + + + +io.github.hapjava.characteristics.impl.securitysystem Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.securitysystem

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/securitysystem/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/package-use.html new file mode 100644 index 000000000..36438ec91 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/securitysystem/package-use.html @@ -0,0 +1,288 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.securitysystem (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.securitysystem

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/CurrentSlatStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/slat/CurrentSlatStateCharacteristic.html new file mode 100644 index 000000000..6a3d40c5b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/CurrentSlatStateCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +CurrentSlatStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentSlatStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CurrentSlatStateCharacteristic

        +
        public CurrentSlatStateCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<CurrentSlatStateEnum>> getter,
        +                                      java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                      java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/CurrentSlatStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/slat/CurrentSlatStateEnum.html new file mode 100644 index 000000000..b9d6ce366 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/CurrentSlatStateEnum.html @@ -0,0 +1,427 @@ + + + + + +CurrentSlatStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum CurrentSlatStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      FIXED 
      JAMMED 
      SWINGING 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static CurrentSlatStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static CurrentSlatStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static CurrentSlatStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CurrentSlatStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CurrentSlatStateEnum c : CurrentSlatStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CurrentSlatStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/CurrentTiltAngleCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/slat/CurrentTiltAngleCharacteristic.html new file mode 100644 index 000000000..048a28d50 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/CurrentTiltAngleCharacteristic.html @@ -0,0 +1,318 @@ + + + + + +CurrentTiltAngleCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentTiltAngleCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CurrentTiltAngleCharacteristic

        +
        public CurrentTiltAngleCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                      java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                      java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/SlatTypeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/slat/SlatTypeCharacteristic.html new file mode 100644 index 000000000..4cc93eab7 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/SlatTypeCharacteristic.html @@ -0,0 +1,316 @@ + + + + + +SlatTypeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SlatTypeCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SlatTypeCharacteristic

        +
        public SlatTypeCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<SlatTypeEnum>> getter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/SlatTypeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/slat/SlatTypeEnum.html new file mode 100644 index 000000000..06baeb688 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/SlatTypeEnum.html @@ -0,0 +1,414 @@ + + + + + +SlatTypeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum SlatTypeEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      HORIZONTAL 
      VERTICAL 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static SlatTypeEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static SlatTypeEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static SlatTypeEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static SlatTypeEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (SlatTypeEnum c : SlatTypeEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static SlatTypeEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static SlatTypeEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/TargetTiltAngleCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/slat/TargetTiltAngleCharacteristic.html new file mode 100644 index 000000000..09f67d1bc --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/TargetTiltAngleCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +TargetTiltAngleCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetTiltAngleCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TargetTiltAngleCharacteristic

        +
        public TargetTiltAngleCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                     ExceptionalConsumer<java.lang.Integer> setter,
        +                                     java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                     java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/CurrentSlatStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/CurrentSlatStateCharacteristic.html new file mode 100644 index 000000000..9d2e7a143 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/CurrentSlatStateCharacteristic.html @@ -0,0 +1,193 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.slat.CurrentSlatStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.slat.CurrentSlatStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/CurrentSlatStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/CurrentSlatStateEnum.html new file mode 100644 index 000000000..8e32b7fa2 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/CurrentSlatStateEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.slat.CurrentSlatStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.slat.CurrentSlatStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/CurrentTiltAngleCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/CurrentTiltAngleCharacteristic.html new file mode 100644 index 000000000..a60a9d831 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/CurrentTiltAngleCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.slat.CurrentTiltAngleCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.slat.CurrentTiltAngleCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/SlatTypeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/SlatTypeCharacteristic.html new file mode 100644 index 000000000..61354892a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/SlatTypeCharacteristic.html @@ -0,0 +1,193 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.slat.SlatTypeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.slat.SlatTypeCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/SlatTypeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/SlatTypeEnum.html new file mode 100644 index 000000000..e8eb49c4c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/SlatTypeEnum.html @@ -0,0 +1,252 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.slat.SlatTypeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.slat.SlatTypeEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/TargetTiltAngleCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/TargetTiltAngleCharacteristic.html new file mode 100644 index 000000000..699c18533 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/class-use/TargetTiltAngleCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.slat.TargetTiltAngleCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.slat.TargetTiltAngleCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/slat/package-summary.html new file mode 100644 index 000000000..805e153cb --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/package-summary.html @@ -0,0 +1,211 @@ + + + + + +io.github.hapjava.characteristics.impl.slat (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.slat

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/slat/package-tree.html new file mode 100644 index 000000000..88e412ff3 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/package-tree.html @@ -0,0 +1,195 @@ + + + + + +io.github.hapjava.characteristics.impl.slat Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.slat

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/slat/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/slat/package-use.html new file mode 100644 index 000000000..4e9907a7c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/slat/package-use.html @@ -0,0 +1,265 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.slat (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.slat

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/smokesensor/SmokeDetectedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/SmokeDetectedCharacteristic.html new file mode 100644 index 000000000..186fa8f77 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/SmokeDetectedCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +SmokeDetectedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SmokeDetectedCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SmokeDetectedCharacteristic

        +
        public SmokeDetectedCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<SmokeDetectedStateEnum>> getter,
        +                                   java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                   java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/smokesensor/SmokeDetectedStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/SmokeDetectedStateEnum.html new file mode 100644 index 000000000..53d359d18 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/SmokeDetectedStateEnum.html @@ -0,0 +1,414 @@ + + + + + +SmokeDetectedStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum SmokeDetectedStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      DETECTED 
      NOT_DETECTED 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static SmokeDetectedStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static SmokeDetectedStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static SmokeDetectedStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static SmokeDetectedStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (SmokeDetectedStateEnum c : SmokeDetectedStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static SmokeDetectedStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/smokesensor/class-use/SmokeDetectedCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/class-use/SmokeDetectedCharacteristic.html new file mode 100644 index 000000000..9e2b2c737 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/class-use/SmokeDetectedCharacteristic.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/smokesensor/class-use/SmokeDetectedStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/class-use/SmokeDetectedStateEnum.html new file mode 100644 index 000000000..721198820 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/class-use/SmokeDetectedStateEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/smokesensor/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/package-summary.html new file mode 100644 index 000000000..0e452c23c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/package-summary.html @@ -0,0 +1,187 @@ + + + + + +io.github.hapjava.characteristics.impl.smokesensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.smokesensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/smokesensor/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/package-tree.html new file mode 100644 index 000000000..741c67749 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/package-tree.html @@ -0,0 +1,187 @@ + + + + + +io.github.hapjava.characteristics.impl.smokesensor Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.smokesensor

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/smokesensor/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/package-use.html new file mode 100644 index 000000000..f31bd4409 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/smokesensor/package-use.html @@ -0,0 +1,235 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.smokesensor (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.smokesensor

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/ClosedCaptionsCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/ClosedCaptionsCharacteristic.html new file mode 100644 index 000000000..f63ea9cc6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/ClosedCaptionsCharacteristic.html @@ -0,0 +1,322 @@ + + + + + +ClosedCaptionsCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ClosedCaptionsCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/ClosedCaptionsEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/ClosedCaptionsEnum.html new file mode 100644 index 000000000..158d37e82 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/ClosedCaptionsEnum.html @@ -0,0 +1,414 @@ + + + + + +ClosedCaptionsEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum ClosedCaptionsEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      DISABLED 
      ENABLED 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static ClosedCaptionsEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static ClosedCaptionsEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ClosedCaptionsEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ClosedCaptionsEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ClosedCaptionsEnum c : ClosedCaptionsEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ClosedCaptionsEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/CurrentMediaStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/CurrentMediaStateCharacteristic.html new file mode 100644 index 000000000..2138e2bff --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/CurrentMediaStateCharacteristic.html @@ -0,0 +1,321 @@ + + + + + +CurrentMediaStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentMediaStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CurrentMediaStateCharacteristic

        +
        public CurrentMediaStateCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<CurrentMediaStateEnum>> getter,
        +                                       java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                       java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/CurrentMediaStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/CurrentMediaStateEnum.html new file mode 100644 index 000000000..1a01db2f2 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/CurrentMediaStateEnum.html @@ -0,0 +1,440 @@ + + + + + +CurrentMediaStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum CurrentMediaStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      PAUSE 
      PLAY 
      STOP 
      UNKNOWN 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static CurrentMediaStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static CurrentMediaStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static CurrentMediaStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CurrentMediaStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CurrentMediaStateEnum c : CurrentMediaStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CurrentMediaStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/PictureModeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/PictureModeCharacteristic.html new file mode 100644 index 000000000..dab251fd3 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/PictureModeCharacteristic.html @@ -0,0 +1,323 @@ + + + + + +PictureModeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class PictureModeCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/PictureModeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/PictureModeEnum.html new file mode 100644 index 000000000..1b606cca4 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/PictureModeEnum.html @@ -0,0 +1,493 @@ + + + + + +PictureModeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum PictureModeEnum

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    CharacteristicEnum, java.io.Serializable, java.lang.Comparable<PictureModeEnum>
    +
    +
    +
    public enum PictureModeEnum
    +extends java.lang.Enum<PictureModeEnum>
    +implements CharacteristicEnum
    +
    0 ”Other” 1 ”Standard” 2 "Calibrated" 3 "CalibratedDark" 4 "Vivid" 5 "Game" 6 "Computer" 7 + "Custom" 8-255 ”Reserved”
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static PictureModeEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static PictureModeEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static PictureModeEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static PictureModeEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (PictureModeEnum c : PictureModeEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static PictureModeEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static PictureModeEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/PowerModeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/PowerModeCharacteristic.html new file mode 100644 index 000000000..59968b147 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/PowerModeCharacteristic.html @@ -0,0 +1,316 @@ + + + + + +PowerModeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class PowerModeCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/PowerModeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/PowerModeEnum.html new file mode 100644 index 000000000..961f37908 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/PowerModeEnum.html @@ -0,0 +1,414 @@ + + + + + +PowerModeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum PowerModeEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      HIDE 
      SHOW 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static PowerModeEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static PowerModeEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static PowerModeEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static PowerModeEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (PowerModeEnum c : PowerModeEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static PowerModeEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static PowerModeEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/RemoteKeyCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/RemoteKeyCharacteristic.html new file mode 100644 index 000000000..c34300f6f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/RemoteKeyCharacteristic.html @@ -0,0 +1,317 @@ + + + + + +RemoteKeyCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class RemoteKeyCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/RemoteKeyEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/RemoteKeyEnum.html new file mode 100644 index 000000000..a96df6833 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/RemoteKeyEnum.html @@ -0,0 +1,556 @@ + + + + + +RemoteKeyEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum RemoteKeyEnum

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static RemoteKeyEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (RemoteKeyEnum c : RemoteKeyEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static RemoteKeyEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static RemoteKeyEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/SleepDiscoveryModeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/SleepDiscoveryModeCharacteristic.html new file mode 100644 index 000000000..97f079d27 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/SleepDiscoveryModeCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +SleepDiscoveryModeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SleepDiscoveryModeCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SleepDiscoveryModeCharacteristic

        +
        public SleepDiscoveryModeCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<SleepDiscoveryModeEnum>> getter,
        +                                        java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                        java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/SleepDiscoveryModeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/SleepDiscoveryModeEnum.html new file mode 100644 index 000000000..65bfd6c1b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/SleepDiscoveryModeEnum.html @@ -0,0 +1,414 @@ + + + + + +SleepDiscoveryModeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum SleepDiscoveryModeEnum

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static SleepDiscoveryModeEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (SleepDiscoveryModeEnum c : SleepDiscoveryModeEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static SleepDiscoveryModeEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/TargetMediaStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/TargetMediaStateCharacteristic.html new file mode 100644 index 000000000..4e7fb756f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/TargetMediaStateCharacteristic.html @@ -0,0 +1,322 @@ + + + + + +TargetMediaStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetMediaStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/TargetMediaStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/TargetMediaStateEnum.html new file mode 100644 index 000000000..fd7042a00 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/TargetMediaStateEnum.html @@ -0,0 +1,427 @@ + + + + + +TargetMediaStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum TargetMediaStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      PAUSE 
      PLAY 
      STOP 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static TargetMediaStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static TargetMediaStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static TargetMediaStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static TargetMediaStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (TargetMediaStateEnum c : TargetMediaStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static TargetMediaStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/ClosedCaptionsCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/ClosedCaptionsCharacteristic.html new file mode 100644 index 000000000..40c5aca07 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/ClosedCaptionsCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.ClosedCaptionsCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.ClosedCaptionsCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/ClosedCaptionsEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/ClosedCaptionsEnum.html new file mode 100644 index 000000000..8d2c323de --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/ClosedCaptionsEnum.html @@ -0,0 +1,277 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.ClosedCaptionsEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.ClosedCaptionsEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/CurrentMediaStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/CurrentMediaStateCharacteristic.html new file mode 100644 index 000000000..4ca0b5ccf --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/CurrentMediaStateCharacteristic.html @@ -0,0 +1,208 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.CurrentMediaStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.CurrentMediaStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/CurrentMediaStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/CurrentMediaStateEnum.html new file mode 100644 index 000000000..166e0553a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/CurrentMediaStateEnum.html @@ -0,0 +1,282 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/PictureModeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/PictureModeCharacteristic.html new file mode 100644 index 000000000..0e60a44b9 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/PictureModeCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.PictureModeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.PictureModeCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/PictureModeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/PictureModeEnum.html new file mode 100644 index 000000000..65f3757f3 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/PictureModeEnum.html @@ -0,0 +1,277 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.PictureModeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.PictureModeEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/PowerModeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/PowerModeCharacteristic.html new file mode 100644 index 000000000..c9bfd4424 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/PowerModeCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.PowerModeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.PowerModeCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/PowerModeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/PowerModeEnum.html new file mode 100644 index 000000000..9b577516c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/PowerModeEnum.html @@ -0,0 +1,250 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.PowerModeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.PowerModeEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/RemoteKeyCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/RemoteKeyCharacteristic.html new file mode 100644 index 000000000..d289f900c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/RemoteKeyCharacteristic.html @@ -0,0 +1,196 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.RemoteKeyCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.RemoteKeyCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/RemoteKeyEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/RemoteKeyEnum.html new file mode 100644 index 000000000..90c1675c8 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/RemoteKeyEnum.html @@ -0,0 +1,252 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.RemoteKeyEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.RemoteKeyEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/SleepDiscoveryModeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/SleepDiscoveryModeCharacteristic.html new file mode 100644 index 000000000..7cf93d8d5 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/SleepDiscoveryModeCharacteristic.html @@ -0,0 +1,196 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/SleepDiscoveryModeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/SleepDiscoveryModeEnum.html new file mode 100644 index 000000000..930d1a8d4 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/SleepDiscoveryModeEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/TargetMediaStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/TargetMediaStateCharacteristic.html new file mode 100644 index 000000000..38b548802 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/TargetMediaStateCharacteristic.html @@ -0,0 +1,208 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.TargetMediaStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.TargetMediaStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/class-use/TargetMediaStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/TargetMediaStateEnum.html new file mode 100644 index 000000000..2b3c54c24 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/class-use/TargetMediaStateEnum.html @@ -0,0 +1,324 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.television.TargetMediaStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.television.TargetMediaStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/television/package-summary.html new file mode 100644 index 000000000..cd14e672d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/package-summary.html @@ -0,0 +1,258 @@ + + + + + +io.github.hapjava.characteristics.impl.television (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.television

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/television/package-tree.html new file mode 100644 index 000000000..b5e7d1e82 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/package-tree.html @@ -0,0 +1,199 @@ + + + + + +io.github.hapjava.characteristics.impl.television Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.television

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/television/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/television/package-use.html new file mode 100644 index 000000000..b0e39c76a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/television/package-use.html @@ -0,0 +1,370 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.television (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.television

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeControlTypeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeControlTypeCharacteristic.html new file mode 100644 index 000000000..da8d07454 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeControlTypeCharacteristic.html @@ -0,0 +1,321 @@ + + + + + +VolumeControlTypeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class VolumeControlTypeCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        VolumeControlTypeCharacteristic

        +
        public VolumeControlTypeCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<VolumeControlTypeEnum>> getter,
        +                                       java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                       java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeControlTypeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeControlTypeEnum.html new file mode 100644 index 000000000..d597b55d8 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeControlTypeEnum.html @@ -0,0 +1,439 @@ + + + + + +VolumeControlTypeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum VolumeControlTypeEnum

+
+
+ +
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static VolumeControlTypeEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static VolumeControlTypeEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static VolumeControlTypeEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static VolumeControlTypeEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (VolumeControlTypeEnum c : VolumeControlTypeEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static VolumeControlTypeEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeSelectorCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeSelectorCharacteristic.html new file mode 100644 index 000000000..2febabe8a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeSelectorCharacteristic.html @@ -0,0 +1,317 @@ + + + + + +VolumeSelectorCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class VolumeSelectorCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeSelectorEnum.html b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeSelectorEnum.html new file mode 100644 index 000000000..09e1a82c6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeSelectorEnum.html @@ -0,0 +1,413 @@ + + + + + +VolumeSelectorEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum VolumeSelectorEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      DECREMENT 
      INCREMENT 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static VolumeSelectorEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static VolumeSelectorEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static VolumeSelectorEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static VolumeSelectorEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (VolumeSelectorEnum c : VolumeSelectorEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static VolumeSelectorEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/class-use/VolumeControlTypeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/class-use/VolumeControlTypeCharacteristic.html new file mode 100644 index 000000000..9398f4dc8 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/class-use/VolumeControlTypeCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/class-use/VolumeControlTypeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/class-use/VolumeControlTypeEnum.html new file mode 100644 index 000000000..e2bb2aee0 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/class-use/VolumeControlTypeEnum.html @@ -0,0 +1,252 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/class-use/VolumeSelectorCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/class-use/VolumeSelectorCharacteristic.html new file mode 100644 index 000000000..40d98f12d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/class-use/VolumeSelectorCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/class-use/VolumeSelectorEnum.html b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/class-use/VolumeSelectorEnum.html new file mode 100644 index 000000000..a88136dad --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/class-use/VolumeSelectorEnum.html @@ -0,0 +1,250 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/package-summary.html new file mode 100644 index 000000000..08f43d9a2 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/package-summary.html @@ -0,0 +1,195 @@ + + + + + +io.github.hapjava.characteristics.impl.televisionspeaker (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.televisionspeaker

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/package-tree.html new file mode 100644 index 000000000..70ce9cfc3 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/package-tree.html @@ -0,0 +1,189 @@ + + + + + +io.github.hapjava.characteristics.impl.televisionspeaker Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.televisionspeaker

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/package-use.html new file mode 100644 index 000000000..5270ab8a6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/televisionspeaker/package-use.html @@ -0,0 +1,243 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.televisionspeaker (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.televisionspeaker

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/CoolingThresholdTemperatureCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/CoolingThresholdTemperatureCharacteristic.html new file mode 100644 index 000000000..461a5d25c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/CoolingThresholdTemperatureCharacteristic.html @@ -0,0 +1,412 @@ + + + + + +CoolingThresholdTemperatureCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CoolingThresholdTemperatureCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CoolingThresholdTemperatureCharacteristic

        +
        public CoolingThresholdTemperatureCharacteristic​(double minValue,
        +                                                 double maxValue,
        +                                                 double step,
        +                                                 java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                                 ExceptionalConsumer<java.lang.Double> setter,
        +                                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                                 java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        CoolingThresholdTemperatureCharacteristic

        +
        public CoolingThresholdTemperatureCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                                 ExceptionalConsumer<java.lang.Double> setter,
        +                                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                                 java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/CurrentHeatingCoolingStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/CurrentHeatingCoolingStateCharacteristic.html new file mode 100644 index 000000000..29f3ca36d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/CurrentHeatingCoolingStateCharacteristic.html @@ -0,0 +1,322 @@ + + + + + +CurrentHeatingCoolingStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentHeatingCoolingStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/CurrentHeatingCoolingStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/CurrentHeatingCoolingStateEnum.html new file mode 100644 index 000000000..5e266430d --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/CurrentHeatingCoolingStateEnum.html @@ -0,0 +1,427 @@ + + + + + +CurrentHeatingCoolingStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum CurrentHeatingCoolingStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      COOL 
      HEAT 
      OFF 
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static CurrentHeatingCoolingStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (CurrentHeatingCoolingStateEnum c : CurrentHeatingCoolingStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static CurrentHeatingCoolingStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/CurrentTemperatureCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/CurrentTemperatureCharacteristic.html new file mode 100644 index 000000000..556f28f87 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/CurrentTemperatureCharacteristic.html @@ -0,0 +1,408 @@ + + + + + +CurrentTemperatureCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentTemperatureCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CurrentTemperatureCharacteristic

        +
        public CurrentTemperatureCharacteristic​(double minValue,
        +                                        double maxValue,
        +                                        double minStep,
        +                                        java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                        java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                        java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        CurrentTemperatureCharacteristic

        +
        public CurrentTemperatureCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                        java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                        java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/HeatingThresholdTemperatureCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/HeatingThresholdTemperatureCharacteristic.html new file mode 100644 index 000000000..a31cdfa77 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/HeatingThresholdTemperatureCharacteristic.html @@ -0,0 +1,412 @@ + + + + + +HeatingThresholdTemperatureCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class HeatingThresholdTemperatureCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HeatingThresholdTemperatureCharacteristic

        +
        public HeatingThresholdTemperatureCharacteristic​(double minValue,
        +                                                 double maxValue,
        +                                                 double step,
        +                                                 java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                                 ExceptionalConsumer<java.lang.Double> setter,
        +                                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                                 java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        HeatingThresholdTemperatureCharacteristic

        +
        public HeatingThresholdTemperatureCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                                 ExceptionalConsumer<java.lang.Double> setter,
        +                                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                                 java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/TargetHeatingCoolingStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/TargetHeatingCoolingStateCharacteristic.html new file mode 100644 index 000000000..8b2a580d5 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/TargetHeatingCoolingStateCharacteristic.html @@ -0,0 +1,324 @@ + + + + + +TargetHeatingCoolingStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetHeatingCoolingStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/TargetHeatingCoolingStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/TargetHeatingCoolingStateEnum.html new file mode 100644 index 000000000..a9f02065e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/TargetHeatingCoolingStateEnum.html @@ -0,0 +1,445 @@ + + + + + +TargetHeatingCoolingStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum TargetHeatingCoolingStateEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      AUTO 
      COOL 
      HEAT 
      OFF 
      +
    • +
    +
    + +
    + +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static TargetHeatingCoolingStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (TargetHeatingCoolingStateEnum c : TargetHeatingCoolingStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static TargetHeatingCoolingStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/TargetTemperatureCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/TargetTemperatureCharacteristic.html new file mode 100644 index 000000000..765017b63 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/TargetTemperatureCharacteristic.html @@ -0,0 +1,413 @@ + + + + + +TargetTemperatureCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetTemperatureCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TargetTemperatureCharacteristic

        +
        public TargetTemperatureCharacteristic​(double minValue,
        +                                       double maxValue,
        +                                       double minStep,
        +                                       java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                       ExceptionalConsumer<java.lang.Double> setter,
        +                                       java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                       java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        TargetTemperatureCharacteristic

        +
        public TargetTemperatureCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Double>> getter,
        +                                       ExceptionalConsumer<java.lang.Double> setter,
        +                                       java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                       java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/TemperatureDisplayUnitCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/TemperatureDisplayUnitCharacteristic.html new file mode 100644 index 000000000..930d11bf2 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/TemperatureDisplayUnitCharacteristic.html @@ -0,0 +1,323 @@ + + + + + +TemperatureDisplayUnitCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TemperatureDisplayUnitCharacteristic

+
+
+ +
+ +
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/TemperatureDisplayUnitEnum.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/TemperatureDisplayUnitEnum.html new file mode 100644 index 000000000..438bc2540 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/TemperatureDisplayUnitEnum.html @@ -0,0 +1,406 @@ + + + + + +TemperatureDisplayUnitEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum TemperatureDisplayUnitEnum

+
+
+ +
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum ConstantDescription
      CELSIUS 
      FAHRENHEIT 
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      intgetCode() 
      static TemperatureDisplayUnitEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static TemperatureDisplayUnitEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static TemperatureDisplayUnitEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (TemperatureDisplayUnitEnum c : TemperatureDisplayUnitEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static TemperatureDisplayUnitEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/CoolingThresholdTemperatureCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/CoolingThresholdTemperatureCharacteristic.html new file mode 100644 index 000000000..171466816 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/CoolingThresholdTemperatureCharacteristic.html @@ -0,0 +1,199 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.thermostat.CoolingThresholdTemperatureCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.thermostat.CoolingThresholdTemperatureCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/CurrentHeatingCoolingStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/CurrentHeatingCoolingStateCharacteristic.html new file mode 100644 index 000000000..c4d3e977e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/CurrentHeatingCoolingStateCharacteristic.html @@ -0,0 +1,196 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/CurrentHeatingCoolingStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/CurrentHeatingCoolingStateEnum.html new file mode 100644 index 000000000..6226be450 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/CurrentHeatingCoolingStateEnum.html @@ -0,0 +1,288 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/CurrentTemperatureCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/CurrentTemperatureCharacteristic.html new file mode 100644 index 000000000..22cbc6e08 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/CurrentTemperatureCharacteristic.html @@ -0,0 +1,207 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.thermostat.CurrentTemperatureCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.thermostat.CurrentTemperatureCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/HeatingThresholdTemperatureCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/HeatingThresholdTemperatureCharacteristic.html new file mode 100644 index 000000000..43503fc6f --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/HeatingThresholdTemperatureCharacteristic.html @@ -0,0 +1,199 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.thermostat.HeatingThresholdTemperatureCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.thermostat.HeatingThresholdTemperatureCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TargetHeatingCoolingStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TargetHeatingCoolingStateCharacteristic.html new file mode 100644 index 000000000..8e36c7fe7 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TargetHeatingCoolingStateCharacteristic.html @@ -0,0 +1,196 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TargetHeatingCoolingStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TargetHeatingCoolingStateEnum.html new file mode 100644 index 000000000..7b3af9c7b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TargetHeatingCoolingStateEnum.html @@ -0,0 +1,316 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TargetTemperatureCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TargetTemperatureCharacteristic.html new file mode 100644 index 000000000..54f3bc8a6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TargetTemperatureCharacteristic.html @@ -0,0 +1,196 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.thermostat.TargetTemperatureCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.thermostat.TargetTemperatureCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TemperatureDisplayUnitCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TemperatureDisplayUnitCharacteristic.html new file mode 100644 index 000000000..e53d4095a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TemperatureDisplayUnitCharacteristic.html @@ -0,0 +1,211 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TemperatureDisplayUnitEnum.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TemperatureDisplayUnitEnum.html new file mode 100644 index 000000000..448fa745c --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/class-use/TemperatureDisplayUnitEnum.html @@ -0,0 +1,319 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/package-summary.html new file mode 100644 index 000000000..9de34accd --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/package-summary.html @@ -0,0 +1,236 @@ + + + + + +io.github.hapjava.characteristics.impl.thermostat (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.thermostat

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/package-tree.html new file mode 100644 index 000000000..e5ee89403 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/package-tree.html @@ -0,0 +1,199 @@ + + + + + +io.github.hapjava.characteristics.impl.thermostat Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.thermostat

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/thermostat/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/thermostat/package-use.html new file mode 100644 index 000000000..8431b8973 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/thermostat/package-use.html @@ -0,0 +1,319 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.thermostat (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.thermostat

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/valve/RemainingDurationCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/valve/RemainingDurationCharacteristic.html new file mode 100644 index 000000000..ee1cbda91 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/valve/RemainingDurationCharacteristic.html @@ -0,0 +1,405 @@ + + + + + +RemainingDurationCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class RemainingDurationCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RemainingDurationCharacteristic

        +
        public RemainingDurationCharacteristic​(int minValue,
        +                                       int maxValue,
        +                                       java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                       java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                       java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        RemainingDurationCharacteristic

        +
        public RemainingDurationCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                       java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                       java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/valve/SetDurationCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/valve/SetDurationCharacteristic.html new file mode 100644 index 000000000..24af5d97a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/valve/SetDurationCharacteristic.html @@ -0,0 +1,407 @@ + + + + + +SetDurationCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SetDurationCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        SetDurationCharacteristic

        +
        public SetDurationCharacteristic​(int minValue,
        +                                 int maxValue,
        +                                 java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                 ExceptionalConsumer<java.lang.Integer> setter,
        +                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                 java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        SetDurationCharacteristic

        +
        public SetDurationCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                 ExceptionalConsumer<java.lang.Integer> setter,
        +                                 java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                 java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/valve/ValveTypeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/valve/ValveTypeCharacteristic.html new file mode 100644 index 000000000..5acc9d8fd --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/valve/ValveTypeCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +ValveTypeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ValveTypeCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ValveTypeCharacteristic

        +
        public ValveTypeCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<ValveTypeEnum>> getter,
        +                               java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                               java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/valve/ValveTypeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/valve/ValveTypeEnum.html new file mode 100644 index 000000000..aa0b162aa --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/valve/ValveTypeEnum.html @@ -0,0 +1,446 @@ + + + + + +ValveTypeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum ValveTypeEnum

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    CharacteristicEnum, java.io.Serializable, java.lang.Comparable<ValveTypeEnum>
    +
    +
    +
    public enum ValveTypeEnum
    +extends java.lang.Enum<ValveTypeEnum>
    +implements CharacteristicEnum
    +
    The mode used by a ValveAccessory + +

    0 ”Generic valve” 1 ”Irrigation” 2 ”Shower head” 3 ”Water faucet” 4-255 ”Reserved”

    +
    +
    Author:
    +
    Tim Harper
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static ValveTypeEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static ValveTypeEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static ValveTypeEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static ValveTypeEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (ValveTypeEnum c : ValveTypeEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static ValveTypeEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static ValveTypeEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/valve/class-use/RemainingDurationCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/valve/class-use/RemainingDurationCharacteristic.html new file mode 100644 index 000000000..adcfe1884 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/valve/class-use/RemainingDurationCharacteristic.html @@ -0,0 +1,199 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.valve.RemainingDurationCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.valve.RemainingDurationCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/valve/class-use/SetDurationCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/valve/class-use/SetDurationCharacteristic.html new file mode 100644 index 000000000..0f9a67c57 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/valve/class-use/SetDurationCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.valve.SetDurationCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.valve.SetDurationCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/valve/class-use/ValveTypeCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/valve/class-use/ValveTypeCharacteristic.html new file mode 100644 index 000000000..aa9e985b5 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/valve/class-use/ValveTypeCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.valve.ValveTypeCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.valve.ValveTypeCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/valve/class-use/ValveTypeEnum.html b/apidocs/io/github/hapjava/characteristics/impl/valve/class-use/ValveTypeEnum.html new file mode 100644 index 000000000..7f8c2214a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/valve/class-use/ValveTypeEnum.html @@ -0,0 +1,254 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.valve.ValveTypeEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.valve.ValveTypeEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/valve/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/valve/package-summary.html new file mode 100644 index 000000000..1e8c51938 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/valve/package-summary.html @@ -0,0 +1,199 @@ + + + + + +io.github.hapjava.characteristics.impl.valve (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.valve

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/valve/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/valve/package-tree.html new file mode 100644 index 000000000..b97a053ec --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/valve/package-tree.html @@ -0,0 +1,193 @@ + + + + + +io.github.hapjava.characteristics.impl.valve Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.valve

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/valve/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/valve/package-use.html new file mode 100644 index 000000000..c1b0e7672 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/valve/package-use.html @@ -0,0 +1,247 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.valve (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.valve

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/CurrentHorizontalTiltAngleCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/CurrentHorizontalTiltAngleCharacteristic.html new file mode 100644 index 000000000..35e95b2ff --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/CurrentHorizontalTiltAngleCharacteristic.html @@ -0,0 +1,403 @@ + + + + + +CurrentHorizontalTiltAngleCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentHorizontalTiltAngleCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CurrentHorizontalTiltAngleCharacteristic

        +
        public CurrentHorizontalTiltAngleCharacteristic​(int minValue,
        +                                                int maxValue,
        +                                                java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                                java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                                java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        CurrentHorizontalTiltAngleCharacteristic

        +
        public CurrentHorizontalTiltAngleCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                                java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                                java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/CurrentPositionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/CurrentPositionCharacteristic.html new file mode 100644 index 000000000..6b46bd0f9 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/CurrentPositionCharacteristic.html @@ -0,0 +1,318 @@ + + + + + +CurrentPositionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentPositionCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CurrentPositionCharacteristic

        +
        public CurrentPositionCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                     java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                     java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/CurrentVerticalTiltAngleCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/CurrentVerticalTiltAngleCharacteristic.html new file mode 100644 index 000000000..2d063ad41 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/CurrentVerticalTiltAngleCharacteristic.html @@ -0,0 +1,403 @@ + + + + + +CurrentVerticalTiltAngleCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CurrentVerticalTiltAngleCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CurrentVerticalTiltAngleCharacteristic

        +
        public CurrentVerticalTiltAngleCharacteristic​(int minValue,
        +                                              int maxValue,
        +                                              java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                              java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                              java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        CurrentVerticalTiltAngleCharacteristic

        +
        public CurrentVerticalTiltAngleCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                              java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                              java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/HoldPositionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/HoldPositionCharacteristic.html new file mode 100644 index 000000000..f3bba2ee1 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/HoldPositionCharacteristic.html @@ -0,0 +1,299 @@ + + + + + +HoldPositionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class HoldPositionCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HoldPositionCharacteristic

        +
        public HoldPositionCharacteristic​(ExceptionalConsumer<java.lang.Boolean> setter)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/PositionStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/PositionStateCharacteristic.html new file mode 100644 index 000000000..188978bd9 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/PositionStateCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +PositionStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class PositionStateCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PositionStateCharacteristic

        +
        public PositionStateCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<PositionStateEnum>> getter,
        +                                   java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                   java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/PositionStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/PositionStateEnum.html new file mode 100644 index 000000000..a421a384e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/PositionStateEnum.html @@ -0,0 +1,428 @@ + + + + + +PositionStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Enum PositionStateEnum

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    CharacteristicEnum, java.io.Serializable, java.lang.Comparable<PositionStateEnum>
    +
    +
    +
    public enum PositionStateEnum
    +extends java.lang.Enum<PositionStateEnum>
    +implements CharacteristicEnum
    +
    0 ”Going to the minimum value specified in metadata” 1 ”Going to the maximum value specified in + metadata” 2 ”Stopped”
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static PositionStateEnumfromCode​(java.lang.Integer code) 
      intgetCode() 
      static PositionStateEnumvalueOf​(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static PositionStateEnum[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        values

        +
        public static PositionStateEnum[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (PositionStateEnum c : PositionStateEnum.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static PositionStateEnum valueOf​(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        fromCode

        +
        public static PositionStateEnum fromCode​(java.lang.Integer code)
        +
      • +
      + + + + +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/TargetHorizontalTiltAngleCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/TargetHorizontalTiltAngleCharacteristic.html new file mode 100644 index 000000000..59cef4dca --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/TargetHorizontalTiltAngleCharacteristic.html @@ -0,0 +1,407 @@ + + + + + +TargetHorizontalTiltAngleCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetHorizontalTiltAngleCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TargetHorizontalTiltAngleCharacteristic

        +
        public TargetHorizontalTiltAngleCharacteristic​(int minValue,
        +                                               int maxValue,
        +                                               java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                               ExceptionalConsumer<java.lang.Integer> setter,
        +                                               java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                               java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        TargetHorizontalTiltAngleCharacteristic

        +
        public TargetHorizontalTiltAngleCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                               ExceptionalConsumer<java.lang.Integer> setter,
        +                                               java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                               java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/TargetPositionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/TargetPositionCharacteristic.html new file mode 100644 index 000000000..ce6be3bd6 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/TargetPositionCharacteristic.html @@ -0,0 +1,320 @@ + + + + + +TargetPositionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetPositionCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TargetPositionCharacteristic

        +
        public TargetPositionCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                    ExceptionalConsumer<java.lang.Integer> setter,
        +                                    java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                    java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/TargetVerticalTiltAngleCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/TargetVerticalTiltAngleCharacteristic.html new file mode 100644 index 000000000..32dec9641 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/TargetVerticalTiltAngleCharacteristic.html @@ -0,0 +1,407 @@ + + + + + +TargetVerticalTiltAngleCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TargetVerticalTiltAngleCharacteristic

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TargetVerticalTiltAngleCharacteristic

        +
        public TargetVerticalTiltAngleCharacteristic​(int minValue,
        +                                             int maxValue,
        +                                             java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                             ExceptionalConsumer<java.lang.Integer> setter,
        +                                             java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                             java.lang.Runnable unsubscriber)
        +
      • +
      + + + +
        +
      • +

        TargetVerticalTiltAngleCharacteristic

        +
        public TargetVerticalTiltAngleCharacteristic​(java.util.function.Supplier<java.util.concurrent.CompletableFuture<java.lang.Integer>> getter,
        +                                             ExceptionalConsumer<java.lang.Integer> setter,
        +                                             java.util.function.Consumer<HomekitCharacteristicChangeCallback> subscriber,
        +                                             java.lang.Runnable unsubscriber)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/CurrentHorizontalTiltAngleCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/CurrentHorizontalTiltAngleCharacteristic.html new file mode 100644 index 000000000..089a660cb --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/CurrentHorizontalTiltAngleCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.windowcovering.CurrentHorizontalTiltAngleCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.windowcovering.CurrentHorizontalTiltAngleCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/CurrentPositionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/CurrentPositionCharacteristic.html new file mode 100644 index 000000000..f1c72be45 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/CurrentPositionCharacteristic.html @@ -0,0 +1,206 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.windowcovering.CurrentPositionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.windowcovering.CurrentPositionCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/CurrentVerticalTiltAngleCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/CurrentVerticalTiltAngleCharacteristic.html new file mode 100644 index 000000000..398b7d2b5 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/CurrentVerticalTiltAngleCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.windowcovering.CurrentVerticalTiltAngleCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.windowcovering.CurrentVerticalTiltAngleCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/HoldPositionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/HoldPositionCharacteristic.html new file mode 100644 index 000000000..a2f5ea91e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/HoldPositionCharacteristic.html @@ -0,0 +1,204 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.windowcovering.HoldPositionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.windowcovering.HoldPositionCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/PositionStateCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/PositionStateCharacteristic.html new file mode 100644 index 000000000..e0df8867b --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/PositionStateCharacteristic.html @@ -0,0 +1,206 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.windowcovering.PositionStateCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.windowcovering.PositionStateCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/PositionStateEnum.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/PositionStateEnum.html new file mode 100644 index 000000000..a2ba279dc --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/PositionStateEnum.html @@ -0,0 +1,268 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.windowcovering.PositionStateEnum (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.windowcovering.PositionStateEnum

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/TargetHorizontalTiltAngleCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/TargetHorizontalTiltAngleCharacteristic.html new file mode 100644 index 000000000..c02415ce8 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/TargetHorizontalTiltAngleCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.windowcovering.TargetHorizontalTiltAngleCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.windowcovering.TargetHorizontalTiltAngleCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/TargetPositionCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/TargetPositionCharacteristic.html new file mode 100644 index 000000000..29bba9539 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/TargetPositionCharacteristic.html @@ -0,0 +1,206 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.windowcovering.TargetPositionCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.windowcovering.TargetPositionCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/TargetVerticalTiltAngleCharacteristic.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/TargetVerticalTiltAngleCharacteristic.html new file mode 100644 index 000000000..10482db8e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/class-use/TargetVerticalTiltAngleCharacteristic.html @@ -0,0 +1,194 @@ + + + + + +Uses of Class io.github.hapjava.characteristics.impl.windowcovering.TargetVerticalTiltAngleCharacteristic (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.characteristics.impl.windowcovering.TargetVerticalTiltAngleCharacteristic

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/package-summary.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/package-summary.html new file mode 100644 index 000000000..924c818eb --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/package-summary.html @@ -0,0 +1,230 @@ + + + + + +io.github.hapjava.characteristics.impl.windowcovering (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics.impl.windowcovering

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/package-tree.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/package-tree.html new file mode 100644 index 000000000..2d03dd277 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/package-tree.html @@ -0,0 +1,202 @@ + + + + + +io.github.hapjava.characteristics.impl.windowcovering Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics.impl.windowcovering

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Enum Hierarchy

+
    +
  • java.lang.Object +
      +
    • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable) + +
    • +
    +
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/impl/windowcovering/package-use.html b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/package-use.html new file mode 100644 index 000000000..ffe6f5b1e --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/impl/windowcovering/package-use.html @@ -0,0 +1,279 @@ + + + + + +Uses of Package io.github.hapjava.characteristics.impl.windowcovering (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics.impl.windowcovering

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/package-summary.html b/apidocs/io/github/hapjava/characteristics/package-summary.html new file mode 100644 index 000000000..ccbfea017 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/package-summary.html @@ -0,0 +1,195 @@ + + + + + +io.github.hapjava.characteristics (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.characteristics

+
+
+
+ + +
Contains the basic characteristic types that can be supplied over the HomeKit Accessory Protocol.
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/package-tree.html b/apidocs/io/github/hapjava/characteristics/package-tree.html new file mode 100644 index 000000000..fd2f2ad2a --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/package-tree.html @@ -0,0 +1,168 @@ + + + + + +io.github.hapjava.characteristics Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.characteristics

+Package Hierarchies: + +
+
+
+

Interface Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/characteristics/package-use.html b/apidocs/io/github/hapjava/characteristics/package-use.html new file mode 100644 index 000000000..dd8054987 --- /dev/null +++ b/apidocs/io/github/hapjava/characteristics/package-use.html @@ -0,0 +1,1574 @@ + + + + + +Uses of Package io.github.hapjava.characteristics (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.characteristics

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/server/HomekitAccessoryCategories.html b/apidocs/io/github/hapjava/server/HomekitAccessoryCategories.html new file mode 100644 index 000000000..2b84303ff --- /dev/null +++ b/apidocs/io/github/hapjava/server/HomekitAccessoryCategories.html @@ -0,0 +1,946 @@ + + + + + +HomekitAccessoryCategories (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class HomekitAccessoryCategories

+
+
+ +
+
    +
  • +
    +
    public final class HomekitAccessoryCategories
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/server/HomekitAuthInfo.html b/apidocs/io/github/hapjava/server/HomekitAuthInfo.html new file mode 100644 index 000000000..bd6cdc1c9 --- /dev/null +++ b/apidocs/io/github/hapjava/server/HomekitAuthInfo.html @@ -0,0 +1,527 @@ + + + + + +HomekitAuthInfo (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface HomekitAuthInfo

+
+
+
+
    +
  • +
    +
    public interface HomekitAuthInfo
    +
    Authentication info that must be provided when constructing a new HomekitServer. You will + need to implement this interface yourself to provide the necessary callbacks to a persistent + storage mechanism. All values provided must be constant across invocations or the accessories + will require re-pairing within iOS.
    +
    +
    Author:
    +
    Andy Lintner
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and TypeMethodDescription
      default voidcreateUser​(java.lang.String username, + byte[] publicKey) +
      Deprecated method to add a user, assuming all users are admins.
      +
      default voidcreateUser​(java.lang.String username, + byte[] publicKey, + boolean isAdmin) +
      Called during the pairing process, you should store the user and public key in a manner that + the public key can later be retrieved using getUserPublicKey(String).
      +
      java.lang.StringgetMac() +
      A unique MAC address to be advertised with the HomeKit information.
      +
      java.lang.StringgetPin() +
      A pin code used for pairing the device.
      +
      byte[]getPrivateKey() +
      The private key used by the server during pairing and message encryption.
      +
      java.math.BigIntegergetSalt() +
      The Salt that will be used when hashing the pin code to send to the client.
      +
      default java.lang.StringgetSetupId() +
      A setup Id used for pairing the device using QR Code.
      +
      byte[]getUserPublicKey​(java.lang.String username) +
      Called when an already paired iOS device is re-connecting.
      +
      default booleanhasUser() +
      Called to check if a user has been created.
      +
      default java.util.Collection<java.lang.String>listUsers() +
      List all users which have been authenticated.
      +
      voidremoveUser​(java.lang.String username) +
      Called when an iOS device needs to remove an existing pairing.
      +
      default booleanuserIsAdmin​(java.lang.String username) +
      Determine if the specified user is an admin.
      +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getPin

        +
        java.lang.String getPin()
        +
        A pin code used for pairing the device. This pin will be required within iOS in order to + complete pairing. The numbers cannot be sequential and should not have a repeating pattern.
        +
        +
        Returns:
        +
        the pin code, in the form ###-##-###
        +
        +
      • +
      + + + +
        +
      • +

        getSetupId

        +
        default java.lang.String getSetupId()
        +
        A setup Id used for pairing the device using QR Code. It can be any alphanumeric combination of + the length of 4.
        +
        +
        Returns:
        +
        setup id
        +
        +
      • +
      + + + +
        +
      • +

        getMac

        +
        java.lang.String getMac()
        +
        A unique MAC address to be advertised with the HomeKit information. This does not have to be + the MAC address of the network interface. You can generate this using HomekitServer.generateMac().
        +
        +
        Returns:
        +
        the unique MAC address.
        +
        +
      • +
      + + + +
        +
      • +

        getSalt

        +
        java.math.BigInteger getSalt()
        +
        The Salt that will be used when hashing the pin code to send to the client. You should generate + this using HomekitServer.generateSalt().
        +
        +
        Returns:
        +
        the Salt.
        +
        +
      • +
      + + + +
        +
      • +

        getPrivateKey

        +
        byte[] getPrivateKey()
        +
        The private key used by the server during pairing and message encryption. You should generate + this using HomekitServer.generateKey()
        +
        +
        Returns:
        +
        the private key.
        +
        +
      • +
      + + + +
        +
      • +

        createUser

        +
        default void createUser​(java.lang.String username,
        +                        byte[] publicKey,
        +                        boolean isAdmin)
        +
        Called during the pairing process, you should store the user and public key in a manner that + the public key can later be retrieved using getUserPublicKey(String). This must be + stored in a persistent store as pairing will need to be reset if the information is lost.
        +
        +
        Parameters:
        +
        username - the iOS device's username. The value will not be meaningful to anything but + iOS.
        +
        publicKey - the iOS device's public key.
        +
        isAdmin - if the user is an admin, authorized to and/remove other users
        +
        +
      • +
      + + + +
        +
      • +

        createUser

        +
        default void createUser​(java.lang.String username,
        +                        byte[] publicKey)
        +
        Deprecated method to add a user, assuming all users are admins. + +

        At least one of the createUser methods must be implemented.

        +
        +
        Parameters:
        +
        username - the iOS device's username.
        +
        publicKey - the iOS device's public key.
        +
        +
      • +
      + + + +
        +
      • +

        removeUser

        +
        void removeUser​(java.lang.String username)
        +
        Called when an iOS device needs to remove an existing pairing. Subsequent calls to getUserPublicKey(String) for this username return null.
        +
        +
        Parameters:
        +
        username - the username to delete from the persistent store.
        +
        +
      • +
      + + + +
        +
      • +

        listUsers

        +
        default java.util.Collection<java.lang.String> listUsers()
        +
        List all users which have been authenticated.
        +
        +
        Returns:
        +
        the previously stored list of users.
        +
        +
      • +
      + + + +
        +
      • +

        getUserPublicKey

        +
        byte[] getUserPublicKey​(java.lang.String username)
        +
        Called when an already paired iOS device is re-connecting. The public key returned by this + method will be compared with the signature of the pair verification request to validate the + device.
        +
        +
        Parameters:
        +
        username - the username of the iOS device to retrieve the public key for.
        +
        Returns:
        +
        the previously stored public key for this user.
        +
        +
      • +
      + + + +
        +
      • +

        userIsAdmin

        +
        default boolean userIsAdmin​(java.lang.String username)
        +
        Determine if the specified user is an admin.
        +
        +
        Parameters:
        +
        username - the username of the iOS device to retrieve permissions for.
        +
        Returns:
        +
        the previously stored permissions.
        +
        +
      • +
      + + + +
        +
      • +

        hasUser

        +
        default boolean hasUser()
        +
        Called to check if a user has been created. The homekit accessory advertises whether the + accessory has already been paired. At this time, it's unclear whether multiple users can be + created, however it is known that advertising as unpaired will break in iOS 9. The default + value has been provided to maintain API compatibility for implementations targeting iOS 8.
        +
        +
        Returns:
        +
        whether a user has been created and stored
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/server/HomekitWebHandler.html b/apidocs/io/github/hapjava/server/HomekitWebHandler.html new file mode 100644 index 000000000..b986d11e2 --- /dev/null +++ b/apidocs/io/github/hapjava/server/HomekitWebHandler.html @@ -0,0 +1,280 @@ + + + + + +HomekitWebHandler (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface HomekitWebHandler

+
+
+
+
    +
  • +
    +
    public interface HomekitWebHandler
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      voidresetConnections() 
      java.util.concurrent.CompletableFuture<java.lang.Integer>start​(io.github.hapjava.server.impl.http.HomekitClientConnectionFactory clientConnectionFactory) 
      voidstop() 
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        start

        +
        java.util.concurrent.CompletableFuture<java.lang.Integer> start​(io.github.hapjava.server.impl.http.HomekitClientConnectionFactory clientConnectionFactory)
        +
      • +
      + + + +
        +
      • +

        stop

        +
        void stop()
        +
      • +
      + + + +
        +
      • +

        resetConnections

        +
        void resetConnections()
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/server/class-use/HomekitAccessoryCategories.html b/apidocs/io/github/hapjava/server/class-use/HomekitAccessoryCategories.html new file mode 100644 index 000000000..e81cd6d18 --- /dev/null +++ b/apidocs/io/github/hapjava/server/class-use/HomekitAccessoryCategories.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.server.HomekitAccessoryCategories (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.server.HomekitAccessoryCategories

+
+
No usage of io.github.hapjava.server.HomekitAccessoryCategories
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/server/class-use/HomekitAuthInfo.html b/apidocs/io/github/hapjava/server/class-use/HomekitAuthInfo.html new file mode 100644 index 000000000..58e71135f --- /dev/null +++ b/apidocs/io/github/hapjava/server/class-use/HomekitAuthInfo.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.server.HomekitAuthInfo (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.server.HomekitAuthInfo

+
+
No usage of io.github.hapjava.server.HomekitAuthInfo
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/server/class-use/HomekitWebHandler.html b/apidocs/io/github/hapjava/server/class-use/HomekitWebHandler.html new file mode 100644 index 000000000..6e0edfcc4 --- /dev/null +++ b/apidocs/io/github/hapjava/server/class-use/HomekitWebHandler.html @@ -0,0 +1,150 @@ + + + + + +Uses of Interface io.github.hapjava.server.HomekitWebHandler (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.server.HomekitWebHandler

+
+
No usage of io.github.hapjava.server.HomekitWebHandler
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/server/package-summary.html b/apidocs/io/github/hapjava/server/package-summary.html new file mode 100644 index 000000000..699a87f48 --- /dev/null +++ b/apidocs/io/github/hapjava/server/package-summary.html @@ -0,0 +1,189 @@ + + + + + +io.github.hapjava.server (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.server

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/server/package-tree.html b/apidocs/io/github/hapjava/server/package-tree.html new file mode 100644 index 000000000..deaaf9812 --- /dev/null +++ b/apidocs/io/github/hapjava/server/package-tree.html @@ -0,0 +1,172 @@ + + + + + +io.github.hapjava.server Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.server

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/server/package-use.html b/apidocs/io/github/hapjava/server/package-use.html new file mode 100644 index 000000000..e327c2bd6 --- /dev/null +++ b/apidocs/io/github/hapjava/server/package-use.html @@ -0,0 +1,150 @@ + + + + + +Uses of Package io.github.hapjava.server (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.server

+
+
No usage of io.github.hapjava.server
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/Service.html b/apidocs/io/github/hapjava/services/Service.html new file mode 100644 index 000000000..f77f1bacb --- /dev/null +++ b/apidocs/io/github/hapjava/services/Service.html @@ -0,0 +1,338 @@ + + + + + +Service (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Interface Service

+
+
+ +
+
    +
  • + +
    + +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCharacteristics

        +
        java.util.List<Characteristic> getCharacteristics()
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        java.lang.String getType()
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        java.util.List<Service> getLinkedServices()
        +
        List of all the services to which the service links
        +
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        void addLinkedService​(Service service)
        +
        Add linked services
        +
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/class-use/Service.html b/apidocs/io/github/hapjava/services/class-use/Service.html new file mode 100644 index 000000000..db94eef14 --- /dev/null +++ b/apidocs/io/github/hapjava/services/class-use/Service.html @@ -0,0 +1,786 @@ + + + + + +Uses of Interface io.github.hapjava.services.Service (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Interface
io.github.hapjava.services.Service

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/AccessoryInformationService.html b/apidocs/io/github/hapjava/services/impl/AccessoryInformationService.html new file mode 100644 index 000000000..b2da96b1f --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/AccessoryInformationService.html @@ -0,0 +1,513 @@ + + + + + +AccessoryInformationService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class AccessoryInformationService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class AccessoryInformationService
    +extends java.lang.Object
    +
    Accessory Information service.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/AirPurifierService.html b/apidocs/io/github/hapjava/services/impl/AirPurifierService.html new file mode 100644 index 000000000..539d8059c --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/AirPurifierService.html @@ -0,0 +1,489 @@ + + + + + +AirPurifierService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class AirPurifierService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class AirPurifierService
    +extends java.lang.Object
    +
    This service describes an air purifier.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/AirQualityService.html b/apidocs/io/github/hapjava/services/impl/AirQualityService.html new file mode 100644 index 000000000..bf6f0dd46 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/AirQualityService.html @@ -0,0 +1,583 @@ + + + + + +AirQualityService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class AirQualityService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class AirQualityService
    +extends java.lang.Object
    +
    This service describes air quality sensor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/BasicFanService.html b/apidocs/io/github/hapjava/services/impl/BasicFanService.html new file mode 100644 index 000000000..c64d47f07 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/BasicFanService.html @@ -0,0 +1,474 @@ + + + + + +BasicFanService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class BasicFanService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class BasicFanService
    +extends java.lang.Object
    +
    This service describes a fan. + +

    In the R1 release of the HAP specification, this is simply described as Fan. It is no longer + present in the R2 release.

    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/BatteryService.html b/apidocs/io/github/hapjava/services/impl/BatteryService.html new file mode 100644 index 000000000..a477242b7 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/BatteryService.html @@ -0,0 +1,447 @@ + + + + + +BatteryService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class BatteryService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class BatteryService
    +extends java.lang.Object
    +
    This service describes a battery service.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/CarbonDioxideSensorService.html b/apidocs/io/github/hapjava/services/impl/CarbonDioxideSensorService.html new file mode 100644 index 000000000..e88bc9747 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/CarbonDioxideSensorService.html @@ -0,0 +1,527 @@ + + + + + +CarbonDioxideSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CarbonDioxideSensorService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class CarbonDioxideSensorService
    +extends java.lang.Object
    +
    This service describes a carbon dioxide sensor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/CarbonMonoxideSensorService.html b/apidocs/io/github/hapjava/services/impl/CarbonMonoxideSensorService.html new file mode 100644 index 000000000..79b75e0bd --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/CarbonMonoxideSensorService.html @@ -0,0 +1,527 @@ + + + + + +CarbonMonoxideSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class CarbonMonoxideSensorService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class CarbonMonoxideSensorService
    +extends java.lang.Object
    +
    This service describes a carbon monoxide sensor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/ContactSensorService.html b/apidocs/io/github/hapjava/services/impl/ContactSensorService.html new file mode 100644 index 000000000..a263aad69 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/ContactSensorService.html @@ -0,0 +1,499 @@ + + + + + +ContactSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ContactSensorService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class ContactSensorService
    +extends java.lang.Object
    +
    This service describes a Contact Sensor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/DoorService.html b/apidocs/io/github/hapjava/services/impl/DoorService.html new file mode 100644 index 000000000..32f3281b0 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/DoorService.html @@ -0,0 +1,489 @@ + + + + + +DoorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class DoorService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class DoorService
    +extends java.lang.Object
    +
    This service describes a motorized door.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(HoldPositionCharacteristic holdPositionCharacteristic)
        +
      • +
      + + + + + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(MuteCharacteristic muteCharacteristic)
        +
      • +
      + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/DoorbellService.html b/apidocs/io/github/hapjava/services/impl/DoorbellService.html new file mode 100644 index 000000000..6048a1a1d --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/DoorbellService.html @@ -0,0 +1,485 @@ + + + + + +DoorbellService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class DoorbellService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class DoorbellService
    +extends java.lang.Object
    +
    The Doorbell service describes a doorbell.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(VolumeCharacteristic volume)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(MuteCharacteristic mute)
        +
      • +
      + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/FanService.html b/apidocs/io/github/hapjava/services/impl/FanService.html new file mode 100644 index 000000000..08ece4d6d --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/FanService.html @@ -0,0 +1,530 @@ + + + + + +FanService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class FanService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class FanService
    +extends java.lang.Object
    +
    This service describes a fan. + +

    In the R1 release of the HAP specification, this is described as Fan v2. In the R1 release of + the HAP specification, this is simply described as Fan.

    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/FaucetService.html b/apidocs/io/github/hapjava/services/impl/FaucetService.html new file mode 100644 index 000000000..8e41d7ab3 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/FaucetService.html @@ -0,0 +1,460 @@ + + + + + +FaucetService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class FaucetService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class FaucetService
    +extends java.lang.Object
    +
    This service describes accessories like faucets or shower heads and must only be included when an + accessory has either a linked HeaterCoolerService, single linked ValveService or + multiple linked ValveService (with/without HeaterCoolerService to describe water + outlets. This service serves as a top level service for such accessories.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/FilterMaintenanceService.html b/apidocs/io/github/hapjava/services/impl/FilterMaintenanceService.html new file mode 100644 index 000000000..42d67f488 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/FilterMaintenanceService.html @@ -0,0 +1,471 @@ + + + + + +FilterMaintenanceService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class FilterMaintenanceService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class FilterMaintenanceService
    +extends java.lang.Object
    +
    This service describes a filter maintenance.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/GarageDoorOpenerService.html b/apidocs/io/github/hapjava/services/impl/GarageDoorOpenerService.html new file mode 100644 index 000000000..494387a17 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/GarageDoorOpenerService.html @@ -0,0 +1,475 @@ + + + + + +GarageDoorOpenerService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class GarageDoorOpenerService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class GarageDoorOpenerService
    +extends java.lang.Object
    +
    This service describes a garage door opener that controls a single door.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/HAPProtocolInformationService.html b/apidocs/io/github/hapjava/services/impl/HAPProtocolInformationService.html new file mode 100644 index 000000000..462059c15 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/HAPProtocolInformationService.html @@ -0,0 +1,416 @@ + + + + + +HAPProtocolInformationService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class HAPProtocolInformationService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class HAPProtocolInformationService
    +extends java.lang.Object
    +
    This service HAP version.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        HAPProtocolInformationService

        +
        public HAPProtocolInformationService​(VersionCharacteristic versionCharacteristic)
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/HeaterCoolerService.html b/apidocs/io/github/hapjava/services/impl/HeaterCoolerService.html new file mode 100644 index 000000000..0e4289d64 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/HeaterCoolerService.html @@ -0,0 +1,533 @@ + + + + + +HeaterCoolerService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class HeaterCoolerService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class HeaterCoolerService
    +extends java.lang.Object
    +
    This service can be used to describe a heater and/or a cooler
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/HumidifierDehumidifierService.html b/apidocs/io/github/hapjava/services/impl/HumidifierDehumidifierService.html new file mode 100644 index 000000000..dc4cbd6e2 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/HumidifierDehumidifierService.html @@ -0,0 +1,533 @@ + + + + + +HumidifierDehumidifierService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class HumidifierDehumidifierService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class HumidifierDehumidifierService
    +extends java.lang.Object
    +
    This service can be used to describe an air humidifier or/and an air dehumidifier.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/HumiditySensorService.html b/apidocs/io/github/hapjava/services/impl/HumiditySensorService.html new file mode 100644 index 000000000..9082d267c --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/HumiditySensorService.html @@ -0,0 +1,499 @@ + + + + + +HumiditySensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class HumiditySensorService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class HumiditySensorService
    +extends java.lang.Object
    +
    This service describes a humidity sensor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/InputSourceService.html b/apidocs/io/github/hapjava/services/impl/InputSourceService.html new file mode 100644 index 000000000..6a5894aba --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/InputSourceService.html @@ -0,0 +1,491 @@ + + + + + +InputSourceService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class InputSourceService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class InputSourceService
    +extends java.lang.Object
    +
    This service describes a input source.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/IrrigationSystemService.html b/apidocs/io/github/hapjava/services/impl/IrrigationSystemService.html new file mode 100644 index 000000000..c530eb824 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/IrrigationSystemService.html @@ -0,0 +1,475 @@ + + + + + +IrrigationSystemService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class IrrigationSystemService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class IrrigationSystemService
    +extends java.lang.Object
    +
    An irrigation system service
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(StatusFaultCharacteristic statusFaultCharacteristic)
        +
      • +
      + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/LeakSensorService.html b/apidocs/io/github/hapjava/services/impl/LeakSensorService.html new file mode 100644 index 000000000..48038be42 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/LeakSensorService.html @@ -0,0 +1,499 @@ + + + + + +LeakSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class LeakSensorService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class LeakSensorService
    +extends java.lang.Object
    +
    This service describes a leak sensor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/LightSensorService.html b/apidocs/io/github/hapjava/services/impl/LightSensorService.html new file mode 100644 index 000000000..9839fae05 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/LightSensorService.html @@ -0,0 +1,499 @@ + + + + + +LightSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class LightSensorService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class LightSensorService
    +extends java.lang.Object
    +
    This service describes a light sensor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/LightbulbService.html b/apidocs/io/github/hapjava/services/impl/LightbulbService.html new file mode 100644 index 000000000..3343e7bd0 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/LightbulbService.html @@ -0,0 +1,499 @@ + + + + + +LightbulbService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class LightbulbService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class LightbulbService
    +extends java.lang.Object
    +
    This service describes a light bulb.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(HueCharacteristic hue)
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/LockMechanismService.html b/apidocs/io/github/hapjava/services/impl/LockMechanismService.html new file mode 100644 index 000000000..5e265535f --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/LockMechanismService.html @@ -0,0 +1,445 @@ + + + + + +LockMechanismService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class LockMechanismService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class LockMechanismService
    +extends java.lang.Object
    +
    The Lock Mechanism Service describes the physical lock mechanism on a device.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/MicrophoneService.html b/apidocs/io/github/hapjava/services/impl/MicrophoneService.html new file mode 100644 index 000000000..7322ac87e --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/MicrophoneService.html @@ -0,0 +1,458 @@ + + + + + +MicrophoneService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class MicrophoneService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class MicrophoneService
    +extends java.lang.Object
    +
    A Microphone service is used to control the sourcing of the input audio – primarily through a + microphone.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(VolumeCharacteristic volume)
        +
      • +
      + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/MotionSensorService.html b/apidocs/io/github/hapjava/services/impl/MotionSensorService.html new file mode 100644 index 000000000..bcd904a4e --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/MotionSensorService.html @@ -0,0 +1,499 @@ + + + + + +MotionSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class MotionSensorService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class MotionSensorService
    +extends java.lang.Object
    +
    This service describes a motion sensor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/OccupancySensorService.html b/apidocs/io/github/hapjava/services/impl/OccupancySensorService.html new file mode 100644 index 000000000..97661f824 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/OccupancySensorService.html @@ -0,0 +1,499 @@ + + + + + +OccupancySensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class OccupancySensorService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class OccupancySensorService
    +extends java.lang.Object
    +
    This service describes an occupancy sensor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/OutletService.html b/apidocs/io/github/hapjava/services/impl/OutletService.html new file mode 100644 index 000000000..54fe963f5 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/OutletService.html @@ -0,0 +1,445 @@ + + + + + +OutletService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class OutletService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class OutletService
    +extends java.lang.Object
    +
    This service describes a power outlet.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/SecuritySystemService.html b/apidocs/io/github/hapjava/services/impl/SecuritySystemService.html new file mode 100644 index 000000000..464f15305 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/SecuritySystemService.html @@ -0,0 +1,487 @@ + + + + + +SecuritySystemService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SecuritySystemService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class SecuritySystemService
    +extends java.lang.Object
    +
    This service describes a security system service.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/ServiceLabelService.html b/apidocs/io/github/hapjava/services/impl/ServiceLabelService.html new file mode 100644 index 000000000..d9eefb1ce --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/ServiceLabelService.html @@ -0,0 +1,416 @@ + + + + + +ServiceLabelService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ServiceLabelService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class ServiceLabelService
    +extends java.lang.Object
    +
    This service describes label scheme.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/SlatService.html b/apidocs/io/github/hapjava/services/impl/SlatService.html new file mode 100644 index 000000000..0c036aa81 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/SlatService.html @@ -0,0 +1,487 @@ + + + + + +SlatService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SlatService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class SlatService
    +extends java.lang.Object
    +
    This service describes a slat
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/SmartSpeakerService.html b/apidocs/io/github/hapjava/services/impl/SmartSpeakerService.html new file mode 100644 index 000000000..e0d2a96dd --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/SmartSpeakerService.html @@ -0,0 +1,501 @@ + + + + + +SmartSpeakerService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SmartSpeakerService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class SmartSpeakerService
    +extends java.lang.Object
    +
    A smart speaker service can be used to control the audio output settings on a speaker device.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(VolumeCharacteristic volume)
        +
      • +
      + + + + + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(MuteCharacteristic muteCharacteristic)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(AirPlayEnableCharacteristic airPlayEnableCharacteristic)
        +
      • +
      + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/SmokeSensorService.html b/apidocs/io/github/hapjava/services/impl/SmokeSensorService.html new file mode 100644 index 000000000..72f236ccd --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/SmokeSensorService.html @@ -0,0 +1,499 @@ + + + + + +SmokeSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SmokeSensorService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class SmokeSensorService
    +extends java.lang.Object
    +
    This service describes a Smoke detector Sensor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/SpeakerService.html b/apidocs/io/github/hapjava/services/impl/SpeakerService.html new file mode 100644 index 000000000..f6d57163c --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/SpeakerService.html @@ -0,0 +1,457 @@ + + + + + +SpeakerService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SpeakerService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class SpeakerService
    +extends java.lang.Object
    +
    A Speaker service can be used to control the audio output settings on a speaker device.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(VolumeCharacteristic volume)
        +
      • +
      + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/StatelessProgrammableSwitchService.html b/apidocs/io/github/hapjava/services/impl/StatelessProgrammableSwitchService.html new file mode 100644 index 000000000..20d18eefd --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/StatelessProgrammableSwitchService.html @@ -0,0 +1,457 @@ + + + + + +StatelessProgrammableSwitchService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class StatelessProgrammableSwitchService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class StatelessProgrammableSwitchService
    +extends java.lang.Object
    +
    This service describes a stateless programmable switch.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/SwitchService.html b/apidocs/io/github/hapjava/services/impl/SwitchService.html new file mode 100644 index 000000000..7ca1512dc --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/SwitchService.html @@ -0,0 +1,443 @@ + + + + + +SwitchService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class SwitchService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class SwitchService
    +extends java.lang.Object
    +
    This service describes a binary switch.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/TelevisionService.html b/apidocs/io/github/hapjava/services/impl/TelevisionService.html new file mode 100644 index 000000000..ce20247bf --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/TelevisionService.html @@ -0,0 +1,535 @@ + + + + + +TelevisionService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TelevisionService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class TelevisionService
    +extends java.lang.Object
    +
    This service describes a television.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/TelevisionSpeakerService.html b/apidocs/io/github/hapjava/services/impl/TelevisionSpeakerService.html new file mode 100644 index 000000000..24a36f66e --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/TelevisionSpeakerService.html @@ -0,0 +1,485 @@ + + + + + +TelevisionSpeakerService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TelevisionSpeakerService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class TelevisionSpeakerService
    +extends java.lang.Object
    +
    This service describes a television.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(ActiveCharacteristic activeCharacteristic)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(VolumeCharacteristic volume)
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/TemperatureSensorService.html b/apidocs/io/github/hapjava/services/impl/TemperatureSensorService.html new file mode 100644 index 000000000..d008dce68 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/TemperatureSensorService.html @@ -0,0 +1,499 @@ + + + + + +TemperatureSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class TemperatureSensorService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class TemperatureSensorService
    +extends java.lang.Object
    +
    This service describes a Temperature Sensor.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/ThermostatService.html b/apidocs/io/github/hapjava/services/impl/ThermostatService.html new file mode 100644 index 000000000..a2ca724a7 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/ThermostatService.html @@ -0,0 +1,507 @@ + + + + + +ThermostatService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ThermostatService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class ThermostatService
    +extends java.lang.Object
    +
    This service describes a thermostat.
    +
  • +
+
+
+ +
+
+ +
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/ValveService.html b/apidocs/io/github/hapjava/services/impl/ValveService.html new file mode 100644 index 000000000..c24418f47 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/ValveService.html @@ -0,0 +1,517 @@ + + + + + +ValveService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class ValveService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class ValveService
    +extends java.lang.Object
    +
    This service describes accessories valves.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(StatusFaultCharacteristic statusFaultCharacteristic)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(SetDurationCharacteristic setDurationCharacteristic)
        +
      • +
      + + + + + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(IsConfiguredCharacteristic isConfiguredCharacteristic)
        +
      • +
      + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/WindowCoveringService.html b/apidocs/io/github/hapjava/services/impl/WindowCoveringService.html new file mode 100644 index 000000000..9d45e900a --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/WindowCoveringService.html @@ -0,0 +1,531 @@ + + + + + +WindowCoveringService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class WindowCoveringService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class WindowCoveringService
    +extends java.lang.Object
    +
    This service describes motorized window coverings or shades
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(HoldPositionCharacteristic holdPositionCharacteristic)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/WindowService.html b/apidocs/io/github/hapjava/services/impl/WindowService.html new file mode 100644 index 000000000..b6629adc7 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/WindowService.html @@ -0,0 +1,475 @@ + + + + + +WindowService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class WindowService

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Service
    +
    +
    +
    public class WindowService
    +extends java.lang.Object
    +
    This service describes a motorized window.
    +
  • +
+
+
+ +
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(NameCharacteristic name)
        +
      • +
      + + + +
        +
      • +

        addOptionalCharacteristic

        +
        public void addOptionalCharacteristic​(HoldPositionCharacteristic holdPositionCharacteristic)
        +
      • +
      + + + + + + + +
        +
      • +

        getCharacteristics

        +
        public java.util.List<Characteristic> getCharacteristics()
        +
        Description copied from interface: Service
        +
        Characteristics are the variables offered for reading, updating, and eventing by the Service + over the HomeKit protocol. + +

        It is important to maintain the order of this list and not change its contents between + invocations, or a pairing error will result.

        +
        +
        Specified by:
        +
        getCharacteristics in interface Service
        +
        Returns:
        +
        the list of Characteristics.
        +
        +
      • +
      + + + +
        +
      • +

        getType

        +
        public java.lang.String getType()
        +
        Description copied from interface: Service
        +
        The type is a UUID that uniquely identifies the type of Service offered. Apple defines several + types for standard Services, however UUIDs outside this range are allowed for custom Services.
        +
        +
        Specified by:
        +
        getType in interface Service
        +
        Returns:
        +
        A string representation of the UUID, with hexadecimal digits in the format + ########-####-####-####-############.
        +
        +
      • +
      + + + +
        +
      • +

        getLinkedServices

        +
        public java.util.List<Service> getLinkedServices()
        +
        Description copied from interface: Service
        +
        List of all the services to which the service links
        +
        +
        Specified by:
        +
        getLinkedServices in interface Service
        +
        Returns:
        +
        the list of linked services.
        +
        +
      • +
      + + + +
        +
      • +

        addCharacteristic

        +
        public void addCharacteristic​(Characteristic characteristic)
        +
      • +
      + + + +
        +
      • +

        addLinkedService

        +
        public void addLinkedService​(Service service)
        +
        Description copied from interface: Service
        +
        Add linked services
        +
        +
        Specified by:
        +
        addLinkedService in interface Service
        +
        Parameters:
        +
        service - linked service
        +
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/AccessoryInformationService.html b/apidocs/io/github/hapjava/services/impl/class-use/AccessoryInformationService.html new file mode 100644 index 000000000..deb229f60 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/AccessoryInformationService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.AccessoryInformationService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.AccessoryInformationService

+
+
No usage of io.github.hapjava.services.impl.AccessoryInformationService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/AirPurifierService.html b/apidocs/io/github/hapjava/services/impl/class-use/AirPurifierService.html new file mode 100644 index 000000000..d6b40f49f --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/AirPurifierService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.AirPurifierService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.AirPurifierService

+
+
No usage of io.github.hapjava.services.impl.AirPurifierService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/AirQualityService.html b/apidocs/io/github/hapjava/services/impl/class-use/AirQualityService.html new file mode 100644 index 000000000..244024597 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/AirQualityService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.AirQualityService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.AirQualityService

+
+
No usage of io.github.hapjava.services.impl.AirQualityService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/BasicFanService.html b/apidocs/io/github/hapjava/services/impl/class-use/BasicFanService.html new file mode 100644 index 000000000..7aabbe175 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/BasicFanService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.BasicFanService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.BasicFanService

+
+
No usage of io.github.hapjava.services.impl.BasicFanService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/BatteryService.html b/apidocs/io/github/hapjava/services/impl/class-use/BatteryService.html new file mode 100644 index 000000000..725dabaef --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/BatteryService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.BatteryService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.BatteryService

+
+
No usage of io.github.hapjava.services.impl.BatteryService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/CarbonDioxideSensorService.html b/apidocs/io/github/hapjava/services/impl/class-use/CarbonDioxideSensorService.html new file mode 100644 index 000000000..62a8949f1 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/CarbonDioxideSensorService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.CarbonDioxideSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.CarbonDioxideSensorService

+
+
No usage of io.github.hapjava.services.impl.CarbonDioxideSensorService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/CarbonMonoxideSensorService.html b/apidocs/io/github/hapjava/services/impl/class-use/CarbonMonoxideSensorService.html new file mode 100644 index 000000000..ac6fe0991 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/CarbonMonoxideSensorService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.CarbonMonoxideSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.CarbonMonoxideSensorService

+
+
No usage of io.github.hapjava.services.impl.CarbonMonoxideSensorService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/ContactSensorService.html b/apidocs/io/github/hapjava/services/impl/class-use/ContactSensorService.html new file mode 100644 index 000000000..f147ce441 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/ContactSensorService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.ContactSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.ContactSensorService

+
+
No usage of io.github.hapjava.services.impl.ContactSensorService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/DoorService.html b/apidocs/io/github/hapjava/services/impl/class-use/DoorService.html new file mode 100644 index 000000000..c64562c65 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/DoorService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.DoorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.DoorService

+
+
No usage of io.github.hapjava.services.impl.DoorService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/DoorbellService.html b/apidocs/io/github/hapjava/services/impl/class-use/DoorbellService.html new file mode 100644 index 000000000..146bfb10f --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/DoorbellService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.DoorbellService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.DoorbellService

+
+
No usage of io.github.hapjava.services.impl.DoorbellService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/FanService.html b/apidocs/io/github/hapjava/services/impl/class-use/FanService.html new file mode 100644 index 000000000..242b4402d --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/FanService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.FanService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.FanService

+
+
No usage of io.github.hapjava.services.impl.FanService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/FaucetService.html b/apidocs/io/github/hapjava/services/impl/class-use/FaucetService.html new file mode 100644 index 000000000..6a0b63239 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/FaucetService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.FaucetService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.FaucetService

+
+
No usage of io.github.hapjava.services.impl.FaucetService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/FilterMaintenanceService.html b/apidocs/io/github/hapjava/services/impl/class-use/FilterMaintenanceService.html new file mode 100644 index 000000000..4e3f581c3 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/FilterMaintenanceService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.FilterMaintenanceService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.FilterMaintenanceService

+
+
No usage of io.github.hapjava.services.impl.FilterMaintenanceService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/GarageDoorOpenerService.html b/apidocs/io/github/hapjava/services/impl/class-use/GarageDoorOpenerService.html new file mode 100644 index 000000000..8ef1e2b26 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/GarageDoorOpenerService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.GarageDoorOpenerService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.GarageDoorOpenerService

+
+
No usage of io.github.hapjava.services.impl.GarageDoorOpenerService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/HAPProtocolInformationService.html b/apidocs/io/github/hapjava/services/impl/class-use/HAPProtocolInformationService.html new file mode 100644 index 000000000..6b07d9a46 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/HAPProtocolInformationService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.HAPProtocolInformationService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.HAPProtocolInformationService

+
+
No usage of io.github.hapjava.services.impl.HAPProtocolInformationService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/HeaterCoolerService.html b/apidocs/io/github/hapjava/services/impl/class-use/HeaterCoolerService.html new file mode 100644 index 000000000..ed77e79ac --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/HeaterCoolerService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.HeaterCoolerService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.HeaterCoolerService

+
+
No usage of io.github.hapjava.services.impl.HeaterCoolerService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/HumidifierDehumidifierService.html b/apidocs/io/github/hapjava/services/impl/class-use/HumidifierDehumidifierService.html new file mode 100644 index 000000000..6815edc3d --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/HumidifierDehumidifierService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.HumidifierDehumidifierService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.HumidifierDehumidifierService

+
+
No usage of io.github.hapjava.services.impl.HumidifierDehumidifierService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/HumiditySensorService.html b/apidocs/io/github/hapjava/services/impl/class-use/HumiditySensorService.html new file mode 100644 index 000000000..7e5514783 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/HumiditySensorService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.HumiditySensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.HumiditySensorService

+
+
No usage of io.github.hapjava.services.impl.HumiditySensorService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/InputSourceService.html b/apidocs/io/github/hapjava/services/impl/class-use/InputSourceService.html new file mode 100644 index 000000000..992d7e895 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/InputSourceService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.InputSourceService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.InputSourceService

+
+
No usage of io.github.hapjava.services.impl.InputSourceService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/IrrigationSystemService.html b/apidocs/io/github/hapjava/services/impl/class-use/IrrigationSystemService.html new file mode 100644 index 000000000..e96bfaca0 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/IrrigationSystemService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.IrrigationSystemService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.IrrigationSystemService

+
+
No usage of io.github.hapjava.services.impl.IrrigationSystemService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/LeakSensorService.html b/apidocs/io/github/hapjava/services/impl/class-use/LeakSensorService.html new file mode 100644 index 000000000..feecf9973 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/LeakSensorService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.LeakSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.LeakSensorService

+
+
No usage of io.github.hapjava.services.impl.LeakSensorService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/LightSensorService.html b/apidocs/io/github/hapjava/services/impl/class-use/LightSensorService.html new file mode 100644 index 000000000..fca756b23 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/LightSensorService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.LightSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.LightSensorService

+
+
No usage of io.github.hapjava.services.impl.LightSensorService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/LightbulbService.html b/apidocs/io/github/hapjava/services/impl/class-use/LightbulbService.html new file mode 100644 index 000000000..07ffbd133 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/LightbulbService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.LightbulbService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.LightbulbService

+
+
No usage of io.github.hapjava.services.impl.LightbulbService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/LockMechanismService.html b/apidocs/io/github/hapjava/services/impl/class-use/LockMechanismService.html new file mode 100644 index 000000000..6eadf882f --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/LockMechanismService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.LockMechanismService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.LockMechanismService

+
+
No usage of io.github.hapjava.services.impl.LockMechanismService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/MicrophoneService.html b/apidocs/io/github/hapjava/services/impl/class-use/MicrophoneService.html new file mode 100644 index 000000000..49201ac70 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/MicrophoneService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.MicrophoneService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.MicrophoneService

+
+
No usage of io.github.hapjava.services.impl.MicrophoneService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/MotionSensorService.html b/apidocs/io/github/hapjava/services/impl/class-use/MotionSensorService.html new file mode 100644 index 000000000..afb5164ea --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/MotionSensorService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.MotionSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.MotionSensorService

+
+
No usage of io.github.hapjava.services.impl.MotionSensorService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/OccupancySensorService.html b/apidocs/io/github/hapjava/services/impl/class-use/OccupancySensorService.html new file mode 100644 index 000000000..8f2cbf87d --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/OccupancySensorService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.OccupancySensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.OccupancySensorService

+
+
No usage of io.github.hapjava.services.impl.OccupancySensorService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/OutletService.html b/apidocs/io/github/hapjava/services/impl/class-use/OutletService.html new file mode 100644 index 000000000..2762c389b --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/OutletService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.OutletService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.OutletService

+
+
No usage of io.github.hapjava.services.impl.OutletService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/SecuritySystemService.html b/apidocs/io/github/hapjava/services/impl/class-use/SecuritySystemService.html new file mode 100644 index 000000000..812f3f39e --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/SecuritySystemService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.SecuritySystemService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.SecuritySystemService

+
+
No usage of io.github.hapjava.services.impl.SecuritySystemService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/ServiceLabelService.html b/apidocs/io/github/hapjava/services/impl/class-use/ServiceLabelService.html new file mode 100644 index 000000000..a35fa652b --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/ServiceLabelService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.ServiceLabelService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.ServiceLabelService

+
+
No usage of io.github.hapjava.services.impl.ServiceLabelService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/SlatService.html b/apidocs/io/github/hapjava/services/impl/class-use/SlatService.html new file mode 100644 index 000000000..07c8cc7e7 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/SlatService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.SlatService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.SlatService

+
+
No usage of io.github.hapjava.services.impl.SlatService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/SmartSpeakerService.html b/apidocs/io/github/hapjava/services/impl/class-use/SmartSpeakerService.html new file mode 100644 index 000000000..2fae3bfe1 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/SmartSpeakerService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.SmartSpeakerService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.SmartSpeakerService

+
+
No usage of io.github.hapjava.services.impl.SmartSpeakerService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/SmokeSensorService.html b/apidocs/io/github/hapjava/services/impl/class-use/SmokeSensorService.html new file mode 100644 index 000000000..3326c9c0c --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/SmokeSensorService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.SmokeSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.SmokeSensorService

+
+
No usage of io.github.hapjava.services.impl.SmokeSensorService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/SpeakerService.html b/apidocs/io/github/hapjava/services/impl/class-use/SpeakerService.html new file mode 100644 index 000000000..2ffa7d7b3 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/SpeakerService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.SpeakerService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.SpeakerService

+
+
No usage of io.github.hapjava.services.impl.SpeakerService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/StatelessProgrammableSwitchService.html b/apidocs/io/github/hapjava/services/impl/class-use/StatelessProgrammableSwitchService.html new file mode 100644 index 000000000..696760ebc --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/StatelessProgrammableSwitchService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.StatelessProgrammableSwitchService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.StatelessProgrammableSwitchService

+
+
No usage of io.github.hapjava.services.impl.StatelessProgrammableSwitchService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/SwitchService.html b/apidocs/io/github/hapjava/services/impl/class-use/SwitchService.html new file mode 100644 index 000000000..8f282e7f2 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/SwitchService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.SwitchService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.SwitchService

+
+
No usage of io.github.hapjava.services.impl.SwitchService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/TelevisionService.html b/apidocs/io/github/hapjava/services/impl/class-use/TelevisionService.html new file mode 100644 index 000000000..566e4bab4 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/TelevisionService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.TelevisionService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.TelevisionService

+
+
No usage of io.github.hapjava.services.impl.TelevisionService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/TelevisionSpeakerService.html b/apidocs/io/github/hapjava/services/impl/class-use/TelevisionSpeakerService.html new file mode 100644 index 000000000..af4a3170b --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/TelevisionSpeakerService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.TelevisionSpeakerService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.TelevisionSpeakerService

+
+
No usage of io.github.hapjava.services.impl.TelevisionSpeakerService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/TemperatureSensorService.html b/apidocs/io/github/hapjava/services/impl/class-use/TemperatureSensorService.html new file mode 100644 index 000000000..5662e9d96 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/TemperatureSensorService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.TemperatureSensorService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.TemperatureSensorService

+
+
No usage of io.github.hapjava.services.impl.TemperatureSensorService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/ThermostatService.html b/apidocs/io/github/hapjava/services/impl/class-use/ThermostatService.html new file mode 100644 index 000000000..df5d48dd2 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/ThermostatService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.ThermostatService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.ThermostatService

+
+
No usage of io.github.hapjava.services.impl.ThermostatService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/ValveService.html b/apidocs/io/github/hapjava/services/impl/class-use/ValveService.html new file mode 100644 index 000000000..dc94f2a63 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/ValveService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.ValveService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.ValveService

+
+
No usage of io.github.hapjava.services.impl.ValveService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/WindowCoveringService.html b/apidocs/io/github/hapjava/services/impl/class-use/WindowCoveringService.html new file mode 100644 index 000000000..418fd6f56 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/WindowCoveringService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.WindowCoveringService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.WindowCoveringService

+
+
No usage of io.github.hapjava.services.impl.WindowCoveringService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/class-use/WindowService.html b/apidocs/io/github/hapjava/services/impl/class-use/WindowService.html new file mode 100644 index 000000000..5fab7e698 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/class-use/WindowService.html @@ -0,0 +1,150 @@ + + + + + +Uses of Class io.github.hapjava.services.impl.WindowService (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Class
io.github.hapjava.services.impl.WindowService

+
+
No usage of io.github.hapjava.services.impl.WindowService
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/package-summary.html b/apidocs/io/github/hapjava/services/impl/package-summary.html new file mode 100644 index 000000000..ad99cc681 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/package-summary.html @@ -0,0 +1,426 @@ + + + + + +io.github.hapjava.services.impl (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.services.impl

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/package-tree.html b/apidocs/io/github/hapjava/services/impl/package-tree.html new file mode 100644 index 000000000..1bbb89265 --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/package-tree.html @@ -0,0 +1,207 @@ + + + + + +io.github.hapjava.services.impl Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.services.impl

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/impl/package-use.html b/apidocs/io/github/hapjava/services/impl/package-use.html new file mode 100644 index 000000000..10d4305ec --- /dev/null +++ b/apidocs/io/github/hapjava/services/impl/package-use.html @@ -0,0 +1,150 @@ + + + + + +Uses of Package io.github.hapjava.services.impl (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.services.impl

+
+
No usage of io.github.hapjava.services.impl
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/package-summary.html b/apidocs/io/github/hapjava/services/package-summary.html new file mode 100644 index 000000000..de56be8a6 --- /dev/null +++ b/apidocs/io/github/hapjava/services/package-summary.html @@ -0,0 +1,170 @@ + + + + + +io.github.hapjava.services (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Package io.github.hapjava.services

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/package-tree.html b/apidocs/io/github/hapjava/services/package-tree.html new file mode 100644 index 000000000..1a8e217db --- /dev/null +++ b/apidocs/io/github/hapjava/services/package-tree.html @@ -0,0 +1,161 @@ + + + + + +io.github.hapjava.services Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For Package io.github.hapjava.services

+Package Hierarchies: + +
+
+
+

Interface Hierarchy

+
    +
  • io.github.hapjava.services.Service
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/apidocs/io/github/hapjava/services/package-use.html b/apidocs/io/github/hapjava/services/package-use.html new file mode 100644 index 000000000..04d331bcf --- /dev/null +++ b/apidocs/io/github/hapjava/services/package-use.html @@ -0,0 +1,235 @@ + + + + + +Uses of Package io.github.hapjava.services (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Uses of Package
io.github.hapjava.services

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/apidocs/jquery-ui.overrides.css b/apidocs/jquery-ui.overrides.css new file mode 100644 index 000000000..f25850c90 --- /dev/null +++ b/apidocs/jquery-ui.overrides.css @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +.ui-state-active, +.ui-widget-content .ui-state-active, +.ui-widget-header .ui-state-active, +a.ui-button:active, +.ui-button:active, +.ui-button.ui-state-active:hover { + /* Overrides the color of selection used in jQuery UI */ + background: #F8981D; + border: 1px solid #F8981D; +} \ No newline at end of file diff --git a/apidocs/jquery/external/jquery/jquery.js b/apidocs/jquery/external/jquery/jquery.js new file mode 100644 index 000000000..f2fa5e858 --- /dev/null +++ b/apidocs/jquery/external/jquery/jquery.js @@ -0,0 +1,10872 @@ +/*! + * jQuery JavaScript Library v3.5.1 + * https://jquery.com/ + * + * Includes Sizzle.js + * https://sizzlejs.com/ + * + * Copyright JS Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2020-05-04T22:49Z + */ +( function( global, factory ) { + + "use strict"; + + if ( typeof module === "object" && typeof module.exports === "object" ) { + + // For CommonJS and CommonJS-like environments where a proper `window` + // is present, execute the factory and get jQuery. + // For environments that do not have a `window` with a `document` + // (such as Node.js), expose a factory as module.exports. + // This accentuates the need for the creation of a real `window`. + // e.g. var jQuery = require("jquery")(window); + // See ticket #14549 for more info. + module.exports = global.document ? + factory( global, true ) : + function( w ) { + if ( !w.document ) { + throw new Error( "jQuery requires a window with a document" ); + } + return factory( w ); + }; + } else { + factory( global ); + } + +// Pass this if window is not defined yet +} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { + +// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 +// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode +// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common +// enough that all such attempts are guarded in a try block. +"use strict"; + +var arr = []; + +var getProto = Object.getPrototypeOf; + +var slice = arr.slice; + +var flat = arr.flat ? function( array ) { + return arr.flat.call( array ); +} : function( array ) { + return arr.concat.apply( [], array ); +}; + + +var push = arr.push; + +var indexOf = arr.indexOf; + +var class2type = {}; + +var toString = class2type.toString; + +var hasOwn = class2type.hasOwnProperty; + +var fnToString = hasOwn.toString; + +var ObjectFunctionString = fnToString.call( Object ); + +var support = {}; + +var isFunction = function isFunction( obj ) { + + // Support: Chrome <=57, Firefox <=52 + // In some browsers, typeof returns "function" for HTML elements + // (i.e., `typeof document.createElement( "object" ) === "function"`). + // We don't want to classify *any* DOM node as a function. + return typeof obj === "function" && typeof obj.nodeType !== "number"; + }; + + +var isWindow = function isWindow( obj ) { + return obj != null && obj === obj.window; + }; + + +var document = window.document; + + + + var preservedScriptAttributes = { + type: true, + src: true, + nonce: true, + noModule: true + }; + + function DOMEval( code, node, doc ) { + doc = doc || document; + + var i, val, + script = doc.createElement( "script" ); + + script.text = code; + if ( node ) { + for ( i in preservedScriptAttributes ) { + + // Support: Firefox 64+, Edge 18+ + // Some browsers don't support the "nonce" property on scripts. + // On the other hand, just using `getAttribute` is not enough as + // the `nonce` attribute is reset to an empty string whenever it + // becomes browsing-context connected. + // See https://github.com/whatwg/html/issues/2369 + // See https://html.spec.whatwg.org/#nonce-attributes + // The `node.getAttribute` check was added for the sake of + // `jQuery.globalEval` so that it can fake a nonce-containing node + // via an object. + val = node[ i ] || node.getAttribute && node.getAttribute( i ); + if ( val ) { + script.setAttribute( i, val ); + } + } + } + doc.head.appendChild( script ).parentNode.removeChild( script ); + } + + +function toType( obj ) { + if ( obj == null ) { + return obj + ""; + } + + // Support: Android <=2.3 only (functionish RegExp) + return typeof obj === "object" || typeof obj === "function" ? + class2type[ toString.call( obj ) ] || "object" : + typeof obj; +} +/* global Symbol */ +// Defining this global in .eslintrc.json would create a danger of using the global +// unguarded in another place, it seems safer to define global only for this module + + + +var + version = "3.5.1", + + // Define a local copy of jQuery + jQuery = function( selector, context ) { + + // The jQuery object is actually just the init constructor 'enhanced' + // Need init if jQuery is called (just allow error to be thrown if not included) + return new jQuery.fn.init( selector, context ); + }; + +jQuery.fn = jQuery.prototype = { + + // The current version of jQuery being used + jquery: version, + + constructor: jQuery, + + // The default length of a jQuery object is 0 + length: 0, + + toArray: function() { + return slice.call( this ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + + // Return all the elements in a clean array + if ( num == null ) { + return slice.call( this ); + } + + // Return just the one element from the set + return num < 0 ? this[ num + this.length ] : this[ num ]; + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + + // Build a new jQuery matched element set + var ret = jQuery.merge( this.constructor(), elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + each: function( callback ) { + return jQuery.each( this, callback ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map( this, function( elem, i ) { + return callback.call( elem, i, elem ); + } ) ); + }, + + slice: function() { + return this.pushStack( slice.apply( this, arguments ) ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + even: function() { + return this.pushStack( jQuery.grep( this, function( _elem, i ) { + return ( i + 1 ) % 2; + } ) ); + }, + + odd: function() { + return this.pushStack( jQuery.grep( this, function( _elem, i ) { + return i % 2; + } ) ); + }, + + eq: function( i ) { + var len = this.length, + j = +i + ( i < 0 ? len : 0 ); + return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); + }, + + end: function() { + return this.prevObject || this.constructor(); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: arr.sort, + splice: arr.splice +}; + +jQuery.extend = jQuery.fn.extend = function() { + var options, name, src, copy, copyIsArray, clone, + target = arguments[ 0 ] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + + // Skip the boolean and the target + target = arguments[ i ] || {}; + i++; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !isFunction( target ) ) { + target = {}; + } + + // Extend jQuery itself if only one argument is passed + if ( i === length ) { + target = this; + i--; + } + + for ( ; i < length; i++ ) { + + // Only deal with non-null/undefined values + if ( ( options = arguments[ i ] ) != null ) { + + // Extend the base object + for ( name in options ) { + copy = options[ name ]; + + // Prevent Object.prototype pollution + // Prevent never-ending loop + if ( name === "__proto__" || target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject( copy ) || + ( copyIsArray = Array.isArray( copy ) ) ) ) { + src = target[ name ]; + + // Ensure proper type for the source value + if ( copyIsArray && !Array.isArray( src ) ) { + clone = []; + } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) { + clone = {}; + } else { + clone = src; + } + copyIsArray = false; + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend( { + + // Unique for each copy of jQuery on the page + expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), + + // Assume jQuery is ready without the ready module + isReady: true, + + error: function( msg ) { + throw new Error( msg ); + }, + + noop: function() {}, + + isPlainObject: function( obj ) { + var proto, Ctor; + + // Detect obvious negatives + // Use toString instead of jQuery.type to catch host objects + if ( !obj || toString.call( obj ) !== "[object Object]" ) { + return false; + } + + proto = getProto( obj ); + + // Objects with no prototype (e.g., `Object.create( null )`) are plain + if ( !proto ) { + return true; + } + + // Objects with prototype are plain iff they were constructed by a global Object function + Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; + return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; + }, + + isEmptyObject: function( obj ) { + var name; + + for ( name in obj ) { + return false; + } + return true; + }, + + // Evaluates a script in a provided context; falls back to the global one + // if not specified. + globalEval: function( code, options, doc ) { + DOMEval( code, { nonce: options && options.nonce }, doc ); + }, + + each: function( obj, callback ) { + var length, i = 0; + + if ( isArrayLike( obj ) ) { + length = obj.length; + for ( ; i < length; i++ ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } else { + for ( i in obj ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } + + return obj; + }, + + // results is for internal usage only + makeArray: function( arr, results ) { + var ret = results || []; + + if ( arr != null ) { + if ( isArrayLike( Object( arr ) ) ) { + jQuery.merge( ret, + typeof arr === "string" ? + [ arr ] : arr + ); + } else { + push.call( ret, arr ); + } + } + + return ret; + }, + + inArray: function( elem, arr, i ) { + return arr == null ? -1 : indexOf.call( arr, elem, i ); + }, + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + merge: function( first, second ) { + var len = +second.length, + j = 0, + i = first.length; + + for ( ; j < len; j++ ) { + first[ i++ ] = second[ j ]; + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, invert ) { + var callbackInverse, + matches = [], + i = 0, + length = elems.length, + callbackExpect = !invert; + + // Go through the array, only saving the items + // that pass the validator function + for ( ; i < length; i++ ) { + callbackInverse = !callback( elems[ i ], i ); + if ( callbackInverse !== callbackExpect ) { + matches.push( elems[ i ] ); + } + } + + return matches; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var length, value, + i = 0, + ret = []; + + // Go through the array, translating each of the items to their new values + if ( isArrayLike( elems ) ) { + length = elems.length; + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + + // Go through every key on the object, + } else { + for ( i in elems ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + } + + // Flatten any nested arrays + return flat( ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // jQuery.support is not used in Core but other projects attach their + // properties to it so it needs to exist. + support: support +} ); + +if ( typeof Symbol === "function" ) { + jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; +} + +// Populate the class2type map +jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), +function( _i, name ) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +} ); + +function isArrayLike( obj ) { + + // Support: real iOS 8.2 only (not reproducible in simulator) + // `in` check used to prevent JIT error (gh-2145) + // hasOwn isn't used here due to false negatives + // regarding Nodelist length in IE + var length = !!obj && "length" in obj && obj.length, + type = toType( obj ); + + if ( isFunction( obj ) || isWindow( obj ) ) { + return false; + } + + return type === "array" || length === 0 || + typeof length === "number" && length > 0 && ( length - 1 ) in obj; +} +var Sizzle = +/*! + * Sizzle CSS Selector Engine v2.3.5 + * https://sizzlejs.com/ + * + * Copyright JS Foundation and other contributors + * Released under the MIT license + * https://js.foundation/ + * + * Date: 2020-03-14 + */ +( function( window ) { +var i, + support, + Expr, + getText, + isXML, + tokenize, + compile, + select, + outermostContext, + sortInput, + hasDuplicate, + + // Local document vars + setDocument, + document, + docElem, + documentIsHTML, + rbuggyQSA, + rbuggyMatches, + matches, + contains, + + // Instance-specific data + expando = "sizzle" + 1 * new Date(), + preferredDoc = window.document, + dirruns = 0, + done = 0, + classCache = createCache(), + tokenCache = createCache(), + compilerCache = createCache(), + nonnativeSelectorCache = createCache(), + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + } + return 0; + }, + + // Instance methods + hasOwn = ( {} ).hasOwnProperty, + arr = [], + pop = arr.pop, + pushNative = arr.push, + push = arr.push, + slice = arr.slice, + + // Use a stripped-down indexOf as it's faster than native + // https://jsperf.com/thor-indexof-vs-for/5 + indexOf = function( list, elem ) { + var i = 0, + len = list.length; + for ( ; i < len; i++ ) { + if ( list[ i ] === elem ) { + return i; + } + } + return -1; + }, + + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" + + "ismap|loop|multiple|open|readonly|required|scoped", + + // Regular expressions + + // http://www.w3.org/TR/css3-selectors/#whitespace + whitespace = "[\\x20\\t\\r\\n\\f]", + + // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram + identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace + + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", + + // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors + attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + + + // Operator (capture 2) + "*([*^$|!~]?=)" + whitespace + + + // "Attribute values must be CSS identifiers [capture 5] + // or strings [capture 3 or capture 4]" + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + + whitespace + "*\\]", + + pseudos = ":(" + identifier + ")(?:\\((" + + + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: + // 1. quoted (capture 3; capture 4 or capture 5) + "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + + + // 2. simple (capture 6) + "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + + + // 3. anything else (capture 2) + ".*" + + ")\\)|)", + + // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter + rwhitespace = new RegExp( whitespace + "+", "g" ), + rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + + whitespace + "+$", "g" ), + + rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), + rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + + "*" ), + rdescend = new RegExp( whitespace + "|>" ), + + rpseudo = new RegExp( pseudos ), + ridentifier = new RegExp( "^" + identifier + "$" ), + + matchExpr = { + "ID": new RegExp( "^#(" + identifier + ")" ), + "CLASS": new RegExp( "^\\.(" + identifier + ")" ), + "TAG": new RegExp( "^(" + identifier + "|[*])" ), + "ATTR": new RegExp( "^" + attributes ), + "PSEUDO": new RegExp( "^" + pseudos ), + "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), + + // For use in libraries implementing .is() + // We use this for POS matching in `select` + "needsContext": new RegExp( "^" + whitespace + + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + }, + + rhtml = /HTML$/i, + rinputs = /^(?:input|select|textarea|button)$/i, + rheader = /^h\d$/i, + + rnative = /^[^{]+\{\s*\[native \w/, + + // Easily-parseable/retrievable ID or TAG or CLASS selectors + rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, + + rsibling = /[+~]/, + + // CSS escapes + // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters + runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ), + funescape = function( escape, nonHex ) { + var high = "0x" + escape.slice( 1 ) - 0x10000; + + return nonHex ? + + // Strip the backslash prefix from a non-hex escape sequence + nonHex : + + // Replace a hexadecimal escape sequence with the encoded Unicode code point + // Support: IE <=11+ + // For values outside the Basic Multilingual Plane (BMP), manually construct a + // surrogate pair + high < 0 ? + String.fromCharCode( high + 0x10000 ) : + String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); + }, + + // CSS string/identifier serialization + // https://drafts.csswg.org/cssom/#common-serializing-idioms + rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, + fcssescape = function( ch, asCodePoint ) { + if ( asCodePoint ) { + + // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER + if ( ch === "\0" ) { + return "\uFFFD"; + } + + // Control characters and (dependent upon position) numbers get escaped as code points + return ch.slice( 0, -1 ) + "\\" + + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; + } + + // Other potentially-special ASCII characters get backslash-escaped + return "\\" + ch; + }, + + // Used for iframes + // See setDocument() + // Removing the function wrapper causes a "Permission Denied" + // error in IE + unloadHandler = function() { + setDocument(); + }, + + inDisabledFieldset = addCombinator( + function( elem ) { + return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset"; + }, + { dir: "parentNode", next: "legend" } + ); + +// Optimize for push.apply( _, NodeList ) +try { + push.apply( + ( arr = slice.call( preferredDoc.childNodes ) ), + preferredDoc.childNodes + ); + + // Support: Android<4.0 + // Detect silently failing push.apply + // eslint-disable-next-line no-unused-expressions + arr[ preferredDoc.childNodes.length ].nodeType; +} catch ( e ) { + push = { apply: arr.length ? + + // Leverage slice if possible + function( target, els ) { + pushNative.apply( target, slice.call( els ) ); + } : + + // Support: IE<9 + // Otherwise append directly + function( target, els ) { + var j = target.length, + i = 0; + + // Can't trust NodeList.length + while ( ( target[ j++ ] = els[ i++ ] ) ) {} + target.length = j - 1; + } + }; +} + +function Sizzle( selector, context, results, seed ) { + var m, i, elem, nid, match, groups, newSelector, + newContext = context && context.ownerDocument, + + // nodeType defaults to 9, since context defaults to document + nodeType = context ? context.nodeType : 9; + + results = results || []; + + // Return early from calls with invalid selector or context + if ( typeof selector !== "string" || !selector || + nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { + + return results; + } + + // Try to shortcut find operations (as opposed to filters) in HTML documents + if ( !seed ) { + setDocument( context ); + context = context || document; + + if ( documentIsHTML ) { + + // If the selector is sufficiently simple, try using a "get*By*" DOM method + // (excepting DocumentFragment context, where the methods don't exist) + if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) { + + // ID selector + if ( ( m = match[ 1 ] ) ) { + + // Document context + if ( nodeType === 9 ) { + if ( ( elem = context.getElementById( m ) ) ) { + + // Support: IE, Opera, Webkit + // TODO: identify versions + // getElementById can match elements by name instead of ID + if ( elem.id === m ) { + results.push( elem ); + return results; + } + } else { + return results; + } + + // Element context + } else { + + // Support: IE, Opera, Webkit + // TODO: identify versions + // getElementById can match elements by name instead of ID + if ( newContext && ( elem = newContext.getElementById( m ) ) && + contains( context, elem ) && + elem.id === m ) { + + results.push( elem ); + return results; + } + } + + // Type selector + } else if ( match[ 2 ] ) { + push.apply( results, context.getElementsByTagName( selector ) ); + return results; + + // Class selector + } else if ( ( m = match[ 3 ] ) && support.getElementsByClassName && + context.getElementsByClassName ) { + + push.apply( results, context.getElementsByClassName( m ) ); + return results; + } + } + + // Take advantage of querySelectorAll + if ( support.qsa && + !nonnativeSelectorCache[ selector + " " ] && + ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) && + + // Support: IE 8 only + // Exclude object elements + ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) { + + newSelector = selector; + newContext = context; + + // qSA considers elements outside a scoping root when evaluating child or + // descendant combinators, which is not what we want. + // In such cases, we work around the behavior by prefixing every selector in the + // list with an ID selector referencing the scope context. + // The technique has to be used as well when a leading combinator is used + // as such selectors are not recognized by querySelectorAll. + // Thanks to Andrew Dupont for this technique. + if ( nodeType === 1 && + ( rdescend.test( selector ) || rcombinators.test( selector ) ) ) { + + // Expand context for sibling selectors + newContext = rsibling.test( selector ) && testContext( context.parentNode ) || + context; + + // We can use :scope instead of the ID hack if the browser + // supports it & if we're not changing the context. + if ( newContext !== context || !support.scope ) { + + // Capture the context ID, setting it first if necessary + if ( ( nid = context.getAttribute( "id" ) ) ) { + nid = nid.replace( rcssescape, fcssescape ); + } else { + context.setAttribute( "id", ( nid = expando ) ); + } + } + + // Prefix every selector in the list + groups = tokenize( selector ); + i = groups.length; + while ( i-- ) { + groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " + + toSelector( groups[ i ] ); + } + newSelector = groups.join( "," ); + } + + try { + push.apply( results, + newContext.querySelectorAll( newSelector ) + ); + return results; + } catch ( qsaError ) { + nonnativeSelectorCache( selector, true ); + } finally { + if ( nid === expando ) { + context.removeAttribute( "id" ); + } + } + } + } + } + + // All others + return select( selector.replace( rtrim, "$1" ), context, results, seed ); +} + +/** + * Create key-value caches of limited size + * @returns {function(string, object)} Returns the Object data after storing it on itself with + * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) + * deleting the oldest entry + */ +function createCache() { + var keys = []; + + function cache( key, value ) { + + // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + if ( keys.push( key + " " ) > Expr.cacheLength ) { + + // Only keep the most recent entries + delete cache[ keys.shift() ]; + } + return ( cache[ key + " " ] = value ); + } + return cache; +} + +/** + * Mark a function for special use by Sizzle + * @param {Function} fn The function to mark + */ +function markFunction( fn ) { + fn[ expando ] = true; + return fn; +} + +/** + * Support testing using an element + * @param {Function} fn Passed the created element and returns a boolean result + */ +function assert( fn ) { + var el = document.createElement( "fieldset" ); + + try { + return !!fn( el ); + } catch ( e ) { + return false; + } finally { + + // Remove from its parent by default + if ( el.parentNode ) { + el.parentNode.removeChild( el ); + } + + // release memory in IE + el = null; + } +} + +/** + * Adds the same handler for all of the specified attrs + * @param {String} attrs Pipe-separated list of attributes + * @param {Function} handler The method that will be applied + */ +function addHandle( attrs, handler ) { + var arr = attrs.split( "|" ), + i = arr.length; + + while ( i-- ) { + Expr.attrHandle[ arr[ i ] ] = handler; + } +} + +/** + * Checks document order of two siblings + * @param {Element} a + * @param {Element} b + * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b + */ +function siblingCheck( a, b ) { + var cur = b && a, + diff = cur && a.nodeType === 1 && b.nodeType === 1 && + a.sourceIndex - b.sourceIndex; + + // Use IE sourceIndex if available on both nodes + if ( diff ) { + return diff; + } + + // Check if b follows a + if ( cur ) { + while ( ( cur = cur.nextSibling ) ) { + if ( cur === b ) { + return -1; + } + } + } + + return a ? 1 : -1; +} + +/** + * Returns a function to use in pseudos for input types + * @param {String} type + */ +function createInputPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for buttons + * @param {String} type + */ +function createButtonPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return ( name === "input" || name === "button" ) && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for :enabled/:disabled + * @param {Boolean} disabled true for :disabled; false for :enabled + */ +function createDisabledPseudo( disabled ) { + + // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable + return function( elem ) { + + // Only certain elements can match :enabled or :disabled + // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled + // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled + if ( "form" in elem ) { + + // Check for inherited disabledness on relevant non-disabled elements: + // * listed form-associated elements in a disabled fieldset + // https://html.spec.whatwg.org/multipage/forms.html#category-listed + // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled + // * option elements in a disabled optgroup + // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled + // All such elements have a "form" property. + if ( elem.parentNode && elem.disabled === false ) { + + // Option elements defer to a parent optgroup if present + if ( "label" in elem ) { + if ( "label" in elem.parentNode ) { + return elem.parentNode.disabled === disabled; + } else { + return elem.disabled === disabled; + } + } + + // Support: IE 6 - 11 + // Use the isDisabled shortcut property to check for disabled fieldset ancestors + return elem.isDisabled === disabled || + + // Where there is no isDisabled, check manually + /* jshint -W018 */ + elem.isDisabled !== !disabled && + inDisabledFieldset( elem ) === disabled; + } + + return elem.disabled === disabled; + + // Try to winnow out elements that can't be disabled before trusting the disabled property. + // Some victims get caught in our net (label, legend, menu, track), but it shouldn't + // even exist on them, let alone have a boolean value. + } else if ( "label" in elem ) { + return elem.disabled === disabled; + } + + // Remaining elements are neither :enabled nor :disabled + return false; + }; +} + +/** + * Returns a function to use in pseudos for positionals + * @param {Function} fn + */ +function createPositionalPseudo( fn ) { + return markFunction( function( argument ) { + argument = +argument; + return markFunction( function( seed, matches ) { + var j, + matchIndexes = fn( [], seed.length, argument ), + i = matchIndexes.length; + + // Match elements found at the specified indexes + while ( i-- ) { + if ( seed[ ( j = matchIndexes[ i ] ) ] ) { + seed[ j ] = !( matches[ j ] = seed[ j ] ); + } + } + } ); + } ); +} + +/** + * Checks a node for validity as a Sizzle context + * @param {Element|Object=} context + * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value + */ +function testContext( context ) { + return context && typeof context.getElementsByTagName !== "undefined" && context; +} + +// Expose support vars for convenience +support = Sizzle.support = {}; + +/** + * Detects XML nodes + * @param {Element|Object} elem An element or a document + * @returns {Boolean} True iff elem is a non-HTML XML node + */ +isXML = Sizzle.isXML = function( elem ) { + var namespace = elem.namespaceURI, + docElem = ( elem.ownerDocument || elem ).documentElement; + + // Support: IE <=8 + // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes + // https://bugs.jquery.com/ticket/4833 + return !rhtml.test( namespace || docElem && docElem.nodeName || "HTML" ); +}; + +/** + * Sets document-related variables once based on the current document + * @param {Element|Object} [doc] An element or document object to use to set the document + * @returns {Object} Returns the current document + */ +setDocument = Sizzle.setDocument = function( node ) { + var hasCompare, subWindow, + doc = node ? node.ownerDocument || node : preferredDoc; + + // Return early if doc is invalid or already selected + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) { + return document; + } + + // Update global variables + document = doc; + docElem = document.documentElement; + documentIsHTML = !isXML( document ); + + // Support: IE 9 - 11+, Edge 12 - 18+ + // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( preferredDoc != document && + ( subWindow = document.defaultView ) && subWindow.top !== subWindow ) { + + // Support: IE 11, Edge + if ( subWindow.addEventListener ) { + subWindow.addEventListener( "unload", unloadHandler, false ); + + // Support: IE 9 - 10 only + } else if ( subWindow.attachEvent ) { + subWindow.attachEvent( "onunload", unloadHandler ); + } + } + + // Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only, + // Safari 4 - 5 only, Opera <=11.6 - 12.x only + // IE/Edge & older browsers don't support the :scope pseudo-class. + // Support: Safari 6.0 only + // Safari 6.0 supports :scope but it's an alias of :root there. + support.scope = assert( function( el ) { + docElem.appendChild( el ).appendChild( document.createElement( "div" ) ); + return typeof el.querySelectorAll !== "undefined" && + !el.querySelectorAll( ":scope fieldset div" ).length; + } ); + + /* Attributes + ---------------------------------------------------------------------- */ + + // Support: IE<8 + // Verify that getAttribute really returns attributes and not properties + // (excepting IE8 booleans) + support.attributes = assert( function( el ) { + el.className = "i"; + return !el.getAttribute( "className" ); + } ); + + /* getElement(s)By* + ---------------------------------------------------------------------- */ + + // Check if getElementsByTagName("*") returns only elements + support.getElementsByTagName = assert( function( el ) { + el.appendChild( document.createComment( "" ) ); + return !el.getElementsByTagName( "*" ).length; + } ); + + // Support: IE<9 + support.getElementsByClassName = rnative.test( document.getElementsByClassName ); + + // Support: IE<10 + // Check if getElementById returns elements by name + // The broken getElementById methods don't pick up programmatically-set names, + // so use a roundabout getElementsByName test + support.getById = assert( function( el ) { + docElem.appendChild( el ).id = expando; + return !document.getElementsByName || !document.getElementsByName( expando ).length; + } ); + + // ID filter and find + if ( support.getById ) { + Expr.filter[ "ID" ] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + return elem.getAttribute( "id" ) === attrId; + }; + }; + Expr.find[ "ID" ] = function( id, context ) { + if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { + var elem = context.getElementById( id ); + return elem ? [ elem ] : []; + } + }; + } else { + Expr.filter[ "ID" ] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + var node = typeof elem.getAttributeNode !== "undefined" && + elem.getAttributeNode( "id" ); + return node && node.value === attrId; + }; + }; + + // Support: IE 6 - 7 only + // getElementById is not reliable as a find shortcut + Expr.find[ "ID" ] = function( id, context ) { + if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { + var node, i, elems, + elem = context.getElementById( id ); + + if ( elem ) { + + // Verify the id attribute + node = elem.getAttributeNode( "id" ); + if ( node && node.value === id ) { + return [ elem ]; + } + + // Fall back on getElementsByName + elems = context.getElementsByName( id ); + i = 0; + while ( ( elem = elems[ i++ ] ) ) { + node = elem.getAttributeNode( "id" ); + if ( node && node.value === id ) { + return [ elem ]; + } + } + } + + return []; + } + }; + } + + // Tag + Expr.find[ "TAG" ] = support.getElementsByTagName ? + function( tag, context ) { + if ( typeof context.getElementsByTagName !== "undefined" ) { + return context.getElementsByTagName( tag ); + + // DocumentFragment nodes don't have gEBTN + } else if ( support.qsa ) { + return context.querySelectorAll( tag ); + } + } : + + function( tag, context ) { + var elem, + tmp = [], + i = 0, + + // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too + results = context.getElementsByTagName( tag ); + + // Filter out possible comments + if ( tag === "*" ) { + while ( ( elem = results[ i++ ] ) ) { + if ( elem.nodeType === 1 ) { + tmp.push( elem ); + } + } + + return tmp; + } + return results; + }; + + // Class + Expr.find[ "CLASS" ] = support.getElementsByClassName && function( className, context ) { + if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { + return context.getElementsByClassName( className ); + } + }; + + /* QSA/matchesSelector + ---------------------------------------------------------------------- */ + + // QSA and matchesSelector support + + // matchesSelector(:active) reports false when true (IE9/Opera 11.5) + rbuggyMatches = []; + + // qSa(:focus) reports false when true (Chrome 21) + // We allow this because of a bug in IE8/9 that throws an error + // whenever `document.activeElement` is accessed on an iframe + // So, we allow :focus to pass through QSA all the time to avoid the IE error + // See https://bugs.jquery.com/ticket/13378 + rbuggyQSA = []; + + if ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) { + + // Build QSA regex + // Regex strategy adopted from Diego Perini + assert( function( el ) { + + var input; + + // Select is set to empty string on purpose + // This is to test IE's treatment of not explicitly + // setting a boolean content attribute, + // since its presence should be enough + // https://bugs.jquery.com/ticket/12359 + docElem.appendChild( el ).innerHTML = "" + + ""; + + // Support: IE8, Opera 11-12.16 + // Nothing should be selected when empty strings follow ^= or $= or *= + // The test attribute must be unknown in Opera but "safe" for WinRT + // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section + if ( el.querySelectorAll( "[msallowcapture^='']" ).length ) { + rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); + } + + // Support: IE8 + // Boolean attributes and "value" are not treated correctly + if ( !el.querySelectorAll( "[selected]" ).length ) { + rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); + } + + // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ + if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { + rbuggyQSA.push( "~=" ); + } + + // Support: IE 11+, Edge 15 - 18+ + // IE 11/Edge don't find elements on a `[name='']` query in some cases. + // Adding a temporary attribute to the document before the selection works + // around the issue. + // Interestingly, IE 10 & older don't seem to have the issue. + input = document.createElement( "input" ); + input.setAttribute( "name", "" ); + el.appendChild( input ); + if ( !el.querySelectorAll( "[name='']" ).length ) { + rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" + + whitespace + "*(?:''|\"\")" ); + } + + // Webkit/Opera - :checked should return selected option elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + // IE8 throws error here and will not see later tests + if ( !el.querySelectorAll( ":checked" ).length ) { + rbuggyQSA.push( ":checked" ); + } + + // Support: Safari 8+, iOS 8+ + // https://bugs.webkit.org/show_bug.cgi?id=136851 + // In-page `selector#id sibling-combinator selector` fails + if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { + rbuggyQSA.push( ".#.+[+~]" ); + } + + // Support: Firefox <=3.6 - 5 only + // Old Firefox doesn't throw on a badly-escaped identifier. + el.querySelectorAll( "\\\f" ); + rbuggyQSA.push( "[\\r\\n\\f]" ); + } ); + + assert( function( el ) { + el.innerHTML = "" + + ""; + + // Support: Windows 8 Native Apps + // The type and name attributes are restricted during .innerHTML assignment + var input = document.createElement( "input" ); + input.setAttribute( "type", "hidden" ); + el.appendChild( input ).setAttribute( "name", "D" ); + + // Support: IE8 + // Enforce case-sensitivity of name attribute + if ( el.querySelectorAll( "[name=d]" ).length ) { + rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); + } + + // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) + // IE8 throws error here and will not see later tests + if ( el.querySelectorAll( ":enabled" ).length !== 2 ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Support: IE9-11+ + // IE's :disabled selector does not pick up the children of disabled fieldsets + docElem.appendChild( el ).disabled = true; + if ( el.querySelectorAll( ":disabled" ).length !== 2 ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Support: Opera 10 - 11 only + // Opera 10-11 does not throw on post-comma invalid pseudos + el.querySelectorAll( "*,:x" ); + rbuggyQSA.push( ",.*:" ); + } ); + } + + if ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches || + docElem.webkitMatchesSelector || + docElem.mozMatchesSelector || + docElem.oMatchesSelector || + docElem.msMatchesSelector ) ) ) ) { + + assert( function( el ) { + + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9) + support.disconnectedMatch = matches.call( el, "*" ); + + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( el, "[s!='']:x" ); + rbuggyMatches.push( "!=", pseudos ); + } ); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) ); + rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( "|" ) ); + + /* Contains + ---------------------------------------------------------------------- */ + hasCompare = rnative.test( docElem.compareDocumentPosition ); + + // Element contains another + // Purposefully self-exclusive + // As in, an element does not contain itself + contains = hasCompare || rnative.test( docElem.contains ) ? + function( a, b ) { + var adown = a.nodeType === 9 ? a.documentElement : a, + bup = b && b.parentNode; + return a === bup || !!( bup && bup.nodeType === 1 && ( + adown.contains ? + adown.contains( bup ) : + a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 + ) ); + } : + function( a, b ) { + if ( b ) { + while ( ( b = b.parentNode ) ) { + if ( b === a ) { + return true; + } + } + } + return false; + }; + + /* Sorting + ---------------------------------------------------------------------- */ + + // Document order sorting + sortOrder = hasCompare ? + function( a, b ) { + + // Flag for duplicate removal + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + // Sort on method existence if only one input has compareDocumentPosition + var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; + if ( compare ) { + return compare; + } + + // Calculate position if both inputs belong to the same document + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + compare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ? + a.compareDocumentPosition( b ) : + + // Otherwise we know they are disconnected + 1; + + // Disconnected nodes + if ( compare & 1 || + ( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) { + + // Choose the first element that is related to our preferred document + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( a == document || a.ownerDocument == preferredDoc && + contains( preferredDoc, a ) ) { + return -1; + } + + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( b == document || b.ownerDocument == preferredDoc && + contains( preferredDoc, b ) ) { + return 1; + } + + // Maintain original order + return sortInput ? + ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + 0; + } + + return compare & 4 ? -1 : 1; + } : + function( a, b ) { + + // Exit early if the nodes are identical + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + var cur, + i = 0, + aup = a.parentNode, + bup = b.parentNode, + ap = [ a ], + bp = [ b ]; + + // Parentless nodes are either documents or disconnected + if ( !aup || !bup ) { + + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + /* eslint-disable eqeqeq */ + return a == document ? -1 : + b == document ? 1 : + /* eslint-enable eqeqeq */ + aup ? -1 : + bup ? 1 : + sortInput ? + ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + 0; + + // If the nodes are siblings, we can do a quick check + } else if ( aup === bup ) { + return siblingCheck( a, b ); + } + + // Otherwise we need full lists of their ancestors for comparison + cur = a; + while ( ( cur = cur.parentNode ) ) { + ap.unshift( cur ); + } + cur = b; + while ( ( cur = cur.parentNode ) ) { + bp.unshift( cur ); + } + + // Walk down the tree looking for a discrepancy + while ( ap[ i ] === bp[ i ] ) { + i++; + } + + return i ? + + // Do a sibling check if the nodes have a common ancestor + siblingCheck( ap[ i ], bp[ i ] ) : + + // Otherwise nodes in our document sort first + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + /* eslint-disable eqeqeq */ + ap[ i ] == preferredDoc ? -1 : + bp[ i ] == preferredDoc ? 1 : + /* eslint-enable eqeqeq */ + 0; + }; + + return document; +}; + +Sizzle.matches = function( expr, elements ) { + return Sizzle( expr, null, null, elements ); +}; + +Sizzle.matchesSelector = function( elem, expr ) { + setDocument( elem ); + + if ( support.matchesSelector && documentIsHTML && + !nonnativeSelectorCache[ expr + " " ] && + ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && + ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { + + try { + var ret = matches.call( elem, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || support.disconnectedMatch || + + // As well, disconnected nodes are said to be in a document + // fragment in IE 9 + elem.document && elem.document.nodeType !== 11 ) { + return ret; + } + } catch ( e ) { + nonnativeSelectorCache( expr, true ); + } + } + + return Sizzle( expr, document, null, [ elem ] ).length > 0; +}; + +Sizzle.contains = function( context, elem ) { + + // Set document vars if needed + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( ( context.ownerDocument || context ) != document ) { + setDocument( context ); + } + return contains( context, elem ); +}; + +Sizzle.attr = function( elem, name ) { + + // Set document vars if needed + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( ( elem.ownerDocument || elem ) != document ) { + setDocument( elem ); + } + + var fn = Expr.attrHandle[ name.toLowerCase() ], + + // Don't get fooled by Object.prototype properties (jQuery #13807) + val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? + fn( elem, name, !documentIsHTML ) : + undefined; + + return val !== undefined ? + val : + support.attributes || !documentIsHTML ? + elem.getAttribute( name ) : + ( val = elem.getAttributeNode( name ) ) && val.specified ? + val.value : + null; +}; + +Sizzle.escape = function( sel ) { + return ( sel + "" ).replace( rcssescape, fcssescape ); +}; + +Sizzle.error = function( msg ) { + throw new Error( "Syntax error, unrecognized expression: " + msg ); +}; + +/** + * Document sorting and removing duplicates + * @param {ArrayLike} results + */ +Sizzle.uniqueSort = function( results ) { + var elem, + duplicates = [], + j = 0, + i = 0; + + // Unless we *know* we can detect duplicates, assume their presence + hasDuplicate = !support.detectDuplicates; + sortInput = !support.sortStable && results.slice( 0 ); + results.sort( sortOrder ); + + if ( hasDuplicate ) { + while ( ( elem = results[ i++ ] ) ) { + if ( elem === results[ i ] ) { + j = duplicates.push( i ); + } + } + while ( j-- ) { + results.splice( duplicates[ j ], 1 ); + } + } + + // Clear input after sorting to release objects + // See https://github.com/jquery/sizzle/pull/225 + sortInput = null; + + return results; +}; + +/** + * Utility function for retrieving the text value of an array of DOM nodes + * @param {Array|Element} elem + */ +getText = Sizzle.getText = function( elem ) { + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if ( !nodeType ) { + + // If no nodeType, this is expected to be an array + while ( ( node = elem[ i++ ] ) ) { + + // Do not traverse comment nodes + ret += getText( node ); + } + } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { + + // Use textContent for elements + // innerText usage removed for consistency of new lines (jQuery #11153) + if ( typeof elem.textContent === "string" ) { + return elem.textContent; + } else { + + // Traverse its children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + ret += getText( elem ); + } + } + } else if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + + // Do not include comment or processing instruction nodes + + return ret; +}; + +Expr = Sizzle.selectors = { + + // Can be adjusted by the user + cacheLength: 50, + + createPseudo: markFunction, + + match: matchExpr, + + attrHandle: {}, + + find: {}, + + relative: { + ">": { dir: "parentNode", first: true }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: true }, + "~": { dir: "previousSibling" } + }, + + preFilter: { + "ATTR": function( match ) { + match[ 1 ] = match[ 1 ].replace( runescape, funescape ); + + // Move the given value to match[3] whether quoted or unquoted + match[ 3 ] = ( match[ 3 ] || match[ 4 ] || + match[ 5 ] || "" ).replace( runescape, funescape ); + + if ( match[ 2 ] === "~=" ) { + match[ 3 ] = " " + match[ 3 ] + " "; + } + + return match.slice( 0, 4 ); + }, + + "CHILD": function( match ) { + + /* matches from matchExpr["CHILD"] + 1 type (only|nth|...) + 2 what (child|of-type) + 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) + 4 xn-component of xn+y argument ([+-]?\d*n|) + 5 sign of xn-component + 6 x of xn-component + 7 sign of y-component + 8 y of y-component + */ + match[ 1 ] = match[ 1 ].toLowerCase(); + + if ( match[ 1 ].slice( 0, 3 ) === "nth" ) { + + // nth-* requires argument + if ( !match[ 3 ] ) { + Sizzle.error( match[ 0 ] ); + } + + // numeric x and y parameters for Expr.filter.CHILD + // remember that false/true cast respectively to 0/1 + match[ 4 ] = +( match[ 4 ] ? + match[ 5 ] + ( match[ 6 ] || 1 ) : + 2 * ( match[ 3 ] === "even" || match[ 3 ] === "odd" ) ); + match[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === "odd" ); + + // other types prohibit arguments + } else if ( match[ 3 ] ) { + Sizzle.error( match[ 0 ] ); + } + + return match; + }, + + "PSEUDO": function( match ) { + var excess, + unquoted = !match[ 6 ] && match[ 2 ]; + + if ( matchExpr[ "CHILD" ].test( match[ 0 ] ) ) { + return null; + } + + // Accept quoted arguments as-is + if ( match[ 3 ] ) { + match[ 2 ] = match[ 4 ] || match[ 5 ] || ""; + + // Strip excess characters from unquoted arguments + } else if ( unquoted && rpseudo.test( unquoted ) && + + // Get excess from tokenize (recursively) + ( excess = tokenize( unquoted, true ) ) && + + // advance to the next closing parenthesis + ( excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length ) ) { + + // excess is a negative index + match[ 0 ] = match[ 0 ].slice( 0, excess ); + match[ 2 ] = unquoted.slice( 0, excess ); + } + + // Return only captures needed by the pseudo filter method (type and argument) + return match.slice( 0, 3 ); + } + }, + + filter: { + + "TAG": function( nodeNameSelector ) { + var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); + return nodeNameSelector === "*" ? + function() { + return true; + } : + function( elem ) { + return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; + }; + }, + + "CLASS": function( className ) { + var pattern = classCache[ className + " " ]; + + return pattern || + ( pattern = new RegExp( "(^|" + whitespace + + ")" + className + "(" + whitespace + "|$)" ) ) && classCache( + className, function( elem ) { + return pattern.test( + typeof elem.className === "string" && elem.className || + typeof elem.getAttribute !== "undefined" && + elem.getAttribute( "class" ) || + "" + ); + } ); + }, + + "ATTR": function( name, operator, check ) { + return function( elem ) { + var result = Sizzle.attr( elem, name ); + + if ( result == null ) { + return operator === "!="; + } + if ( !operator ) { + return true; + } + + result += ""; + + /* eslint-disable max-len */ + + return operator === "=" ? result === check : + operator === "!=" ? result !== check : + operator === "^=" ? check && result.indexOf( check ) === 0 : + operator === "*=" ? check && result.indexOf( check ) > -1 : + operator === "$=" ? check && result.slice( -check.length ) === check : + operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : + operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : + false; + /* eslint-enable max-len */ + + }; + }, + + "CHILD": function( type, what, _argument, first, last ) { + var simple = type.slice( 0, 3 ) !== "nth", + forward = type.slice( -4 ) !== "last", + ofType = what === "of-type"; + + return first === 1 && last === 0 ? + + // Shortcut for :nth-*(n) + function( elem ) { + return !!elem.parentNode; + } : + + function( elem, _context, xml ) { + var cache, uniqueCache, outerCache, node, nodeIndex, start, + dir = simple !== forward ? "nextSibling" : "previousSibling", + parent = elem.parentNode, + name = ofType && elem.nodeName.toLowerCase(), + useCache = !xml && !ofType, + diff = false; + + if ( parent ) { + + // :(first|last|only)-(child|of-type) + if ( simple ) { + while ( dir ) { + node = elem; + while ( ( node = node[ dir ] ) ) { + if ( ofType ? + node.nodeName.toLowerCase() === name : + node.nodeType === 1 ) { + + return false; + } + } + + // Reverse direction for :only-* (if we haven't yet done so) + start = dir = type === "only" && !start && "nextSibling"; + } + return true; + } + + start = [ forward ? parent.firstChild : parent.lastChild ]; + + // non-xml :nth-child(...) stores cache data on `parent` + if ( forward && useCache ) { + + // Seek `elem` from a previously-cached index + + // ...in a gzip-friendly way + node = parent; + outerCache = node[ expando ] || ( node[ expando ] = {} ); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + ( outerCache[ node.uniqueID ] = {} ); + + cache = uniqueCache[ type ] || []; + nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; + diff = nodeIndex && cache[ 2 ]; + node = nodeIndex && parent.childNodes[ nodeIndex ]; + + while ( ( node = ++nodeIndex && node && node[ dir ] || + + // Fallback to seeking `elem` from the start + ( diff = nodeIndex = 0 ) || start.pop() ) ) { + + // When found, cache indexes on `parent` and break + if ( node.nodeType === 1 && ++diff && node === elem ) { + uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; + break; + } + } + + } else { + + // Use previously-cached element index if available + if ( useCache ) { + + // ...in a gzip-friendly way + node = elem; + outerCache = node[ expando ] || ( node[ expando ] = {} ); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + ( outerCache[ node.uniqueID ] = {} ); + + cache = uniqueCache[ type ] || []; + nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; + diff = nodeIndex; + } + + // xml :nth-child(...) + // or :nth-last-child(...) or :nth(-last)?-of-type(...) + if ( diff === false ) { + + // Use the same loop as above to seek `elem` from the start + while ( ( node = ++nodeIndex && node && node[ dir ] || + ( diff = nodeIndex = 0 ) || start.pop() ) ) { + + if ( ( ofType ? + node.nodeName.toLowerCase() === name : + node.nodeType === 1 ) && + ++diff ) { + + // Cache the index of each encountered element + if ( useCache ) { + outerCache = node[ expando ] || + ( node[ expando ] = {} ); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + ( outerCache[ node.uniqueID ] = {} ); + + uniqueCache[ type ] = [ dirruns, diff ]; + } + + if ( node === elem ) { + break; + } + } + } + } + } + + // Incorporate the offset, then check against cycle size + diff -= last; + return diff === first || ( diff % first === 0 && diff / first >= 0 ); + } + }; + }, + + "PSEUDO": function( pseudo, argument ) { + + // pseudo-class names are case-insensitive + // http://www.w3.org/TR/selectors/#pseudo-classes + // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters + // Remember that setFilters inherits from pseudos + var args, + fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || + Sizzle.error( "unsupported pseudo: " + pseudo ); + + // The user may use createPseudo to indicate that + // arguments are needed to create the filter function + // just as Sizzle does + if ( fn[ expando ] ) { + return fn( argument ); + } + + // But maintain support for old signatures + if ( fn.length > 1 ) { + args = [ pseudo, pseudo, "", argument ]; + return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? + markFunction( function( seed, matches ) { + var idx, + matched = fn( seed, argument ), + i = matched.length; + while ( i-- ) { + idx = indexOf( seed, matched[ i ] ); + seed[ idx ] = !( matches[ idx ] = matched[ i ] ); + } + } ) : + function( elem ) { + return fn( elem, 0, args ); + }; + } + + return fn; + } + }, + + pseudos: { + + // Potentially complex pseudos + "not": markFunction( function( selector ) { + + // Trim the selector passed to compile + // to avoid treating leading and trailing + // spaces as combinators + var input = [], + results = [], + matcher = compile( selector.replace( rtrim, "$1" ) ); + + return matcher[ expando ] ? + markFunction( function( seed, matches, _context, xml ) { + var elem, + unmatched = matcher( seed, null, xml, [] ), + i = seed.length; + + // Match elements unmatched by `matcher` + while ( i-- ) { + if ( ( elem = unmatched[ i ] ) ) { + seed[ i ] = !( matches[ i ] = elem ); + } + } + } ) : + function( elem, _context, xml ) { + input[ 0 ] = elem; + matcher( input, null, xml, results ); + + // Don't keep the element (issue #299) + input[ 0 ] = null; + return !results.pop(); + }; + } ), + + "has": markFunction( function( selector ) { + return function( elem ) { + return Sizzle( selector, elem ).length > 0; + }; + } ), + + "contains": markFunction( function( text ) { + text = text.replace( runescape, funescape ); + return function( elem ) { + return ( elem.textContent || getText( elem ) ).indexOf( text ) > -1; + }; + } ), + + // "Whether an element is represented by a :lang() selector + // is based solely on the element's language value + // being equal to the identifier C, + // or beginning with the identifier C immediately followed by "-". + // The matching of C against the element's language value is performed case-insensitively. + // The identifier C does not have to be a valid language name." + // http://www.w3.org/TR/selectors/#lang-pseudo + "lang": markFunction( function( lang ) { + + // lang value must be a valid identifier + if ( !ridentifier.test( lang || "" ) ) { + Sizzle.error( "unsupported lang: " + lang ); + } + lang = lang.replace( runescape, funescape ).toLowerCase(); + return function( elem ) { + var elemLang; + do { + if ( ( elemLang = documentIsHTML ? + elem.lang : + elem.getAttribute( "xml:lang" ) || elem.getAttribute( "lang" ) ) ) { + + elemLang = elemLang.toLowerCase(); + return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; + } + } while ( ( elem = elem.parentNode ) && elem.nodeType === 1 ); + return false; + }; + } ), + + // Miscellaneous + "target": function( elem ) { + var hash = window.location && window.location.hash; + return hash && hash.slice( 1 ) === elem.id; + }, + + "root": function( elem ) { + return elem === docElem; + }, + + "focus": function( elem ) { + return elem === document.activeElement && + ( !document.hasFocus || document.hasFocus() ) && + !!( elem.type || elem.href || ~elem.tabIndex ); + }, + + // Boolean properties + "enabled": createDisabledPseudo( false ), + "disabled": createDisabledPseudo( true ), + + "checked": function( elem ) { + + // In CSS3, :checked should return both checked and selected elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + var nodeName = elem.nodeName.toLowerCase(); + return ( nodeName === "input" && !!elem.checked ) || + ( nodeName === "option" && !!elem.selected ); + }, + + "selected": function( elem ) { + + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + // eslint-disable-next-line no-unused-expressions + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + // Contents + "empty": function( elem ) { + + // http://www.w3.org/TR/selectors/#empty-pseudo + // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), + // but not by others (comment: 8; processing instruction: 7; etc.) + // nodeType < 6 works because attributes (2) do not appear as children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + if ( elem.nodeType < 6 ) { + return false; + } + } + return true; + }, + + "parent": function( elem ) { + return !Expr.pseudos[ "empty" ]( elem ); + }, + + // Element/input types + "header": function( elem ) { + return rheader.test( elem.nodeName ); + }, + + "input": function( elem ) { + return rinputs.test( elem.nodeName ); + }, + + "button": function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === "button" || name === "button"; + }, + + "text": function( elem ) { + var attr; + return elem.nodeName.toLowerCase() === "input" && + elem.type === "text" && + + // Support: IE<8 + // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" + ( ( attr = elem.getAttribute( "type" ) ) == null || + attr.toLowerCase() === "text" ); + }, + + // Position-in-collection + "first": createPositionalPseudo( function() { + return [ 0 ]; + } ), + + "last": createPositionalPseudo( function( _matchIndexes, length ) { + return [ length - 1 ]; + } ), + + "eq": createPositionalPseudo( function( _matchIndexes, length, argument ) { + return [ argument < 0 ? argument + length : argument ]; + } ), + + "even": createPositionalPseudo( function( matchIndexes, length ) { + var i = 0; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + } ), + + "odd": createPositionalPseudo( function( matchIndexes, length ) { + var i = 1; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + } ), + + "lt": createPositionalPseudo( function( matchIndexes, length, argument ) { + var i = argument < 0 ? + argument + length : + argument > length ? + length : + argument; + for ( ; --i >= 0; ) { + matchIndexes.push( i ); + } + return matchIndexes; + } ), + + "gt": createPositionalPseudo( function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; ++i < length; ) { + matchIndexes.push( i ); + } + return matchIndexes; + } ) + } +}; + +Expr.pseudos[ "nth" ] = Expr.pseudos[ "eq" ]; + +// Add button/input type pseudos +for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { + Expr.pseudos[ i ] = createInputPseudo( i ); +} +for ( i in { submit: true, reset: true } ) { + Expr.pseudos[ i ] = createButtonPseudo( i ); +} + +// Easy API for creating new setFilters +function setFilters() {} +setFilters.prototype = Expr.filters = Expr.pseudos; +Expr.setFilters = new setFilters(); + +tokenize = Sizzle.tokenize = function( selector, parseOnly ) { + var matched, match, tokens, type, + soFar, groups, preFilters, + cached = tokenCache[ selector + " " ]; + + if ( cached ) { + return parseOnly ? 0 : cached.slice( 0 ); + } + + soFar = selector; + groups = []; + preFilters = Expr.preFilter; + + while ( soFar ) { + + // Comma and first run + if ( !matched || ( match = rcomma.exec( soFar ) ) ) { + if ( match ) { + + // Don't consume trailing commas as valid + soFar = soFar.slice( match[ 0 ].length ) || soFar; + } + groups.push( ( tokens = [] ) ); + } + + matched = false; + + // Combinators + if ( ( match = rcombinators.exec( soFar ) ) ) { + matched = match.shift(); + tokens.push( { + value: matched, + + // Cast descendant combinators to space + type: match[ 0 ].replace( rtrim, " " ) + } ); + soFar = soFar.slice( matched.length ); + } + + // Filters + for ( type in Expr.filter ) { + if ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] || + ( match = preFilters[ type ]( match ) ) ) ) { + matched = match.shift(); + tokens.push( { + value: matched, + type: type, + matches: match + } ); + soFar = soFar.slice( matched.length ); + } + } + + if ( !matched ) { + break; + } + } + + // Return the length of the invalid excess + // if we're just parsing + // Otherwise, throw an error or return tokens + return parseOnly ? + soFar.length : + soFar ? + Sizzle.error( selector ) : + + // Cache the tokens + tokenCache( selector, groups ).slice( 0 ); +}; + +function toSelector( tokens ) { + var i = 0, + len = tokens.length, + selector = ""; + for ( ; i < len; i++ ) { + selector += tokens[ i ].value; + } + return selector; +} + +function addCombinator( matcher, combinator, base ) { + var dir = combinator.dir, + skip = combinator.next, + key = skip || dir, + checkNonElements = base && key === "parentNode", + doneName = done++; + + return combinator.first ? + + // Check against closest ancestor/preceding element + function( elem, context, xml ) { + while ( ( elem = elem[ dir ] ) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + return matcher( elem, context, xml ); + } + } + return false; + } : + + // Check against all ancestor/preceding elements + function( elem, context, xml ) { + var oldCache, uniqueCache, outerCache, + newCache = [ dirruns, doneName ]; + + // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching + if ( xml ) { + while ( ( elem = elem[ dir ] ) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + if ( matcher( elem, context, xml ) ) { + return true; + } + } + } + } else { + while ( ( elem = elem[ dir ] ) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + outerCache = elem[ expando ] || ( elem[ expando ] = {} ); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ elem.uniqueID ] || + ( outerCache[ elem.uniqueID ] = {} ); + + if ( skip && skip === elem.nodeName.toLowerCase() ) { + elem = elem[ dir ] || elem; + } else if ( ( oldCache = uniqueCache[ key ] ) && + oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { + + // Assign to newCache so results back-propagate to previous elements + return ( newCache[ 2 ] = oldCache[ 2 ] ); + } else { + + // Reuse newcache so results back-propagate to previous elements + uniqueCache[ key ] = newCache; + + // A match means we're done; a fail means we have to keep checking + if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) { + return true; + } + } + } + } + } + return false; + }; +} + +function elementMatcher( matchers ) { + return matchers.length > 1 ? + function( elem, context, xml ) { + var i = matchers.length; + while ( i-- ) { + if ( !matchers[ i ]( elem, context, xml ) ) { + return false; + } + } + return true; + } : + matchers[ 0 ]; +} + +function multipleContexts( selector, contexts, results ) { + var i = 0, + len = contexts.length; + for ( ; i < len; i++ ) { + Sizzle( selector, contexts[ i ], results ); + } + return results; +} + +function condense( unmatched, map, filter, context, xml ) { + var elem, + newUnmatched = [], + i = 0, + len = unmatched.length, + mapped = map != null; + + for ( ; i < len; i++ ) { + if ( ( elem = unmatched[ i ] ) ) { + if ( !filter || filter( elem, context, xml ) ) { + newUnmatched.push( elem ); + if ( mapped ) { + map.push( i ); + } + } + } + } + + return newUnmatched; +} + +function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { + if ( postFilter && !postFilter[ expando ] ) { + postFilter = setMatcher( postFilter ); + } + if ( postFinder && !postFinder[ expando ] ) { + postFinder = setMatcher( postFinder, postSelector ); + } + return markFunction( function( seed, results, context, xml ) { + var temp, i, elem, + preMap = [], + postMap = [], + preexisting = results.length, + + // Get initial elements from seed or context + elems = seed || multipleContexts( + selector || "*", + context.nodeType ? [ context ] : context, + [] + ), + + // Prefilter to get matcher input, preserving a map for seed-results synchronization + matcherIn = preFilter && ( seed || !selector ) ? + condense( elems, preMap, preFilter, context, xml ) : + elems, + + matcherOut = matcher ? + + // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, + postFinder || ( seed ? preFilter : preexisting || postFilter ) ? + + // ...intermediate processing is necessary + [] : + + // ...otherwise use results directly + results : + matcherIn; + + // Find primary matches + if ( matcher ) { + matcher( matcherIn, matcherOut, context, xml ); + } + + // Apply postFilter + if ( postFilter ) { + temp = condense( matcherOut, postMap ); + postFilter( temp, [], context, xml ); + + // Un-match failing elements by moving them back to matcherIn + i = temp.length; + while ( i-- ) { + if ( ( elem = temp[ i ] ) ) { + matcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem ); + } + } + } + + if ( seed ) { + if ( postFinder || preFilter ) { + if ( postFinder ) { + + // Get the final matcherOut by condensing this intermediate into postFinder contexts + temp = []; + i = matcherOut.length; + while ( i-- ) { + if ( ( elem = matcherOut[ i ] ) ) { + + // Restore matcherIn since elem is not yet a final match + temp.push( ( matcherIn[ i ] = elem ) ); + } + } + postFinder( null, ( matcherOut = [] ), temp, xml ); + } + + // Move matched elements from seed to results to keep them synchronized + i = matcherOut.length; + while ( i-- ) { + if ( ( elem = matcherOut[ i ] ) && + ( temp = postFinder ? indexOf( seed, elem ) : preMap[ i ] ) > -1 ) { + + seed[ temp ] = !( results[ temp ] = elem ); + } + } + } + + // Add elements to results, through postFinder if defined + } else { + matcherOut = condense( + matcherOut === results ? + matcherOut.splice( preexisting, matcherOut.length ) : + matcherOut + ); + if ( postFinder ) { + postFinder( null, results, matcherOut, xml ); + } else { + push.apply( results, matcherOut ); + } + } + } ); +} + +function matcherFromTokens( tokens ) { + var checkContext, matcher, j, + len = tokens.length, + leadingRelative = Expr.relative[ tokens[ 0 ].type ], + implicitRelative = leadingRelative || Expr.relative[ " " ], + i = leadingRelative ? 1 : 0, + + // The foundational matcher ensures that elements are reachable from top-level context(s) + matchContext = addCombinator( function( elem ) { + return elem === checkContext; + }, implicitRelative, true ), + matchAnyContext = addCombinator( function( elem ) { + return indexOf( checkContext, elem ) > -1; + }, implicitRelative, true ), + matchers = [ function( elem, context, xml ) { + var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( + ( checkContext = context ).nodeType ? + matchContext( elem, context, xml ) : + matchAnyContext( elem, context, xml ) ); + + // Avoid hanging onto element (issue #299) + checkContext = null; + return ret; + } ]; + + for ( ; i < len; i++ ) { + if ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) { + matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ]; + } else { + matcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches ); + + // Return special upon seeing a positional matcher + if ( matcher[ expando ] ) { + + // Find the next relative operator (if any) for proper handling + j = ++i; + for ( ; j < len; j++ ) { + if ( Expr.relative[ tokens[ j ].type ] ) { + break; + } + } + return setMatcher( + i > 1 && elementMatcher( matchers ), + i > 1 && toSelector( + + // If the preceding token was a descendant combinator, insert an implicit any-element `*` + tokens + .slice( 0, i - 1 ) + .concat( { value: tokens[ i - 2 ].type === " " ? "*" : "" } ) + ).replace( rtrim, "$1" ), + matcher, + i < j && matcherFromTokens( tokens.slice( i, j ) ), + j < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ), + j < len && toSelector( tokens ) + ); + } + matchers.push( matcher ); + } + } + + return elementMatcher( matchers ); +} + +function matcherFromGroupMatchers( elementMatchers, setMatchers ) { + var bySet = setMatchers.length > 0, + byElement = elementMatchers.length > 0, + superMatcher = function( seed, context, xml, results, outermost ) { + var elem, j, matcher, + matchedCount = 0, + i = "0", + unmatched = seed && [], + setMatched = [], + contextBackup = outermostContext, + + // We must always have either seed elements or outermost context + elems = seed || byElement && Expr.find[ "TAG" ]( "*", outermost ), + + // Use integer dirruns iff this is the outermost matcher + dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ), + len = elems.length; + + if ( outermost ) { + + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + outermostContext = context == document || context || outermost; + } + + // Add elements passing elementMatchers directly to results + // Support: IE<9, Safari + // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id + for ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) { + if ( byElement && elem ) { + j = 0; + + // Support: IE 11+, Edge 17 - 18+ + // IE/Edge sometimes throw a "Permission denied" error when strict-comparing + // two documents; shallow comparisons work. + // eslint-disable-next-line eqeqeq + if ( !context && elem.ownerDocument != document ) { + setDocument( elem ); + xml = !documentIsHTML; + } + while ( ( matcher = elementMatchers[ j++ ] ) ) { + if ( matcher( elem, context || document, xml ) ) { + results.push( elem ); + break; + } + } + if ( outermost ) { + dirruns = dirrunsUnique; + } + } + + // Track unmatched elements for set filters + if ( bySet ) { + + // They will have gone through all possible matchers + if ( ( elem = !matcher && elem ) ) { + matchedCount--; + } + + // Lengthen the array for every element, matched or not + if ( seed ) { + unmatched.push( elem ); + } + } + } + + // `i` is now the count of elements visited above, and adding it to `matchedCount` + // makes the latter nonnegative. + matchedCount += i; + + // Apply set filters to unmatched elements + // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` + // equals `i`), unless we didn't visit _any_ elements in the above loop because we have + // no element matchers and no seed. + // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that + // case, which will result in a "00" `matchedCount` that differs from `i` but is also + // numerically zero. + if ( bySet && i !== matchedCount ) { + j = 0; + while ( ( matcher = setMatchers[ j++ ] ) ) { + matcher( unmatched, setMatched, context, xml ); + } + + if ( seed ) { + + // Reintegrate element matches to eliminate the need for sorting + if ( matchedCount > 0 ) { + while ( i-- ) { + if ( !( unmatched[ i ] || setMatched[ i ] ) ) { + setMatched[ i ] = pop.call( results ); + } + } + } + + // Discard index placeholder values to get only actual matches + setMatched = condense( setMatched ); + } + + // Add matches to results + push.apply( results, setMatched ); + + // Seedless set matches succeeding multiple successful matchers stipulate sorting + if ( outermost && !seed && setMatched.length > 0 && + ( matchedCount + setMatchers.length ) > 1 ) { + + Sizzle.uniqueSort( results ); + } + } + + // Override manipulation of globals by nested matchers + if ( outermost ) { + dirruns = dirrunsUnique; + outermostContext = contextBackup; + } + + return unmatched; + }; + + return bySet ? + markFunction( superMatcher ) : + superMatcher; +} + +compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { + var i, + setMatchers = [], + elementMatchers = [], + cached = compilerCache[ selector + " " ]; + + if ( !cached ) { + + // Generate a function of recursive functions that can be used to check each element + if ( !match ) { + match = tokenize( selector ); + } + i = match.length; + while ( i-- ) { + cached = matcherFromTokens( match[ i ] ); + if ( cached[ expando ] ) { + setMatchers.push( cached ); + } else { + elementMatchers.push( cached ); + } + } + + // Cache the compiled function + cached = compilerCache( + selector, + matcherFromGroupMatchers( elementMatchers, setMatchers ) + ); + + // Save selector and tokenization + cached.selector = selector; + } + return cached; +}; + +/** + * A low-level selection function that works with Sizzle's compiled + * selector functions + * @param {String|Function} selector A selector or a pre-compiled + * selector function built with Sizzle.compile + * @param {Element} context + * @param {Array} [results] + * @param {Array} [seed] A set of elements to match against + */ +select = Sizzle.select = function( selector, context, results, seed ) { + var i, tokens, token, type, find, + compiled = typeof selector === "function" && selector, + match = !seed && tokenize( ( selector = compiled.selector || selector ) ); + + results = results || []; + + // Try to minimize operations if there is only one selector in the list and no seed + // (the latter of which guarantees us context) + if ( match.length === 1 ) { + + // Reduce context if the leading compound selector is an ID + tokens = match[ 0 ] = match[ 0 ].slice( 0 ); + if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" && + context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) { + + context = ( Expr.find[ "ID" ]( token.matches[ 0 ] + .replace( runescape, funescape ), context ) || [] )[ 0 ]; + if ( !context ) { + return results; + + // Precompiled matchers will still verify ancestry, so step up a level + } else if ( compiled ) { + context = context.parentNode; + } + + selector = selector.slice( tokens.shift().value.length ); + } + + // Fetch a seed set for right-to-left matching + i = matchExpr[ "needsContext" ].test( selector ) ? 0 : tokens.length; + while ( i-- ) { + token = tokens[ i ]; + + // Abort if we hit a combinator + if ( Expr.relative[ ( type = token.type ) ] ) { + break; + } + if ( ( find = Expr.find[ type ] ) ) { + + // Search, expanding context for leading sibling combinators + if ( ( seed = find( + token.matches[ 0 ].replace( runescape, funescape ), + rsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) || + context + ) ) ) { + + // If seed is empty or no tokens remain, we can return early + tokens.splice( i, 1 ); + selector = seed.length && toSelector( tokens ); + if ( !selector ) { + push.apply( results, seed ); + return results; + } + + break; + } + } + } + } + + // Compile and execute a filtering function if one is not provided + // Provide `match` to avoid retokenization if we modified the selector above + ( compiled || compile( selector, match ) )( + seed, + context, + !documentIsHTML, + results, + !context || rsibling.test( selector ) && testContext( context.parentNode ) || context + ); + return results; +}; + +// One-time assignments + +// Sort stability +support.sortStable = expando.split( "" ).sort( sortOrder ).join( "" ) === expando; + +// Support: Chrome 14-35+ +// Always assume duplicates if they aren't passed to the comparison function +support.detectDuplicates = !!hasDuplicate; + +// Initialize against the default document +setDocument(); + +// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) +// Detached nodes confoundingly follow *each other* +support.sortDetached = assert( function( el ) { + + // Should return 1, but returns 4 (following) + return el.compareDocumentPosition( document.createElement( "fieldset" ) ) & 1; +} ); + +// Support: IE<8 +// Prevent attribute/property "interpolation" +// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx +if ( !assert( function( el ) { + el.innerHTML = ""; + return el.firstChild.getAttribute( "href" ) === "#"; +} ) ) { + addHandle( "type|href|height|width", function( elem, name, isXML ) { + if ( !isXML ) { + return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); + } + } ); +} + +// Support: IE<9 +// Use defaultValue in place of getAttribute("value") +if ( !support.attributes || !assert( function( el ) { + el.innerHTML = ""; + el.firstChild.setAttribute( "value", "" ); + return el.firstChild.getAttribute( "value" ) === ""; +} ) ) { + addHandle( "value", function( elem, _name, isXML ) { + if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { + return elem.defaultValue; + } + } ); +} + +// Support: IE<9 +// Use getAttributeNode to fetch booleans when getAttribute lies +if ( !assert( function( el ) { + return el.getAttribute( "disabled" ) == null; +} ) ) { + addHandle( booleans, function( elem, name, isXML ) { + var val; + if ( !isXML ) { + return elem[ name ] === true ? name.toLowerCase() : + ( val = elem.getAttributeNode( name ) ) && val.specified ? + val.value : + null; + } + } ); +} + +return Sizzle; + +} )( window ); + + + +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; + +// Deprecated +jQuery.expr[ ":" ] = jQuery.expr.pseudos; +jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; +jQuery.escapeSelector = Sizzle.escape; + + + + +var dir = function( elem, dir, until ) { + var matched = [], + truncate = until !== undefined; + + while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { + if ( elem.nodeType === 1 ) { + if ( truncate && jQuery( elem ).is( until ) ) { + break; + } + matched.push( elem ); + } + } + return matched; +}; + + +var siblings = function( n, elem ) { + var matched = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + matched.push( n ); + } + } + + return matched; +}; + + +var rneedsContext = jQuery.expr.match.needsContext; + + + +function nodeName( elem, name ) { + + return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); + +}; +var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); + + + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, not ) { + if ( isFunction( qualifier ) ) { + return jQuery.grep( elements, function( elem, i ) { + return !!qualifier.call( elem, i, elem ) !== not; + } ); + } + + // Single element + if ( qualifier.nodeType ) { + return jQuery.grep( elements, function( elem ) { + return ( elem === qualifier ) !== not; + } ); + } + + // Arraylike of elements (jQuery, arguments, Array) + if ( typeof qualifier !== "string" ) { + return jQuery.grep( elements, function( elem ) { + return ( indexOf.call( qualifier, elem ) > -1 ) !== not; + } ); + } + + // Filtered directly for both simple and complex selectors + return jQuery.filter( qualifier, elements, not ); +} + +jQuery.filter = function( expr, elems, not ) { + var elem = elems[ 0 ]; + + if ( not ) { + expr = ":not(" + expr + ")"; + } + + if ( elems.length === 1 && elem.nodeType === 1 ) { + return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; + } + + return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { + return elem.nodeType === 1; + } ) ); +}; + +jQuery.fn.extend( { + find: function( selector ) { + var i, ret, + len = this.length, + self = this; + + if ( typeof selector !== "string" ) { + return this.pushStack( jQuery( selector ).filter( function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + } ) ); + } + + ret = this.pushStack( [] ); + + for ( i = 0; i < len; i++ ) { + jQuery.find( selector, self[ i ], ret ); + } + + return len > 1 ? jQuery.uniqueSort( ret ) : ret; + }, + filter: function( selector ) { + return this.pushStack( winnow( this, selector || [], false ) ); + }, + not: function( selector ) { + return this.pushStack( winnow( this, selector || [], true ) ); + }, + is: function( selector ) { + return !!winnow( + this, + + // If this is a positional/relative selector, check membership in the returned set + // so $("p:first").is("p:last") won't return true for a doc with two "p". + typeof selector === "string" && rneedsContext.test( selector ) ? + jQuery( selector ) : + selector || [], + false + ).length; + } +} ); + + +// Initialize a jQuery object + + +// A central reference to the root jQuery(document) +var rootjQuery, + + // A simple way to check for HTML strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + // Strict HTML recognition (#11290: must start with <) + // Shortcut simple #id case for speed + rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, + + init = jQuery.fn.init = function( selector, context, root ) { + var match, elem; + + // HANDLE: $(""), $(null), $(undefined), $(false) + if ( !selector ) { + return this; + } + + // Method init() accepts an alternate rootjQuery + // so migrate can support jQuery.sub (gh-2101) + root = root || rootjQuery; + + // Handle HTML strings + if ( typeof selector === "string" ) { + if ( selector[ 0 ] === "<" && + selector[ selector.length - 1 ] === ">" && + selector.length >= 3 ) { + + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = rquickExpr.exec( selector ); + } + + // Match html or make sure no context is specified for #id + if ( match && ( match[ 1 ] || !context ) ) { + + // HANDLE: $(html) -> $(array) + if ( match[ 1 ] ) { + context = context instanceof jQuery ? context[ 0 ] : context; + + // Option to run scripts is true for back-compat + // Intentionally let the error be thrown if parseHTML is not present + jQuery.merge( this, jQuery.parseHTML( + match[ 1 ], + context && context.nodeType ? context.ownerDocument || context : document, + true + ) ); + + // HANDLE: $(html, props) + if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { + for ( match in context ) { + + // Properties of context are called as methods if possible + if ( isFunction( this[ match ] ) ) { + this[ match ]( context[ match ] ); + + // ...and otherwise set as attributes + } else { + this.attr( match, context[ match ] ); + } + } + } + + return this; + + // HANDLE: $(#id) + } else { + elem = document.getElementById( match[ 2 ] ); + + if ( elem ) { + + // Inject the element directly into the jQuery object + this[ 0 ] = elem; + this.length = 1; + } + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return ( context || root ).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(DOMElement) + } else if ( selector.nodeType ) { + this[ 0 ] = selector; + this.length = 1; + return this; + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( isFunction( selector ) ) { + return root.ready !== undefined ? + root.ready( selector ) : + + // Execute immediately if ready is not present + selector( jQuery ); + } + + return jQuery.makeArray( selector, this ); + }; + +// Give the init function the jQuery prototype for later instantiation +init.prototype = jQuery.fn; + +// Initialize central reference +rootjQuery = jQuery( document ); + + +var rparentsprev = /^(?:parents|prev(?:Until|All))/, + + // Methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.fn.extend( { + has: function( target ) { + var targets = jQuery( target, this ), + l = targets.length; + + return this.filter( function() { + var i = 0; + for ( ; i < l; i++ ) { + if ( jQuery.contains( this, targets[ i ] ) ) { + return true; + } + } + } ); + }, + + closest: function( selectors, context ) { + var cur, + i = 0, + l = this.length, + matched = [], + targets = typeof selectors !== "string" && jQuery( selectors ); + + // Positional selectors never match, since there's no _selection_ context + if ( !rneedsContext.test( selectors ) ) { + for ( ; i < l; i++ ) { + for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { + + // Always skip document fragments + if ( cur.nodeType < 11 && ( targets ? + targets.index( cur ) > -1 : + + // Don't pass non-elements to Sizzle + cur.nodeType === 1 && + jQuery.find.matchesSelector( cur, selectors ) ) ) { + + matched.push( cur ); + break; + } + } + } + } + + return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); + }, + + // Determine the position of an element within the set + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; + } + + // Index in selector + if ( typeof elem === "string" ) { + return indexOf.call( jQuery( elem ), this[ 0 ] ); + } + + // Locate the position of the desired element + return indexOf.call( this, + + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[ 0 ] : elem + ); + }, + + add: function( selector, context ) { + return this.pushStack( + jQuery.uniqueSort( + jQuery.merge( this.get(), jQuery( selector, context ) ) + ) + ); + }, + + addBack: function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter( selector ) + ); + } +} ); + +function sibling( cur, dir ) { + while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} + return cur; +} + +jQuery.each( { + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, _i, until ) { + return dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return sibling( elem, "nextSibling" ); + }, + prev: function( elem ) { + return sibling( elem, "previousSibling" ); + }, + nextAll: function( elem ) { + return dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, _i, until ) { + return dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, _i, until ) { + return dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return siblings( ( elem.parentNode || {} ).firstChild, elem ); + }, + children: function( elem ) { + return siblings( elem.firstChild ); + }, + contents: function( elem ) { + if ( elem.contentDocument != null && + + // Support: IE 11+ + // elements with no `data` attribute has an object + // `contentDocument` with a `null` prototype. + getProto( elem.contentDocument ) ) { + + return elem.contentDocument; + } + + // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only + // Treat the template element as a regular one in browsers that + // don't support it. + if ( nodeName( elem, "template" ) ) { + elem = elem.content || elem; + } + + return jQuery.merge( [], elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var matched = jQuery.map( this, fn, until ); + + if ( name.slice( -5 ) !== "Until" ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + matched = jQuery.filter( selector, matched ); + } + + if ( this.length > 1 ) { + + // Remove duplicates + if ( !guaranteedUnique[ name ] ) { + jQuery.uniqueSort( matched ); + } + + // Reverse order for parents* and prev-derivatives + if ( rparentsprev.test( name ) ) { + matched.reverse(); + } + } + + return this.pushStack( matched ); + }; +} ); +var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); + + + +// Convert String-formatted options into Object-formatted ones +function createOptions( options ) { + var object = {}; + jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { + object[ flag ] = true; + } ); + return object; +} + +/* + * Create a callback list using the following parameters: + * + * options: an optional list of space-separated options that will change how + * the callback list behaves or a more traditional option object + * + * By default a callback list will act like an event callback list and can be + * "fired" multiple times. + * + * Possible options: + * + * once: will ensure the callback list can only be fired once (like a Deferred) + * + * memory: will keep track of previous values and will call any callback added + * after the list has been fired right away with the latest "memorized" + * values (like a Deferred) + * + * unique: will ensure a callback can only be added once (no duplicate in the list) + * + * stopOnFalse: interrupt callings when a callback returns false + * + */ +jQuery.Callbacks = function( options ) { + + // Convert options from String-formatted to Object-formatted if needed + // (we check in cache first) + options = typeof options === "string" ? + createOptions( options ) : + jQuery.extend( {}, options ); + + var // Flag to know if list is currently firing + firing, + + // Last fire value for non-forgettable lists + memory, + + // Flag to know if list was already fired + fired, + + // Flag to prevent firing + locked, + + // Actual callback list + list = [], + + // Queue of execution data for repeatable lists + queue = [], + + // Index of currently firing callback (modified by add/remove as needed) + firingIndex = -1, + + // Fire callbacks + fire = function() { + + // Enforce single-firing + locked = locked || options.once; + + // Execute callbacks for all pending executions, + // respecting firingIndex overrides and runtime changes + fired = firing = true; + for ( ; queue.length; firingIndex = -1 ) { + memory = queue.shift(); + while ( ++firingIndex < list.length ) { + + // Run callback and check for early termination + if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && + options.stopOnFalse ) { + + // Jump to end and forget the data so .add doesn't re-fire + firingIndex = list.length; + memory = false; + } + } + } + + // Forget the data if we're done with it + if ( !options.memory ) { + memory = false; + } + + firing = false; + + // Clean up if we're done firing for good + if ( locked ) { + + // Keep an empty list if we have data for future add calls + if ( memory ) { + list = []; + + // Otherwise, this object is spent + } else { + list = ""; + } + } + }, + + // Actual Callbacks object + self = { + + // Add a callback or a collection of callbacks to the list + add: function() { + if ( list ) { + + // If we have memory from a past run, we should fire after adding + if ( memory && !firing ) { + firingIndex = list.length - 1; + queue.push( memory ); + } + + ( function add( args ) { + jQuery.each( args, function( _, arg ) { + if ( isFunction( arg ) ) { + if ( !options.unique || !self.has( arg ) ) { + list.push( arg ); + } + } else if ( arg && arg.length && toType( arg ) !== "string" ) { + + // Inspect recursively + add( arg ); + } + } ); + } )( arguments ); + + if ( memory && !firing ) { + fire(); + } + } + return this; + }, + + // Remove a callback from the list + remove: function() { + jQuery.each( arguments, function( _, arg ) { + var index; + while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { + list.splice( index, 1 ); + + // Handle firing indexes + if ( index <= firingIndex ) { + firingIndex--; + } + } + } ); + return this; + }, + + // Check if a given callback is in the list. + // If no argument is given, return whether or not list has callbacks attached. + has: function( fn ) { + return fn ? + jQuery.inArray( fn, list ) > -1 : + list.length > 0; + }, + + // Remove all callbacks from the list + empty: function() { + if ( list ) { + list = []; + } + return this; + }, + + // Disable .fire and .add + // Abort any current/pending executions + // Clear all callbacks and values + disable: function() { + locked = queue = []; + list = memory = ""; + return this; + }, + disabled: function() { + return !list; + }, + + // Disable .fire + // Also disable .add unless we have memory (since it would have no effect) + // Abort any pending executions + lock: function() { + locked = queue = []; + if ( !memory && !firing ) { + list = memory = ""; + } + return this; + }, + locked: function() { + return !!locked; + }, + + // Call all callbacks with the given context and arguments + fireWith: function( context, args ) { + if ( !locked ) { + args = args || []; + args = [ context, args.slice ? args.slice() : args ]; + queue.push( args ); + if ( !firing ) { + fire(); + } + } + return this; + }, + + // Call all the callbacks with the given arguments + fire: function() { + self.fireWith( this, arguments ); + return this; + }, + + // To know if the callbacks have already been called at least once + fired: function() { + return !!fired; + } + }; + + return self; +}; + + +function Identity( v ) { + return v; +} +function Thrower( ex ) { + throw ex; +} + +function adoptValue( value, resolve, reject, noValue ) { + var method; + + try { + + // Check for promise aspect first to privilege synchronous behavior + if ( value && isFunction( ( method = value.promise ) ) ) { + method.call( value ).done( resolve ).fail( reject ); + + // Other thenables + } else if ( value && isFunction( ( method = value.then ) ) ) { + method.call( value, resolve, reject ); + + // Other non-thenables + } else { + + // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: + // * false: [ value ].slice( 0 ) => resolve( value ) + // * true: [ value ].slice( 1 ) => resolve() + resolve.apply( undefined, [ value ].slice( noValue ) ); + } + + // For Promises/A+, convert exceptions into rejections + // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in + // Deferred#then to conditionally suppress rejection. + } catch ( value ) { + + // Support: Android 4.0 only + // Strict mode functions invoked without .call/.apply get global-object context + reject.apply( undefined, [ value ] ); + } +} + +jQuery.extend( { + + Deferred: function( func ) { + var tuples = [ + + // action, add listener, callbacks, + // ... .then handlers, argument index, [final state] + [ "notify", "progress", jQuery.Callbacks( "memory" ), + jQuery.Callbacks( "memory" ), 2 ], + [ "resolve", "done", jQuery.Callbacks( "once memory" ), + jQuery.Callbacks( "once memory" ), 0, "resolved" ], + [ "reject", "fail", jQuery.Callbacks( "once memory" ), + jQuery.Callbacks( "once memory" ), 1, "rejected" ] + ], + state = "pending", + promise = { + state: function() { + return state; + }, + always: function() { + deferred.done( arguments ).fail( arguments ); + return this; + }, + "catch": function( fn ) { + return promise.then( null, fn ); + }, + + // Keep pipe for back-compat + pipe: function( /* fnDone, fnFail, fnProgress */ ) { + var fns = arguments; + + return jQuery.Deferred( function( newDefer ) { + jQuery.each( tuples, function( _i, tuple ) { + + // Map tuples (progress, done, fail) to arguments (done, fail, progress) + var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; + + // deferred.progress(function() { bind to newDefer or newDefer.notify }) + // deferred.done(function() { bind to newDefer or newDefer.resolve }) + // deferred.fail(function() { bind to newDefer or newDefer.reject }) + deferred[ tuple[ 1 ] ]( function() { + var returned = fn && fn.apply( this, arguments ); + if ( returned && isFunction( returned.promise ) ) { + returned.promise() + .progress( newDefer.notify ) + .done( newDefer.resolve ) + .fail( newDefer.reject ); + } else { + newDefer[ tuple[ 0 ] + "With" ]( + this, + fn ? [ returned ] : arguments + ); + } + } ); + } ); + fns = null; + } ).promise(); + }, + then: function( onFulfilled, onRejected, onProgress ) { + var maxDepth = 0; + function resolve( depth, deferred, handler, special ) { + return function() { + var that = this, + args = arguments, + mightThrow = function() { + var returned, then; + + // Support: Promises/A+ section 2.3.3.3.3 + // https://promisesaplus.com/#point-59 + // Ignore double-resolution attempts + if ( depth < maxDepth ) { + return; + } + + returned = handler.apply( that, args ); + + // Support: Promises/A+ section 2.3.1 + // https://promisesaplus.com/#point-48 + if ( returned === deferred.promise() ) { + throw new TypeError( "Thenable self-resolution" ); + } + + // Support: Promises/A+ sections 2.3.3.1, 3.5 + // https://promisesaplus.com/#point-54 + // https://promisesaplus.com/#point-75 + // Retrieve `then` only once + then = returned && + + // Support: Promises/A+ section 2.3.4 + // https://promisesaplus.com/#point-64 + // Only check objects and functions for thenability + ( typeof returned === "object" || + typeof returned === "function" ) && + returned.then; + + // Handle a returned thenable + if ( isFunction( then ) ) { + + // Special processors (notify) just wait for resolution + if ( special ) { + then.call( + returned, + resolve( maxDepth, deferred, Identity, special ), + resolve( maxDepth, deferred, Thrower, special ) + ); + + // Normal processors (resolve) also hook into progress + } else { + + // ...and disregard older resolution values + maxDepth++; + + then.call( + returned, + resolve( maxDepth, deferred, Identity, special ), + resolve( maxDepth, deferred, Thrower, special ), + resolve( maxDepth, deferred, Identity, + deferred.notifyWith ) + ); + } + + // Handle all other returned values + } else { + + // Only substitute handlers pass on context + // and multiple values (non-spec behavior) + if ( handler !== Identity ) { + that = undefined; + args = [ returned ]; + } + + // Process the value(s) + // Default process is resolve + ( special || deferred.resolveWith )( that, args ); + } + }, + + // Only normal processors (resolve) catch and reject exceptions + process = special ? + mightThrow : + function() { + try { + mightThrow(); + } catch ( e ) { + + if ( jQuery.Deferred.exceptionHook ) { + jQuery.Deferred.exceptionHook( e, + process.stackTrace ); + } + + // Support: Promises/A+ section 2.3.3.3.4.1 + // https://promisesaplus.com/#point-61 + // Ignore post-resolution exceptions + if ( depth + 1 >= maxDepth ) { + + // Only substitute handlers pass on context + // and multiple values (non-spec behavior) + if ( handler !== Thrower ) { + that = undefined; + args = [ e ]; + } + + deferred.rejectWith( that, args ); + } + } + }; + + // Support: Promises/A+ section 2.3.3.3.1 + // https://promisesaplus.com/#point-57 + // Re-resolve promises immediately to dodge false rejection from + // subsequent errors + if ( depth ) { + process(); + } else { + + // Call an optional hook to record the stack, in case of exception + // since it's otherwise lost when execution goes async + if ( jQuery.Deferred.getStackHook ) { + process.stackTrace = jQuery.Deferred.getStackHook(); + } + window.setTimeout( process ); + } + }; + } + + return jQuery.Deferred( function( newDefer ) { + + // progress_handlers.add( ... ) + tuples[ 0 ][ 3 ].add( + resolve( + 0, + newDefer, + isFunction( onProgress ) ? + onProgress : + Identity, + newDefer.notifyWith + ) + ); + + // fulfilled_handlers.add( ... ) + tuples[ 1 ][ 3 ].add( + resolve( + 0, + newDefer, + isFunction( onFulfilled ) ? + onFulfilled : + Identity + ) + ); + + // rejected_handlers.add( ... ) + tuples[ 2 ][ 3 ].add( + resolve( + 0, + newDefer, + isFunction( onRejected ) ? + onRejected : + Thrower + ) + ); + } ).promise(); + }, + + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + return obj != null ? jQuery.extend( obj, promise ) : promise; + } + }, + deferred = {}; + + // Add list-specific methods + jQuery.each( tuples, function( i, tuple ) { + var list = tuple[ 2 ], + stateString = tuple[ 5 ]; + + // promise.progress = list.add + // promise.done = list.add + // promise.fail = list.add + promise[ tuple[ 1 ] ] = list.add; + + // Handle state + if ( stateString ) { + list.add( + function() { + + // state = "resolved" (i.e., fulfilled) + // state = "rejected" + state = stateString; + }, + + // rejected_callbacks.disable + // fulfilled_callbacks.disable + tuples[ 3 - i ][ 2 ].disable, + + // rejected_handlers.disable + // fulfilled_handlers.disable + tuples[ 3 - i ][ 3 ].disable, + + // progress_callbacks.lock + tuples[ 0 ][ 2 ].lock, + + // progress_handlers.lock + tuples[ 0 ][ 3 ].lock + ); + } + + // progress_handlers.fire + // fulfilled_handlers.fire + // rejected_handlers.fire + list.add( tuple[ 3 ].fire ); + + // deferred.notify = function() { deferred.notifyWith(...) } + // deferred.resolve = function() { deferred.resolveWith(...) } + // deferred.reject = function() { deferred.rejectWith(...) } + deferred[ tuple[ 0 ] ] = function() { + deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); + return this; + }; + + // deferred.notifyWith = list.fireWith + // deferred.resolveWith = list.fireWith + // deferred.rejectWith = list.fireWith + deferred[ tuple[ 0 ] + "With" ] = list.fireWith; + } ); + + // Make the deferred a promise + promise.promise( deferred ); + + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + + // All done! + return deferred; + }, + + // Deferred helper + when: function( singleValue ) { + var + + // count of uncompleted subordinates + remaining = arguments.length, + + // count of unprocessed arguments + i = remaining, + + // subordinate fulfillment data + resolveContexts = Array( i ), + resolveValues = slice.call( arguments ), + + // the master Deferred + master = jQuery.Deferred(), + + // subordinate callback factory + updateFunc = function( i ) { + return function( value ) { + resolveContexts[ i ] = this; + resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; + if ( !( --remaining ) ) { + master.resolveWith( resolveContexts, resolveValues ); + } + }; + }; + + // Single- and empty arguments are adopted like Promise.resolve + if ( remaining <= 1 ) { + adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject, + !remaining ); + + // Use .then() to unwrap secondary thenables (cf. gh-3000) + if ( master.state() === "pending" || + isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { + + return master.then(); + } + } + + // Multiple arguments are aggregated like Promise.all array elements + while ( i-- ) { + adoptValue( resolveValues[ i ], updateFunc( i ), master.reject ); + } + + return master.promise(); + } +} ); + + +// These usually indicate a programmer mistake during development, +// warn about them ASAP rather than swallowing them by default. +var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; + +jQuery.Deferred.exceptionHook = function( error, stack ) { + + // Support: IE 8 - 9 only + // Console exists when dev tools are open, which can happen at any time + if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { + window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); + } +}; + + + + +jQuery.readyException = function( error ) { + window.setTimeout( function() { + throw error; + } ); +}; + + + + +// The deferred used on DOM ready +var readyList = jQuery.Deferred(); + +jQuery.fn.ready = function( fn ) { + + readyList + .then( fn ) + + // Wrap jQuery.readyException in a function so that the lookup + // happens at the time of error handling instead of callback + // registration. + .catch( function( error ) { + jQuery.readyException( error ); + } ); + + return this; +}; + +jQuery.extend( { + + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Handle when the DOM is ready + ready: function( wait ) { + + // Abort if there are pending holds or we're already ready + if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { + return; + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + } +} ); + +jQuery.ready.then = readyList.then; + +// The ready event handler and self cleanup method +function completed() { + document.removeEventListener( "DOMContentLoaded", completed ); + window.removeEventListener( "load", completed ); + jQuery.ready(); +} + +// Catch cases where $(document).ready() is called +// after the browser event has already occurred. +// Support: IE <=9 - 10 only +// Older IE sometimes signals "interactive" too soon +if ( document.readyState === "complete" || + ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { + + // Handle it asynchronously to allow scripts the opportunity to delay ready + window.setTimeout( jQuery.ready ); + +} else { + + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", completed ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", completed ); +} + + + + +// Multifunctional method to get and set values of a collection +// The value/s can optionally be executed if it's a function +var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { + var i = 0, + len = elems.length, + bulk = key == null; + + // Sets many values + if ( toType( key ) === "object" ) { + chainable = true; + for ( i in key ) { + access( elems, fn, i, key[ i ], true, emptyGet, raw ); + } + + // Sets one value + } else if ( value !== undefined ) { + chainable = true; + + if ( !isFunction( value ) ) { + raw = true; + } + + if ( bulk ) { + + // Bulk operations run against the entire set + if ( raw ) { + fn.call( elems, value ); + fn = null; + + // ...except when executing function values + } else { + bulk = fn; + fn = function( elem, _key, value ) { + return bulk.call( jQuery( elem ), value ); + }; + } + } + + if ( fn ) { + for ( ; i < len; i++ ) { + fn( + elems[ i ], key, raw ? + value : + value.call( elems[ i ], i, fn( elems[ i ], key ) ) + ); + } + } + } + + if ( chainable ) { + return elems; + } + + // Gets + if ( bulk ) { + return fn.call( elems ); + } + + return len ? fn( elems[ 0 ], key ) : emptyGet; +}; + + +// Matches dashed string for camelizing +var rmsPrefix = /^-ms-/, + rdashAlpha = /-([a-z])/g; + +// Used by camelCase as callback to replace() +function fcamelCase( _all, letter ) { + return letter.toUpperCase(); +} + +// Convert dashed to camelCase; used by the css and data modules +// Support: IE <=9 - 11, Edge 12 - 15 +// Microsoft forgot to hump their vendor prefix (#9572) +function camelCase( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); +} +var acceptData = function( owner ) { + + // Accepts only: + // - Node + // - Node.ELEMENT_NODE + // - Node.DOCUMENT_NODE + // - Object + // - Any + return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); +}; + + + + +function Data() { + this.expando = jQuery.expando + Data.uid++; +} + +Data.uid = 1; + +Data.prototype = { + + cache: function( owner ) { + + // Check if the owner object already has a cache + var value = owner[ this.expando ]; + + // If not, create one + if ( !value ) { + value = {}; + + // We can accept data for non-element nodes in modern browsers, + // but we should not, see #8335. + // Always return an empty object. + if ( acceptData( owner ) ) { + + // If it is a node unlikely to be stringify-ed or looped over + // use plain assignment + if ( owner.nodeType ) { + owner[ this.expando ] = value; + + // Otherwise secure it in a non-enumerable property + // configurable must be true to allow the property to be + // deleted when data is removed + } else { + Object.defineProperty( owner, this.expando, { + value: value, + configurable: true + } ); + } + } + } + + return value; + }, + set: function( owner, data, value ) { + var prop, + cache = this.cache( owner ); + + // Handle: [ owner, key, value ] args + // Always use camelCase key (gh-2257) + if ( typeof data === "string" ) { + cache[ camelCase( data ) ] = value; + + // Handle: [ owner, { properties } ] args + } else { + + // Copy the properties one-by-one to the cache object + for ( prop in data ) { + cache[ camelCase( prop ) ] = data[ prop ]; + } + } + return cache; + }, + get: function( owner, key ) { + return key === undefined ? + this.cache( owner ) : + + // Always use camelCase key (gh-2257) + owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ]; + }, + access: function( owner, key, value ) { + + // In cases where either: + // + // 1. No key was specified + // 2. A string key was specified, but no value provided + // + // Take the "read" path and allow the get method to determine + // which value to return, respectively either: + // + // 1. The entire cache object + // 2. The data stored at the key + // + if ( key === undefined || + ( ( key && typeof key === "string" ) && value === undefined ) ) { + + return this.get( owner, key ); + } + + // When the key is not a string, or both a key and value + // are specified, set or extend (existing objects) with either: + // + // 1. An object of properties + // 2. A key and value + // + this.set( owner, key, value ); + + // Since the "set" path can have two possible entry points + // return the expected data based on which path was taken[*] + return value !== undefined ? value : key; + }, + remove: function( owner, key ) { + var i, + cache = owner[ this.expando ]; + + if ( cache === undefined ) { + return; + } + + if ( key !== undefined ) { + + // Support array or space separated string of keys + if ( Array.isArray( key ) ) { + + // If key is an array of keys... + // We always set camelCase keys, so remove that. + key = key.map( camelCase ); + } else { + key = camelCase( key ); + + // If a key with the spaces exists, use it. + // Otherwise, create an array by matching non-whitespace + key = key in cache ? + [ key ] : + ( key.match( rnothtmlwhite ) || [] ); + } + + i = key.length; + + while ( i-- ) { + delete cache[ key[ i ] ]; + } + } + + // Remove the expando if there's no more data + if ( key === undefined || jQuery.isEmptyObject( cache ) ) { + + // Support: Chrome <=35 - 45 + // Webkit & Blink performance suffers when deleting properties + // from DOM nodes, so set to undefined instead + // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) + if ( owner.nodeType ) { + owner[ this.expando ] = undefined; + } else { + delete owner[ this.expando ]; + } + } + }, + hasData: function( owner ) { + var cache = owner[ this.expando ]; + return cache !== undefined && !jQuery.isEmptyObject( cache ); + } +}; +var dataPriv = new Data(); + +var dataUser = new Data(); + + + +// Implementation Summary +// +// 1. Enforce API surface and semantic compatibility with 1.9.x branch +// 2. Improve the module's maintainability by reducing the storage +// paths to a single mechanism. +// 3. Use the same single mechanism to support "private" and "user" data. +// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) +// 5. Avoid exposing implementation details on user objects (eg. expando properties) +// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 + +var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, + rmultiDash = /[A-Z]/g; + +function getData( data ) { + if ( data === "true" ) { + return true; + } + + if ( data === "false" ) { + return false; + } + + if ( data === "null" ) { + return null; + } + + // Only convert to a number if it doesn't change the string + if ( data === +data + "" ) { + return +data; + } + + if ( rbrace.test( data ) ) { + return JSON.parse( data ); + } + + return data; +} + +function dataAttr( elem, key, data ) { + var name; + + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = getData( data ); + } catch ( e ) {} + + // Make sure we set the data so it isn't changed later + dataUser.set( elem, key, data ); + } else { + data = undefined; + } + } + return data; +} + +jQuery.extend( { + hasData: function( elem ) { + return dataUser.hasData( elem ) || dataPriv.hasData( elem ); + }, + + data: function( elem, name, data ) { + return dataUser.access( elem, name, data ); + }, + + removeData: function( elem, name ) { + dataUser.remove( elem, name ); + }, + + // TODO: Now that all calls to _data and _removeData have been replaced + // with direct calls to dataPriv methods, these can be deprecated. + _data: function( elem, name, data ) { + return dataPriv.access( elem, name, data ); + }, + + _removeData: function( elem, name ) { + dataPriv.remove( elem, name ); + } +} ); + +jQuery.fn.extend( { + data: function( key, value ) { + var i, name, data, + elem = this[ 0 ], + attrs = elem && elem.attributes; + + // Gets all values + if ( key === undefined ) { + if ( this.length ) { + data = dataUser.get( elem ); + + if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { + i = attrs.length; + while ( i-- ) { + + // Support: IE 11 only + // The attrs elements can be null (#14894) + if ( attrs[ i ] ) { + name = attrs[ i ].name; + if ( name.indexOf( "data-" ) === 0 ) { + name = camelCase( name.slice( 5 ) ); + dataAttr( elem, name, data[ name ] ); + } + } + } + dataPriv.set( elem, "hasDataAttrs", true ); + } + } + + return data; + } + + // Sets multiple values + if ( typeof key === "object" ) { + return this.each( function() { + dataUser.set( this, key ); + } ); + } + + return access( this, function( value ) { + var data; + + // The calling jQuery object (element matches) is not empty + // (and therefore has an element appears at this[ 0 ]) and the + // `value` parameter was not undefined. An empty jQuery object + // will result in `undefined` for elem = this[ 0 ] which will + // throw an exception if an attempt to read a data cache is made. + if ( elem && value === undefined ) { + + // Attempt to get data from the cache + // The key will always be camelCased in Data + data = dataUser.get( elem, key ); + if ( data !== undefined ) { + return data; + } + + // Attempt to "discover" the data in + // HTML5 custom data-* attrs + data = dataAttr( elem, key ); + if ( data !== undefined ) { + return data; + } + + // We tried really hard, but the data doesn't exist. + return; + } + + // Set the data... + this.each( function() { + + // We always store the camelCased key + dataUser.set( this, key, value ); + } ); + }, null, value, arguments.length > 1, null, true ); + }, + + removeData: function( key ) { + return this.each( function() { + dataUser.remove( this, key ); + } ); + } +} ); + + +jQuery.extend( { + queue: function( elem, type, data ) { + var queue; + + if ( elem ) { + type = ( type || "fx" ) + "queue"; + queue = dataPriv.get( elem, type ); + + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !queue || Array.isArray( data ) ) { + queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); + } else { + queue.push( data ); + } + } + return queue || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + startLength = queue.length, + fn = queue.shift(), + hooks = jQuery._queueHooks( elem, type ), + next = function() { + jQuery.dequeue( elem, type ); + }; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + startLength--; + } + + if ( fn ) { + + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift( "inprogress" ); + } + + // Clear up the last queue stop function + delete hooks.stop; + fn.call( elem, next, hooks ); + } + + if ( !startLength && hooks ) { + hooks.empty.fire(); + } + }, + + // Not public - generate a queueHooks object, or return the current one + _queueHooks: function( elem, type ) { + var key = type + "queueHooks"; + return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { + empty: jQuery.Callbacks( "once memory" ).add( function() { + dataPriv.remove( elem, [ type + "queue", key ] ); + } ) + } ); + } +} ); + +jQuery.fn.extend( { + queue: function( type, data ) { + var setter = 2; + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + setter--; + } + + if ( arguments.length < setter ) { + return jQuery.queue( this[ 0 ], type ); + } + + return data === undefined ? + this : + this.each( function() { + var queue = jQuery.queue( this, type, data ); + + // Ensure a hooks for this queue + jQuery._queueHooks( this, type ); + + if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + } ); + }, + dequeue: function( type ) { + return this.each( function() { + jQuery.dequeue( this, type ); + } ); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, obj ) { + var tmp, + count = 1, + defer = jQuery.Deferred(), + elements = this, + i = this.length, + resolve = function() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + }; + + if ( typeof type !== "string" ) { + obj = type; + type = undefined; + } + type = type || "fx"; + + while ( i-- ) { + tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); + if ( tmp && tmp.empty ) { + count++; + tmp.empty.add( resolve ); + } + } + resolve(); + return defer.promise( obj ); + } +} ); +var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; + +var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); + + +var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; + +var documentElement = document.documentElement; + + + + var isAttached = function( elem ) { + return jQuery.contains( elem.ownerDocument, elem ); + }, + composed = { composed: true }; + + // Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only + // Check attachment across shadow DOM boundaries when possible (gh-3504) + // Support: iOS 10.0-10.2 only + // Early iOS 10 versions support `attachShadow` but not `getRootNode`, + // leading to errors. We need to check for `getRootNode`. + if ( documentElement.getRootNode ) { + isAttached = function( elem ) { + return jQuery.contains( elem.ownerDocument, elem ) || + elem.getRootNode( composed ) === elem.ownerDocument; + }; + } +var isHiddenWithinTree = function( elem, el ) { + + // isHiddenWithinTree might be called from jQuery#filter function; + // in that case, element will be second argument + elem = el || elem; + + // Inline style trumps all + return elem.style.display === "none" || + elem.style.display === "" && + + // Otherwise, check computed style + // Support: Firefox <=43 - 45 + // Disconnected elements can have computed display: none, so first confirm that elem is + // in the document. + isAttached( elem ) && + + jQuery.css( elem, "display" ) === "none"; + }; + + + +function adjustCSS( elem, prop, valueParts, tween ) { + var adjusted, scale, + maxIterations = 20, + currentValue = tween ? + function() { + return tween.cur(); + } : + function() { + return jQuery.css( elem, prop, "" ); + }, + initial = currentValue(), + unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), + + // Starting value computation is required for potential unit mismatches + initialInUnit = elem.nodeType && + ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && + rcssNum.exec( jQuery.css( elem, prop ) ); + + if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { + + // Support: Firefox <=54 + // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144) + initial = initial / 2; + + // Trust units reported by jQuery.css + unit = unit || initialInUnit[ 3 ]; + + // Iteratively approximate from a nonzero starting point + initialInUnit = +initial || 1; + + while ( maxIterations-- ) { + + // Evaluate and update our best guess (doubling guesses that zero out). + // Finish if the scale equals or crosses 1 (making the old*new product non-positive). + jQuery.style( elem, prop, initialInUnit + unit ); + if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) { + maxIterations = 0; + } + initialInUnit = initialInUnit / scale; + + } + + initialInUnit = initialInUnit * 2; + jQuery.style( elem, prop, initialInUnit + unit ); + + // Make sure we update the tween properties later on + valueParts = valueParts || []; + } + + if ( valueParts ) { + initialInUnit = +initialInUnit || +initial || 0; + + // Apply relative offset (+=/-=) if specified + adjusted = valueParts[ 1 ] ? + initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : + +valueParts[ 2 ]; + if ( tween ) { + tween.unit = unit; + tween.start = initialInUnit; + tween.end = adjusted; + } + } + return adjusted; +} + + +var defaultDisplayMap = {}; + +function getDefaultDisplay( elem ) { + var temp, + doc = elem.ownerDocument, + nodeName = elem.nodeName, + display = defaultDisplayMap[ nodeName ]; + + if ( display ) { + return display; + } + + temp = doc.body.appendChild( doc.createElement( nodeName ) ); + display = jQuery.css( temp, "display" ); + + temp.parentNode.removeChild( temp ); + + if ( display === "none" ) { + display = "block"; + } + defaultDisplayMap[ nodeName ] = display; + + return display; +} + +function showHide( elements, show ) { + var display, elem, + values = [], + index = 0, + length = elements.length; + + // Determine new display value for elements that need to change + for ( ; index < length; index++ ) { + elem = elements[ index ]; + if ( !elem.style ) { + continue; + } + + display = elem.style.display; + if ( show ) { + + // Since we force visibility upon cascade-hidden elements, an immediate (and slow) + // check is required in this first loop unless we have a nonempty display value (either + // inline or about-to-be-restored) + if ( display === "none" ) { + values[ index ] = dataPriv.get( elem, "display" ) || null; + if ( !values[ index ] ) { + elem.style.display = ""; + } + } + if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { + values[ index ] = getDefaultDisplay( elem ); + } + } else { + if ( display !== "none" ) { + values[ index ] = "none"; + + // Remember what we're overwriting + dataPriv.set( elem, "display", display ); + } + } + } + + // Set the display of the elements in a second loop to avoid constant reflow + for ( index = 0; index < length; index++ ) { + if ( values[ index ] != null ) { + elements[ index ].style.display = values[ index ]; + } + } + + return elements; +} + +jQuery.fn.extend( { + show: function() { + return showHide( this, true ); + }, + hide: function() { + return showHide( this ); + }, + toggle: function( state ) { + if ( typeof state === "boolean" ) { + return state ? this.show() : this.hide(); + } + + return this.each( function() { + if ( isHiddenWithinTree( this ) ) { + jQuery( this ).show(); + } else { + jQuery( this ).hide(); + } + } ); + } +} ); +var rcheckableType = ( /^(?:checkbox|radio)$/i ); + +var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i ); + +var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i ); + + + +( function() { + var fragment = document.createDocumentFragment(), + div = fragment.appendChild( document.createElement( "div" ) ), + input = document.createElement( "input" ); + + // Support: Android 4.0 - 4.3 only + // Check state lost if the name is set (#11217) + // Support: Windows Web Apps (WWA) + // `name` and `type` must use .setAttribute for WWA (#14901) + input.setAttribute( "type", "radio" ); + input.setAttribute( "checked", "checked" ); + input.setAttribute( "name", "t" ); + + div.appendChild( input ); + + // Support: Android <=4.1 only + // Older WebKit doesn't clone checked state correctly in fragments + support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; + + // Support: IE <=11 only + // Make sure textarea (and checkbox) defaultValue is properly cloned + div.innerHTML = ""; + support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; + + // Support: IE <=9 only + // IE <=9 replaces "; + support.option = !!div.lastChild; +} )(); + + +// We have to close these tags to support XHTML (#13200) +var wrapMap = { + + // XHTML parsers do not magically insert elements in the + // same way that tag soup parsers do. So we cannot shorten + // this by omitting or other required elements. + thead: [ 1, "", "
" ], + col: [ 2, "", "
" ], + tr: [ 2, "", "
" ], + td: [ 3, "", "
" ], + + _default: [ 0, "", "" ] +}; + +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + +// Support: IE <=9 only +if ( !support.option ) { + wrapMap.optgroup = wrapMap.option = [ 1, "" ]; +} + + +function getAll( context, tag ) { + + // Support: IE <=9 - 11 only + // Use typeof to avoid zero-argument method invocation on host objects (#15151) + var ret; + + if ( typeof context.getElementsByTagName !== "undefined" ) { + ret = context.getElementsByTagName( tag || "*" ); + + } else if ( typeof context.querySelectorAll !== "undefined" ) { + ret = context.querySelectorAll( tag || "*" ); + + } else { + ret = []; + } + + if ( tag === undefined || tag && nodeName( context, tag ) ) { + return jQuery.merge( [ context ], ret ); + } + + return ret; +} + + +// Mark scripts as having already been evaluated +function setGlobalEval( elems, refElements ) { + var i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + dataPriv.set( + elems[ i ], + "globalEval", + !refElements || dataPriv.get( refElements[ i ], "globalEval" ) + ); + } +} + + +var rhtml = /<|&#?\w+;/; + +function buildFragment( elems, context, scripts, selection, ignored ) { + var elem, tmp, tag, wrap, attached, j, + fragment = context.createDocumentFragment(), + nodes = [], + i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + elem = elems[ i ]; + + if ( elem || elem === 0 ) { + + // Add nodes directly + if ( toType( elem ) === "object" ) { + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); + + // Convert non-html into a text node + } else if ( !rhtml.test( elem ) ) { + nodes.push( context.createTextNode( elem ) ); + + // Convert html into DOM nodes + } else { + tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); + + // Deserialize a standard representation + tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); + wrap = wrapMap[ tag ] || wrapMap._default; + tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; + + // Descend through wrappers to the right content + j = wrap[ 0 ]; + while ( j-- ) { + tmp = tmp.lastChild; + } + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( nodes, tmp.childNodes ); + + // Remember the top-level container + tmp = fragment.firstChild; + + // Ensure the created nodes are orphaned (#12392) + tmp.textContent = ""; + } + } + } + + // Remove wrapper from fragment + fragment.textContent = ""; + + i = 0; + while ( ( elem = nodes[ i++ ] ) ) { + + // Skip elements already in the context collection (trac-4087) + if ( selection && jQuery.inArray( elem, selection ) > -1 ) { + if ( ignored ) { + ignored.push( elem ); + } + continue; + } + + attached = isAttached( elem ); + + // Append to fragment + tmp = getAll( fragment.appendChild( elem ), "script" ); + + // Preserve script evaluation history + if ( attached ) { + setGlobalEval( tmp ); + } + + // Capture executables + if ( scripts ) { + j = 0; + while ( ( elem = tmp[ j++ ] ) ) { + if ( rscriptType.test( elem.type || "" ) ) { + scripts.push( elem ); + } + } + } + } + + return fragment; +} + + +var + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)/; + +function returnTrue() { + return true; +} + +function returnFalse() { + return false; +} + +// Support: IE <=9 - 11+ +// focus() and blur() are asynchronous, except when they are no-op. +// So expect focus to be synchronous when the element is already active, +// and blur to be synchronous when the element is not already active. +// (focus and blur are always synchronous in other supported browsers, +// this just defines when we can count on it). +function expectSync( elem, type ) { + return ( elem === safeActiveElement() ) === ( type === "focus" ); +} + +// Support: IE <=9 only +// Accessing document.activeElement can throw unexpectedly +// https://bugs.jquery.com/ticket/13393 +function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } +} + +function on( elem, types, selector, data, fn, one ) { + var origFn, type; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { + + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + on( elem, type, selector, data, types[ type ], one ); + } + return elem; + } + + if ( data == null && fn == null ) { + + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return elem; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return elem.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + } ); +} + +/* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ +jQuery.event = { + + global: {}, + + add: function( elem, types, handler, data, selector ) { + + var handleObjIn, eventHandle, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.get( elem ); + + // Only attach events to objects that accept data + if ( !acceptData( elem ) ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Ensure that invalid selectors throw exceptions at attach time + // Evaluate against documentElement in case elem is a non-element node (e.g., document) + if ( selector ) { + jQuery.find.matchesSelector( documentElement, selector ); + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if ( !( events = elemData.events ) ) { + events = elemData.events = Object.create( null ); + } + if ( !( eventHandle = elemData.handle ) ) { + eventHandle = elemData.handle = function( e ) { + + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? + jQuery.event.dispatch.apply( elem, arguments ) : undefined; + }; + } + + // Handle multiple events separated by a space + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // There *must* be a type, no attaching namespace-only handlers + if ( !type ) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend( { + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: selector && jQuery.expr.match.needsContext.test( selector ), + namespace: namespaces.join( "." ) + }, handleObjIn ); + + // Init the event handler queue if we're the first + if ( !( handlers = events[ type ] ) ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener if the special events handler returns false + if ( !special.setup || + special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + }, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + + var j, origCount, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); + + if ( !elemData || !( events = elemData.events ) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector ? special.delegateType : special.bindType ) || type; + handlers = events[ type ] || []; + tmp = tmp[ 2 ] && + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); + + // Remove matching events + origCount = j = handlers.length; + while ( j-- ) { + handleObj = handlers[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !tmp || tmp.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || + selector === "**" && handleObj.selector ) ) { + handlers.splice( j, 1 ); + + if ( handleObj.selector ) { + handlers.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( origCount && !handlers.length ) { + if ( !special.teardown || + special.teardown.call( elem, namespaces, elemData.handle ) === false ) { + + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove data and the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + dataPriv.remove( elem, "handle events" ); + } + }, + + dispatch: function( nativeEvent ) { + + var i, j, ret, matched, handleObj, handlerQueue, + args = new Array( arguments.length ), + + // Make a writable jQuery.Event from the native event object + event = jQuery.event.fix( nativeEvent ), + + handlers = ( + dataPriv.get( this, "events" ) || Object.create( null ) + )[ event.type ] || [], + special = jQuery.event.special[ event.type ] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[ 0 ] = event; + + for ( i = 1; i < arguments.length; i++ ) { + args[ i ] = arguments[ i ]; + } + + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call( this, event, handlers ); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { + event.currentTarget = matched.elem; + + j = 0; + while ( ( handleObj = matched.handlers[ j++ ] ) && + !event.isImmediatePropagationStopped() ) { + + // If the event is namespaced, then each handler is only invoked if it is + // specially universal or its namespaces are a superset of the event's. + if ( !event.rnamespace || handleObj.namespace === false || + event.rnamespace.test( handleObj.namespace ) ) { + + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || + handleObj.handler ).apply( matched.elem, args ); + + if ( ret !== undefined ) { + if ( ( event.result = ret ) === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + handlers: function( event, handlers ) { + var i, handleObj, sel, matchedHandlers, matchedSelectors, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Find delegate handlers + if ( delegateCount && + + // Support: IE <=9 + // Black-hole SVG instance trees (trac-13180) + cur.nodeType && + + // Support: Firefox <=42 + // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) + // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click + // Support: IE 11 only + // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) + !( event.type === "click" && event.button >= 1 ) ) { + + for ( ; cur !== this; cur = cur.parentNode || this ) { + + // Don't check non-elements (#13208) + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { + matchedHandlers = []; + matchedSelectors = {}; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if ( matchedSelectors[ sel ] === undefined ) { + matchedSelectors[ sel ] = handleObj.needsContext ? + jQuery( sel, this ).index( cur ) > -1 : + jQuery.find( sel, this, null, [ cur ] ).length; + } + if ( matchedSelectors[ sel ] ) { + matchedHandlers.push( handleObj ); + } + } + if ( matchedHandlers.length ) { + handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); + } + } + } + } + + // Add the remaining (directly-bound) handlers + cur = this; + if ( delegateCount < handlers.length ) { + handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); + } + + return handlerQueue; + }, + + addProp: function( name, hook ) { + Object.defineProperty( jQuery.Event.prototype, name, { + enumerable: true, + configurable: true, + + get: isFunction( hook ) ? + function() { + if ( this.originalEvent ) { + return hook( this.originalEvent ); + } + } : + function() { + if ( this.originalEvent ) { + return this.originalEvent[ name ]; + } + }, + + set: function( value ) { + Object.defineProperty( this, name, { + enumerable: true, + configurable: true, + writable: true, + value: value + } ); + } + } ); + }, + + fix: function( originalEvent ) { + return originalEvent[ jQuery.expando ] ? + originalEvent : + new jQuery.Event( originalEvent ); + }, + + special: { + load: { + + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + click: { + + // Utilize native event to ensure correct state for checkable inputs + setup: function( data ) { + + // For mutual compressibility with _default, replace `this` access with a local var. + // `|| data` is dead code meant only to preserve the variable through minification. + var el = this || data; + + // Claim the first handler + if ( rcheckableType.test( el.type ) && + el.click && nodeName( el, "input" ) ) { + + // dataPriv.set( el, "click", ... ) + leverageNative( el, "click", returnTrue ); + } + + // Return false to allow normal processing in the caller + return false; + }, + trigger: function( data ) { + + // For mutual compressibility with _default, replace `this` access with a local var. + // `|| data` is dead code meant only to preserve the variable through minification. + var el = this || data; + + // Force setup before triggering a click + if ( rcheckableType.test( el.type ) && + el.click && nodeName( el, "input" ) ) { + + leverageNative( el, "click" ); + } + + // Return non-false to allow normal event-path propagation + return true; + }, + + // For cross-browser consistency, suppress native .click() on links + // Also prevent it if we're currently inside a leveraged native-event stack + _default: function( event ) { + var target = event.target; + return rcheckableType.test( target.type ) && + target.click && nodeName( target, "input" ) && + dataPriv.get( target, "click" ) || + nodeName( target, "a" ); + } + }, + + beforeunload: { + postDispatch: function( event ) { + + // Support: Firefox 20+ + // Firefox doesn't alert if the returnValue field is not set. + if ( event.result !== undefined && event.originalEvent ) { + event.originalEvent.returnValue = event.result; + } + } + } + } +}; + +// Ensure the presence of an event listener that handles manually-triggered +// synthetic events by interrupting progress until reinvoked in response to +// *native* events that it fires directly, ensuring that state changes have +// already occurred before other listeners are invoked. +function leverageNative( el, type, expectSync ) { + + // Missing expectSync indicates a trigger call, which must force setup through jQuery.event.add + if ( !expectSync ) { + if ( dataPriv.get( el, type ) === undefined ) { + jQuery.event.add( el, type, returnTrue ); + } + return; + } + + // Register the controller as a special universal handler for all event namespaces + dataPriv.set( el, type, false ); + jQuery.event.add( el, type, { + namespace: false, + handler: function( event ) { + var notAsync, result, + saved = dataPriv.get( this, type ); + + if ( ( event.isTrigger & 1 ) && this[ type ] ) { + + // Interrupt processing of the outer synthetic .trigger()ed event + // Saved data should be false in such cases, but might be a leftover capture object + // from an async native handler (gh-4350) + if ( !saved.length ) { + + // Store arguments for use when handling the inner native event + // There will always be at least one argument (an event object), so this array + // will not be confused with a leftover capture object. + saved = slice.call( arguments ); + dataPriv.set( this, type, saved ); + + // Trigger the native event and capture its result + // Support: IE <=9 - 11+ + // focus() and blur() are asynchronous + notAsync = expectSync( this, type ); + this[ type ](); + result = dataPriv.get( this, type ); + if ( saved !== result || notAsync ) { + dataPriv.set( this, type, false ); + } else { + result = {}; + } + if ( saved !== result ) { + + // Cancel the outer synthetic event + event.stopImmediatePropagation(); + event.preventDefault(); + return result.value; + } + + // If this is an inner synthetic event for an event with a bubbling surrogate + // (focus or blur), assume that the surrogate already propagated from triggering the + // native event and prevent that from happening again here. + // This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the + // bubbling surrogate propagates *after* the non-bubbling base), but that seems + // less bad than duplication. + } else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) { + event.stopPropagation(); + } + + // If this is a native event triggered above, everything is now in order + // Fire an inner synthetic event with the original arguments + } else if ( saved.length ) { + + // ...and capture the result + dataPriv.set( this, type, { + value: jQuery.event.trigger( + + // Support: IE <=9 - 11+ + // Extend with the prototype to reset the above stopImmediatePropagation() + jQuery.extend( saved[ 0 ], jQuery.Event.prototype ), + saved.slice( 1 ), + this + ) + } ); + + // Abort handling of the native event + event.stopImmediatePropagation(); + } + } + } ); +} + +jQuery.removeEvent = function( elem, type, handle ) { + + // This "if" is needed for plain objects + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle ); + } +}; + +jQuery.Event = function( src, props ) { + + // Allow instantiation without the 'new' keyword + if ( !( this instanceof jQuery.Event ) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = src.defaultPrevented || + src.defaultPrevented === undefined && + + // Support: Android <=2.3 only + src.returnValue === false ? + returnTrue : + returnFalse; + + // Create target properties + // Support: Safari <=6 - 7 only + // Target should not be a text node (#504, #13143) + this.target = ( src.target && src.target.nodeType === 3 ) ? + src.target.parentNode : + src.target; + + this.currentTarget = src.currentTarget; + this.relatedTarget = src.relatedTarget; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || Date.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + constructor: jQuery.Event, + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + isSimulated: false, + + preventDefault: function() { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + + if ( e && !this.isSimulated ) { + e.preventDefault(); + } + }, + stopPropagation: function() { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + + if ( e && !this.isSimulated ) { + e.stopPropagation(); + } + }, + stopImmediatePropagation: function() { + var e = this.originalEvent; + + this.isImmediatePropagationStopped = returnTrue; + + if ( e && !this.isSimulated ) { + e.stopImmediatePropagation(); + } + + this.stopPropagation(); + } +}; + +// Includes all common event props including KeyEvent and MouseEvent specific props +jQuery.each( { + altKey: true, + bubbles: true, + cancelable: true, + changedTouches: true, + ctrlKey: true, + detail: true, + eventPhase: true, + metaKey: true, + pageX: true, + pageY: true, + shiftKey: true, + view: true, + "char": true, + code: true, + charCode: true, + key: true, + keyCode: true, + button: true, + buttons: true, + clientX: true, + clientY: true, + offsetX: true, + offsetY: true, + pointerId: true, + pointerType: true, + screenX: true, + screenY: true, + targetTouches: true, + toElement: true, + touches: true, + + which: function( event ) { + var button = event.button; + + // Add which for key events + if ( event.which == null && rkeyEvent.test( event.type ) ) { + return event.charCode != null ? event.charCode : event.keyCode; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { + if ( button & 1 ) { + return 1; + } + + if ( button & 2 ) { + return 3; + } + + if ( button & 4 ) { + return 2; + } + + return 0; + } + + return event.which; + } +}, jQuery.event.addProp ); + +jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) { + jQuery.event.special[ type ] = { + + // Utilize native event if possible so blur/focus sequence is correct + setup: function() { + + // Claim the first handler + // dataPriv.set( this, "focus", ... ) + // dataPriv.set( this, "blur", ... ) + leverageNative( this, type, expectSync ); + + // Return false to allow normal processing in the caller + return false; + }, + trigger: function() { + + // Force setup before trigger + leverageNative( this, type ); + + // Return non-false to allow normal event-path propagation + return true; + }, + + delegateType: delegateType + }; +} ); + +// Create mouseenter/leave events using mouseover/out and event-time checks +// so that event delegation works in jQuery. +// Do the same for pointerenter/pointerleave and pointerover/pointerout +// +// Support: Safari 7 only +// Safari sends mouseenter too often; see: +// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 +// for the description of the bug (it existed in older Chrome versions as well). +jQuery.each( { + mouseenter: "mouseover", + mouseleave: "mouseout", + pointerenter: "pointerover", + pointerleave: "pointerout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mouseenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; +} ); + +jQuery.fn.extend( { + + on: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn ); + }, + one: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + var handleObj, type; + if ( types && types.preventDefault && types.handleObj ) { + + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? + handleObj.origType + "." + handleObj.namespace : + handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + + // ( types-object [, selector] ) + for ( type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each( function() { + jQuery.event.remove( this, types, fn, selector ); + } ); + } +} ); + + +var + + // Support: IE <=10 - 11, Edge 12 - 13 only + // In IE/Edge using regex groups here causes severe slowdowns. + // See https://connect.microsoft.com/IE/feedback/details/1736512/ + rnoInnerhtml = /\s*$/g; + +// Prefer a tbody over its parent table for containing new rows +function manipulationTarget( elem, content ) { + if ( nodeName( elem, "table" ) && + nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { + + return jQuery( elem ).children( "tbody" )[ 0 ] || elem; + } + + return elem; +} + +// Replace/restore the type attribute of script elements for safe DOM manipulation +function disableScript( elem ) { + elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; + return elem; +} +function restoreScript( elem ) { + if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { + elem.type = elem.type.slice( 5 ); + } else { + elem.removeAttribute( "type" ); + } + + return elem; +} + +function cloneCopyEvent( src, dest ) { + var i, l, type, pdataOld, udataOld, udataCur, events; + + if ( dest.nodeType !== 1 ) { + return; + } + + // 1. Copy private data: events, handlers, etc. + if ( dataPriv.hasData( src ) ) { + pdataOld = dataPriv.get( src ); + events = pdataOld.events; + + if ( events ) { + dataPriv.remove( dest, "handle events" ); + + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } + } + } + + // 2. Copy user data + if ( dataUser.hasData( src ) ) { + udataOld = dataUser.access( src ); + udataCur = jQuery.extend( {}, udataOld ); + + dataUser.set( dest, udataCur ); + } +} + +// Fix IE bugs, see support tests +function fixInput( src, dest ) { + var nodeName = dest.nodeName.toLowerCase(); + + // Fails to persist the checked state of a cloned checkbox or radio button. + if ( nodeName === "input" && rcheckableType.test( src.type ) ) { + dest.checked = src.checked; + + // Fails to return the selected option to the default selected state when cloning options + } else if ( nodeName === "input" || nodeName === "textarea" ) { + dest.defaultValue = src.defaultValue; + } +} + +function domManip( collection, args, callback, ignored ) { + + // Flatten any nested arrays + args = flat( args ); + + var fragment, first, scripts, hasScripts, node, doc, + i = 0, + l = collection.length, + iNoClone = l - 1, + value = args[ 0 ], + valueIsFunction = isFunction( value ); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( valueIsFunction || + ( l > 1 && typeof value === "string" && + !support.checkClone && rchecked.test( value ) ) ) { + return collection.each( function( index ) { + var self = collection.eq( index ); + if ( valueIsFunction ) { + args[ 0 ] = value.call( this, index, self.html() ); + } + domManip( self, args, callback, ignored ); + } ); + } + + if ( l ) { + fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); + first = fragment.firstChild; + + if ( fragment.childNodes.length === 1 ) { + fragment = first; + } + + // Require either new content or an interest in ignored elements to invoke the callback + if ( first || ignored ) { + scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); + hasScripts = scripts.length; + + // Use the original fragment for the last item + // instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for ( ; i < l; i++ ) { + node = fragment; + + if ( i !== iNoClone ) { + node = jQuery.clone( node, true, true ); + + // Keep references to cloned scripts for later restoration + if ( hasScripts ) { + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( scripts, getAll( node, "script" ) ); + } + } + + callback.call( collection[ i ], node, i ); + } + + if ( hasScripts ) { + doc = scripts[ scripts.length - 1 ].ownerDocument; + + // Reenable scripts + jQuery.map( scripts, restoreScript ); + + // Evaluate executable scripts on first document insertion + for ( i = 0; i < hasScripts; i++ ) { + node = scripts[ i ]; + if ( rscriptType.test( node.type || "" ) && + !dataPriv.access( node, "globalEval" ) && + jQuery.contains( doc, node ) ) { + + if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { + + // Optional AJAX dependency, but won't run scripts if not present + if ( jQuery._evalUrl && !node.noModule ) { + jQuery._evalUrl( node.src, { + nonce: node.nonce || node.getAttribute( "nonce" ) + }, doc ); + } + } else { + DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc ); + } + } + } + } + } + } + + return collection; +} + +function remove( elem, selector, keepData ) { + var node, + nodes = selector ? jQuery.filter( selector, elem ) : elem, + i = 0; + + for ( ; ( node = nodes[ i ] ) != null; i++ ) { + if ( !keepData && node.nodeType === 1 ) { + jQuery.cleanData( getAll( node ) ); + } + + if ( node.parentNode ) { + if ( keepData && isAttached( node ) ) { + setGlobalEval( getAll( node, "script" ) ); + } + node.parentNode.removeChild( node ); + } + } + + return elem; +} + +jQuery.extend( { + htmlPrefilter: function( html ) { + return html; + }, + + clone: function( elem, dataAndEvents, deepDataAndEvents ) { + var i, l, srcElements, destElements, + clone = elem.cloneNode( true ), + inPage = isAttached( elem ); + + // Fix IE cloning issues + if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && + !jQuery.isXMLDoc( elem ) ) { + + // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 + destElements = getAll( clone ); + srcElements = getAll( elem ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + fixInput( srcElements[ i ], destElements[ i ] ); + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + if ( deepDataAndEvents ) { + srcElements = srcElements || getAll( elem ); + destElements = destElements || getAll( clone ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + cloneCopyEvent( srcElements[ i ], destElements[ i ] ); + } + } else { + cloneCopyEvent( elem, clone ); + } + } + + // Preserve script evaluation history + destElements = getAll( clone, "script" ); + if ( destElements.length > 0 ) { + setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); + } + + // Return the cloned set + return clone; + }, + + cleanData: function( elems ) { + var data, elem, type, + special = jQuery.event.special, + i = 0; + + for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { + if ( acceptData( elem ) ) { + if ( ( data = elem[ dataPriv.expando ] ) ) { + if ( data.events ) { + for ( type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + } + + // Support: Chrome <=35 - 45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataPriv.expando ] = undefined; + } + if ( elem[ dataUser.expando ] ) { + + // Support: Chrome <=35 - 45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataUser.expando ] = undefined; + } + } + } + } +} ); + +jQuery.fn.extend( { + detach: function( selector ) { + return remove( this, selector, true ); + }, + + remove: function( selector ) { + return remove( this, selector ); + }, + + text: function( value ) { + return access( this, function( value ) { + return value === undefined ? + jQuery.text( this ) : + this.empty().each( function() { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + this.textContent = value; + } + } ); + }, null, value, arguments.length ); + }, + + append: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.appendChild( elem ); + } + } ); + }, + + prepend: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.insertBefore( elem, target.firstChild ); + } + } ); + }, + + before: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this ); + } + } ); + }, + + after: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + } + } ); + }, + + empty: function() { + var elem, + i = 0; + + for ( ; ( elem = this[ i ] ) != null; i++ ) { + if ( elem.nodeType === 1 ) { + + // Prevent memory leaks + jQuery.cleanData( getAll( elem, false ) ); + + // Remove any remaining nodes + elem.textContent = ""; + } + } + + return this; + }, + + clone: function( dataAndEvents, deepDataAndEvents ) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map( function() { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + } ); + }, + + html: function( value ) { + return access( this, function( value ) { + var elem = this[ 0 ] || {}, + i = 0, + l = this.length; + + if ( value === undefined && elem.nodeType === 1 ) { + return elem.innerHTML; + } + + // See if we can take a shortcut and just use innerHTML + if ( typeof value === "string" && !rnoInnerhtml.test( value ) && + !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { + + value = jQuery.htmlPrefilter( value ); + + try { + for ( ; i < l; i++ ) { + elem = this[ i ] || {}; + + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch ( e ) {} + } + + if ( elem ) { + this.empty().append( value ); + } + }, null, value, arguments.length ); + }, + + replaceWith: function() { + var ignored = []; + + // Make the changes, replacing each non-ignored context element with the new content + return domManip( this, arguments, function( elem ) { + var parent = this.parentNode; + + if ( jQuery.inArray( this, ignored ) < 0 ) { + jQuery.cleanData( getAll( this ) ); + if ( parent ) { + parent.replaceChild( elem, this ); + } + } + + // Force callback invocation + }, ignored ); + } +} ); + +jQuery.each( { + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" +}, function( name, original ) { + jQuery.fn[ name ] = function( selector ) { + var elems, + ret = [], + insert = jQuery( selector ), + last = insert.length - 1, + i = 0; + + for ( ; i <= last; i++ ) { + elems = i === last ? this : this.clone( true ); + jQuery( insert[ i ] )[ original ]( elems ); + + // Support: Android <=4.0 only, PhantomJS 1 only + // .get() because push.apply(_, arraylike) throws on ancient WebKit + push.apply( ret, elems.get() ); + } + + return this.pushStack( ret ); + }; +} ); +var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); + +var getStyles = function( elem ) { + + // Support: IE <=11 only, Firefox <=30 (#15098, #14150) + // IE throws on elements created in popups + // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" + var view = elem.ownerDocument.defaultView; + + if ( !view || !view.opener ) { + view = window; + } + + return view.getComputedStyle( elem ); + }; + +var swap = function( elem, options, callback ) { + var ret, name, + old = {}; + + // Remember the old values, and insert the new ones + for ( name in options ) { + old[ name ] = elem.style[ name ]; + elem.style[ name ] = options[ name ]; + } + + ret = callback.call( elem ); + + // Revert the old values + for ( name in options ) { + elem.style[ name ] = old[ name ]; + } + + return ret; +}; + + +var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); + + + +( function() { + + // Executing both pixelPosition & boxSizingReliable tests require only one layout + // so they're executed at the same time to save the second computation. + function computeStyleTests() { + + // This is a singleton, we need to execute it only once + if ( !div ) { + return; + } + + container.style.cssText = "position:absolute;left:-11111px;width:60px;" + + "margin-top:1px;padding:0;border:0"; + div.style.cssText = + "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + + "margin:auto;border:1px;padding:1px;" + + "width:60%;top:1%"; + documentElement.appendChild( container ).appendChild( div ); + + var divStyle = window.getComputedStyle( div ); + pixelPositionVal = divStyle.top !== "1%"; + + // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 + reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; + + // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 + // Some styles come back with percentage values, even though they shouldn't + div.style.right = "60%"; + pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; + + // Support: IE 9 - 11 only + // Detect misreporting of content dimensions for box-sizing:border-box elements + boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; + + // Support: IE 9 only + // Detect overflow:scroll screwiness (gh-3699) + // Support: Chrome <=64 + // Don't get tricked when zoom affects offsetWidth (gh-4029) + div.style.position = "absolute"; + scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12; + + documentElement.removeChild( container ); + + // Nullify the div so it wouldn't be stored in the memory and + // it will also be a sign that checks already performed + div = null; + } + + function roundPixelMeasures( measure ) { + return Math.round( parseFloat( measure ) ); + } + + var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, + reliableTrDimensionsVal, reliableMarginLeftVal, + container = document.createElement( "div" ), + div = document.createElement( "div" ); + + // Finish early in limited (non-browser) environments + if ( !div.style ) { + return; + } + + // Support: IE <=9 - 11 only + // Style of cloned element affects source element cloned (#8908) + div.style.backgroundClip = "content-box"; + div.cloneNode( true ).style.backgroundClip = ""; + support.clearCloneStyle = div.style.backgroundClip === "content-box"; + + jQuery.extend( support, { + boxSizingReliable: function() { + computeStyleTests(); + return boxSizingReliableVal; + }, + pixelBoxStyles: function() { + computeStyleTests(); + return pixelBoxStylesVal; + }, + pixelPosition: function() { + computeStyleTests(); + return pixelPositionVal; + }, + reliableMarginLeft: function() { + computeStyleTests(); + return reliableMarginLeftVal; + }, + scrollboxSize: function() { + computeStyleTests(); + return scrollboxSizeVal; + }, + + // Support: IE 9 - 11+, Edge 15 - 18+ + // IE/Edge misreport `getComputedStyle` of table rows with width/height + // set in CSS while `offset*` properties report correct values. + // Behavior in IE 9 is more subtle than in newer versions & it passes + // some versions of this test; make sure not to make it pass there! + reliableTrDimensions: function() { + var table, tr, trChild, trStyle; + if ( reliableTrDimensionsVal == null ) { + table = document.createElement( "table" ); + tr = document.createElement( "tr" ); + trChild = document.createElement( "div" ); + + table.style.cssText = "position:absolute;left:-11111px"; + tr.style.height = "1px"; + trChild.style.height = "9px"; + + documentElement + .appendChild( table ) + .appendChild( tr ) + .appendChild( trChild ); + + trStyle = window.getComputedStyle( tr ); + reliableTrDimensionsVal = parseInt( trStyle.height ) > 3; + + documentElement.removeChild( table ); + } + return reliableTrDimensionsVal; + } + } ); +} )(); + + +function curCSS( elem, name, computed ) { + var width, minWidth, maxWidth, ret, + + // Support: Firefox 51+ + // Retrieving style before computed somehow + // fixes an issue with getting wrong values + // on detached elements + style = elem.style; + + computed = computed || getStyles( elem ); + + // getPropertyValue is needed for: + // .css('filter') (IE 9 only, #12537) + // .css('--customProperty) (#3144) + if ( computed ) { + ret = computed.getPropertyValue( name ) || computed[ name ]; + + if ( ret === "" && !isAttached( elem ) ) { + ret = jQuery.style( elem, name ); + } + + // A tribute to the "awesome hack by Dean Edwards" + // Android Browser returns percentage for some values, + // but width seems to be reliably pixels. + // This is against the CSSOM draft spec: + // https://drafts.csswg.org/cssom/#resolved-values + if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { + + // Remember the original values + width = style.width; + minWidth = style.minWidth; + maxWidth = style.maxWidth; + + // Put in the new values to get a computed value out + style.minWidth = style.maxWidth = style.width = ret; + ret = computed.width; + + // Revert the changed values + style.width = width; + style.minWidth = minWidth; + style.maxWidth = maxWidth; + } + } + + return ret !== undefined ? + + // Support: IE <=9 - 11 only + // IE returns zIndex value as an integer. + ret + "" : + ret; +} + + +function addGetHookIf( conditionFn, hookFn ) { + + // Define the hook, we'll check on the first run if it's really needed. + return { + get: function() { + if ( conditionFn() ) { + + // Hook not needed (or it's not possible to use it due + // to missing dependency), remove it. + delete this.get; + return; + } + + // Hook needed; redefine it so that the support test is not executed again. + return ( this.get = hookFn ).apply( this, arguments ); + } + }; +} + + +var cssPrefixes = [ "Webkit", "Moz", "ms" ], + emptyStyle = document.createElement( "div" ).style, + vendorProps = {}; + +// Return a vendor-prefixed property or undefined +function vendorPropName( name ) { + + // Check for vendor prefixed names + var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), + i = cssPrefixes.length; + + while ( i-- ) { + name = cssPrefixes[ i ] + capName; + if ( name in emptyStyle ) { + return name; + } + } +} + +// Return a potentially-mapped jQuery.cssProps or vendor prefixed property +function finalPropName( name ) { + var final = jQuery.cssProps[ name ] || vendorProps[ name ]; + + if ( final ) { + return final; + } + if ( name in emptyStyle ) { + return name; + } + return vendorProps[ name ] = vendorPropName( name ) || name; +} + + +var + + // Swappable if display is none or starts with table + // except "table", "table-cell", or "table-caption" + // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display + rdisplayswap = /^(none|table(?!-c[ea]).+)/, + rcustomProp = /^--/, + cssShow = { position: "absolute", visibility: "hidden", display: "block" }, + cssNormalTransform = { + letterSpacing: "0", + fontWeight: "400" + }; + +function setPositiveNumber( _elem, value, subtract ) { + + // Any relative (+/-) values have already been + // normalized at this point + var matches = rcssNum.exec( value ); + return matches ? + + // Guard against undefined "subtract", e.g., when used as in cssHooks + Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : + value; +} + +function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { + var i = dimension === "width" ? 1 : 0, + extra = 0, + delta = 0; + + // Adjustment may not be necessary + if ( box === ( isBorderBox ? "border" : "content" ) ) { + return 0; + } + + for ( ; i < 4; i += 2 ) { + + // Both box models exclude margin + if ( box === "margin" ) { + delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); + } + + // If we get here with a content-box, we're seeking "padding" or "border" or "margin" + if ( !isBorderBox ) { + + // Add padding + delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + + // For "border" or "margin", add border + if ( box !== "padding" ) { + delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + + // But still keep track of it otherwise + } else { + extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + + // If we get here with a border-box (content + padding + border), we're seeking "content" or + // "padding" or "margin" + } else { + + // For "content", subtract padding + if ( box === "content" ) { + delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + } + + // For "content" or "padding", subtract border + if ( box !== "margin" ) { + delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + } + } + + // Account for positive content-box scroll gutter when requested by providing computedVal + if ( !isBorderBox && computedVal >= 0 ) { + + // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border + // Assuming integer scroll gutter, subtract the rest and round down + delta += Math.max( 0, Math.ceil( + elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - + computedVal - + delta - + extra - + 0.5 + + // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter + // Use an explicit zero to avoid NaN (gh-3964) + ) ) || 0; + } + + return delta; +} + +function getWidthOrHeight( elem, dimension, extra ) { + + // Start with computed style + var styles = getStyles( elem ), + + // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322). + // Fake content-box until we know it's needed to know the true value. + boxSizingNeeded = !support.boxSizingReliable() || extra, + isBorderBox = boxSizingNeeded && + jQuery.css( elem, "boxSizing", false, styles ) === "border-box", + valueIsBorderBox = isBorderBox, + + val = curCSS( elem, dimension, styles ), + offsetProp = "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ); + + // Support: Firefox <=54 + // Return a confounding non-pixel value or feign ignorance, as appropriate. + if ( rnumnonpx.test( val ) ) { + if ( !extra ) { + return val; + } + val = "auto"; + } + + + // Support: IE 9 - 11 only + // Use offsetWidth/offsetHeight for when box sizing is unreliable. + // In those cases, the computed value can be trusted to be border-box. + if ( ( !support.boxSizingReliable() && isBorderBox || + + // Support: IE 10 - 11+, Edge 15 - 18+ + // IE/Edge misreport `getComputedStyle` of table rows with width/height + // set in CSS while `offset*` properties report correct values. + // Interestingly, in some cases IE 9 doesn't suffer from this issue. + !support.reliableTrDimensions() && nodeName( elem, "tr" ) || + + // Fall back to offsetWidth/offsetHeight when value is "auto" + // This happens for inline elements with no explicit setting (gh-3571) + val === "auto" || + + // Support: Android <=4.1 - 4.3 only + // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) + !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) && + + // Make sure the element is visible & connected + elem.getClientRects().length ) { + + isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; + + // Where available, offsetWidth/offsetHeight approximate border box dimensions. + // Where not available (e.g., SVG), assume unreliable box-sizing and interpret the + // retrieved value as a content box dimension. + valueIsBorderBox = offsetProp in elem; + if ( valueIsBorderBox ) { + val = elem[ offsetProp ]; + } + } + + // Normalize "" and auto + val = parseFloat( val ) || 0; + + // Adjust for the element's box model + return ( val + + boxModelAdjustment( + elem, + dimension, + extra || ( isBorderBox ? "border" : "content" ), + valueIsBorderBox, + styles, + + // Provide the current computed size to request scroll gutter calculation (gh-3589) + val + ) + ) + "px"; +} + +jQuery.extend( { + + // Add in style property hooks for overriding the default + // behavior of getting and setting a style property + cssHooks: { + opacity: { + get: function( elem, computed ) { + if ( computed ) { + + // We should always get a number back from opacity + var ret = curCSS( elem, "opacity" ); + return ret === "" ? "1" : ret; + } + } + } + }, + + // Don't automatically add "px" to these possibly-unitless properties + cssNumber: { + "animationIterationCount": true, + "columnCount": true, + "fillOpacity": true, + "flexGrow": true, + "flexShrink": true, + "fontWeight": true, + "gridArea": true, + "gridColumn": true, + "gridColumnEnd": true, + "gridColumnStart": true, + "gridRow": true, + "gridRowEnd": true, + "gridRowStart": true, + "lineHeight": true, + "opacity": true, + "order": true, + "orphans": true, + "widows": true, + "zIndex": true, + "zoom": true + }, + + // Add in properties whose names you wish to fix before + // setting or getting the value + cssProps: {}, + + // Get and set the style property on a DOM Node + style: function( elem, name, value, extra ) { + + // Don't set styles on text and comment nodes + if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { + return; + } + + // Make sure that we're working with the right name + var ret, type, hooks, + origName = camelCase( name ), + isCustomProp = rcustomProp.test( name ), + style = elem.style; + + // Make sure that we're working with the right name. We don't + // want to query the value if it is a CSS custom property + // since they are user-defined. + if ( !isCustomProp ) { + name = finalPropName( origName ); + } + + // Gets hook for the prefixed version, then unprefixed version + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // Check if we're setting a value + if ( value !== undefined ) { + type = typeof value; + + // Convert "+=" or "-=" to relative numbers (#7345) + if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { + value = adjustCSS( elem, name, ret ); + + // Fixes bug #9237 + type = "number"; + } + + // Make sure that null and NaN values aren't set (#7116) + if ( value == null || value !== value ) { + return; + } + + // If a number was passed in, add the unit (except for certain CSS properties) + // The isCustomProp check can be removed in jQuery 4.0 when we only auto-append + // "px" to a few hardcoded values. + if ( type === "number" && !isCustomProp ) { + value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); + } + + // background-* props affect original clone's values + if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { + style[ name ] = "inherit"; + } + + // If a hook was provided, use that value, otherwise just set the specified value + if ( !hooks || !( "set" in hooks ) || + ( value = hooks.set( elem, value, extra ) ) !== undefined ) { + + if ( isCustomProp ) { + style.setProperty( name, value ); + } else { + style[ name ] = value; + } + } + + } else { + + // If a hook was provided get the non-computed value from there + if ( hooks && "get" in hooks && + ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { + + return ret; + } + + // Otherwise just get the value from the style object + return style[ name ]; + } + }, + + css: function( elem, name, extra, styles ) { + var val, num, hooks, + origName = camelCase( name ), + isCustomProp = rcustomProp.test( name ); + + // Make sure that we're working with the right name. We don't + // want to modify the value if it is a CSS custom property + // since they are user-defined. + if ( !isCustomProp ) { + name = finalPropName( origName ); + } + + // Try prefixed name followed by the unprefixed name + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // If a hook was provided get the computed value from there + if ( hooks && "get" in hooks ) { + val = hooks.get( elem, true, extra ); + } + + // Otherwise, if a way to get the computed value exists, use that + if ( val === undefined ) { + val = curCSS( elem, name, styles ); + } + + // Convert "normal" to computed value + if ( val === "normal" && name in cssNormalTransform ) { + val = cssNormalTransform[ name ]; + } + + // Make numeric if forced or a qualifier was provided and val looks numeric + if ( extra === "" || extra ) { + num = parseFloat( val ); + return extra === true || isFinite( num ) ? num || 0 : val; + } + + return val; + } +} ); + +jQuery.each( [ "height", "width" ], function( _i, dimension ) { + jQuery.cssHooks[ dimension ] = { + get: function( elem, computed, extra ) { + if ( computed ) { + + // Certain elements can have dimension info if we invisibly show them + // but it must have a current display style that would benefit + return rdisplayswap.test( jQuery.css( elem, "display" ) ) && + + // Support: Safari 8+ + // Table columns in Safari have non-zero offsetWidth & zero + // getBoundingClientRect().width unless display is changed. + // Support: IE <=11 only + // Running getBoundingClientRect on a disconnected node + // in IE throws an error. + ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? + swap( elem, cssShow, function() { + return getWidthOrHeight( elem, dimension, extra ); + } ) : + getWidthOrHeight( elem, dimension, extra ); + } + }, + + set: function( elem, value, extra ) { + var matches, + styles = getStyles( elem ), + + // Only read styles.position if the test has a chance to fail + // to avoid forcing a reflow. + scrollboxSizeBuggy = !support.scrollboxSize() && + styles.position === "absolute", + + // To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991) + boxSizingNeeded = scrollboxSizeBuggy || extra, + isBorderBox = boxSizingNeeded && + jQuery.css( elem, "boxSizing", false, styles ) === "border-box", + subtract = extra ? + boxModelAdjustment( + elem, + dimension, + extra, + isBorderBox, + styles + ) : + 0; + + // Account for unreliable border-box dimensions by comparing offset* to computed and + // faking a content-box to get border and padding (gh-3699) + if ( isBorderBox && scrollboxSizeBuggy ) { + subtract -= Math.ceil( + elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - + parseFloat( styles[ dimension ] ) - + boxModelAdjustment( elem, dimension, "border", false, styles ) - + 0.5 + ); + } + + // Convert to pixels if value adjustment is needed + if ( subtract && ( matches = rcssNum.exec( value ) ) && + ( matches[ 3 ] || "px" ) !== "px" ) { + + elem.style[ dimension ] = value; + value = jQuery.css( elem, dimension ); + } + + return setPositiveNumber( elem, value, subtract ); + } + }; +} ); + +jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, + function( elem, computed ) { + if ( computed ) { + return ( parseFloat( curCSS( elem, "marginLeft" ) ) || + elem.getBoundingClientRect().left - + swap( elem, { marginLeft: 0 }, function() { + return elem.getBoundingClientRect().left; + } ) + ) + "px"; + } + } +); + +// These hooks are used by animate to expand properties +jQuery.each( { + margin: "", + padding: "", + border: "Width" +}, function( prefix, suffix ) { + jQuery.cssHooks[ prefix + suffix ] = { + expand: function( value ) { + var i = 0, + expanded = {}, + + // Assumes a single number if not a string + parts = typeof value === "string" ? value.split( " " ) : [ value ]; + + for ( ; i < 4; i++ ) { + expanded[ prefix + cssExpand[ i ] + suffix ] = + parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; + } + + return expanded; + } + }; + + if ( prefix !== "margin" ) { + jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; + } +} ); + +jQuery.fn.extend( { + css: function( name, value ) { + return access( this, function( elem, name, value ) { + var styles, len, + map = {}, + i = 0; + + if ( Array.isArray( name ) ) { + styles = getStyles( elem ); + len = name.length; + + for ( ; i < len; i++ ) { + map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); + } + + return map; + } + + return value !== undefined ? + jQuery.style( elem, name, value ) : + jQuery.css( elem, name ); + }, name, value, arguments.length > 1 ); + } +} ); + + +function Tween( elem, options, prop, end, easing ) { + return new Tween.prototype.init( elem, options, prop, end, easing ); +} +jQuery.Tween = Tween; + +Tween.prototype = { + constructor: Tween, + init: function( elem, options, prop, end, easing, unit ) { + this.elem = elem; + this.prop = prop; + this.easing = easing || jQuery.easing._default; + this.options = options; + this.start = this.now = this.cur(); + this.end = end; + this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); + }, + cur: function() { + var hooks = Tween.propHooks[ this.prop ]; + + return hooks && hooks.get ? + hooks.get( this ) : + Tween.propHooks._default.get( this ); + }, + run: function( percent ) { + var eased, + hooks = Tween.propHooks[ this.prop ]; + + if ( this.options.duration ) { + this.pos = eased = jQuery.easing[ this.easing ]( + percent, this.options.duration * percent, 0, 1, this.options.duration + ); + } else { + this.pos = eased = percent; + } + this.now = ( this.end - this.start ) * eased + this.start; + + if ( this.options.step ) { + this.options.step.call( this.elem, this.now, this ); + } + + if ( hooks && hooks.set ) { + hooks.set( this ); + } else { + Tween.propHooks._default.set( this ); + } + return this; + } +}; + +Tween.prototype.init.prototype = Tween.prototype; + +Tween.propHooks = { + _default: { + get: function( tween ) { + var result; + + // Use a property on the element directly when it is not a DOM element, + // or when there is no matching style property that exists. + if ( tween.elem.nodeType !== 1 || + tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { + return tween.elem[ tween.prop ]; + } + + // Passing an empty string as a 3rd parameter to .css will automatically + // attempt a parseFloat and fallback to a string if the parse fails. + // Simple values such as "10px" are parsed to Float; + // complex values such as "rotate(1rad)" are returned as-is. + result = jQuery.css( tween.elem, tween.prop, "" ); + + // Empty strings, null, undefined and "auto" are converted to 0. + return !result || result === "auto" ? 0 : result; + }, + set: function( tween ) { + + // Use step hook for back compat. + // Use cssHook if its there. + // Use .style if available and use plain properties where available. + if ( jQuery.fx.step[ tween.prop ] ) { + jQuery.fx.step[ tween.prop ]( tween ); + } else if ( tween.elem.nodeType === 1 && ( + jQuery.cssHooks[ tween.prop ] || + tween.elem.style[ finalPropName( tween.prop ) ] != null ) ) { + jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); + } else { + tween.elem[ tween.prop ] = tween.now; + } + } + } +}; + +// Support: IE <=9 only +// Panic based approach to setting things on disconnected nodes +Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { + set: function( tween ) { + if ( tween.elem.nodeType && tween.elem.parentNode ) { + tween.elem[ tween.prop ] = tween.now; + } + } +}; + +jQuery.easing = { + linear: function( p ) { + return p; + }, + swing: function( p ) { + return 0.5 - Math.cos( p * Math.PI ) / 2; + }, + _default: "swing" +}; + +jQuery.fx = Tween.prototype.init; + +// Back compat <1.8 extension point +jQuery.fx.step = {}; + + + + +var + fxNow, inProgress, + rfxtypes = /^(?:toggle|show|hide)$/, + rrun = /queueHooks$/; + +function schedule() { + if ( inProgress ) { + if ( document.hidden === false && window.requestAnimationFrame ) { + window.requestAnimationFrame( schedule ); + } else { + window.setTimeout( schedule, jQuery.fx.interval ); + } + + jQuery.fx.tick(); + } +} + +// Animations created synchronously will run synchronously +function createFxNow() { + window.setTimeout( function() { + fxNow = undefined; + } ); + return ( fxNow = Date.now() ); +} + +// Generate parameters to create a standard animation +function genFx( type, includeWidth ) { + var which, + i = 0, + attrs = { height: type }; + + // If we include width, step value is 1 to do all cssExpand values, + // otherwise step value is 2 to skip over Left and Right + includeWidth = includeWidth ? 1 : 0; + for ( ; i < 4; i += 2 - includeWidth ) { + which = cssExpand[ i ]; + attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; + } + + if ( includeWidth ) { + attrs.opacity = attrs.width = type; + } + + return attrs; +} + +function createTween( value, prop, animation ) { + var tween, + collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), + index = 0, + length = collection.length; + for ( ; index < length; index++ ) { + if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { + + // We're done with this property + return tween; + } + } +} + +function defaultPrefilter( elem, props, opts ) { + var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, + isBox = "width" in props || "height" in props, + anim = this, + orig = {}, + style = elem.style, + hidden = elem.nodeType && isHiddenWithinTree( elem ), + dataShow = dataPriv.get( elem, "fxshow" ); + + // Queue-skipping animations hijack the fx hooks + if ( !opts.queue ) { + hooks = jQuery._queueHooks( elem, "fx" ); + if ( hooks.unqueued == null ) { + hooks.unqueued = 0; + oldfire = hooks.empty.fire; + hooks.empty.fire = function() { + if ( !hooks.unqueued ) { + oldfire(); + } + }; + } + hooks.unqueued++; + + anim.always( function() { + + // Ensure the complete handler is called before this completes + anim.always( function() { + hooks.unqueued--; + if ( !jQuery.queue( elem, "fx" ).length ) { + hooks.empty.fire(); + } + } ); + } ); + } + + // Detect show/hide animations + for ( prop in props ) { + value = props[ prop ]; + if ( rfxtypes.test( value ) ) { + delete props[ prop ]; + toggle = toggle || value === "toggle"; + if ( value === ( hidden ? "hide" : "show" ) ) { + + // Pretend to be hidden if this is a "show" and + // there is still data from a stopped show/hide + if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { + hidden = true; + + // Ignore all other no-op show/hide data + } else { + continue; + } + } + orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); + } + } + + // Bail out if this is a no-op like .hide().hide() + propTween = !jQuery.isEmptyObject( props ); + if ( !propTween && jQuery.isEmptyObject( orig ) ) { + return; + } + + // Restrict "overflow" and "display" styles during box animations + if ( isBox && elem.nodeType === 1 ) { + + // Support: IE <=9 - 11, Edge 12 - 15 + // Record all 3 overflow attributes because IE does not infer the shorthand + // from identically-valued overflowX and overflowY and Edge just mirrors + // the overflowX value there. + opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; + + // Identify a display type, preferring old show/hide data over the CSS cascade + restoreDisplay = dataShow && dataShow.display; + if ( restoreDisplay == null ) { + restoreDisplay = dataPriv.get( elem, "display" ); + } + display = jQuery.css( elem, "display" ); + if ( display === "none" ) { + if ( restoreDisplay ) { + display = restoreDisplay; + } else { + + // Get nonempty value(s) by temporarily forcing visibility + showHide( [ elem ], true ); + restoreDisplay = elem.style.display || restoreDisplay; + display = jQuery.css( elem, "display" ); + showHide( [ elem ] ); + } + } + + // Animate inline elements as inline-block + if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { + if ( jQuery.css( elem, "float" ) === "none" ) { + + // Restore the original display value at the end of pure show/hide animations + if ( !propTween ) { + anim.done( function() { + style.display = restoreDisplay; + } ); + if ( restoreDisplay == null ) { + display = style.display; + restoreDisplay = display === "none" ? "" : display; + } + } + style.display = "inline-block"; + } + } + } + + if ( opts.overflow ) { + style.overflow = "hidden"; + anim.always( function() { + style.overflow = opts.overflow[ 0 ]; + style.overflowX = opts.overflow[ 1 ]; + style.overflowY = opts.overflow[ 2 ]; + } ); + } + + // Implement show/hide animations + propTween = false; + for ( prop in orig ) { + + // General show/hide setup for this element animation + if ( !propTween ) { + if ( dataShow ) { + if ( "hidden" in dataShow ) { + hidden = dataShow.hidden; + } + } else { + dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); + } + + // Store hidden/visible for toggle so `.stop().toggle()` "reverses" + if ( toggle ) { + dataShow.hidden = !hidden; + } + + // Show elements before animating them + if ( hidden ) { + showHide( [ elem ], true ); + } + + /* eslint-disable no-loop-func */ + + anim.done( function() { + + /* eslint-enable no-loop-func */ + + // The final step of a "hide" animation is actually hiding the element + if ( !hidden ) { + showHide( [ elem ] ); + } + dataPriv.remove( elem, "fxshow" ); + for ( prop in orig ) { + jQuery.style( elem, prop, orig[ prop ] ); + } + } ); + } + + // Per-property setup + propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); + if ( !( prop in dataShow ) ) { + dataShow[ prop ] = propTween.start; + if ( hidden ) { + propTween.end = propTween.start; + propTween.start = 0; + } + } + } +} + +function propFilter( props, specialEasing ) { + var index, name, easing, value, hooks; + + // camelCase, specialEasing and expand cssHook pass + for ( index in props ) { + name = camelCase( index ); + easing = specialEasing[ name ]; + value = props[ index ]; + if ( Array.isArray( value ) ) { + easing = value[ 1 ]; + value = props[ index ] = value[ 0 ]; + } + + if ( index !== name ) { + props[ name ] = value; + delete props[ index ]; + } + + hooks = jQuery.cssHooks[ name ]; + if ( hooks && "expand" in hooks ) { + value = hooks.expand( value ); + delete props[ name ]; + + // Not quite $.extend, this won't overwrite existing keys. + // Reusing 'index' because we have the correct "name" + for ( index in value ) { + if ( !( index in props ) ) { + props[ index ] = value[ index ]; + specialEasing[ index ] = easing; + } + } + } else { + specialEasing[ name ] = easing; + } + } +} + +function Animation( elem, properties, options ) { + var result, + stopped, + index = 0, + length = Animation.prefilters.length, + deferred = jQuery.Deferred().always( function() { + + // Don't match elem in the :animated selector + delete tick.elem; + } ), + tick = function() { + if ( stopped ) { + return false; + } + var currentTime = fxNow || createFxNow(), + remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), + + // Support: Android 2.3 only + // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) + temp = remaining / animation.duration || 0, + percent = 1 - temp, + index = 0, + length = animation.tweens.length; + + for ( ; index < length; index++ ) { + animation.tweens[ index ].run( percent ); + } + + deferred.notifyWith( elem, [ animation, percent, remaining ] ); + + // If there's more to do, yield + if ( percent < 1 && length ) { + return remaining; + } + + // If this was an empty animation, synthesize a final progress notification + if ( !length ) { + deferred.notifyWith( elem, [ animation, 1, 0 ] ); + } + + // Resolve the animation and report its conclusion + deferred.resolveWith( elem, [ animation ] ); + return false; + }, + animation = deferred.promise( { + elem: elem, + props: jQuery.extend( {}, properties ), + opts: jQuery.extend( true, { + specialEasing: {}, + easing: jQuery.easing._default + }, options ), + originalProperties: properties, + originalOptions: options, + startTime: fxNow || createFxNow(), + duration: options.duration, + tweens: [], + createTween: function( prop, end ) { + var tween = jQuery.Tween( elem, animation.opts, prop, end, + animation.opts.specialEasing[ prop ] || animation.opts.easing ); + animation.tweens.push( tween ); + return tween; + }, + stop: function( gotoEnd ) { + var index = 0, + + // If we are going to the end, we want to run all the tweens + // otherwise we skip this part + length = gotoEnd ? animation.tweens.length : 0; + if ( stopped ) { + return this; + } + stopped = true; + for ( ; index < length; index++ ) { + animation.tweens[ index ].run( 1 ); + } + + // Resolve when we played the last frame; otherwise, reject + if ( gotoEnd ) { + deferred.notifyWith( elem, [ animation, 1, 0 ] ); + deferred.resolveWith( elem, [ animation, gotoEnd ] ); + } else { + deferred.rejectWith( elem, [ animation, gotoEnd ] ); + } + return this; + } + } ), + props = animation.props; + + propFilter( props, animation.opts.specialEasing ); + + for ( ; index < length; index++ ) { + result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); + if ( result ) { + if ( isFunction( result.stop ) ) { + jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = + result.stop.bind( result ); + } + return result; + } + } + + jQuery.map( props, createTween, animation ); + + if ( isFunction( animation.opts.start ) ) { + animation.opts.start.call( elem, animation ); + } + + // Attach callbacks from options + animation + .progress( animation.opts.progress ) + .done( animation.opts.done, animation.opts.complete ) + .fail( animation.opts.fail ) + .always( animation.opts.always ); + + jQuery.fx.timer( + jQuery.extend( tick, { + elem: elem, + anim: animation, + queue: animation.opts.queue + } ) + ); + + return animation; +} + +jQuery.Animation = jQuery.extend( Animation, { + + tweeners: { + "*": [ function( prop, value ) { + var tween = this.createTween( prop, value ); + adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); + return tween; + } ] + }, + + tweener: function( props, callback ) { + if ( isFunction( props ) ) { + callback = props; + props = [ "*" ]; + } else { + props = props.match( rnothtmlwhite ); + } + + var prop, + index = 0, + length = props.length; + + for ( ; index < length; index++ ) { + prop = props[ index ]; + Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; + Animation.tweeners[ prop ].unshift( callback ); + } + }, + + prefilters: [ defaultPrefilter ], + + prefilter: function( callback, prepend ) { + if ( prepend ) { + Animation.prefilters.unshift( callback ); + } else { + Animation.prefilters.push( callback ); + } + } +} ); + +jQuery.speed = function( speed, easing, fn ) { + var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { + complete: fn || !fn && easing || + isFunction( speed ) && speed, + duration: speed, + easing: fn && easing || easing && !isFunction( easing ) && easing + }; + + // Go to the end state if fx are off + if ( jQuery.fx.off ) { + opt.duration = 0; + + } else { + if ( typeof opt.duration !== "number" ) { + if ( opt.duration in jQuery.fx.speeds ) { + opt.duration = jQuery.fx.speeds[ opt.duration ]; + + } else { + opt.duration = jQuery.fx.speeds._default; + } + } + } + + // Normalize opt.queue - true/undefined/null -> "fx" + if ( opt.queue == null || opt.queue === true ) { + opt.queue = "fx"; + } + + // Queueing + opt.old = opt.complete; + + opt.complete = function() { + if ( isFunction( opt.old ) ) { + opt.old.call( this ); + } + + if ( opt.queue ) { + jQuery.dequeue( this, opt.queue ); + } + }; + + return opt; +}; + +jQuery.fn.extend( { + fadeTo: function( speed, to, easing, callback ) { + + // Show any hidden elements after setting opacity to 0 + return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() + + // Animate to the value specified + .end().animate( { opacity: to }, speed, easing, callback ); + }, + animate: function( prop, speed, easing, callback ) { + var empty = jQuery.isEmptyObject( prop ), + optall = jQuery.speed( speed, easing, callback ), + doAnimation = function() { + + // Operate on a copy of prop so per-property easing won't be lost + var anim = Animation( this, jQuery.extend( {}, prop ), optall ); + + // Empty animations, or finishing resolves immediately + if ( empty || dataPriv.get( this, "finish" ) ) { + anim.stop( true ); + } + }; + doAnimation.finish = doAnimation; + + return empty || optall.queue === false ? + this.each( doAnimation ) : + this.queue( optall.queue, doAnimation ); + }, + stop: function( type, clearQueue, gotoEnd ) { + var stopQueue = function( hooks ) { + var stop = hooks.stop; + delete hooks.stop; + stop( gotoEnd ); + }; + + if ( typeof type !== "string" ) { + gotoEnd = clearQueue; + clearQueue = type; + type = undefined; + } + if ( clearQueue ) { + this.queue( type || "fx", [] ); + } + + return this.each( function() { + var dequeue = true, + index = type != null && type + "queueHooks", + timers = jQuery.timers, + data = dataPriv.get( this ); + + if ( index ) { + if ( data[ index ] && data[ index ].stop ) { + stopQueue( data[ index ] ); + } + } else { + for ( index in data ) { + if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { + stopQueue( data[ index ] ); + } + } + } + + for ( index = timers.length; index--; ) { + if ( timers[ index ].elem === this && + ( type == null || timers[ index ].queue === type ) ) { + + timers[ index ].anim.stop( gotoEnd ); + dequeue = false; + timers.splice( index, 1 ); + } + } + + // Start the next in the queue if the last step wasn't forced. + // Timers currently will call their complete callbacks, which + // will dequeue but only if they were gotoEnd. + if ( dequeue || !gotoEnd ) { + jQuery.dequeue( this, type ); + } + } ); + }, + finish: function( type ) { + if ( type !== false ) { + type = type || "fx"; + } + return this.each( function() { + var index, + data = dataPriv.get( this ), + queue = data[ type + "queue" ], + hooks = data[ type + "queueHooks" ], + timers = jQuery.timers, + length = queue ? queue.length : 0; + + // Enable finishing flag on private data + data.finish = true; + + // Empty the queue first + jQuery.queue( this, type, [] ); + + if ( hooks && hooks.stop ) { + hooks.stop.call( this, true ); + } + + // Look for any active animations, and finish them + for ( index = timers.length; index--; ) { + if ( timers[ index ].elem === this && timers[ index ].queue === type ) { + timers[ index ].anim.stop( true ); + timers.splice( index, 1 ); + } + } + + // Look for any animations in the old queue and finish them + for ( index = 0; index < length; index++ ) { + if ( queue[ index ] && queue[ index ].finish ) { + queue[ index ].finish.call( this ); + } + } + + // Turn off finishing flag + delete data.finish; + } ); + } +} ); + +jQuery.each( [ "toggle", "show", "hide" ], function( _i, name ) { + var cssFn = jQuery.fn[ name ]; + jQuery.fn[ name ] = function( speed, easing, callback ) { + return speed == null || typeof speed === "boolean" ? + cssFn.apply( this, arguments ) : + this.animate( genFx( name, true ), speed, easing, callback ); + }; +} ); + +// Generate shortcuts for custom animations +jQuery.each( { + slideDown: genFx( "show" ), + slideUp: genFx( "hide" ), + slideToggle: genFx( "toggle" ), + fadeIn: { opacity: "show" }, + fadeOut: { opacity: "hide" }, + fadeToggle: { opacity: "toggle" } +}, function( name, props ) { + jQuery.fn[ name ] = function( speed, easing, callback ) { + return this.animate( props, speed, easing, callback ); + }; +} ); + +jQuery.timers = []; +jQuery.fx.tick = function() { + var timer, + i = 0, + timers = jQuery.timers; + + fxNow = Date.now(); + + for ( ; i < timers.length; i++ ) { + timer = timers[ i ]; + + // Run the timer and safely remove it when done (allowing for external removal) + if ( !timer() && timers[ i ] === timer ) { + timers.splice( i--, 1 ); + } + } + + if ( !timers.length ) { + jQuery.fx.stop(); + } + fxNow = undefined; +}; + +jQuery.fx.timer = function( timer ) { + jQuery.timers.push( timer ); + jQuery.fx.start(); +}; + +jQuery.fx.interval = 13; +jQuery.fx.start = function() { + if ( inProgress ) { + return; + } + + inProgress = true; + schedule(); +}; + +jQuery.fx.stop = function() { + inProgress = null; +}; + +jQuery.fx.speeds = { + slow: 600, + fast: 200, + + // Default speed + _default: 400 +}; + + +// Based off of the plugin by Clint Helfers, with permission. +// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ +jQuery.fn.delay = function( time, type ) { + time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; + type = type || "fx"; + + return this.queue( type, function( next, hooks ) { + var timeout = window.setTimeout( next, time ); + hooks.stop = function() { + window.clearTimeout( timeout ); + }; + } ); +}; + + +( function() { + var input = document.createElement( "input" ), + select = document.createElement( "select" ), + opt = select.appendChild( document.createElement( "option" ) ); + + input.type = "checkbox"; + + // Support: Android <=4.3 only + // Default value for a checkbox should be "on" + support.checkOn = input.value !== ""; + + // Support: IE <=11 only + // Must access selectedIndex to make default options select + support.optSelected = opt.selected; + + // Support: IE <=11 only + // An input loses its value after becoming a radio + input = document.createElement( "input" ); + input.value = "t"; + input.type = "radio"; + support.radioValue = input.value === "t"; +} )(); + + +var boolHook, + attrHandle = jQuery.expr.attrHandle; + +jQuery.fn.extend( { + attr: function( name, value ) { + return access( this, jQuery.attr, name, value, arguments.length > 1 ); + }, + + removeAttr: function( name ) { + return this.each( function() { + jQuery.removeAttr( this, name ); + } ); + } +} ); + +jQuery.extend( { + attr: function( elem, name, value ) { + var ret, hooks, + nType = elem.nodeType; + + // Don't get/set attributes on text, comment and attribute nodes + if ( nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + // Fallback to prop when attributes are not supported + if ( typeof elem.getAttribute === "undefined" ) { + return jQuery.prop( elem, name, value ); + } + + // Attribute hooks are determined by the lowercase version + // Grab necessary hook if one is defined + if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { + hooks = jQuery.attrHooks[ name.toLowerCase() ] || + ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); + } + + if ( value !== undefined ) { + if ( value === null ) { + jQuery.removeAttr( elem, name ); + return; + } + + if ( hooks && "set" in hooks && + ( ret = hooks.set( elem, value, name ) ) !== undefined ) { + return ret; + } + + elem.setAttribute( name, value + "" ); + return value; + } + + if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { + return ret; + } + + ret = jQuery.find.attr( elem, name ); + + // Non-existent attributes return null, we normalize to undefined + return ret == null ? undefined : ret; + }, + + attrHooks: { + type: { + set: function( elem, value ) { + if ( !support.radioValue && value === "radio" && + nodeName( elem, "input" ) ) { + var val = elem.value; + elem.setAttribute( "type", value ); + if ( val ) { + elem.value = val; + } + return value; + } + } + } + }, + + removeAttr: function( elem, value ) { + var name, + i = 0, + + // Attribute names can contain non-HTML whitespace characters + // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 + attrNames = value && value.match( rnothtmlwhite ); + + if ( attrNames && elem.nodeType === 1 ) { + while ( ( name = attrNames[ i++ ] ) ) { + elem.removeAttribute( name ); + } + } + } +} ); + +// Hooks for boolean attributes +boolHook = { + set: function( elem, value, name ) { + if ( value === false ) { + + // Remove boolean attributes when set to false + jQuery.removeAttr( elem, name ); + } else { + elem.setAttribute( name, name ); + } + return name; + } +}; + +jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) { + var getter = attrHandle[ name ] || jQuery.find.attr; + + attrHandle[ name ] = function( elem, name, isXML ) { + var ret, handle, + lowercaseName = name.toLowerCase(); + + if ( !isXML ) { + + // Avoid an infinite loop by temporarily removing this function from the getter + handle = attrHandle[ lowercaseName ]; + attrHandle[ lowercaseName ] = ret; + ret = getter( elem, name, isXML ) != null ? + lowercaseName : + null; + attrHandle[ lowercaseName ] = handle; + } + return ret; + }; +} ); + + + + +var rfocusable = /^(?:input|select|textarea|button)$/i, + rclickable = /^(?:a|area)$/i; + +jQuery.fn.extend( { + prop: function( name, value ) { + return access( this, jQuery.prop, name, value, arguments.length > 1 ); + }, + + removeProp: function( name ) { + return this.each( function() { + delete this[ jQuery.propFix[ name ] || name ]; + } ); + } +} ); + +jQuery.extend( { + prop: function( elem, name, value ) { + var ret, hooks, + nType = elem.nodeType; + + // Don't get/set properties on text, comment and attribute nodes + if ( nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { + + // Fix name and attach hooks + name = jQuery.propFix[ name ] || name; + hooks = jQuery.propHooks[ name ]; + } + + if ( value !== undefined ) { + if ( hooks && "set" in hooks && + ( ret = hooks.set( elem, value, name ) ) !== undefined ) { + return ret; + } + + return ( elem[ name ] = value ); + } + + if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { + return ret; + } + + return elem[ name ]; + }, + + propHooks: { + tabIndex: { + get: function( elem ) { + + // Support: IE <=9 - 11 only + // elem.tabIndex doesn't always return the + // correct value when it hasn't been explicitly set + // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ + // Use proper attribute retrieval(#12072) + var tabindex = jQuery.find.attr( elem, "tabindex" ); + + if ( tabindex ) { + return parseInt( tabindex, 10 ); + } + + if ( + rfocusable.test( elem.nodeName ) || + rclickable.test( elem.nodeName ) && + elem.href + ) { + return 0; + } + + return -1; + } + } + }, + + propFix: { + "for": "htmlFor", + "class": "className" + } +} ); + +// Support: IE <=11 only +// Accessing the selectedIndex property +// forces the browser to respect setting selected +// on the option +// The getter ensures a default option is selected +// when in an optgroup +// eslint rule "no-unused-expressions" is disabled for this code +// since it considers such accessions noop +if ( !support.optSelected ) { + jQuery.propHooks.selected = { + get: function( elem ) { + + /* eslint no-unused-expressions: "off" */ + + var parent = elem.parentNode; + if ( parent && parent.parentNode ) { + parent.parentNode.selectedIndex; + } + return null; + }, + set: function( elem ) { + + /* eslint no-unused-expressions: "off" */ + + var parent = elem.parentNode; + if ( parent ) { + parent.selectedIndex; + + if ( parent.parentNode ) { + parent.parentNode.selectedIndex; + } + } + } + }; +} + +jQuery.each( [ + "tabIndex", + "readOnly", + "maxLength", + "cellSpacing", + "cellPadding", + "rowSpan", + "colSpan", + "useMap", + "frameBorder", + "contentEditable" +], function() { + jQuery.propFix[ this.toLowerCase() ] = this; +} ); + + + + + // Strip and collapse whitespace according to HTML spec + // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace + function stripAndCollapse( value ) { + var tokens = value.match( rnothtmlwhite ) || []; + return tokens.join( " " ); + } + + +function getClass( elem ) { + return elem.getAttribute && elem.getAttribute( "class" ) || ""; +} + +function classesToArray( value ) { + if ( Array.isArray( value ) ) { + return value; + } + if ( typeof value === "string" ) { + return value.match( rnothtmlwhite ) || []; + } + return []; +} + +jQuery.fn.extend( { + addClass: function( value ) { + var classes, elem, cur, curValue, clazz, j, finalValue, + i = 0; + + if ( isFunction( value ) ) { + return this.each( function( j ) { + jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); + } ); + } + + classes = classesToArray( value ); + + if ( classes.length ) { + while ( ( elem = this[ i++ ] ) ) { + curValue = getClass( elem ); + cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); + + if ( cur ) { + j = 0; + while ( ( clazz = classes[ j++ ] ) ) { + if ( cur.indexOf( " " + clazz + " " ) < 0 ) { + cur += clazz + " "; + } + } + + // Only assign if different to avoid unneeded rendering. + finalValue = stripAndCollapse( cur ); + if ( curValue !== finalValue ) { + elem.setAttribute( "class", finalValue ); + } + } + } + } + + return this; + }, + + removeClass: function( value ) { + var classes, elem, cur, curValue, clazz, j, finalValue, + i = 0; + + if ( isFunction( value ) ) { + return this.each( function( j ) { + jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); + } ); + } + + if ( !arguments.length ) { + return this.attr( "class", "" ); + } + + classes = classesToArray( value ); + + if ( classes.length ) { + while ( ( elem = this[ i++ ] ) ) { + curValue = getClass( elem ); + + // This expression is here for better compressibility (see addClass) + cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); + + if ( cur ) { + j = 0; + while ( ( clazz = classes[ j++ ] ) ) { + + // Remove *all* instances + while ( cur.indexOf( " " + clazz + " " ) > -1 ) { + cur = cur.replace( " " + clazz + " ", " " ); + } + } + + // Only assign if different to avoid unneeded rendering. + finalValue = stripAndCollapse( cur ); + if ( curValue !== finalValue ) { + elem.setAttribute( "class", finalValue ); + } + } + } + } + + return this; + }, + + toggleClass: function( value, stateVal ) { + var type = typeof value, + isValidValue = type === "string" || Array.isArray( value ); + + if ( typeof stateVal === "boolean" && isValidValue ) { + return stateVal ? this.addClass( value ) : this.removeClass( value ); + } + + if ( isFunction( value ) ) { + return this.each( function( i ) { + jQuery( this ).toggleClass( + value.call( this, i, getClass( this ), stateVal ), + stateVal + ); + } ); + } + + return this.each( function() { + var className, i, self, classNames; + + if ( isValidValue ) { + + // Toggle individual class names + i = 0; + self = jQuery( this ); + classNames = classesToArray( value ); + + while ( ( className = classNames[ i++ ] ) ) { + + // Check each className given, space separated list + if ( self.hasClass( className ) ) { + self.removeClass( className ); + } else { + self.addClass( className ); + } + } + + // Toggle whole class name + } else if ( value === undefined || type === "boolean" ) { + className = getClass( this ); + if ( className ) { + + // Store className if set + dataPriv.set( this, "__className__", className ); + } + + // If the element has a class name or if we're passed `false`, + // then remove the whole classname (if there was one, the above saved it). + // Otherwise bring back whatever was previously saved (if anything), + // falling back to the empty string if nothing was stored. + if ( this.setAttribute ) { + this.setAttribute( "class", + className || value === false ? + "" : + dataPriv.get( this, "__className__" ) || "" + ); + } + } + } ); + }, + + hasClass: function( selector ) { + var className, elem, + i = 0; + + className = " " + selector + " "; + while ( ( elem = this[ i++ ] ) ) { + if ( elem.nodeType === 1 && + ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { + return true; + } + } + + return false; + } +} ); + + + + +var rreturn = /\r/g; + +jQuery.fn.extend( { + val: function( value ) { + var hooks, ret, valueIsFunction, + elem = this[ 0 ]; + + if ( !arguments.length ) { + if ( elem ) { + hooks = jQuery.valHooks[ elem.type ] || + jQuery.valHooks[ elem.nodeName.toLowerCase() ]; + + if ( hooks && + "get" in hooks && + ( ret = hooks.get( elem, "value" ) ) !== undefined + ) { + return ret; + } + + ret = elem.value; + + // Handle most common string cases + if ( typeof ret === "string" ) { + return ret.replace( rreturn, "" ); + } + + // Handle cases where value is null/undef or number + return ret == null ? "" : ret; + } + + return; + } + + valueIsFunction = isFunction( value ); + + return this.each( function( i ) { + var val; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( valueIsFunction ) { + val = value.call( this, i, jQuery( this ).val() ); + } else { + val = value; + } + + // Treat null/undefined as ""; convert numbers to string + if ( val == null ) { + val = ""; + + } else if ( typeof val === "number" ) { + val += ""; + + } else if ( Array.isArray( val ) ) { + val = jQuery.map( val, function( value ) { + return value == null ? "" : value + ""; + } ); + } + + hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; + + // If set returns undefined, fall back to normal setting + if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { + this.value = val; + } + } ); + } +} ); + +jQuery.extend( { + valHooks: { + option: { + get: function( elem ) { + + var val = jQuery.find.attr( elem, "value" ); + return val != null ? + val : + + // Support: IE <=10 - 11 only + // option.text throws exceptions (#14686, #14858) + // Strip and collapse whitespace + // https://html.spec.whatwg.org/#strip-and-collapse-whitespace + stripAndCollapse( jQuery.text( elem ) ); + } + }, + select: { + get: function( elem ) { + var value, option, i, + options = elem.options, + index = elem.selectedIndex, + one = elem.type === "select-one", + values = one ? null : [], + max = one ? index + 1 : options.length; + + if ( index < 0 ) { + i = max; + + } else { + i = one ? index : 0; + } + + // Loop through all the selected options + for ( ; i < max; i++ ) { + option = options[ i ]; + + // Support: IE <=9 only + // IE8-9 doesn't update selected after form reset (#2551) + if ( ( option.selected || i === index ) && + + // Don't return options that are disabled or in a disabled optgroup + !option.disabled && + ( !option.parentNode.disabled || + !nodeName( option.parentNode, "optgroup" ) ) ) { + + // Get the specific value for the option + value = jQuery( option ).val(); + + // We don't need an array for one selects + if ( one ) { + return value; + } + + // Multi-Selects return an array + values.push( value ); + } + } + + return values; + }, + + set: function( elem, value ) { + var optionSet, option, + options = elem.options, + values = jQuery.makeArray( value ), + i = options.length; + + while ( i-- ) { + option = options[ i ]; + + /* eslint-disable no-cond-assign */ + + if ( option.selected = + jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 + ) { + optionSet = true; + } + + /* eslint-enable no-cond-assign */ + } + + // Force browsers to behave consistently when non-matching value is set + if ( !optionSet ) { + elem.selectedIndex = -1; + } + return values; + } + } + } +} ); + +// Radios and checkboxes getter/setter +jQuery.each( [ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = { + set: function( elem, value ) { + if ( Array.isArray( value ) ) { + return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); + } + } + }; + if ( !support.checkOn ) { + jQuery.valHooks[ this ].get = function( elem ) { + return elem.getAttribute( "value" ) === null ? "on" : elem.value; + }; + } +} ); + + + + +// Return jQuery for attributes-only inclusion + + +support.focusin = "onfocusin" in window; + + +var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, + stopPropagationCallback = function( e ) { + e.stopPropagation(); + }; + +jQuery.extend( jQuery.event, { + + trigger: function( event, data, elem, onlyHandlers ) { + + var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, + eventPath = [ elem || document ], + type = hasOwn.call( event, "type" ) ? event.type : event, + namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; + + cur = lastElement = tmp = elem = elem || document; + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { + return; + } + + if ( type.indexOf( "." ) > -1 ) { + + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split( "." ); + type = namespaces.shift(); + namespaces.sort(); + } + ontype = type.indexOf( ":" ) < 0 && "on" + type; + + // Caller can pass in a jQuery.Event object, Object, or just an event type string + event = event[ jQuery.expando ] ? + event : + new jQuery.Event( type, typeof event === "object" && event ); + + // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) + event.isTrigger = onlyHandlers ? 2 : 3; + event.namespace = namespaces.join( "." ); + event.rnamespace = event.namespace ? + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : + null; + + // Clean up the event in case it is being reused + event.result = undefined; + if ( !event.target ) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data == null ? + [ event ] : + jQuery.makeArray( data, [ event ] ); + + // Allow special events to draw outside the lines + special = jQuery.event.special[ type ] || {}; + if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { + + bubbleType = special.delegateType || type; + if ( !rfocusMorph.test( bubbleType + type ) ) { + cur = cur.parentNode; + } + for ( ; cur; cur = cur.parentNode ) { + eventPath.push( cur ); + tmp = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if ( tmp === ( elem.ownerDocument || document ) ) { + eventPath.push( tmp.defaultView || tmp.parentWindow || window ); + } + } + + // Fire handlers on the event path + i = 0; + while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { + lastElement = cur; + event.type = i > 1 ? + bubbleType : + special.bindType || type; + + // jQuery handler + handle = ( + dataPriv.get( cur, "events" ) || Object.create( null ) + )[ event.type ] && + dataPriv.get( cur, "handle" ); + if ( handle ) { + handle.apply( cur, data ); + } + + // Native handler + handle = ontype && cur[ ontype ]; + if ( handle && handle.apply && acceptData( cur ) ) { + event.result = handle.apply( cur, data ); + if ( event.result === false ) { + event.preventDefault(); + } + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if ( !onlyHandlers && !event.isDefaultPrevented() ) { + + if ( ( !special._default || + special._default.apply( eventPath.pop(), data ) === false ) && + acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name as the event. + // Don't do default actions on window, that's where global variables be (#6170) + if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { + + // Don't re-trigger an onFOO event when we call its FOO() method + tmp = elem[ ontype ]; + + if ( tmp ) { + elem[ ontype ] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + + if ( event.isPropagationStopped() ) { + lastElement.addEventListener( type, stopPropagationCallback ); + } + + elem[ type ](); + + if ( event.isPropagationStopped() ) { + lastElement.removeEventListener( type, stopPropagationCallback ); + } + + jQuery.event.triggered = undefined; + + if ( tmp ) { + elem[ ontype ] = tmp; + } + } + } + } + + return event.result; + }, + + // Piggyback on a donor event to simulate a different one + // Used only for `focus(in | out)` events + simulate: function( type, elem, event ) { + var e = jQuery.extend( + new jQuery.Event(), + event, + { + type: type, + isSimulated: true + } + ); + + jQuery.event.trigger( e, null, elem ); + } + +} ); + +jQuery.fn.extend( { + + trigger: function( type, data ) { + return this.each( function() { + jQuery.event.trigger( type, data, this ); + } ); + }, + triggerHandler: function( type, data ) { + var elem = this[ 0 ]; + if ( elem ) { + return jQuery.event.trigger( type, data, elem, true ); + } + } +} ); + + +// Support: Firefox <=44 +// Firefox doesn't have focus(in | out) events +// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 +// +// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 +// focus(in | out) events fire after focus & blur events, +// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order +// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 +if ( !support.focusin ) { + jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler on the document while someone wants focusin/focusout + var handler = function( event ) { + jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); + }; + + jQuery.event.special[ fix ] = { + setup: function() { + + // Handle: regular nodes (via `this.ownerDocument`), window + // (via `this.document`) & document (via `this`). + var doc = this.ownerDocument || this.document || this, + attaches = dataPriv.access( doc, fix ); + + if ( !attaches ) { + doc.addEventListener( orig, handler, true ); + } + dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); + }, + teardown: function() { + var doc = this.ownerDocument || this.document || this, + attaches = dataPriv.access( doc, fix ) - 1; + + if ( !attaches ) { + doc.removeEventListener( orig, handler, true ); + dataPriv.remove( doc, fix ); + + } else { + dataPriv.access( doc, fix, attaches ); + } + } + }; + } ); +} +var location = window.location; + +var nonce = { guid: Date.now() }; + +var rquery = ( /\?/ ); + + + +// Cross-browser xml parsing +jQuery.parseXML = function( data ) { + var xml; + if ( !data || typeof data !== "string" ) { + return null; + } + + // Support: IE 9 - 11 only + // IE throws on parseFromString with invalid input. + try { + xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); + } catch ( e ) { + xml = undefined; + } + + if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; +}; + + +var + rbracket = /\[\]$/, + rCRLF = /\r?\n/g, + rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, + rsubmittable = /^(?:input|select|textarea|keygen)/i; + +function buildParams( prefix, obj, traditional, add ) { + var name; + + if ( Array.isArray( obj ) ) { + + // Serialize array item. + jQuery.each( obj, function( i, v ) { + if ( traditional || rbracket.test( prefix ) ) { + + // Treat each array item as a scalar. + add( prefix, v ); + + } else { + + // Item is non-scalar (array or object), encode its numeric index. + buildParams( + prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", + v, + traditional, + add + ); + } + } ); + + } else if ( !traditional && toType( obj ) === "object" ) { + + // Serialize object item. + for ( name in obj ) { + buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); + } + + } else { + + // Serialize scalar item. + add( prefix, obj ); + } +} + +// Serialize an array of form elements or a set of +// key/values into a query string +jQuery.param = function( a, traditional ) { + var prefix, + s = [], + add = function( key, valueOrFunction ) { + + // If value is a function, invoke it and use its return value + var value = isFunction( valueOrFunction ) ? + valueOrFunction() : + valueOrFunction; + + s[ s.length ] = encodeURIComponent( key ) + "=" + + encodeURIComponent( value == null ? "" : value ); + }; + + if ( a == null ) { + return ""; + } + + // If an array was passed in, assume that it is an array of form elements. + if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { + + // Serialize the form elements + jQuery.each( a, function() { + add( this.name, this.value ); + } ); + + } else { + + // If traditional, encode the "old" way (the way 1.3.2 or older + // did it), otherwise encode params recursively. + for ( prefix in a ) { + buildParams( prefix, a[ prefix ], traditional, add ); + } + } + + // Return the resulting serialization + return s.join( "&" ); +}; + +jQuery.fn.extend( { + serialize: function() { + return jQuery.param( this.serializeArray() ); + }, + serializeArray: function() { + return this.map( function() { + + // Can add propHook for "elements" to filter or add form elements + var elements = jQuery.prop( this, "elements" ); + return elements ? jQuery.makeArray( elements ) : this; + } ) + .filter( function() { + var type = this.type; + + // Use .is( ":disabled" ) so that fieldset[disabled] works + return this.name && !jQuery( this ).is( ":disabled" ) && + rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && + ( this.checked || !rcheckableType.test( type ) ); + } ) + .map( function( _i, elem ) { + var val = jQuery( this ).val(); + + if ( val == null ) { + return null; + } + + if ( Array.isArray( val ) ) { + return jQuery.map( val, function( val ) { + return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + } ); + } + + return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + } ).get(); + } +} ); + + +var + r20 = /%20/g, + rhash = /#.*$/, + rantiCache = /([?&])_=[^&]*/, + rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, + + // #7653, #8125, #8152: local protocol detection + rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, + rnoContent = /^(?:GET|HEAD)$/, + rprotocol = /^\/\//, + + /* Prefilters + * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) + * 2) These are called: + * - BEFORE asking for a transport + * - AFTER param serialization (s.data is a string if s.processData is true) + * 3) key is the dataType + * 4) the catchall symbol "*" can be used + * 5) execution will start with transport dataType and THEN continue down to "*" if needed + */ + prefilters = {}, + + /* Transports bindings + * 1) key is the dataType + * 2) the catchall symbol "*" can be used + * 3) selection will start with transport dataType and THEN go to "*" if needed + */ + transports = {}, + + // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression + allTypes = "*/".concat( "*" ), + + // Anchor tag for parsing the document origin + originAnchor = document.createElement( "a" ); + originAnchor.href = location.href; + +// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport +function addToPrefiltersOrTransports( structure ) { + + // dataTypeExpression is optional and defaults to "*" + return function( dataTypeExpression, func ) { + + if ( typeof dataTypeExpression !== "string" ) { + func = dataTypeExpression; + dataTypeExpression = "*"; + } + + var dataType, + i = 0, + dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; + + if ( isFunction( func ) ) { + + // For each dataType in the dataTypeExpression + while ( ( dataType = dataTypes[ i++ ] ) ) { + + // Prepend if requested + if ( dataType[ 0 ] === "+" ) { + dataType = dataType.slice( 1 ) || "*"; + ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); + + // Otherwise append + } else { + ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); + } + } + } + }; +} + +// Base inspection function for prefilters and transports +function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { + + var inspected = {}, + seekingTransport = ( structure === transports ); + + function inspect( dataType ) { + var selected; + inspected[ dataType ] = true; + jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { + var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); + if ( typeof dataTypeOrTransport === "string" && + !seekingTransport && !inspected[ dataTypeOrTransport ] ) { + + options.dataTypes.unshift( dataTypeOrTransport ); + inspect( dataTypeOrTransport ); + return false; + } else if ( seekingTransport ) { + return !( selected = dataTypeOrTransport ); + } + } ); + return selected; + } + + return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); +} + +// A special extend for ajax options +// that takes "flat" options (not to be deep extended) +// Fixes #9887 +function ajaxExtend( target, src ) { + var key, deep, + flatOptions = jQuery.ajaxSettings.flatOptions || {}; + + for ( key in src ) { + if ( src[ key ] !== undefined ) { + ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; + } + } + if ( deep ) { + jQuery.extend( true, target, deep ); + } + + return target; +} + +/* Handles responses to an ajax request: + * - finds the right dataType (mediates between content-type and expected dataType) + * - returns the corresponding response + */ +function ajaxHandleResponses( s, jqXHR, responses ) { + + var ct, type, finalDataType, firstDataType, + contents = s.contents, + dataTypes = s.dataTypes; + + // Remove auto dataType and get content-type in the process + while ( dataTypes[ 0 ] === "*" ) { + dataTypes.shift(); + if ( ct === undefined ) { + ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); + } + } + + // Check if we're dealing with a known content-type + if ( ct ) { + for ( type in contents ) { + if ( contents[ type ] && contents[ type ].test( ct ) ) { + dataTypes.unshift( type ); + break; + } + } + } + + // Check to see if we have a response for the expected dataType + if ( dataTypes[ 0 ] in responses ) { + finalDataType = dataTypes[ 0 ]; + } else { + + // Try convertible dataTypes + for ( type in responses ) { + if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { + finalDataType = type; + break; + } + if ( !firstDataType ) { + firstDataType = type; + } + } + + // Or just use first one + finalDataType = finalDataType || firstDataType; + } + + // If we found a dataType + // We add the dataType to the list if needed + // and return the corresponding response + if ( finalDataType ) { + if ( finalDataType !== dataTypes[ 0 ] ) { + dataTypes.unshift( finalDataType ); + } + return responses[ finalDataType ]; + } +} + +/* Chain conversions given the request and the original response + * Also sets the responseXXX fields on the jqXHR instance + */ +function ajaxConvert( s, response, jqXHR, isSuccess ) { + var conv2, current, conv, tmp, prev, + converters = {}, + + // Work with a copy of dataTypes in case we need to modify it for conversion + dataTypes = s.dataTypes.slice(); + + // Create converters map with lowercased keys + if ( dataTypes[ 1 ] ) { + for ( conv in s.converters ) { + converters[ conv.toLowerCase() ] = s.converters[ conv ]; + } + } + + current = dataTypes.shift(); + + // Convert to each sequential dataType + while ( current ) { + + if ( s.responseFields[ current ] ) { + jqXHR[ s.responseFields[ current ] ] = response; + } + + // Apply the dataFilter if provided + if ( !prev && isSuccess && s.dataFilter ) { + response = s.dataFilter( response, s.dataType ); + } + + prev = current; + current = dataTypes.shift(); + + if ( current ) { + + // There's only work to do if current dataType is non-auto + if ( current === "*" ) { + + current = prev; + + // Convert response if prev dataType is non-auto and differs from current + } else if ( prev !== "*" && prev !== current ) { + + // Seek a direct converter + conv = converters[ prev + " " + current ] || converters[ "* " + current ]; + + // If none found, seek a pair + if ( !conv ) { + for ( conv2 in converters ) { + + // If conv2 outputs current + tmp = conv2.split( " " ); + if ( tmp[ 1 ] === current ) { + + // If prev can be converted to accepted input + conv = converters[ prev + " " + tmp[ 0 ] ] || + converters[ "* " + tmp[ 0 ] ]; + if ( conv ) { + + // Condense equivalence converters + if ( conv === true ) { + conv = converters[ conv2 ]; + + // Otherwise, insert the intermediate dataType + } else if ( converters[ conv2 ] !== true ) { + current = tmp[ 0 ]; + dataTypes.unshift( tmp[ 1 ] ); + } + break; + } + } + } + } + + // Apply converter (if not an equivalence) + if ( conv !== true ) { + + // Unless errors are allowed to bubble, catch and return them + if ( conv && s.throws ) { + response = conv( response ); + } else { + try { + response = conv( response ); + } catch ( e ) { + return { + state: "parsererror", + error: conv ? e : "No conversion from " + prev + " to " + current + }; + } + } + } + } + } + } + + return { state: "success", data: response }; +} + +jQuery.extend( { + + // Counter for holding the number of active queries + active: 0, + + // Last-Modified header cache for next request + lastModified: {}, + etag: {}, + + ajaxSettings: { + url: location.href, + type: "GET", + isLocal: rlocalProtocol.test( location.protocol ), + global: true, + processData: true, + async: true, + contentType: "application/x-www-form-urlencoded; charset=UTF-8", + + /* + timeout: 0, + data: null, + dataType: null, + username: null, + password: null, + cache: null, + throws: false, + traditional: false, + headers: {}, + */ + + accepts: { + "*": allTypes, + text: "text/plain", + html: "text/html", + xml: "application/xml, text/xml", + json: "application/json, text/javascript" + }, + + contents: { + xml: /\bxml\b/, + html: /\bhtml/, + json: /\bjson\b/ + }, + + responseFields: { + xml: "responseXML", + text: "responseText", + json: "responseJSON" + }, + + // Data converters + // Keys separate source (or catchall "*") and destination types with a single space + converters: { + + // Convert anything to text + "* text": String, + + // Text to html (true = no transformation) + "text html": true, + + // Evaluate text as a json expression + "text json": JSON.parse, + + // Parse text as xml + "text xml": jQuery.parseXML + }, + + // For options that shouldn't be deep extended: + // you can add your own custom options here if + // and when you create one that shouldn't be + // deep extended (see ajaxExtend) + flatOptions: { + url: true, + context: true + } + }, + + // Creates a full fledged settings object into target + // with both ajaxSettings and settings fields. + // If target is omitted, writes into ajaxSettings. + ajaxSetup: function( target, settings ) { + return settings ? + + // Building a settings object + ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : + + // Extending ajaxSettings + ajaxExtend( jQuery.ajaxSettings, target ); + }, + + ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), + ajaxTransport: addToPrefiltersOrTransports( transports ), + + // Main method + ajax: function( url, options ) { + + // If url is an object, simulate pre-1.5 signature + if ( typeof url === "object" ) { + options = url; + url = undefined; + } + + // Force options to be an object + options = options || {}; + + var transport, + + // URL without anti-cache param + cacheURL, + + // Response headers + responseHeadersString, + responseHeaders, + + // timeout handle + timeoutTimer, + + // Url cleanup var + urlAnchor, + + // Request state (becomes false upon send and true upon completion) + completed, + + // To know if global events are to be dispatched + fireGlobals, + + // Loop variable + i, + + // uncached part of the url + uncached, + + // Create the final options object + s = jQuery.ajaxSetup( {}, options ), + + // Callbacks context + callbackContext = s.context || s, + + // Context for global events is callbackContext if it is a DOM node or jQuery collection + globalEventContext = s.context && + ( callbackContext.nodeType || callbackContext.jquery ) ? + jQuery( callbackContext ) : + jQuery.event, + + // Deferreds + deferred = jQuery.Deferred(), + completeDeferred = jQuery.Callbacks( "once memory" ), + + // Status-dependent callbacks + statusCode = s.statusCode || {}, + + // Headers (they are sent all at once) + requestHeaders = {}, + requestHeadersNames = {}, + + // Default abort message + strAbort = "canceled", + + // Fake xhr + jqXHR = { + readyState: 0, + + // Builds headers hashtable if needed + getResponseHeader: function( key ) { + var match; + if ( completed ) { + if ( !responseHeaders ) { + responseHeaders = {}; + while ( ( match = rheaders.exec( responseHeadersString ) ) ) { + responseHeaders[ match[ 1 ].toLowerCase() + " " ] = + ( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] ) + .concat( match[ 2 ] ); + } + } + match = responseHeaders[ key.toLowerCase() + " " ]; + } + return match == null ? null : match.join( ", " ); + }, + + // Raw string + getAllResponseHeaders: function() { + return completed ? responseHeadersString : null; + }, + + // Caches the header + setRequestHeader: function( name, value ) { + if ( completed == null ) { + name = requestHeadersNames[ name.toLowerCase() ] = + requestHeadersNames[ name.toLowerCase() ] || name; + requestHeaders[ name ] = value; + } + return this; + }, + + // Overrides response content-type header + overrideMimeType: function( type ) { + if ( completed == null ) { + s.mimeType = type; + } + return this; + }, + + // Status-dependent callbacks + statusCode: function( map ) { + var code; + if ( map ) { + if ( completed ) { + + // Execute the appropriate callbacks + jqXHR.always( map[ jqXHR.status ] ); + } else { + + // Lazy-add the new callbacks in a way that preserves old ones + for ( code in map ) { + statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; + } + } + } + return this; + }, + + // Cancel the request + abort: function( statusText ) { + var finalText = statusText || strAbort; + if ( transport ) { + transport.abort( finalText ); + } + done( 0, finalText ); + return this; + } + }; + + // Attach deferreds + deferred.promise( jqXHR ); + + // Add protocol if not provided (prefilters might expect it) + // Handle falsy url in the settings object (#10093: consistency with old signature) + // We also use the url parameter if available + s.url = ( ( url || s.url || location.href ) + "" ) + .replace( rprotocol, location.protocol + "//" ); + + // Alias method option to type as per ticket #12004 + s.type = options.method || options.type || s.method || s.type; + + // Extract dataTypes list + s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; + + // A cross-domain request is in order when the origin doesn't match the current origin. + if ( s.crossDomain == null ) { + urlAnchor = document.createElement( "a" ); + + // Support: IE <=8 - 11, Edge 12 - 15 + // IE throws exception on accessing the href property if url is malformed, + // e.g. http://example.com:80x/ + try { + urlAnchor.href = s.url; + + // Support: IE <=8 - 11 only + // Anchor's host property isn't correctly set when s.url is relative + urlAnchor.href = urlAnchor.href; + s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== + urlAnchor.protocol + "//" + urlAnchor.host; + } catch ( e ) { + + // If there is an error parsing the URL, assume it is crossDomain, + // it can be rejected by the transport if it is invalid + s.crossDomain = true; + } + } + + // Convert data if not already a string + if ( s.data && s.processData && typeof s.data !== "string" ) { + s.data = jQuery.param( s.data, s.traditional ); + } + + // Apply prefilters + inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); + + // If request was aborted inside a prefilter, stop there + if ( completed ) { + return jqXHR; + } + + // We can fire global events as of now if asked to + // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) + fireGlobals = jQuery.event && s.global; + + // Watch for a new set of requests + if ( fireGlobals && jQuery.active++ === 0 ) { + jQuery.event.trigger( "ajaxStart" ); + } + + // Uppercase the type + s.type = s.type.toUpperCase(); + + // Determine if request has content + s.hasContent = !rnoContent.test( s.type ); + + // Save the URL in case we're toying with the If-Modified-Since + // and/or If-None-Match header later on + // Remove hash to simplify url manipulation + cacheURL = s.url.replace( rhash, "" ); + + // More options handling for requests with no content + if ( !s.hasContent ) { + + // Remember the hash so we can put it back + uncached = s.url.slice( cacheURL.length ); + + // If data is available and should be processed, append data to url + if ( s.data && ( s.processData || typeof s.data === "string" ) ) { + cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; + + // #9682: remove data so that it's not used in an eventual retry + delete s.data; + } + + // Add or update anti-cache param if needed + if ( s.cache === false ) { + cacheURL = cacheURL.replace( rantiCache, "$1" ); + uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce.guid++ ) + + uncached; + } + + // Put hash and anti-cache on the URL that will be requested (gh-1732) + s.url = cacheURL + uncached; + + // Change '%20' to '+' if this is encoded form body content (gh-2658) + } else if ( s.data && s.processData && + ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { + s.data = s.data.replace( r20, "+" ); + } + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + if ( jQuery.lastModified[ cacheURL ] ) { + jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); + } + if ( jQuery.etag[ cacheURL ] ) { + jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); + } + } + + // Set the correct header, if data is being sent + if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { + jqXHR.setRequestHeader( "Content-Type", s.contentType ); + } + + // Set the Accepts header for the server, depending on the dataType + jqXHR.setRequestHeader( + "Accept", + s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? + s.accepts[ s.dataTypes[ 0 ] ] + + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : + s.accepts[ "*" ] + ); + + // Check for headers option + for ( i in s.headers ) { + jqXHR.setRequestHeader( i, s.headers[ i ] ); + } + + // Allow custom headers/mimetypes and early abort + if ( s.beforeSend && + ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { + + // Abort if not done already and return + return jqXHR.abort(); + } + + // Aborting is no longer a cancellation + strAbort = "abort"; + + // Install callbacks on deferreds + completeDeferred.add( s.complete ); + jqXHR.done( s.success ); + jqXHR.fail( s.error ); + + // Get transport + transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); + + // If no transport, we auto-abort + if ( !transport ) { + done( -1, "No Transport" ); + } else { + jqXHR.readyState = 1; + + // Send global event + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); + } + + // If request was aborted inside ajaxSend, stop there + if ( completed ) { + return jqXHR; + } + + // Timeout + if ( s.async && s.timeout > 0 ) { + timeoutTimer = window.setTimeout( function() { + jqXHR.abort( "timeout" ); + }, s.timeout ); + } + + try { + completed = false; + transport.send( requestHeaders, done ); + } catch ( e ) { + + // Rethrow post-completion exceptions + if ( completed ) { + throw e; + } + + // Propagate others as results + done( -1, e ); + } + } + + // Callback for when everything is done + function done( status, nativeStatusText, responses, headers ) { + var isSuccess, success, error, response, modified, + statusText = nativeStatusText; + + // Ignore repeat invocations + if ( completed ) { + return; + } + + completed = true; + + // Clear timeout if it exists + if ( timeoutTimer ) { + window.clearTimeout( timeoutTimer ); + } + + // Dereference transport for early garbage collection + // (no matter how long the jqXHR object will be used) + transport = undefined; + + // Cache response headers + responseHeadersString = headers || ""; + + // Set readyState + jqXHR.readyState = status > 0 ? 4 : 0; + + // Determine if successful + isSuccess = status >= 200 && status < 300 || status === 304; + + // Get response data + if ( responses ) { + response = ajaxHandleResponses( s, jqXHR, responses ); + } + + // Use a noop converter for missing script + if ( !isSuccess && jQuery.inArray( "script", s.dataTypes ) > -1 ) { + s.converters[ "text script" ] = function() {}; + } + + // Convert no matter what (that way responseXXX fields are always set) + response = ajaxConvert( s, response, jqXHR, isSuccess ); + + // If successful, handle type chaining + if ( isSuccess ) { + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + modified = jqXHR.getResponseHeader( "Last-Modified" ); + if ( modified ) { + jQuery.lastModified[ cacheURL ] = modified; + } + modified = jqXHR.getResponseHeader( "etag" ); + if ( modified ) { + jQuery.etag[ cacheURL ] = modified; + } + } + + // if no content + if ( status === 204 || s.type === "HEAD" ) { + statusText = "nocontent"; + + // if not modified + } else if ( status === 304 ) { + statusText = "notmodified"; + + // If we have data, let's convert it + } else { + statusText = response.state; + success = response.data; + error = response.error; + isSuccess = !error; + } + } else { + + // Extract error from statusText and normalize for non-aborts + error = statusText; + if ( status || !statusText ) { + statusText = "error"; + if ( status < 0 ) { + status = 0; + } + } + } + + // Set data for the fake xhr object + jqXHR.status = status; + jqXHR.statusText = ( nativeStatusText || statusText ) + ""; + + // Success/Error + if ( isSuccess ) { + deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); + } else { + deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); + } + + // Status-dependent callbacks + jqXHR.statusCode( statusCode ); + statusCode = undefined; + + if ( fireGlobals ) { + globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", + [ jqXHR, s, isSuccess ? success : error ] ); + } + + // Complete + completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); + + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); + + // Handle the global AJAX counter + if ( !( --jQuery.active ) ) { + jQuery.event.trigger( "ajaxStop" ); + } + } + } + + return jqXHR; + }, + + getJSON: function( url, data, callback ) { + return jQuery.get( url, data, callback, "json" ); + }, + + getScript: function( url, callback ) { + return jQuery.get( url, undefined, callback, "script" ); + } +} ); + +jQuery.each( [ "get", "post" ], function( _i, method ) { + jQuery[ method ] = function( url, data, callback, type ) { + + // Shift arguments if data argument was omitted + if ( isFunction( data ) ) { + type = type || callback; + callback = data; + data = undefined; + } + + // The url can be an options object (which then must have .url) + return jQuery.ajax( jQuery.extend( { + url: url, + type: method, + dataType: type, + data: data, + success: callback + }, jQuery.isPlainObject( url ) && url ) ); + }; +} ); + +jQuery.ajaxPrefilter( function( s ) { + var i; + for ( i in s.headers ) { + if ( i.toLowerCase() === "content-type" ) { + s.contentType = s.headers[ i ] || ""; + } + } +} ); + + +jQuery._evalUrl = function( url, options, doc ) { + return jQuery.ajax( { + url: url, + + // Make this explicit, since user can override this through ajaxSetup (#11264) + type: "GET", + dataType: "script", + cache: true, + async: false, + global: false, + + // Only evaluate the response if it is successful (gh-4126) + // dataFilter is not invoked for failure responses, so using it instead + // of the default converter is kludgy but it works. + converters: { + "text script": function() {} + }, + dataFilter: function( response ) { + jQuery.globalEval( response, options, doc ); + } + } ); +}; + + +jQuery.fn.extend( { + wrapAll: function( html ) { + var wrap; + + if ( this[ 0 ] ) { + if ( isFunction( html ) ) { + html = html.call( this[ 0 ] ); + } + + // The elements to wrap the target around + wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); + + if ( this[ 0 ].parentNode ) { + wrap.insertBefore( this[ 0 ] ); + } + + wrap.map( function() { + var elem = this; + + while ( elem.firstElementChild ) { + elem = elem.firstElementChild; + } + + return elem; + } ).append( this ); + } + + return this; + }, + + wrapInner: function( html ) { + if ( isFunction( html ) ) { + return this.each( function( i ) { + jQuery( this ).wrapInner( html.call( this, i ) ); + } ); + } + + return this.each( function() { + var self = jQuery( this ), + contents = self.contents(); + + if ( contents.length ) { + contents.wrapAll( html ); + + } else { + self.append( html ); + } + } ); + }, + + wrap: function( html ) { + var htmlIsFunction = isFunction( html ); + + return this.each( function( i ) { + jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); + } ); + }, + + unwrap: function( selector ) { + this.parent( selector ).not( "body" ).each( function() { + jQuery( this ).replaceWith( this.childNodes ); + } ); + return this; + } +} ); + + +jQuery.expr.pseudos.hidden = function( elem ) { + return !jQuery.expr.pseudos.visible( elem ); +}; +jQuery.expr.pseudos.visible = function( elem ) { + return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); +}; + + + + +jQuery.ajaxSettings.xhr = function() { + try { + return new window.XMLHttpRequest(); + } catch ( e ) {} +}; + +var xhrSuccessStatus = { + + // File protocol always yields status code 0, assume 200 + 0: 200, + + // Support: IE <=9 only + // #1450: sometimes IE returns 1223 when it should be 204 + 1223: 204 + }, + xhrSupported = jQuery.ajaxSettings.xhr(); + +support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); +support.ajax = xhrSupported = !!xhrSupported; + +jQuery.ajaxTransport( function( options ) { + var callback, errorCallback; + + // Cross domain only allowed if supported through XMLHttpRequest + if ( support.cors || xhrSupported && !options.crossDomain ) { + return { + send: function( headers, complete ) { + var i, + xhr = options.xhr(); + + xhr.open( + options.type, + options.url, + options.async, + options.username, + options.password + ); + + // Apply custom fields if provided + if ( options.xhrFields ) { + for ( i in options.xhrFields ) { + xhr[ i ] = options.xhrFields[ i ]; + } + } + + // Override mime type if needed + if ( options.mimeType && xhr.overrideMimeType ) { + xhr.overrideMimeType( options.mimeType ); + } + + // X-Requested-With header + // For cross-domain requests, seeing as conditions for a preflight are + // akin to a jigsaw puzzle, we simply never set it to be sure. + // (it can always be set on a per-request basis or even using ajaxSetup) + // For same-domain requests, won't change header if already provided. + if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { + headers[ "X-Requested-With" ] = "XMLHttpRequest"; + } + + // Set headers + for ( i in headers ) { + xhr.setRequestHeader( i, headers[ i ] ); + } + + // Callback + callback = function( type ) { + return function() { + if ( callback ) { + callback = errorCallback = xhr.onload = + xhr.onerror = xhr.onabort = xhr.ontimeout = + xhr.onreadystatechange = null; + + if ( type === "abort" ) { + xhr.abort(); + } else if ( type === "error" ) { + + // Support: IE <=9 only + // On a manual native abort, IE9 throws + // errors on any property access that is not readyState + if ( typeof xhr.status !== "number" ) { + complete( 0, "error" ); + } else { + complete( + + // File: protocol always yields status 0; see #8605, #14207 + xhr.status, + xhr.statusText + ); + } + } else { + complete( + xhrSuccessStatus[ xhr.status ] || xhr.status, + xhr.statusText, + + // Support: IE <=9 only + // IE9 has no XHR2 but throws on binary (trac-11426) + // For XHR2 non-text, let the caller handle it (gh-2498) + ( xhr.responseType || "text" ) !== "text" || + typeof xhr.responseText !== "string" ? + { binary: xhr.response } : + { text: xhr.responseText }, + xhr.getAllResponseHeaders() + ); + } + } + }; + }; + + // Listen to events + xhr.onload = callback(); + errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); + + // Support: IE 9 only + // Use onreadystatechange to replace onabort + // to handle uncaught aborts + if ( xhr.onabort !== undefined ) { + xhr.onabort = errorCallback; + } else { + xhr.onreadystatechange = function() { + + // Check readyState before timeout as it changes + if ( xhr.readyState === 4 ) { + + // Allow onerror to be called first, + // but that will not handle a native abort + // Also, save errorCallback to a variable + // as xhr.onerror cannot be accessed + window.setTimeout( function() { + if ( callback ) { + errorCallback(); + } + } ); + } + }; + } + + // Create the abort callback + callback = callback( "abort" ); + + try { + + // Do send the request (this may raise an exception) + xhr.send( options.hasContent && options.data || null ); + } catch ( e ) { + + // #14683: Only rethrow if this hasn't been notified as an error yet + if ( callback ) { + throw e; + } + } + }, + + abort: function() { + if ( callback ) { + callback(); + } + } + }; + } +} ); + + + + +// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) +jQuery.ajaxPrefilter( function( s ) { + if ( s.crossDomain ) { + s.contents.script = false; + } +} ); + +// Install script dataType +jQuery.ajaxSetup( { + accepts: { + script: "text/javascript, application/javascript, " + + "application/ecmascript, application/x-ecmascript" + }, + contents: { + script: /\b(?:java|ecma)script\b/ + }, + converters: { + "text script": function( text ) { + jQuery.globalEval( text ); + return text; + } + } +} ); + +// Handle cache's special case and crossDomain +jQuery.ajaxPrefilter( "script", function( s ) { + if ( s.cache === undefined ) { + s.cache = false; + } + if ( s.crossDomain ) { + s.type = "GET"; + } +} ); + +// Bind script tag hack transport +jQuery.ajaxTransport( "script", function( s ) { + + // This transport only deals with cross domain or forced-by-attrs requests + if ( s.crossDomain || s.scriptAttrs ) { + var script, callback; + return { + send: function( _, complete ) { + script = jQuery( "\r\n"; + +// inject VBScript +document.write(IEBinaryToArray_ByteStr_Script); + +global.JSZipUtils._getBinaryFromXHR = function (xhr) { + var binary = xhr.responseBody; + var byteMapping = {}; + for ( var i = 0; i < 256; i++ ) { + for ( var j = 0; j < 256; j++ ) { + byteMapping[ String.fromCharCode( i + (j << 8) ) ] = + String.fromCharCode(i) + String.fromCharCode(j); + } + } + var rawBytes = IEBinaryToArray_ByteStr(binary); + var lastChr = IEBinaryToArray_ByteStr_Last(binary); + return rawBytes.replace(/[\s\S]/g, function( match ) { + return byteMapping[match]; + }) + lastChr; +}; + +// enforcing Stuk's coding style +// vim: set shiftwidth=4 softtabstop=4: + +},{}]},{},[1]) +; \ No newline at end of file diff --git a/apidocs/jquery/jszip-utils/dist/jszip-utils-ie.min.js b/apidocs/jquery/jszip-utils/dist/jszip-utils-ie.min.js new file mode 100644 index 000000000..3cdbbf837 --- /dev/null +++ b/apidocs/jquery/jszip-utils/dist/jszip-utils-ie.min.js @@ -0,0 +1,10 @@ +/*! + +JSZipUtils - A collection of cross-browser utilities to go along with JSZip. + + +(c) 2014 Stuart Knightley, David Duponchel +Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. + +*/ +!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g\r\n";document.write(b),a.JSZipUtils._getBinaryFromXHR=function(a){for(var b=a.responseBody,c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+(e<<8))]=String.fromCharCode(d)+String.fromCharCode(e);var f=IEBinaryToArray_ByteStr(b),g=IEBinaryToArray_ByteStr_Last(b);return f.replace(/[\s\S]/g,function(a){return c[a]})+g}},{}]},{},[1]); \ No newline at end of file diff --git a/apidocs/jquery/jszip-utils/dist/jszip-utils.js b/apidocs/jquery/jszip-utils/dist/jszip-utils.js new file mode 100644 index 000000000..948471a8e --- /dev/null +++ b/apidocs/jquery/jszip-utils/dist/jszip-utils.js @@ -0,0 +1,118 @@ +/*! + +JSZipUtils - A collection of cross-browser utilities to go along with JSZip. + + +(c) 2014 Stuart Knightley, David Duponchel +Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. + +*/ +!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSZipUtils=e():"undefined"!=typeof global?global.JSZipUtils=e():"undefined"!=typeof self&&(self.JSZipUtils=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o + +(c) 2014 Stuart Knightley, David Duponchel +Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. + +*/ +!function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZipUtils=a():"undefined"!=typeof global?global.JSZipUtils=a():"undefined"!=typeof self&&(self.JSZipUtils=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g + +(c) 2009-2016 Stuart Knightley +Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown. + +JSZip uses the library pako released under the MIT license : +https://github.com/nodeca/pako/blob/master/LICENSE +*/ + +(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JSZip = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o> 2; + enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); + enc3 = remainingBytes > 1 ? (((chr2 & 15) << 2) | (chr3 >> 6)) : 64; + enc4 = remainingBytes > 2 ? (chr3 & 63) : 64; + + output.push(_keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4)); + + } + + return output.join(""); +}; + +// public method for decoding +exports.decode = function(input) { + var chr1, chr2, chr3; + var enc1, enc2, enc3, enc4; + var i = 0, resultIndex = 0; + + var dataUrlPrefix = "data:"; + + if (input.substr(0, dataUrlPrefix.length) === dataUrlPrefix) { + // This is a common error: people give a data url + // (data:image/png;base64,iVBOR...) with a {base64: true} and + // wonders why things don't work. + // We can detect that the string input looks like a data url but we + // *can't* be sure it is one: removing everything up to the comma would + // be too dangerous. + throw new Error("Invalid base64 input, it looks like a data url."); + } + + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); + + var totalLength = input.length * 3 / 4; + if(input.charAt(input.length - 1) === _keyStr.charAt(64)) { + totalLength--; + } + if(input.charAt(input.length - 2) === _keyStr.charAt(64)) { + totalLength--; + } + if (totalLength % 1 !== 0) { + // totalLength is not an integer, the length does not match a valid + // base64 content. That can happen if: + // - the input is not a base64 content + // - the input is *almost* a base64 content, with a extra chars at the + // beginning or at the end + // - the input uses a base64 variant (base64url for example) + throw new Error("Invalid base64 input, bad content length."); + } + var output; + if (support.uint8array) { + output = new Uint8Array(totalLength|0); + } else { + output = new Array(totalLength|0); + } + + while (i < input.length) { + + enc1 = _keyStr.indexOf(input.charAt(i++)); + enc2 = _keyStr.indexOf(input.charAt(i++)); + enc3 = _keyStr.indexOf(input.charAt(i++)); + enc4 = _keyStr.indexOf(input.charAt(i++)); + + chr1 = (enc1 << 2) | (enc2 >> 4); + chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); + chr3 = ((enc3 & 3) << 6) | enc4; + + output[resultIndex++] = chr1; + + if (enc3 !== 64) { + output[resultIndex++] = chr2; + } + if (enc4 !== 64) { + output[resultIndex++] = chr3; + } + + } + + return output; +}; + +},{"./support":30,"./utils":32}],2:[function(require,module,exports){ +'use strict'; + +var external = require("./external"); +var DataWorker = require('./stream/DataWorker'); +var Crc32Probe = require('./stream/Crc32Probe'); +var DataLengthProbe = require('./stream/DataLengthProbe'); + +/** + * Represent a compressed object, with everything needed to decompress it. + * @constructor + * @param {number} compressedSize the size of the data compressed. + * @param {number} uncompressedSize the size of the data after decompression. + * @param {number} crc32 the crc32 of the decompressed file. + * @param {object} compression the type of compression, see lib/compressions.js. + * @param {String|ArrayBuffer|Uint8Array|Buffer} data the compressed data. + */ +function CompressedObject(compressedSize, uncompressedSize, crc32, compression, data) { + this.compressedSize = compressedSize; + this.uncompressedSize = uncompressedSize; + this.crc32 = crc32; + this.compression = compression; + this.compressedContent = data; +} + +CompressedObject.prototype = { + /** + * Create a worker to get the uncompressed content. + * @return {GenericWorker} the worker. + */ + getContentWorker: function () { + var worker = new DataWorker(external.Promise.resolve(this.compressedContent)) + .pipe(this.compression.uncompressWorker()) + .pipe(new DataLengthProbe("data_length")); + + var that = this; + worker.on("end", function () { + if (this.streamInfo['data_length'] !== that.uncompressedSize) { + throw new Error("Bug : uncompressed data size mismatch"); + } + }); + return worker; + }, + /** + * Create a worker to get the compressed content. + * @return {GenericWorker} the worker. + */ + getCompressedWorker: function () { + return new DataWorker(external.Promise.resolve(this.compressedContent)) + .withStreamInfo("compressedSize", this.compressedSize) + .withStreamInfo("uncompressedSize", this.uncompressedSize) + .withStreamInfo("crc32", this.crc32) + .withStreamInfo("compression", this.compression) + ; + } +}; + +/** + * Chain the given worker with other workers to compress the content with the + * given compression. + * @param {GenericWorker} uncompressedWorker the worker to pipe. + * @param {Object} compression the compression object. + * @param {Object} compressionOptions the options to use when compressing. + * @return {GenericWorker} the new worker compressing the content. + */ +CompressedObject.createWorkerFrom = function (uncompressedWorker, compression, compressionOptions) { + return uncompressedWorker + .pipe(new Crc32Probe()) + .pipe(new DataLengthProbe("uncompressedSize")) + .pipe(compression.compressWorker(compressionOptions)) + .pipe(new DataLengthProbe("compressedSize")) + .withStreamInfo("compression", compression); +}; + +module.exports = CompressedObject; + +},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(require,module,exports){ +'use strict'; + +var GenericWorker = require("./stream/GenericWorker"); + +exports.STORE = { + magic: "\x00\x00", + compressWorker : function (compressionOptions) { + return new GenericWorker("STORE compression"); + }, + uncompressWorker : function () { + return new GenericWorker("STORE decompression"); + } +}; +exports.DEFLATE = require('./flate'); + +},{"./flate":7,"./stream/GenericWorker":28}],4:[function(require,module,exports){ +'use strict'; + +var utils = require('./utils'); + +/** + * The following functions come from pako, from pako/lib/zlib/crc32.js + * released under the MIT license, see pako https://github.com/nodeca/pako/ + */ + +// Use ordinary array, since untyped makes no boost here +function makeTable() { + var c, table = []; + + for(var n =0; n < 256; n++){ + c = n; + for(var k =0; k < 8; k++){ + c = ((c&1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1)); + } + table[n] = c; + } + + return table; +} + +// Create table on load. Just 255 signed longs. Not a problem. +var crcTable = makeTable(); + + +function crc32(crc, buf, len, pos) { + var t = crcTable, end = pos + len; + + crc = crc ^ (-1); + + for (var i = pos; i < end; i++ ) { + crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF]; + } + + return (crc ^ (-1)); // >>> 0; +} + +// That's all for the pako functions. + +/** + * Compute the crc32 of a string. + * This is almost the same as the function crc32, but for strings. Using the + * same function for the two use cases leads to horrible performances. + * @param {Number} crc the starting value of the crc. + * @param {String} str the string to use. + * @param {Number} len the length of the string. + * @param {Number} pos the starting position for the crc32 computation. + * @return {Number} the computed crc32. + */ +function crc32str(crc, str, len, pos) { + var t = crcTable, end = pos + len; + + crc = crc ^ (-1); + + for (var i = pos; i < end; i++ ) { + crc = (crc >>> 8) ^ t[(crc ^ str.charCodeAt(i)) & 0xFF]; + } + + return (crc ^ (-1)); // >>> 0; +} + +module.exports = function crc32wrapper(input, crc) { + if (typeof input === "undefined" || !input.length) { + return 0; + } + + var isArray = utils.getTypeOf(input) !== "string"; + + if(isArray) { + return crc32(crc|0, input, input.length, 0); + } else { + return crc32str(crc|0, input, input.length, 0); + } +}; + +},{"./utils":32}],5:[function(require,module,exports){ +'use strict'; +exports.base64 = false; +exports.binary = false; +exports.dir = false; +exports.createFolders = true; +exports.date = null; +exports.compression = null; +exports.compressionOptions = null; +exports.comment = null; +exports.unixPermissions = null; +exports.dosPermissions = null; + +},{}],6:[function(require,module,exports){ +/* global Promise */ +'use strict'; + +// load the global object first: +// - it should be better integrated in the system (unhandledRejection in node) +// - the environment may have a custom Promise implementation (see zone.js) +var ES6Promise = null; +if (typeof Promise !== "undefined") { + ES6Promise = Promise; +} else { + ES6Promise = require("lie"); +} + +/** + * Let the user use/change some implementations. + */ +module.exports = { + Promise: ES6Promise +}; + +},{"lie":37}],7:[function(require,module,exports){ +'use strict'; +var USE_TYPEDARRAY = (typeof Uint8Array !== 'undefined') && (typeof Uint16Array !== 'undefined') && (typeof Uint32Array !== 'undefined'); + +var pako = require("pako"); +var utils = require("./utils"); +var GenericWorker = require("./stream/GenericWorker"); + +var ARRAY_TYPE = USE_TYPEDARRAY ? "uint8array" : "array"; + +exports.magic = "\x08\x00"; + +/** + * Create a worker that uses pako to inflate/deflate. + * @constructor + * @param {String} action the name of the pako function to call : either "Deflate" or "Inflate". + * @param {Object} options the options to use when (de)compressing. + */ +function FlateWorker(action, options) { + GenericWorker.call(this, "FlateWorker/" + action); + + this._pako = null; + this._pakoAction = action; + this._pakoOptions = options; + // the `meta` object from the last chunk received + // this allow this worker to pass around metadata + this.meta = {}; +} + +utils.inherits(FlateWorker, GenericWorker); + +/** + * @see GenericWorker.processChunk + */ +FlateWorker.prototype.processChunk = function (chunk) { + this.meta = chunk.meta; + if (this._pako === null) { + this._createPako(); + } + this._pako.push(utils.transformTo(ARRAY_TYPE, chunk.data), false); +}; + +/** + * @see GenericWorker.flush + */ +FlateWorker.prototype.flush = function () { + GenericWorker.prototype.flush.call(this); + if (this._pako === null) { + this._createPako(); + } + this._pako.push([], true); +}; +/** + * @see GenericWorker.cleanUp + */ +FlateWorker.prototype.cleanUp = function () { + GenericWorker.prototype.cleanUp.call(this); + this._pako = null; +}; + +/** + * Create the _pako object. + * TODO: lazy-loading this object isn't the best solution but it's the + * quickest. The best solution is to lazy-load the worker list. See also the + * issue #446. + */ +FlateWorker.prototype._createPako = function () { + this._pako = new pako[this._pakoAction]({ + raw: true, + level: this._pakoOptions.level || -1 // default compression + }); + var self = this; + this._pako.onData = function(data) { + self.push({ + data : data, + meta : self.meta + }); + }; +}; + +exports.compressWorker = function (compressionOptions) { + return new FlateWorker("Deflate", compressionOptions); +}; +exports.uncompressWorker = function () { + return new FlateWorker("Inflate", {}); +}; + +},{"./stream/GenericWorker":28,"./utils":32,"pako":38}],8:[function(require,module,exports){ +'use strict'; + +var utils = require('../utils'); +var GenericWorker = require('../stream/GenericWorker'); +var utf8 = require('../utf8'); +var crc32 = require('../crc32'); +var signature = require('../signature'); + +/** + * Transform an integer into a string in hexadecimal. + * @private + * @param {number} dec the number to convert. + * @param {number} bytes the number of bytes to generate. + * @returns {string} the result. + */ +var decToHex = function(dec, bytes) { + var hex = "", i; + for (i = 0; i < bytes; i++) { + hex += String.fromCharCode(dec & 0xff); + dec = dec >>> 8; + } + return hex; +}; + +/** + * Generate the UNIX part of the external file attributes. + * @param {Object} unixPermissions the unix permissions or null. + * @param {Boolean} isDir true if the entry is a directory, false otherwise. + * @return {Number} a 32 bit integer. + * + * adapted from http://unix.stackexchange.com/questions/14705/the-zip-formats-external-file-attribute : + * + * TTTTsstrwxrwxrwx0000000000ADVSHR + * ^^^^____________________________ file type, see zipinfo.c (UNX_*) + * ^^^_________________________ setuid, setgid, sticky + * ^^^^^^^^^________________ permissions + * ^^^^^^^^^^______ not used ? + * ^^^^^^ DOS attribute bits : Archive, Directory, Volume label, System file, Hidden, Read only + */ +var generateUnixExternalFileAttr = function (unixPermissions, isDir) { + + var result = unixPermissions; + if (!unixPermissions) { + // I can't use octal values in strict mode, hence the hexa. + // 040775 => 0x41fd + // 0100664 => 0x81b4 + result = isDir ? 0x41fd : 0x81b4; + } + return (result & 0xFFFF) << 16; +}; + +/** + * Generate the DOS part of the external file attributes. + * @param {Object} dosPermissions the dos permissions or null. + * @param {Boolean} isDir true if the entry is a directory, false otherwise. + * @return {Number} a 32 bit integer. + * + * Bit 0 Read-Only + * Bit 1 Hidden + * Bit 2 System + * Bit 3 Volume Label + * Bit 4 Directory + * Bit 5 Archive + */ +var generateDosExternalFileAttr = function (dosPermissions, isDir) { + + // the dir flag is already set for compatibility + return (dosPermissions || 0) & 0x3F; +}; + +/** + * Generate the various parts used in the construction of the final zip file. + * @param {Object} streamInfo the hash with information about the compressed file. + * @param {Boolean} streamedContent is the content streamed ? + * @param {Boolean} streamingEnded is the stream finished ? + * @param {number} offset the current offset from the start of the zip file. + * @param {String} platform let's pretend we are this platform (change platform dependents fields) + * @param {Function} encodeFileName the function to encode the file name / comment. + * @return {Object} the zip parts. + */ +var generateZipParts = function(streamInfo, streamedContent, streamingEnded, offset, platform, encodeFileName) { + var file = streamInfo['file'], + compression = streamInfo['compression'], + useCustomEncoding = encodeFileName !== utf8.utf8encode, + encodedFileName = utils.transformTo("string", encodeFileName(file.name)), + utfEncodedFileName = utils.transformTo("string", utf8.utf8encode(file.name)), + comment = file.comment, + encodedComment = utils.transformTo("string", encodeFileName(comment)), + utfEncodedComment = utils.transformTo("string", utf8.utf8encode(comment)), + useUTF8ForFileName = utfEncodedFileName.length !== file.name.length, + useUTF8ForComment = utfEncodedComment.length !== comment.length, + dosTime, + dosDate, + extraFields = "", + unicodePathExtraField = "", + unicodeCommentExtraField = "", + dir = file.dir, + date = file.date; + + + var dataInfo = { + crc32 : 0, + compressedSize : 0, + uncompressedSize : 0 + }; + + // if the content is streamed, the sizes/crc32 are only available AFTER + // the end of the stream. + if (!streamedContent || streamingEnded) { + dataInfo.crc32 = streamInfo['crc32']; + dataInfo.compressedSize = streamInfo['compressedSize']; + dataInfo.uncompressedSize = streamInfo['uncompressedSize']; + } + + var bitflag = 0; + if (streamedContent) { + // Bit 3: the sizes/crc32 are set to zero in the local header. + // The correct values are put in the data descriptor immediately + // following the compressed data. + bitflag |= 0x0008; + } + if (!useCustomEncoding && (useUTF8ForFileName || useUTF8ForComment)) { + // Bit 11: Language encoding flag (EFS). + bitflag |= 0x0800; + } + + + var extFileAttr = 0; + var versionMadeBy = 0; + if (dir) { + // dos or unix, we set the dos dir flag + extFileAttr |= 0x00010; + } + if(platform === "UNIX") { + versionMadeBy = 0x031E; // UNIX, version 3.0 + extFileAttr |= generateUnixExternalFileAttr(file.unixPermissions, dir); + } else { // DOS or other, fallback to DOS + versionMadeBy = 0x0014; // DOS, version 2.0 + extFileAttr |= generateDosExternalFileAttr(file.dosPermissions, dir); + } + + // date + // @see http://www.delorie.com/djgpp/doc/rbinter/it/52/13.html + // @see http://www.delorie.com/djgpp/doc/rbinter/it/65/16.html + // @see http://www.delorie.com/djgpp/doc/rbinter/it/66/16.html + + dosTime = date.getUTCHours(); + dosTime = dosTime << 6; + dosTime = dosTime | date.getUTCMinutes(); + dosTime = dosTime << 5; + dosTime = dosTime | date.getUTCSeconds() / 2; + + dosDate = date.getUTCFullYear() - 1980; + dosDate = dosDate << 4; + dosDate = dosDate | (date.getUTCMonth() + 1); + dosDate = dosDate << 5; + dosDate = dosDate | date.getUTCDate(); + + if (useUTF8ForFileName) { + // set the unicode path extra field. unzip needs at least one extra + // field to correctly handle unicode path, so using the path is as good + // as any other information. This could improve the situation with + // other archive managers too. + // This field is usually used without the utf8 flag, with a non + // unicode path in the header (winrar, winzip). This helps (a bit) + // with the messy Windows' default compressed folders feature but + // breaks on p7zip which doesn't seek the unicode path extra field. + // So for now, UTF-8 everywhere ! + unicodePathExtraField = + // Version + decToHex(1, 1) + + // NameCRC32 + decToHex(crc32(encodedFileName), 4) + + // UnicodeName + utfEncodedFileName; + + extraFields += + // Info-ZIP Unicode Path Extra Field + "\x75\x70" + + // size + decToHex(unicodePathExtraField.length, 2) + + // content + unicodePathExtraField; + } + + if(useUTF8ForComment) { + + unicodeCommentExtraField = + // Version + decToHex(1, 1) + + // CommentCRC32 + decToHex(crc32(encodedComment), 4) + + // UnicodeName + utfEncodedComment; + + extraFields += + // Info-ZIP Unicode Path Extra Field + "\x75\x63" + + // size + decToHex(unicodeCommentExtraField.length, 2) + + // content + unicodeCommentExtraField; + } + + var header = ""; + + // version needed to extract + header += "\x0A\x00"; + // general purpose bit flag + header += decToHex(bitflag, 2); + // compression method + header += compression.magic; + // last mod file time + header += decToHex(dosTime, 2); + // last mod file date + header += decToHex(dosDate, 2); + // crc-32 + header += decToHex(dataInfo.crc32, 4); + // compressed size + header += decToHex(dataInfo.compressedSize, 4); + // uncompressed size + header += decToHex(dataInfo.uncompressedSize, 4); + // file name length + header += decToHex(encodedFileName.length, 2); + // extra field length + header += decToHex(extraFields.length, 2); + + + var fileRecord = signature.LOCAL_FILE_HEADER + header + encodedFileName + extraFields; + + var dirRecord = signature.CENTRAL_FILE_HEADER + + // version made by (00: DOS) + decToHex(versionMadeBy, 2) + + // file header (common to file and central directory) + header + + // file comment length + decToHex(encodedComment.length, 2) + + // disk number start + "\x00\x00" + + // internal file attributes TODO + "\x00\x00" + + // external file attributes + decToHex(extFileAttr, 4) + + // relative offset of local header + decToHex(offset, 4) + + // file name + encodedFileName + + // extra field + extraFields + + // file comment + encodedComment; + + return { + fileRecord: fileRecord, + dirRecord: dirRecord + }; +}; + +/** + * Generate the EOCD record. + * @param {Number} entriesCount the number of entries in the zip file. + * @param {Number} centralDirLength the length (in bytes) of the central dir. + * @param {Number} localDirLength the length (in bytes) of the local dir. + * @param {String} comment the zip file comment as a binary string. + * @param {Function} encodeFileName the function to encode the comment. + * @return {String} the EOCD record. + */ +var generateCentralDirectoryEnd = function (entriesCount, centralDirLength, localDirLength, comment, encodeFileName) { + var dirEnd = ""; + var encodedComment = utils.transformTo("string", encodeFileName(comment)); + + // end of central dir signature + dirEnd = signature.CENTRAL_DIRECTORY_END + + // number of this disk + "\x00\x00" + + // number of the disk with the start of the central directory + "\x00\x00" + + // total number of entries in the central directory on this disk + decToHex(entriesCount, 2) + + // total number of entries in the central directory + decToHex(entriesCount, 2) + + // size of the central directory 4 bytes + decToHex(centralDirLength, 4) + + // offset of start of central directory with respect to the starting disk number + decToHex(localDirLength, 4) + + // .ZIP file comment length + decToHex(encodedComment.length, 2) + + // .ZIP file comment + encodedComment; + + return dirEnd; +}; + +/** + * Generate data descriptors for a file entry. + * @param {Object} streamInfo the hash generated by a worker, containing information + * on the file entry. + * @return {String} the data descriptors. + */ +var generateDataDescriptors = function (streamInfo) { + var descriptor = ""; + descriptor = signature.DATA_DESCRIPTOR + + // crc-32 4 bytes + decToHex(streamInfo['crc32'], 4) + + // compressed size 4 bytes + decToHex(streamInfo['compressedSize'], 4) + + // uncompressed size 4 bytes + decToHex(streamInfo['uncompressedSize'], 4); + + return descriptor; +}; + + +/** + * A worker to concatenate other workers to create a zip file. + * @param {Boolean} streamFiles `true` to stream the content of the files, + * `false` to accumulate it. + * @param {String} comment the comment to use. + * @param {String} platform the platform to use, "UNIX" or "DOS". + * @param {Function} encodeFileName the function to encode file names and comments. + */ +function ZipFileWorker(streamFiles, comment, platform, encodeFileName) { + GenericWorker.call(this, "ZipFileWorker"); + // The number of bytes written so far. This doesn't count accumulated chunks. + this.bytesWritten = 0; + // The comment of the zip file + this.zipComment = comment; + // The platform "generating" the zip file. + this.zipPlatform = platform; + // the function to encode file names and comments. + this.encodeFileName = encodeFileName; + // Should we stream the content of the files ? + this.streamFiles = streamFiles; + // If `streamFiles` is false, we will need to accumulate the content of the + // files to calculate sizes / crc32 (and write them *before* the content). + // This boolean indicates if we are accumulating chunks (it will change a lot + // during the lifetime of this worker). + this.accumulate = false; + // The buffer receiving chunks when accumulating content. + this.contentBuffer = []; + // The list of generated directory records. + this.dirRecords = []; + // The offset (in bytes) from the beginning of the zip file for the current source. + this.currentSourceOffset = 0; + // The total number of entries in this zip file. + this.entriesCount = 0; + // the name of the file currently being added, null when handling the end of the zip file. + // Used for the emitted metadata. + this.currentFile = null; + + + + this._sources = []; +} +utils.inherits(ZipFileWorker, GenericWorker); + +/** + * @see GenericWorker.push + */ +ZipFileWorker.prototype.push = function (chunk) { + + var currentFilePercent = chunk.meta.percent || 0; + var entriesCount = this.entriesCount; + var remainingFiles = this._sources.length; + + if(this.accumulate) { + this.contentBuffer.push(chunk); + } else { + this.bytesWritten += chunk.data.length; + + GenericWorker.prototype.push.call(this, { + data : chunk.data, + meta : { + currentFile : this.currentFile, + percent : entriesCount ? (currentFilePercent + 100 * (entriesCount - remainingFiles - 1)) / entriesCount : 100 + } + }); + } +}; + +/** + * The worker started a new source (an other worker). + * @param {Object} streamInfo the streamInfo object from the new source. + */ +ZipFileWorker.prototype.openedSource = function (streamInfo) { + this.currentSourceOffset = this.bytesWritten; + this.currentFile = streamInfo['file'].name; + + var streamedContent = this.streamFiles && !streamInfo['file'].dir; + + // don't stream folders (because they don't have any content) + if(streamedContent) { + var record = generateZipParts(streamInfo, streamedContent, false, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); + this.push({ + data : record.fileRecord, + meta : {percent:0} + }); + } else { + // we need to wait for the whole file before pushing anything + this.accumulate = true; + } +}; + +/** + * The worker finished a source (an other worker). + * @param {Object} streamInfo the streamInfo object from the finished source. + */ +ZipFileWorker.prototype.closedSource = function (streamInfo) { + this.accumulate = false; + var streamedContent = this.streamFiles && !streamInfo['file'].dir; + var record = generateZipParts(streamInfo, streamedContent, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName); + + this.dirRecords.push(record.dirRecord); + if(streamedContent) { + // after the streamed file, we put data descriptors + this.push({ + data : generateDataDescriptors(streamInfo), + meta : {percent:100} + }); + } else { + // the content wasn't streamed, we need to push everything now + // first the file record, then the content + this.push({ + data : record.fileRecord, + meta : {percent:0} + }); + while(this.contentBuffer.length) { + this.push(this.contentBuffer.shift()); + } + } + this.currentFile = null; +}; + +/** + * @see GenericWorker.flush + */ +ZipFileWorker.prototype.flush = function () { + + var localDirLength = this.bytesWritten; + for(var i = 0; i < this.dirRecords.length; i++) { + this.push({ + data : this.dirRecords[i], + meta : {percent:100} + }); + } + var centralDirLength = this.bytesWritten - localDirLength; + + var dirEnd = generateCentralDirectoryEnd(this.dirRecords.length, centralDirLength, localDirLength, this.zipComment, this.encodeFileName); + + this.push({ + data : dirEnd, + meta : {percent:100} + }); +}; + +/** + * Prepare the next source to be read. + */ +ZipFileWorker.prototype.prepareNextSource = function () { + this.previous = this._sources.shift(); + this.openedSource(this.previous.streamInfo); + if (this.isPaused) { + this.previous.pause(); + } else { + this.previous.resume(); + } +}; + +/** + * @see GenericWorker.registerPrevious + */ +ZipFileWorker.prototype.registerPrevious = function (previous) { + this._sources.push(previous); + var self = this; + + previous.on('data', function (chunk) { + self.processChunk(chunk); + }); + previous.on('end', function () { + self.closedSource(self.previous.streamInfo); + if(self._sources.length) { + self.prepareNextSource(); + } else { + self.end(); + } + }); + previous.on('error', function (e) { + self.error(e); + }); + return this; +}; + +/** + * @see GenericWorker.resume + */ +ZipFileWorker.prototype.resume = function () { + if(!GenericWorker.prototype.resume.call(this)) { + return false; + } + + if (!this.previous && this._sources.length) { + this.prepareNextSource(); + return true; + } + if (!this.previous && !this._sources.length && !this.generatedError) { + this.end(); + return true; + } +}; + +/** + * @see GenericWorker.error + */ +ZipFileWorker.prototype.error = function (e) { + var sources = this._sources; + if(!GenericWorker.prototype.error.call(this, e)) { + return false; + } + for(var i = 0; i < sources.length; i++) { + try { + sources[i].error(e); + } catch(e) { + // the `error` exploded, nothing to do + } + } + return true; +}; + +/** + * @see GenericWorker.lock + */ +ZipFileWorker.prototype.lock = function () { + GenericWorker.prototype.lock.call(this); + var sources = this._sources; + for(var i = 0; i < sources.length; i++) { + sources[i].lock(); + } +}; + +module.exports = ZipFileWorker; + +},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(require,module,exports){ +'use strict'; + +var compressions = require('../compressions'); +var ZipFileWorker = require('./ZipFileWorker'); + +/** + * Find the compression to use. + * @param {String} fileCompression the compression defined at the file level, if any. + * @param {String} zipCompression the compression defined at the load() level. + * @return {Object} the compression object to use. + */ +var getCompression = function (fileCompression, zipCompression) { + + var compressionName = fileCompression || zipCompression; + var compression = compressions[compressionName]; + if (!compression) { + throw new Error(compressionName + " is not a valid compression method !"); + } + return compression; +}; + +/** + * Create a worker to generate a zip file. + * @param {JSZip} zip the JSZip instance at the right root level. + * @param {Object} options to generate the zip file. + * @param {String} comment the comment to use. + */ +exports.generateWorker = function (zip, options, comment) { + + var zipFileWorker = new ZipFileWorker(options.streamFiles, comment, options.platform, options.encodeFileName); + var entriesCount = 0; + try { + + zip.forEach(function (relativePath, file) { + entriesCount++; + var compression = getCompression(file.options.compression, options.compression); + var compressionOptions = file.options.compressionOptions || options.compressionOptions || {}; + var dir = file.dir, date = file.date; + + file._compressWorker(compression, compressionOptions) + .withStreamInfo("file", { + name : relativePath, + dir : dir, + date : date, + comment : file.comment || "", + unixPermissions : file.unixPermissions, + dosPermissions : file.dosPermissions + }) + .pipe(zipFileWorker); + }); + zipFileWorker.entriesCount = entriesCount; + } catch (e) { + zipFileWorker.error(e); + } + + return zipFileWorker; +}; + +},{"../compressions":3,"./ZipFileWorker":8}],10:[function(require,module,exports){ +'use strict'; + +/** + * Representation a of zip file in js + * @constructor + */ +function JSZip() { + // if this constructor is used without `new`, it adds `new` before itself: + if(!(this instanceof JSZip)) { + return new JSZip(); + } + + if(arguments.length) { + throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide."); + } + + // object containing the files : + // { + // "folder/" : {...}, + // "folder/data.txt" : {...} + // } + // NOTE: we use a null prototype because we do not + // want filenames like "toString" coming from a zip file + // to overwrite methods and attributes in a normal Object. + this.files = Object.create(null); + + this.comment = null; + + // Where we are in the hierarchy + this.root = ""; + this.clone = function() { + var newObj = new JSZip(); + for (var i in this) { + if (typeof this[i] !== "function") { + newObj[i] = this[i]; + } + } + return newObj; + }; +} +JSZip.prototype = require('./object'); +JSZip.prototype.loadAsync = require('./load'); +JSZip.support = require('./support'); +JSZip.defaults = require('./defaults'); + +// TODO find a better way to handle this version, +// a require('package.json').version doesn't work with webpack, see #327 +JSZip.version = "3.7.1"; + +JSZip.loadAsync = function (content, options) { + return new JSZip().loadAsync(content, options); +}; + +JSZip.external = require("./external"); +module.exports = JSZip; + +},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(require,module,exports){ +'use strict'; +var utils = require('./utils'); +var external = require("./external"); +var utf8 = require('./utf8'); +var ZipEntries = require('./zipEntries'); +var Crc32Probe = require('./stream/Crc32Probe'); +var nodejsUtils = require("./nodejsUtils"); + +/** + * Check the CRC32 of an entry. + * @param {ZipEntry} zipEntry the zip entry to check. + * @return {Promise} the result. + */ +function checkEntryCRC32(zipEntry) { + return new external.Promise(function (resolve, reject) { + var worker = zipEntry.decompressed.getContentWorker().pipe(new Crc32Probe()); + worker.on("error", function (e) { + reject(e); + }) + .on("end", function () { + if (worker.streamInfo.crc32 !== zipEntry.decompressed.crc32) { + reject(new Error("Corrupted zip : CRC32 mismatch")); + } else { + resolve(); + } + }) + .resume(); + }); +} + +module.exports = function (data, options) { + var zip = this; + options = utils.extend(options || {}, { + base64: false, + checkCRC32: false, + optimizedBinaryString: false, + createFolders: false, + decodeFileName: utf8.utf8decode + }); + + if (nodejsUtils.isNode && nodejsUtils.isStream(data)) { + return external.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")); + } + + return utils.prepareContent("the loaded zip file", data, true, options.optimizedBinaryString, options.base64) + .then(function (data) { + var zipEntries = new ZipEntries(options); + zipEntries.load(data); + return zipEntries; + }).then(function checkCRC32(zipEntries) { + var promises = [external.Promise.resolve(zipEntries)]; + var files = zipEntries.files; + if (options.checkCRC32) { + for (var i = 0; i < files.length; i++) { + promises.push(checkEntryCRC32(files[i])); + } + } + return external.Promise.all(promises); + }).then(function addFiles(results) { + var zipEntries = results.shift(); + var files = zipEntries.files; + for (var i = 0; i < files.length; i++) { + var input = files[i]; + zip.file(input.fileNameStr, input.decompressed, { + binary: true, + optimizedBinaryString: true, + date: input.date, + dir: input.dir, + comment: input.fileCommentStr.length ? input.fileCommentStr : null, + unixPermissions: input.unixPermissions, + dosPermissions: input.dosPermissions, + createFolders: options.createFolders + }); + } + if (zipEntries.zipComment.length) { + zip.comment = zipEntries.zipComment; + } + + return zip; + }); +}; + +},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(require,module,exports){ +"use strict"; + +var utils = require('../utils'); +var GenericWorker = require('../stream/GenericWorker'); + +/** + * A worker that use a nodejs stream as source. + * @constructor + * @param {String} filename the name of the file entry for this stream. + * @param {Readable} stream the nodejs stream. + */ +function NodejsStreamInputAdapter(filename, stream) { + GenericWorker.call(this, "Nodejs stream input adapter for " + filename); + this._upstreamEnded = false; + this._bindStream(stream); +} + +utils.inherits(NodejsStreamInputAdapter, GenericWorker); + +/** + * Prepare the stream and bind the callbacks on it. + * Do this ASAP on node 0.10 ! A lazy binding doesn't always work. + * @param {Stream} stream the nodejs stream to use. + */ +NodejsStreamInputAdapter.prototype._bindStream = function (stream) { + var self = this; + this._stream = stream; + stream.pause(); + stream + .on("data", function (chunk) { + self.push({ + data: chunk, + meta : { + percent : 0 + } + }); + }) + .on("error", function (e) { + if(self.isPaused) { + this.generatedError = e; + } else { + self.error(e); + } + }) + .on("end", function () { + if(self.isPaused) { + self._upstreamEnded = true; + } else { + self.end(); + } + }); +}; +NodejsStreamInputAdapter.prototype.pause = function () { + if(!GenericWorker.prototype.pause.call(this)) { + return false; + } + this._stream.pause(); + return true; +}; +NodejsStreamInputAdapter.prototype.resume = function () { + if(!GenericWorker.prototype.resume.call(this)) { + return false; + } + + if(this._upstreamEnded) { + this.end(); + } else { + this._stream.resume(); + } + + return true; +}; + +module.exports = NodejsStreamInputAdapter; + +},{"../stream/GenericWorker":28,"../utils":32}],13:[function(require,module,exports){ +'use strict'; + +var Readable = require('readable-stream').Readable; + +var utils = require('../utils'); +utils.inherits(NodejsStreamOutputAdapter, Readable); + +/** +* A nodejs stream using a worker as source. +* @see the SourceWrapper in http://nodejs.org/api/stream.html +* @constructor +* @param {StreamHelper} helper the helper wrapping the worker +* @param {Object} options the nodejs stream options +* @param {Function} updateCb the update callback. +*/ +function NodejsStreamOutputAdapter(helper, options, updateCb) { + Readable.call(this, options); + this._helper = helper; + + var self = this; + helper.on("data", function (data, meta) { + if (!self.push(data)) { + self._helper.pause(); + } + if(updateCb) { + updateCb(meta); + } + }) + .on("error", function(e) { + self.emit('error', e); + }) + .on("end", function () { + self.push(null); + }); +} + + +NodejsStreamOutputAdapter.prototype._read = function() { + this._helper.resume(); +}; + +module.exports = NodejsStreamOutputAdapter; + +},{"../utils":32,"readable-stream":16}],14:[function(require,module,exports){ +'use strict'; + +module.exports = { + /** + * True if this is running in Nodejs, will be undefined in a browser. + * In a browser, browserify won't include this file and the whole module + * will be resolved an empty object. + */ + isNode : typeof Buffer !== "undefined", + /** + * Create a new nodejs Buffer from an existing content. + * @param {Object} data the data to pass to the constructor. + * @param {String} encoding the encoding to use. + * @return {Buffer} a new Buffer. + */ + newBufferFrom: function(data, encoding) { + if (Buffer.from && Buffer.from !== Uint8Array.from) { + return Buffer.from(data, encoding); + } else { + if (typeof data === "number") { + // Safeguard for old Node.js versions. On newer versions, + // Buffer.from(number) / Buffer(number, encoding) already throw. + throw new Error("The \"data\" argument must not be a number"); + } + return new Buffer(data, encoding); + } + }, + /** + * Create a new nodejs Buffer with the specified size. + * @param {Integer} size the size of the buffer. + * @return {Buffer} a new Buffer. + */ + allocBuffer: function (size) { + if (Buffer.alloc) { + return Buffer.alloc(size); + } else { + var buf = new Buffer(size); + buf.fill(0); + return buf; + } + }, + /** + * Find out if an object is a Buffer. + * @param {Object} b the object to test. + * @return {Boolean} true if the object is a Buffer, false otherwise. + */ + isBuffer : function(b){ + return Buffer.isBuffer(b); + }, + + isStream : function (obj) { + return obj && + typeof obj.on === "function" && + typeof obj.pause === "function" && + typeof obj.resume === "function"; + } +}; + +},{}],15:[function(require,module,exports){ +'use strict'; +var utf8 = require('./utf8'); +var utils = require('./utils'); +var GenericWorker = require('./stream/GenericWorker'); +var StreamHelper = require('./stream/StreamHelper'); +var defaults = require('./defaults'); +var CompressedObject = require('./compressedObject'); +var ZipObject = require('./zipObject'); +var generate = require("./generate"); +var nodejsUtils = require("./nodejsUtils"); +var NodejsStreamInputAdapter = require("./nodejs/NodejsStreamInputAdapter"); + + +/** + * Add a file in the current folder. + * @private + * @param {string} name the name of the file + * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data of the file + * @param {Object} originalOptions the options of the file + * @return {Object} the new file. + */ +var fileAdd = function(name, data, originalOptions) { + // be sure sub folders exist + var dataType = utils.getTypeOf(data), + parent; + + + /* + * Correct options. + */ + + var o = utils.extend(originalOptions || {}, defaults); + o.date = o.date || new Date(); + if (o.compression !== null) { + o.compression = o.compression.toUpperCase(); + } + + if (typeof o.unixPermissions === "string") { + o.unixPermissions = parseInt(o.unixPermissions, 8); + } + + // UNX_IFDIR 0040000 see zipinfo.c + if (o.unixPermissions && (o.unixPermissions & 0x4000)) { + o.dir = true; + } + // Bit 4 Directory + if (o.dosPermissions && (o.dosPermissions & 0x0010)) { + o.dir = true; + } + + if (o.dir) { + name = forceTrailingSlash(name); + } + if (o.createFolders && (parent = parentFolder(name))) { + folderAdd.call(this, parent, true); + } + + var isUnicodeString = dataType === "string" && o.binary === false && o.base64 === false; + if (!originalOptions || typeof originalOptions.binary === "undefined") { + o.binary = !isUnicodeString; + } + + + var isCompressedEmpty = (data instanceof CompressedObject) && data.uncompressedSize === 0; + + if (isCompressedEmpty || o.dir || !data || data.length === 0) { + o.base64 = false; + o.binary = true; + data = ""; + o.compression = "STORE"; + dataType = "string"; + } + + /* + * Convert content to fit. + */ + + var zipObjectContent = null; + if (data instanceof CompressedObject || data instanceof GenericWorker) { + zipObjectContent = data; + } else if (nodejsUtils.isNode && nodejsUtils.isStream(data)) { + zipObjectContent = new NodejsStreamInputAdapter(name, data); + } else { + zipObjectContent = utils.prepareContent(name, data, o.binary, o.optimizedBinaryString, o.base64); + } + + var object = new ZipObject(name, zipObjectContent, o); + this.files[name] = object; + /* + TODO: we can't throw an exception because we have async promises + (we can have a promise of a Date() for example) but returning a + promise is useless because file(name, data) returns the JSZip + object for chaining. Should we break that to allow the user + to catch the error ? + + return external.Promise.resolve(zipObjectContent) + .then(function () { + return object; + }); + */ +}; + +/** + * Find the parent folder of the path. + * @private + * @param {string} path the path to use + * @return {string} the parent folder, or "" + */ +var parentFolder = function (path) { + if (path.slice(-1) === '/') { + path = path.substring(0, path.length - 1); + } + var lastSlash = path.lastIndexOf('/'); + return (lastSlash > 0) ? path.substring(0, lastSlash) : ""; +}; + +/** + * Returns the path with a slash at the end. + * @private + * @param {String} path the path to check. + * @return {String} the path with a trailing slash. + */ +var forceTrailingSlash = function(path) { + // Check the name ends with a / + if (path.slice(-1) !== "/") { + path += "/"; // IE doesn't like substr(-1) + } + return path; +}; + +/** + * Add a (sub) folder in the current folder. + * @private + * @param {string} name the folder's name + * @param {boolean=} [createFolders] If true, automatically create sub + * folders. Defaults to false. + * @return {Object} the new folder. + */ +var folderAdd = function(name, createFolders) { + createFolders = (typeof createFolders !== 'undefined') ? createFolders : defaults.createFolders; + + name = forceTrailingSlash(name); + + // Does this folder already exist? + if (!this.files[name]) { + fileAdd.call(this, name, null, { + dir: true, + createFolders: createFolders + }); + } + return this.files[name]; +}; + +/** +* Cross-window, cross-Node-context regular expression detection +* @param {Object} object Anything +* @return {Boolean} true if the object is a regular expression, +* false otherwise +*/ +function isRegExp(object) { + return Object.prototype.toString.call(object) === "[object RegExp]"; +} + +// return the actual prototype of JSZip +var out = { + /** + * @see loadAsync + */ + load: function() { + throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); + }, + + + /** + * Call a callback function for each entry at this folder level. + * @param {Function} cb the callback function: + * function (relativePath, file) {...} + * It takes 2 arguments : the relative path and the file. + */ + forEach: function(cb) { + var filename, relativePath, file; + /* jshint ignore:start */ + // ignore warning about unwanted properties because this.files is a null prototype object + for (filename in this.files) { + file = this.files[filename]; + relativePath = filename.slice(this.root.length, filename.length); + if (relativePath && filename.slice(0, this.root.length) === this.root) { // the file is in the current root + cb(relativePath, file); // TODO reverse the parameters ? need to be clean AND consistent with the filter search fn... + } + } + /* jshint ignore:end */ + }, + + /** + * Filter nested files/folders with the specified function. + * @param {Function} search the predicate to use : + * function (relativePath, file) {...} + * It takes 2 arguments : the relative path and the file. + * @return {Array} An array of matching elements. + */ + filter: function(search) { + var result = []; + this.forEach(function (relativePath, entry) { + if (search(relativePath, entry)) { // the file matches the function + result.push(entry); + } + + }); + return result; + }, + + /** + * Add a file to the zip file, or search a file. + * @param {string|RegExp} name The name of the file to add (if data is defined), + * the name of the file to find (if no data) or a regex to match files. + * @param {String|ArrayBuffer|Uint8Array|Buffer} data The file data, either raw or base64 encoded + * @param {Object} o File options + * @return {JSZip|Object|Array} this JSZip object (when adding a file), + * a file (when searching by string) or an array of files (when searching by regex). + */ + file: function(name, data, o) { + if (arguments.length === 1) { + if (isRegExp(name)) { + var regexp = name; + return this.filter(function(relativePath, file) { + return !file.dir && regexp.test(relativePath); + }); + } + else { // text + var obj = this.files[this.root + name]; + if (obj && !obj.dir) { + return obj; + } else { + return null; + } + } + } + else { // more than one argument : we have data ! + name = this.root + name; + fileAdd.call(this, name, data, o); + } + return this; + }, + + /** + * Add a directory to the zip file, or search. + * @param {String|RegExp} arg The name of the directory to add, or a regex to search folders. + * @return {JSZip} an object with the new directory as the root, or an array containing matching folders. + */ + folder: function(arg) { + if (!arg) { + return this; + } + + if (isRegExp(arg)) { + return this.filter(function(relativePath, file) { + return file.dir && arg.test(relativePath); + }); + } + + // else, name is a new folder + var name = this.root + arg; + var newFolder = folderAdd.call(this, name); + + // Allow chaining by returning a new object with this folder as the root + var ret = this.clone(); + ret.root = newFolder.name; + return ret; + }, + + /** + * Delete a file, or a directory and all sub-files, from the zip + * @param {string} name the name of the file to delete + * @return {JSZip} this JSZip object + */ + remove: function(name) { + name = this.root + name; + var file = this.files[name]; + if (!file) { + // Look for any folders + if (name.slice(-1) !== "/") { + name += "/"; + } + file = this.files[name]; + } + + if (file && !file.dir) { + // file + delete this.files[name]; + } else { + // maybe a folder, delete recursively + var kids = this.filter(function(relativePath, file) { + return file.name.slice(0, name.length) === name; + }); + for (var i = 0; i < kids.length; i++) { + delete this.files[kids[i].name]; + } + } + + return this; + }, + + /** + * Generate the complete zip file + * @param {Object} options the options to generate the zip file : + * - compression, "STORE" by default. + * - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob. + * @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the zip file + */ + generate: function(options) { + throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); + }, + + /** + * Generate the complete zip file as an internal stream. + * @param {Object} options the options to generate the zip file : + * - compression, "STORE" by default. + * - type, "base64" by default. Values are : string, base64, uint8array, arraybuffer, blob. + * @return {StreamHelper} the streamed zip file. + */ + generateInternalStream: function(options) { + var worker, opts = {}; + try { + opts = utils.extend(options || {}, { + streamFiles: false, + compression: "STORE", + compressionOptions : null, + type: "", + platform: "DOS", + comment: null, + mimeType: 'application/zip', + encodeFileName: utf8.utf8encode + }); + + opts.type = opts.type.toLowerCase(); + opts.compression = opts.compression.toUpperCase(); + + // "binarystring" is preferred but the internals use "string". + if(opts.type === "binarystring") { + opts.type = "string"; + } + + if (!opts.type) { + throw new Error("No output type specified."); + } + + utils.checkSupport(opts.type); + + // accept nodejs `process.platform` + if( + opts.platform === 'darwin' || + opts.platform === 'freebsd' || + opts.platform === 'linux' || + opts.platform === 'sunos' + ) { + opts.platform = "UNIX"; + } + if (opts.platform === 'win32') { + opts.platform = "DOS"; + } + + var comment = opts.comment || this.comment || ""; + worker = generate.generateWorker(this, opts, comment); + } catch (e) { + worker = new GenericWorker("error"); + worker.error(e); + } + return new StreamHelper(worker, opts.type || "string", opts.mimeType); + }, + /** + * Generate the complete zip file asynchronously. + * @see generateInternalStream + */ + generateAsync: function(options, onUpdate) { + return this.generateInternalStream(options).accumulate(onUpdate); + }, + /** + * Generate the complete zip file asynchronously. + * @see generateInternalStream + */ + generateNodeStream: function(options, onUpdate) { + options = options || {}; + if (!options.type) { + options.type = "nodebuffer"; + } + return this.generateInternalStream(options).toNodejsStream(onUpdate); + } +}; +module.exports = out; + +},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(require,module,exports){ +/* + * This file is used by module bundlers (browserify/webpack/etc) when + * including a stream implementation. We use "readable-stream" to get a + * consistent behavior between nodejs versions but bundlers often have a shim + * for "stream". Using this shim greatly improve the compatibility and greatly + * reduce the final size of the bundle (only one stream implementation, not + * two). + */ +module.exports = require("stream"); + +},{"stream":undefined}],17:[function(require,module,exports){ +'use strict'; +var DataReader = require('./DataReader'); +var utils = require('../utils'); + +function ArrayReader(data) { + DataReader.call(this, data); + for(var i = 0; i < this.data.length; i++) { + data[i] = data[i] & 0xFF; + } +} +utils.inherits(ArrayReader, DataReader); +/** + * @see DataReader.byteAt + */ +ArrayReader.prototype.byteAt = function(i) { + return this.data[this.zero + i]; +}; +/** + * @see DataReader.lastIndexOfSignature + */ +ArrayReader.prototype.lastIndexOfSignature = function(sig) { + var sig0 = sig.charCodeAt(0), + sig1 = sig.charCodeAt(1), + sig2 = sig.charCodeAt(2), + sig3 = sig.charCodeAt(3); + for (var i = this.length - 4; i >= 0; --i) { + if (this.data[i] === sig0 && this.data[i + 1] === sig1 && this.data[i + 2] === sig2 && this.data[i + 3] === sig3) { + return i - this.zero; + } + } + + return -1; +}; +/** + * @see DataReader.readAndCheckSignature + */ +ArrayReader.prototype.readAndCheckSignature = function (sig) { + var sig0 = sig.charCodeAt(0), + sig1 = sig.charCodeAt(1), + sig2 = sig.charCodeAt(2), + sig3 = sig.charCodeAt(3), + data = this.readData(4); + return sig0 === data[0] && sig1 === data[1] && sig2 === data[2] && sig3 === data[3]; +}; +/** + * @see DataReader.readData + */ +ArrayReader.prototype.readData = function(size) { + this.checkOffset(size); + if(size === 0) { + return []; + } + var result = this.data.slice(this.zero + this.index, this.zero + this.index + size); + this.index += size; + return result; +}; +module.exports = ArrayReader; + +},{"../utils":32,"./DataReader":18}],18:[function(require,module,exports){ +'use strict'; +var utils = require('../utils'); + +function DataReader(data) { + this.data = data; // type : see implementation + this.length = data.length; + this.index = 0; + this.zero = 0; +} +DataReader.prototype = { + /** + * Check that the offset will not go too far. + * @param {string} offset the additional offset to check. + * @throws {Error} an Error if the offset is out of bounds. + */ + checkOffset: function(offset) { + this.checkIndex(this.index + offset); + }, + /** + * Check that the specified index will not be too far. + * @param {string} newIndex the index to check. + * @throws {Error} an Error if the index is out of bounds. + */ + checkIndex: function(newIndex) { + if (this.length < this.zero + newIndex || newIndex < 0) { + throw new Error("End of data reached (data length = " + this.length + ", asked index = " + (newIndex) + "). Corrupted zip ?"); + } + }, + /** + * Change the index. + * @param {number} newIndex The new index. + * @throws {Error} if the new index is out of the data. + */ + setIndex: function(newIndex) { + this.checkIndex(newIndex); + this.index = newIndex; + }, + /** + * Skip the next n bytes. + * @param {number} n the number of bytes to skip. + * @throws {Error} if the new index is out of the data. + */ + skip: function(n) { + this.setIndex(this.index + n); + }, + /** + * Get the byte at the specified index. + * @param {number} i the index to use. + * @return {number} a byte. + */ + byteAt: function(i) { + // see implementations + }, + /** + * Get the next number with a given byte size. + * @param {number} size the number of bytes to read. + * @return {number} the corresponding number. + */ + readInt: function(size) { + var result = 0, + i; + this.checkOffset(size); + for (i = this.index + size - 1; i >= this.index; i--) { + result = (result << 8) + this.byteAt(i); + } + this.index += size; + return result; + }, + /** + * Get the next string with a given byte size. + * @param {number} size the number of bytes to read. + * @return {string} the corresponding string. + */ + readString: function(size) { + return utils.transformTo("string", this.readData(size)); + }, + /** + * Get raw data without conversion, bytes. + * @param {number} size the number of bytes to read. + * @return {Object} the raw data, implementation specific. + */ + readData: function(size) { + // see implementations + }, + /** + * Find the last occurrence of a zip signature (4 bytes). + * @param {string} sig the signature to find. + * @return {number} the index of the last occurrence, -1 if not found. + */ + lastIndexOfSignature: function(sig) { + // see implementations + }, + /** + * Read the signature (4 bytes) at the current position and compare it with sig. + * @param {string} sig the expected signature + * @return {boolean} true if the signature matches, false otherwise. + */ + readAndCheckSignature: function(sig) { + // see implementations + }, + /** + * Get the next date. + * @return {Date} the date. + */ + readDate: function() { + var dostime = this.readInt(4); + return new Date(Date.UTC( + ((dostime >> 25) & 0x7f) + 1980, // year + ((dostime >> 21) & 0x0f) - 1, // month + (dostime >> 16) & 0x1f, // day + (dostime >> 11) & 0x1f, // hour + (dostime >> 5) & 0x3f, // minute + (dostime & 0x1f) << 1)); // second + } +}; +module.exports = DataReader; + +},{"../utils":32}],19:[function(require,module,exports){ +'use strict'; +var Uint8ArrayReader = require('./Uint8ArrayReader'); +var utils = require('../utils'); + +function NodeBufferReader(data) { + Uint8ArrayReader.call(this, data); +} +utils.inherits(NodeBufferReader, Uint8ArrayReader); + +/** + * @see DataReader.readData + */ +NodeBufferReader.prototype.readData = function(size) { + this.checkOffset(size); + var result = this.data.slice(this.zero + this.index, this.zero + this.index + size); + this.index += size; + return result; +}; +module.exports = NodeBufferReader; + +},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(require,module,exports){ +'use strict'; +var DataReader = require('./DataReader'); +var utils = require('../utils'); + +function StringReader(data) { + DataReader.call(this, data); +} +utils.inherits(StringReader, DataReader); +/** + * @see DataReader.byteAt + */ +StringReader.prototype.byteAt = function(i) { + return this.data.charCodeAt(this.zero + i); +}; +/** + * @see DataReader.lastIndexOfSignature + */ +StringReader.prototype.lastIndexOfSignature = function(sig) { + return this.data.lastIndexOf(sig) - this.zero; +}; +/** + * @see DataReader.readAndCheckSignature + */ +StringReader.prototype.readAndCheckSignature = function (sig) { + var data = this.readData(4); + return sig === data; +}; +/** + * @see DataReader.readData + */ +StringReader.prototype.readData = function(size) { + this.checkOffset(size); + // this will work because the constructor applied the "& 0xff" mask. + var result = this.data.slice(this.zero + this.index, this.zero + this.index + size); + this.index += size; + return result; +}; +module.exports = StringReader; + +},{"../utils":32,"./DataReader":18}],21:[function(require,module,exports){ +'use strict'; +var ArrayReader = require('./ArrayReader'); +var utils = require('../utils'); + +function Uint8ArrayReader(data) { + ArrayReader.call(this, data); +} +utils.inherits(Uint8ArrayReader, ArrayReader); +/** + * @see DataReader.readData + */ +Uint8ArrayReader.prototype.readData = function(size) { + this.checkOffset(size); + if(size === 0) { + // in IE10, when using subarray(idx, idx), we get the array [0x00] instead of []. + return new Uint8Array(0); + } + var result = this.data.subarray(this.zero + this.index, this.zero + this.index + size); + this.index += size; + return result; +}; +module.exports = Uint8ArrayReader; + +},{"../utils":32,"./ArrayReader":17}],22:[function(require,module,exports){ +'use strict'; + +var utils = require('../utils'); +var support = require('../support'); +var ArrayReader = require('./ArrayReader'); +var StringReader = require('./StringReader'); +var NodeBufferReader = require('./NodeBufferReader'); +var Uint8ArrayReader = require('./Uint8ArrayReader'); + +/** + * Create a reader adapted to the data. + * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data to read. + * @return {DataReader} the data reader. + */ +module.exports = function (data) { + var type = utils.getTypeOf(data); + utils.checkSupport(type); + if (type === "string" && !support.uint8array) { + return new StringReader(data); + } + if (type === "nodebuffer") { + return new NodeBufferReader(data); + } + if (support.uint8array) { + return new Uint8ArrayReader(utils.transformTo("uint8array", data)); + } + return new ArrayReader(utils.transformTo("array", data)); +}; + +},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(require,module,exports){ +'use strict'; +exports.LOCAL_FILE_HEADER = "PK\x03\x04"; +exports.CENTRAL_FILE_HEADER = "PK\x01\x02"; +exports.CENTRAL_DIRECTORY_END = "PK\x05\x06"; +exports.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x06\x07"; +exports.ZIP64_CENTRAL_DIRECTORY_END = "PK\x06\x06"; +exports.DATA_DESCRIPTOR = "PK\x07\x08"; + +},{}],24:[function(require,module,exports){ +'use strict'; + +var GenericWorker = require('./GenericWorker'); +var utils = require('../utils'); + +/** + * A worker which convert chunks to a specified type. + * @constructor + * @param {String} destType the destination type. + */ +function ConvertWorker(destType) { + GenericWorker.call(this, "ConvertWorker to " + destType); + this.destType = destType; +} +utils.inherits(ConvertWorker, GenericWorker); + +/** + * @see GenericWorker.processChunk + */ +ConvertWorker.prototype.processChunk = function (chunk) { + this.push({ + data : utils.transformTo(this.destType, chunk.data), + meta : chunk.meta + }); +}; +module.exports = ConvertWorker; + +},{"../utils":32,"./GenericWorker":28}],25:[function(require,module,exports){ +'use strict'; + +var GenericWorker = require('./GenericWorker'); +var crc32 = require('../crc32'); +var utils = require('../utils'); + +/** + * A worker which calculate the crc32 of the data flowing through. + * @constructor + */ +function Crc32Probe() { + GenericWorker.call(this, "Crc32Probe"); + this.withStreamInfo("crc32", 0); +} +utils.inherits(Crc32Probe, GenericWorker); + +/** + * @see GenericWorker.processChunk + */ +Crc32Probe.prototype.processChunk = function (chunk) { + this.streamInfo.crc32 = crc32(chunk.data, this.streamInfo.crc32 || 0); + this.push(chunk); +}; +module.exports = Crc32Probe; + +},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(require,module,exports){ +'use strict'; + +var utils = require('../utils'); +var GenericWorker = require('./GenericWorker'); + +/** + * A worker which calculate the total length of the data flowing through. + * @constructor + * @param {String} propName the name used to expose the length + */ +function DataLengthProbe(propName) { + GenericWorker.call(this, "DataLengthProbe for " + propName); + this.propName = propName; + this.withStreamInfo(propName, 0); +} +utils.inherits(DataLengthProbe, GenericWorker); + +/** + * @see GenericWorker.processChunk + */ +DataLengthProbe.prototype.processChunk = function (chunk) { + if(chunk) { + var length = this.streamInfo[this.propName] || 0; + this.streamInfo[this.propName] = length + chunk.data.length; + } + GenericWorker.prototype.processChunk.call(this, chunk); +}; +module.exports = DataLengthProbe; + + +},{"../utils":32,"./GenericWorker":28}],27:[function(require,module,exports){ +'use strict'; + +var utils = require('../utils'); +var GenericWorker = require('./GenericWorker'); + +// the size of the generated chunks +// TODO expose this as a public variable +var DEFAULT_BLOCK_SIZE = 16 * 1024; + +/** + * A worker that reads a content and emits chunks. + * @constructor + * @param {Promise} dataP the promise of the data to split + */ +function DataWorker(dataP) { + GenericWorker.call(this, "DataWorker"); + var self = this; + this.dataIsReady = false; + this.index = 0; + this.max = 0; + this.data = null; + this.type = ""; + + this._tickScheduled = false; + + dataP.then(function (data) { + self.dataIsReady = true; + self.data = data; + self.max = data && data.length || 0; + self.type = utils.getTypeOf(data); + if(!self.isPaused) { + self._tickAndRepeat(); + } + }, function (e) { + self.error(e); + }); +} + +utils.inherits(DataWorker, GenericWorker); + +/** + * @see GenericWorker.cleanUp + */ +DataWorker.prototype.cleanUp = function () { + GenericWorker.prototype.cleanUp.call(this); + this.data = null; +}; + +/** + * @see GenericWorker.resume + */ +DataWorker.prototype.resume = function () { + if(!GenericWorker.prototype.resume.call(this)) { + return false; + } + + if (!this._tickScheduled && this.dataIsReady) { + this._tickScheduled = true; + utils.delay(this._tickAndRepeat, [], this); + } + return true; +}; + +/** + * Trigger a tick a schedule an other call to this function. + */ +DataWorker.prototype._tickAndRepeat = function() { + this._tickScheduled = false; + if(this.isPaused || this.isFinished) { + return; + } + this._tick(); + if(!this.isFinished) { + utils.delay(this._tickAndRepeat, [], this); + this._tickScheduled = true; + } +}; + +/** + * Read and push a chunk. + */ +DataWorker.prototype._tick = function() { + + if(this.isPaused || this.isFinished) { + return false; + } + + var size = DEFAULT_BLOCK_SIZE; + var data = null, nextIndex = Math.min(this.max, this.index + size); + if (this.index >= this.max) { + // EOF + return this.end(); + } else { + switch(this.type) { + case "string": + data = this.data.substring(this.index, nextIndex); + break; + case "uint8array": + data = this.data.subarray(this.index, nextIndex); + break; + case "array": + case "nodebuffer": + data = this.data.slice(this.index, nextIndex); + break; + } + this.index = nextIndex; + return this.push({ + data : data, + meta : { + percent : this.max ? this.index / this.max * 100 : 0 + } + }); + } +}; + +module.exports = DataWorker; + +},{"../utils":32,"./GenericWorker":28}],28:[function(require,module,exports){ +'use strict'; + +/** + * A worker that does nothing but passing chunks to the next one. This is like + * a nodejs stream but with some differences. On the good side : + * - it works on IE 6-9 without any issue / polyfill + * - it weights less than the full dependencies bundled with browserify + * - it forwards errors (no need to declare an error handler EVERYWHERE) + * + * A chunk is an object with 2 attributes : `meta` and `data`. The former is an + * object containing anything (`percent` for example), see each worker for more + * details. The latter is the real data (String, Uint8Array, etc). + * + * @constructor + * @param {String} name the name of the stream (mainly used for debugging purposes) + */ +function GenericWorker(name) { + // the name of the worker + this.name = name || "default"; + // an object containing metadata about the workers chain + this.streamInfo = {}; + // an error which happened when the worker was paused + this.generatedError = null; + // an object containing metadata to be merged by this worker into the general metadata + this.extraStreamInfo = {}; + // true if the stream is paused (and should not do anything), false otherwise + this.isPaused = true; + // true if the stream is finished (and should not do anything), false otherwise + this.isFinished = false; + // true if the stream is locked to prevent further structure updates (pipe), false otherwise + this.isLocked = false; + // the event listeners + this._listeners = { + 'data':[], + 'end':[], + 'error':[] + }; + // the previous worker, if any + this.previous = null; +} + +GenericWorker.prototype = { + /** + * Push a chunk to the next workers. + * @param {Object} chunk the chunk to push + */ + push : function (chunk) { + this.emit("data", chunk); + }, + /** + * End the stream. + * @return {Boolean} true if this call ended the worker, false otherwise. + */ + end : function () { + if (this.isFinished) { + return false; + } + + this.flush(); + try { + this.emit("end"); + this.cleanUp(); + this.isFinished = true; + } catch (e) { + this.emit("error", e); + } + return true; + }, + /** + * End the stream with an error. + * @param {Error} e the error which caused the premature end. + * @return {Boolean} true if this call ended the worker with an error, false otherwise. + */ + error : function (e) { + if (this.isFinished) { + return false; + } + + if(this.isPaused) { + this.generatedError = e; + } else { + this.isFinished = true; + + this.emit("error", e); + + // in the workers chain exploded in the middle of the chain, + // the error event will go downward but we also need to notify + // workers upward that there has been an error. + if(this.previous) { + this.previous.error(e); + } + + this.cleanUp(); + } + return true; + }, + /** + * Add a callback on an event. + * @param {String} name the name of the event (data, end, error) + * @param {Function} listener the function to call when the event is triggered + * @return {GenericWorker} the current object for chainability + */ + on : function (name, listener) { + this._listeners[name].push(listener); + return this; + }, + /** + * Clean any references when a worker is ending. + */ + cleanUp : function () { + this.streamInfo = this.generatedError = this.extraStreamInfo = null; + this._listeners = []; + }, + /** + * Trigger an event. This will call registered callback with the provided arg. + * @param {String} name the name of the event (data, end, error) + * @param {Object} arg the argument to call the callback with. + */ + emit : function (name, arg) { + if (this._listeners[name]) { + for(var i = 0; i < this._listeners[name].length; i++) { + this._listeners[name][i].call(this, arg); + } + } + }, + /** + * Chain a worker with an other. + * @param {Worker} next the worker receiving events from the current one. + * @return {worker} the next worker for chainability + */ + pipe : function (next) { + return next.registerPrevious(this); + }, + /** + * Same as `pipe` in the other direction. + * Using an API with `pipe(next)` is very easy. + * Implementing the API with the point of view of the next one registering + * a source is easier, see the ZipFileWorker. + * @param {Worker} previous the previous worker, sending events to this one + * @return {Worker} the current worker for chainability + */ + registerPrevious : function (previous) { + if (this.isLocked) { + throw new Error("The stream '" + this + "' has already been used."); + } + + // sharing the streamInfo... + this.streamInfo = previous.streamInfo; + // ... and adding our own bits + this.mergeStreamInfo(); + this.previous = previous; + var self = this; + previous.on('data', function (chunk) { + self.processChunk(chunk); + }); + previous.on('end', function () { + self.end(); + }); + previous.on('error', function (e) { + self.error(e); + }); + return this; + }, + /** + * Pause the stream so it doesn't send events anymore. + * @return {Boolean} true if this call paused the worker, false otherwise. + */ + pause : function () { + if(this.isPaused || this.isFinished) { + return false; + } + this.isPaused = true; + + if(this.previous) { + this.previous.pause(); + } + return true; + }, + /** + * Resume a paused stream. + * @return {Boolean} true if this call resumed the worker, false otherwise. + */ + resume : function () { + if(!this.isPaused || this.isFinished) { + return false; + } + this.isPaused = false; + + // if true, the worker tried to resume but failed + var withError = false; + if(this.generatedError) { + this.error(this.generatedError); + withError = true; + } + if(this.previous) { + this.previous.resume(); + } + + return !withError; + }, + /** + * Flush any remaining bytes as the stream is ending. + */ + flush : function () {}, + /** + * Process a chunk. This is usually the method overridden. + * @param {Object} chunk the chunk to process. + */ + processChunk : function(chunk) { + this.push(chunk); + }, + /** + * Add a key/value to be added in the workers chain streamInfo once activated. + * @param {String} key the key to use + * @param {Object} value the associated value + * @return {Worker} the current worker for chainability + */ + withStreamInfo : function (key, value) { + this.extraStreamInfo[key] = value; + this.mergeStreamInfo(); + return this; + }, + /** + * Merge this worker's streamInfo into the chain's streamInfo. + */ + mergeStreamInfo : function () { + for(var key in this.extraStreamInfo) { + if (!this.extraStreamInfo.hasOwnProperty(key)) { + continue; + } + this.streamInfo[key] = this.extraStreamInfo[key]; + } + }, + + /** + * Lock the stream to prevent further updates on the workers chain. + * After calling this method, all calls to pipe will fail. + */ + lock: function () { + if (this.isLocked) { + throw new Error("The stream '" + this + "' has already been used."); + } + this.isLocked = true; + if (this.previous) { + this.previous.lock(); + } + }, + + /** + * + * Pretty print the workers chain. + */ + toString : function () { + var me = "Worker " + this.name; + if (this.previous) { + return this.previous + " -> " + me; + } else { + return me; + } + } +}; + +module.exports = GenericWorker; + +},{}],29:[function(require,module,exports){ +'use strict'; + +var utils = require('../utils'); +var ConvertWorker = require('./ConvertWorker'); +var GenericWorker = require('./GenericWorker'); +var base64 = require('../base64'); +var support = require("../support"); +var external = require("../external"); + +var NodejsStreamOutputAdapter = null; +if (support.nodestream) { + try { + NodejsStreamOutputAdapter = require('../nodejs/NodejsStreamOutputAdapter'); + } catch(e) {} +} + +/** + * Apply the final transformation of the data. If the user wants a Blob for + * example, it's easier to work with an U8intArray and finally do the + * ArrayBuffer/Blob conversion. + * @param {String} type the name of the final type + * @param {String|Uint8Array|Buffer} content the content to transform + * @param {String} mimeType the mime type of the content, if applicable. + * @return {String|Uint8Array|ArrayBuffer|Buffer|Blob} the content in the right format. + */ +function transformZipOutput(type, content, mimeType) { + switch(type) { + case "blob" : + return utils.newBlob(utils.transformTo("arraybuffer", content), mimeType); + case "base64" : + return base64.encode(content); + default : + return utils.transformTo(type, content); + } +} + +/** + * Concatenate an array of data of the given type. + * @param {String} type the type of the data in the given array. + * @param {Array} dataArray the array containing the data chunks to concatenate + * @return {String|Uint8Array|Buffer} the concatenated data + * @throws Error if the asked type is unsupported + */ +function concat (type, dataArray) { + var i, index = 0, res = null, totalLength = 0; + for(i = 0; i < dataArray.length; i++) { + totalLength += dataArray[i].length; + } + switch(type) { + case "string": + return dataArray.join(""); + case "array": + return Array.prototype.concat.apply([], dataArray); + case "uint8array": + res = new Uint8Array(totalLength); + for(i = 0; i < dataArray.length; i++) { + res.set(dataArray[i], index); + index += dataArray[i].length; + } + return res; + case "nodebuffer": + return Buffer.concat(dataArray); + default: + throw new Error("concat : unsupported type '" + type + "'"); + } +} + +/** + * Listen a StreamHelper, accumulate its content and concatenate it into a + * complete block. + * @param {StreamHelper} helper the helper to use. + * @param {Function} updateCallback a callback called on each update. Called + * with one arg : + * - the metadata linked to the update received. + * @return Promise the promise for the accumulation. + */ +function accumulate(helper, updateCallback) { + return new external.Promise(function (resolve, reject){ + var dataArray = []; + var chunkType = helper._internalType, + resultType = helper._outputType, + mimeType = helper._mimeType; + helper + .on('data', function (data, meta) { + dataArray.push(data); + if(updateCallback) { + updateCallback(meta); + } + }) + .on('error', function(err) { + dataArray = []; + reject(err); + }) + .on('end', function (){ + try { + var result = transformZipOutput(resultType, concat(chunkType, dataArray), mimeType); + resolve(result); + } catch (e) { + reject(e); + } + dataArray = []; + }) + .resume(); + }); +} + +/** + * An helper to easily use workers outside of JSZip. + * @constructor + * @param {Worker} worker the worker to wrap + * @param {String} outputType the type of data expected by the use + * @param {String} mimeType the mime type of the content, if applicable. + */ +function StreamHelper(worker, outputType, mimeType) { + var internalType = outputType; + switch(outputType) { + case "blob": + case "arraybuffer": + internalType = "uint8array"; + break; + case "base64": + internalType = "string"; + break; + } + + try { + // the type used internally + this._internalType = internalType; + // the type used to output results + this._outputType = outputType; + // the mime type + this._mimeType = mimeType; + utils.checkSupport(internalType); + this._worker = worker.pipe(new ConvertWorker(internalType)); + // the last workers can be rewired without issues but we need to + // prevent any updates on previous workers. + worker.lock(); + } catch(e) { + this._worker = new GenericWorker("error"); + this._worker.error(e); + } +} + +StreamHelper.prototype = { + /** + * Listen a StreamHelper, accumulate its content and concatenate it into a + * complete block. + * @param {Function} updateCb the update callback. + * @return Promise the promise for the accumulation. + */ + accumulate : function (updateCb) { + return accumulate(this, updateCb); + }, + /** + * Add a listener on an event triggered on a stream. + * @param {String} evt the name of the event + * @param {Function} fn the listener + * @return {StreamHelper} the current helper. + */ + on : function (evt, fn) { + var self = this; + + if(evt === "data") { + this._worker.on(evt, function (chunk) { + fn.call(self, chunk.data, chunk.meta); + }); + } else { + this._worker.on(evt, function () { + utils.delay(fn, arguments, self); + }); + } + return this; + }, + /** + * Resume the flow of chunks. + * @return {StreamHelper} the current helper. + */ + resume : function () { + utils.delay(this._worker.resume, [], this._worker); + return this; + }, + /** + * Pause the flow of chunks. + * @return {StreamHelper} the current helper. + */ + pause : function () { + this._worker.pause(); + return this; + }, + /** + * Return a nodejs stream for this helper. + * @param {Function} updateCb the update callback. + * @return {NodejsStreamOutputAdapter} the nodejs stream. + */ + toNodejsStream : function (updateCb) { + utils.checkSupport("nodestream"); + if (this._outputType !== "nodebuffer") { + // an object stream containing blob/arraybuffer/uint8array/string + // is strange and I don't know if it would be useful. + // I you find this comment and have a good usecase, please open a + // bug report ! + throw new Error(this._outputType + " is not supported by this method"); + } + + return new NodejsStreamOutputAdapter(this, { + objectMode : this._outputType !== "nodebuffer" + }, updateCb); + } +}; + + +module.exports = StreamHelper; + +},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(require,module,exports){ +'use strict'; + +exports.base64 = true; +exports.array = true; +exports.string = true; +exports.arraybuffer = typeof ArrayBuffer !== "undefined" && typeof Uint8Array !== "undefined"; +exports.nodebuffer = typeof Buffer !== "undefined"; +// contains true if JSZip can read/generate Uint8Array, false otherwise. +exports.uint8array = typeof Uint8Array !== "undefined"; + +if (typeof ArrayBuffer === "undefined") { + exports.blob = false; +} +else { + var buffer = new ArrayBuffer(0); + try { + exports.blob = new Blob([buffer], { + type: "application/zip" + }).size === 0; + } + catch (e) { + try { + var Builder = self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder; + var builder = new Builder(); + builder.append(buffer); + exports.blob = builder.getBlob('application/zip').size === 0; + } + catch (e) { + exports.blob = false; + } + } +} + +try { + exports.nodestream = !!require('readable-stream').Readable; +} catch(e) { + exports.nodestream = false; +} + +},{"readable-stream":16}],31:[function(require,module,exports){ +'use strict'; + +var utils = require('./utils'); +var support = require('./support'); +var nodejsUtils = require('./nodejsUtils'); +var GenericWorker = require('./stream/GenericWorker'); + +/** + * The following functions come from pako, from pako/lib/utils/strings + * released under the MIT license, see pako https://github.com/nodeca/pako/ + */ + +// Table with utf8 lengths (calculated by first byte of sequence) +// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS, +// because max possible codepoint is 0x10ffff +var _utf8len = new Array(256); +for (var i=0; i<256; i++) { + _utf8len[i] = (i >= 252 ? 6 : i >= 248 ? 5 : i >= 240 ? 4 : i >= 224 ? 3 : i >= 192 ? 2 : 1); +} +_utf8len[254]=_utf8len[254]=1; // Invalid sequence start + +// convert string to array (typed, when possible) +var string2buf = function (str) { + var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0; + + // count binary size + for (m_pos = 0; m_pos < str_len; m_pos++) { + c = str.charCodeAt(m_pos); + if ((c & 0xfc00) === 0xd800 && (m_pos+1 < str_len)) { + c2 = str.charCodeAt(m_pos+1); + if ((c2 & 0xfc00) === 0xdc00) { + c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00); + m_pos++; + } + } + buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4; + } + + // allocate buffer + if (support.uint8array) { + buf = new Uint8Array(buf_len); + } else { + buf = new Array(buf_len); + } + + // convert + for (i=0, m_pos = 0; i < buf_len; m_pos++) { + c = str.charCodeAt(m_pos); + if ((c & 0xfc00) === 0xd800 && (m_pos+1 < str_len)) { + c2 = str.charCodeAt(m_pos+1); + if ((c2 & 0xfc00) === 0xdc00) { + c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00); + m_pos++; + } + } + if (c < 0x80) { + /* one byte */ + buf[i++] = c; + } else if (c < 0x800) { + /* two bytes */ + buf[i++] = 0xC0 | (c >>> 6); + buf[i++] = 0x80 | (c & 0x3f); + } else if (c < 0x10000) { + /* three bytes */ + buf[i++] = 0xE0 | (c >>> 12); + buf[i++] = 0x80 | (c >>> 6 & 0x3f); + buf[i++] = 0x80 | (c & 0x3f); + } else { + /* four bytes */ + buf[i++] = 0xf0 | (c >>> 18); + buf[i++] = 0x80 | (c >>> 12 & 0x3f); + buf[i++] = 0x80 | (c >>> 6 & 0x3f); + buf[i++] = 0x80 | (c & 0x3f); + } + } + + return buf; +}; + +// Calculate max possible position in utf8 buffer, +// that will not break sequence. If that's not possible +// - (very small limits) return max size as is. +// +// buf[] - utf8 bytes array +// max - length limit (mandatory); +var utf8border = function(buf, max) { + var pos; + + max = max || buf.length; + if (max > buf.length) { max = buf.length; } + + // go back from last position, until start of sequence found + pos = max-1; + while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; } + + // Fuckup - very small and broken sequence, + // return max, because we should return something anyway. + if (pos < 0) { return max; } + + // If we came to start of buffer - that means vuffer is too small, + // return max too. + if (pos === 0) { return max; } + + return (pos + _utf8len[buf[pos]] > max) ? pos : max; +}; + +// convert array to string +var buf2string = function (buf) { + var str, i, out, c, c_len; + var len = buf.length; + + // Reserve max possible length (2 words per char) + // NB: by unknown reasons, Array is significantly faster for + // String.fromCharCode.apply than Uint16Array. + var utf16buf = new Array(len*2); + + for (out=0, i=0; i 4) { utf16buf[out++] = 0xfffd; i += c_len-1; continue; } + + // apply mask on first byte + c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07; + // join the rest + while (c_len > 1 && i < len) { + c = (c << 6) | (buf[i++] & 0x3f); + c_len--; + } + + // terminated by end of string? + if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; } + + if (c < 0x10000) { + utf16buf[out++] = c; + } else { + c -= 0x10000; + utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff); + utf16buf[out++] = 0xdc00 | (c & 0x3ff); + } + } + + // shrinkBuf(utf16buf, out) + if (utf16buf.length !== out) { + if(utf16buf.subarray) { + utf16buf = utf16buf.subarray(0, out); + } else { + utf16buf.length = out; + } + } + + // return String.fromCharCode.apply(null, utf16buf); + return utils.applyFromCharCode(utf16buf); +}; + + +// That's all for the pako functions. + + +/** + * Transform a javascript string into an array (typed if possible) of bytes, + * UTF-8 encoded. + * @param {String} str the string to encode + * @return {Array|Uint8Array|Buffer} the UTF-8 encoded string. + */ +exports.utf8encode = function utf8encode(str) { + if (support.nodebuffer) { + return nodejsUtils.newBufferFrom(str, "utf-8"); + } + + return string2buf(str); +}; + + +/** + * Transform a bytes array (or a representation) representing an UTF-8 encoded + * string into a javascript string. + * @param {Array|Uint8Array|Buffer} buf the data de decode + * @return {String} the decoded string. + */ +exports.utf8decode = function utf8decode(buf) { + if (support.nodebuffer) { + return utils.transformTo("nodebuffer", buf).toString("utf-8"); + } + + buf = utils.transformTo(support.uint8array ? "uint8array" : "array", buf); + + return buf2string(buf); +}; + +/** + * A worker to decode utf8 encoded binary chunks into string chunks. + * @constructor + */ +function Utf8DecodeWorker() { + GenericWorker.call(this, "utf-8 decode"); + // the last bytes if a chunk didn't end with a complete codepoint. + this.leftOver = null; +} +utils.inherits(Utf8DecodeWorker, GenericWorker); + +/** + * @see GenericWorker.processChunk + */ +Utf8DecodeWorker.prototype.processChunk = function (chunk) { + + var data = utils.transformTo(support.uint8array ? "uint8array" : "array", chunk.data); + + // 1st step, re-use what's left of the previous chunk + if (this.leftOver && this.leftOver.length) { + if(support.uint8array) { + var previousData = data; + data = new Uint8Array(previousData.length + this.leftOver.length); + data.set(this.leftOver, 0); + data.set(previousData, this.leftOver.length); + } else { + data = this.leftOver.concat(data); + } + this.leftOver = null; + } + + var nextBoundary = utf8border(data); + var usableData = data; + if (nextBoundary !== data.length) { + if (support.uint8array) { + usableData = data.subarray(0, nextBoundary); + this.leftOver = data.subarray(nextBoundary, data.length); + } else { + usableData = data.slice(0, nextBoundary); + this.leftOver = data.slice(nextBoundary, data.length); + } + } + + this.push({ + data : exports.utf8decode(usableData), + meta : chunk.meta + }); +}; + +/** + * @see GenericWorker.flush + */ +Utf8DecodeWorker.prototype.flush = function () { + if(this.leftOver && this.leftOver.length) { + this.push({ + data : exports.utf8decode(this.leftOver), + meta : {} + }); + this.leftOver = null; + } +}; +exports.Utf8DecodeWorker = Utf8DecodeWorker; + +/** + * A worker to endcode string chunks into utf8 encoded binary chunks. + * @constructor + */ +function Utf8EncodeWorker() { + GenericWorker.call(this, "utf-8 encode"); +} +utils.inherits(Utf8EncodeWorker, GenericWorker); + +/** + * @see GenericWorker.processChunk + */ +Utf8EncodeWorker.prototype.processChunk = function (chunk) { + this.push({ + data : exports.utf8encode(chunk.data), + meta : chunk.meta + }); +}; +exports.Utf8EncodeWorker = Utf8EncodeWorker; + +},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(require,module,exports){ +'use strict'; + +var support = require('./support'); +var base64 = require('./base64'); +var nodejsUtils = require('./nodejsUtils'); +var setImmediate = require('set-immediate-shim'); +var external = require("./external"); + + +/** + * Convert a string that pass as a "binary string": it should represent a byte + * array but may have > 255 char codes. Be sure to take only the first byte + * and returns the byte array. + * @param {String} str the string to transform. + * @return {Array|Uint8Array} the string in a binary format. + */ +function string2binary(str) { + var result = null; + if (support.uint8array) { + result = new Uint8Array(str.length); + } else { + result = new Array(str.length); + } + return stringToArrayLike(str, result); +} + +/** + * Create a new blob with the given content and the given type. + * @param {String|ArrayBuffer} part the content to put in the blob. DO NOT use + * an Uint8Array because the stock browser of android 4 won't accept it (it + * will be silently converted to a string, "[object Uint8Array]"). + * + * Use only ONE part to build the blob to avoid a memory leak in IE11 / Edge: + * when a large amount of Array is used to create the Blob, the amount of + * memory consumed is nearly 100 times the original data amount. + * + * @param {String} type the mime type of the blob. + * @return {Blob} the created blob. + */ +exports.newBlob = function(part, type) { + exports.checkSupport("blob"); + + try { + // Blob constructor + return new Blob([part], { + type: type + }); + } + catch (e) { + + try { + // deprecated, browser only, old way + var Builder = self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder; + var builder = new Builder(); + builder.append(part); + return builder.getBlob(type); + } + catch (e) { + + // well, fuck ?! + throw new Error("Bug : can't construct the Blob."); + } + } + + +}; +/** + * The identity function. + * @param {Object} input the input. + * @return {Object} the same input. + */ +function identity(input) { + return input; +} + +/** + * Fill in an array with a string. + * @param {String} str the string to use. + * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to fill in (will be mutated). + * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array. + */ +function stringToArrayLike(str, array) { + for (var i = 0; i < str.length; ++i) { + array[i] = str.charCodeAt(i) & 0xFF; + } + return array; +} + +/** + * An helper for the function arrayLikeToString. + * This contains static information and functions that + * can be optimized by the browser JIT compiler. + */ +var arrayToStringHelper = { + /** + * Transform an array of int into a string, chunk by chunk. + * See the performances notes on arrayLikeToString. + * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform. + * @param {String} type the type of the array. + * @param {Integer} chunk the chunk size. + * @return {String} the resulting string. + * @throws Error if the chunk is too big for the stack. + */ + stringifyByChunk: function(array, type, chunk) { + var result = [], k = 0, len = array.length; + // shortcut + if (len <= chunk) { + return String.fromCharCode.apply(null, array); + } + while (k < len) { + if (type === "array" || type === "nodebuffer") { + result.push(String.fromCharCode.apply(null, array.slice(k, Math.min(k + chunk, len)))); + } + else { + result.push(String.fromCharCode.apply(null, array.subarray(k, Math.min(k + chunk, len)))); + } + k += chunk; + } + return result.join(""); + }, + /** + * Call String.fromCharCode on every item in the array. + * This is the naive implementation, which generate A LOT of intermediate string. + * This should be used when everything else fail. + * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform. + * @return {String} the result. + */ + stringifyByChar: function(array){ + var resultStr = ""; + for(var i = 0; i < array.length; i++) { + resultStr += String.fromCharCode(array[i]); + } + return resultStr; + }, + applyCanBeUsed : { + /** + * true if the browser accepts to use String.fromCharCode on Uint8Array + */ + uint8array : (function () { + try { + return support.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1; + } catch (e) { + return false; + } + })(), + /** + * true if the browser accepts to use String.fromCharCode on nodejs Buffer. + */ + nodebuffer : (function () { + try { + return support.nodebuffer && String.fromCharCode.apply(null, nodejsUtils.allocBuffer(1)).length === 1; + } catch (e) { + return false; + } + })() + } +}; + +/** + * Transform an array-like object to a string. + * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to transform. + * @return {String} the result. + */ +function arrayLikeToString(array) { + // Performances notes : + // -------------------- + // String.fromCharCode.apply(null, array) is the fastest, see + // see http://jsperf.com/converting-a-uint8array-to-a-string/2 + // but the stack is limited (and we can get huge arrays !). + // + // result += String.fromCharCode(array[i]); generate too many strings ! + // + // This code is inspired by http://jsperf.com/arraybuffer-to-string-apply-performance/2 + // TODO : we now have workers that split the work. Do we still need that ? + var chunk = 65536, + type = exports.getTypeOf(array), + canUseApply = true; + if (type === "uint8array") { + canUseApply = arrayToStringHelper.applyCanBeUsed.uint8array; + } else if (type === "nodebuffer") { + canUseApply = arrayToStringHelper.applyCanBeUsed.nodebuffer; + } + + if (canUseApply) { + while (chunk > 1) { + try { + return arrayToStringHelper.stringifyByChunk(array, type, chunk); + } catch (e) { + chunk = Math.floor(chunk / 2); + } + } + } + + // no apply or chunk error : slow and painful algorithm + // default browser on android 4.* + return arrayToStringHelper.stringifyByChar(array); +} + +exports.applyFromCharCode = arrayLikeToString; + + +/** + * Copy the data from an array-like to an other array-like. + * @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayFrom the origin array. + * @param {Array|ArrayBuffer|Uint8Array|Buffer} arrayTo the destination array which will be mutated. + * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated destination array. + */ +function arrayLikeToArrayLike(arrayFrom, arrayTo) { + for (var i = 0; i < arrayFrom.length; i++) { + arrayTo[i] = arrayFrom[i]; + } + return arrayTo; +} + +// a matrix containing functions to transform everything into everything. +var transform = {}; + +// string to ? +transform["string"] = { + "string": identity, + "array": function(input) { + return stringToArrayLike(input, new Array(input.length)); + }, + "arraybuffer": function(input) { + return transform["string"]["uint8array"](input).buffer; + }, + "uint8array": function(input) { + return stringToArrayLike(input, new Uint8Array(input.length)); + }, + "nodebuffer": function(input) { + return stringToArrayLike(input, nodejsUtils.allocBuffer(input.length)); + } +}; + +// array to ? +transform["array"] = { + "string": arrayLikeToString, + "array": identity, + "arraybuffer": function(input) { + return (new Uint8Array(input)).buffer; + }, + "uint8array": function(input) { + return new Uint8Array(input); + }, + "nodebuffer": function(input) { + return nodejsUtils.newBufferFrom(input); + } +}; + +// arraybuffer to ? +transform["arraybuffer"] = { + "string": function(input) { + return arrayLikeToString(new Uint8Array(input)); + }, + "array": function(input) { + return arrayLikeToArrayLike(new Uint8Array(input), new Array(input.byteLength)); + }, + "arraybuffer": identity, + "uint8array": function(input) { + return new Uint8Array(input); + }, + "nodebuffer": function(input) { + return nodejsUtils.newBufferFrom(new Uint8Array(input)); + } +}; + +// uint8array to ? +transform["uint8array"] = { + "string": arrayLikeToString, + "array": function(input) { + return arrayLikeToArrayLike(input, new Array(input.length)); + }, + "arraybuffer": function(input) { + return input.buffer; + }, + "uint8array": identity, + "nodebuffer": function(input) { + return nodejsUtils.newBufferFrom(input); + } +}; + +// nodebuffer to ? +transform["nodebuffer"] = { + "string": arrayLikeToString, + "array": function(input) { + return arrayLikeToArrayLike(input, new Array(input.length)); + }, + "arraybuffer": function(input) { + return transform["nodebuffer"]["uint8array"](input).buffer; + }, + "uint8array": function(input) { + return arrayLikeToArrayLike(input, new Uint8Array(input.length)); + }, + "nodebuffer": identity +}; + +/** + * Transform an input into any type. + * The supported output type are : string, array, uint8array, arraybuffer, nodebuffer. + * If no output type is specified, the unmodified input will be returned. + * @param {String} outputType the output type. + * @param {String|Array|ArrayBuffer|Uint8Array|Buffer} input the input to convert. + * @throws {Error} an Error if the browser doesn't support the requested output type. + */ +exports.transformTo = function(outputType, input) { + if (!input) { + // undefined, null, etc + // an empty string won't harm. + input = ""; + } + if (!outputType) { + return input; + } + exports.checkSupport(outputType); + var inputType = exports.getTypeOf(input); + var result = transform[inputType][outputType](input); + return result; +}; + +/** + * Return the type of the input. + * The type will be in a format valid for JSZip.utils.transformTo : string, array, uint8array, arraybuffer. + * @param {Object} input the input to identify. + * @return {String} the (lowercase) type of the input. + */ +exports.getTypeOf = function(input) { + if (typeof input === "string") { + return "string"; + } + if (Object.prototype.toString.call(input) === "[object Array]") { + return "array"; + } + if (support.nodebuffer && nodejsUtils.isBuffer(input)) { + return "nodebuffer"; + } + if (support.uint8array && input instanceof Uint8Array) { + return "uint8array"; + } + if (support.arraybuffer && input instanceof ArrayBuffer) { + return "arraybuffer"; + } +}; + +/** + * Throw an exception if the type is not supported. + * @param {String} type the type to check. + * @throws {Error} an Error if the browser doesn't support the requested type. + */ +exports.checkSupport = function(type) { + var supported = support[type.toLowerCase()]; + if (!supported) { + throw new Error(type + " is not supported by this platform"); + } +}; + +exports.MAX_VALUE_16BITS = 65535; +exports.MAX_VALUE_32BITS = -1; // well, "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" is parsed as -1 + +/** + * Prettify a string read as binary. + * @param {string} str the string to prettify. + * @return {string} a pretty string. + */ +exports.pretty = function(str) { + var res = '', + code, i; + for (i = 0; i < (str || "").length; i++) { + code = str.charCodeAt(i); + res += '\\x' + (code < 16 ? "0" : "") + code.toString(16).toUpperCase(); + } + return res; +}; + +/** + * Defer the call of a function. + * @param {Function} callback the function to call asynchronously. + * @param {Array} args the arguments to give to the callback. + */ +exports.delay = function(callback, args, self) { + setImmediate(function () { + callback.apply(self || null, args || []); + }); +}; + +/** + * Extends a prototype with an other, without calling a constructor with + * side effects. Inspired by nodejs' `utils.inherits` + * @param {Function} ctor the constructor to augment + * @param {Function} superCtor the parent constructor to use + */ +exports.inherits = function (ctor, superCtor) { + var Obj = function() {}; + Obj.prototype = superCtor.prototype; + ctor.prototype = new Obj(); +}; + +/** + * Merge the objects passed as parameters into a new one. + * @private + * @param {...Object} var_args All objects to merge. + * @return {Object} a new object with the data of the others. + */ +exports.extend = function() { + var result = {}, i, attr; + for (i = 0; i < arguments.length; i++) { // arguments is not enumerable in some browsers + for (attr in arguments[i]) { + if (arguments[i].hasOwnProperty(attr) && typeof result[attr] === "undefined") { + result[attr] = arguments[i][attr]; + } + } + } + return result; +}; + +/** + * Transform arbitrary content into a Promise. + * @param {String} name a name for the content being processed. + * @param {Object} inputData the content to process. + * @param {Boolean} isBinary true if the content is not an unicode string + * @param {Boolean} isOptimizedBinaryString true if the string content only has one byte per character. + * @param {Boolean} isBase64 true if the string content is encoded with base64. + * @return {Promise} a promise in a format usable by JSZip. + */ +exports.prepareContent = function(name, inputData, isBinary, isOptimizedBinaryString, isBase64) { + + // if inputData is already a promise, this flatten it. + var promise = external.Promise.resolve(inputData).then(function(data) { + + + var isBlob = support.blob && (data instanceof Blob || ['[object File]', '[object Blob]'].indexOf(Object.prototype.toString.call(data)) !== -1); + + if (isBlob && typeof FileReader !== "undefined") { + return new external.Promise(function (resolve, reject) { + var reader = new FileReader(); + + reader.onload = function(e) { + resolve(e.target.result); + }; + reader.onerror = function(e) { + reject(e.target.error); + }; + reader.readAsArrayBuffer(data); + }); + } else { + return data; + } + }); + + return promise.then(function(data) { + var dataType = exports.getTypeOf(data); + + if (!dataType) { + return external.Promise.reject( + new Error("Can't read the data of '" + name + "'. Is it " + + "in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?") + ); + } + // special case : it's way easier to work with Uint8Array than with ArrayBuffer + if (dataType === "arraybuffer") { + data = exports.transformTo("uint8array", data); + } else if (dataType === "string") { + if (isBase64) { + data = base64.decode(data); + } + else if (isBinary) { + // optimizedBinaryString === true means that the file has already been filtered with a 0xFF mask + if (isOptimizedBinaryString !== true) { + // this is a string, not in a base64 format. + // Be sure that this is a correct "binary string" + data = string2binary(data); + } + } + } + return data; + }); +}; + +},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(require,module,exports){ +'use strict'; +var readerFor = require('./reader/readerFor'); +var utils = require('./utils'); +var sig = require('./signature'); +var ZipEntry = require('./zipEntry'); +var utf8 = require('./utf8'); +var support = require('./support'); +// class ZipEntries {{{ +/** + * All the entries in the zip file. + * @constructor + * @param {Object} loadOptions Options for loading the stream. + */ +function ZipEntries(loadOptions) { + this.files = []; + this.loadOptions = loadOptions; +} +ZipEntries.prototype = { + /** + * Check that the reader is on the specified signature. + * @param {string} expectedSignature the expected signature. + * @throws {Error} if it is an other signature. + */ + checkSignature: function(expectedSignature) { + if (!this.reader.readAndCheckSignature(expectedSignature)) { + this.reader.index -= 4; + var signature = this.reader.readString(4); + throw new Error("Corrupted zip or bug: unexpected signature " + "(" + utils.pretty(signature) + ", expected " + utils.pretty(expectedSignature) + ")"); + } + }, + /** + * Check if the given signature is at the given index. + * @param {number} askedIndex the index to check. + * @param {string} expectedSignature the signature to expect. + * @return {boolean} true if the signature is here, false otherwise. + */ + isSignature: function(askedIndex, expectedSignature) { + var currentIndex = this.reader.index; + this.reader.setIndex(askedIndex); + var signature = this.reader.readString(4); + var result = signature === expectedSignature; + this.reader.setIndex(currentIndex); + return result; + }, + /** + * Read the end of the central directory. + */ + readBlockEndOfCentral: function() { + this.diskNumber = this.reader.readInt(2); + this.diskWithCentralDirStart = this.reader.readInt(2); + this.centralDirRecordsOnThisDisk = this.reader.readInt(2); + this.centralDirRecords = this.reader.readInt(2); + this.centralDirSize = this.reader.readInt(4); + this.centralDirOffset = this.reader.readInt(4); + + this.zipCommentLength = this.reader.readInt(2); + // warning : the encoding depends of the system locale + // On a linux machine with LANG=en_US.utf8, this field is utf8 encoded. + // On a windows machine, this field is encoded with the localized windows code page. + var zipComment = this.reader.readData(this.zipCommentLength); + var decodeParamType = support.uint8array ? "uint8array" : "array"; + // To get consistent behavior with the generation part, we will assume that + // this is utf8 encoded unless specified otherwise. + var decodeContent = utils.transformTo(decodeParamType, zipComment); + this.zipComment = this.loadOptions.decodeFileName(decodeContent); + }, + /** + * Read the end of the Zip 64 central directory. + * Not merged with the method readEndOfCentral : + * The end of central can coexist with its Zip64 brother, + * I don't want to read the wrong number of bytes ! + */ + readBlockZip64EndOfCentral: function() { + this.zip64EndOfCentralSize = this.reader.readInt(8); + this.reader.skip(4); + // this.versionMadeBy = this.reader.readString(2); + // this.versionNeeded = this.reader.readInt(2); + this.diskNumber = this.reader.readInt(4); + this.diskWithCentralDirStart = this.reader.readInt(4); + this.centralDirRecordsOnThisDisk = this.reader.readInt(8); + this.centralDirRecords = this.reader.readInt(8); + this.centralDirSize = this.reader.readInt(8); + this.centralDirOffset = this.reader.readInt(8); + + this.zip64ExtensibleData = {}; + var extraDataSize = this.zip64EndOfCentralSize - 44, + index = 0, + extraFieldId, + extraFieldLength, + extraFieldValue; + while (index < extraDataSize) { + extraFieldId = this.reader.readInt(2); + extraFieldLength = this.reader.readInt(4); + extraFieldValue = this.reader.readData(extraFieldLength); + this.zip64ExtensibleData[extraFieldId] = { + id: extraFieldId, + length: extraFieldLength, + value: extraFieldValue + }; + } + }, + /** + * Read the end of the Zip 64 central directory locator. + */ + readBlockZip64EndOfCentralLocator: function() { + this.diskWithZip64CentralDirStart = this.reader.readInt(4); + this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8); + this.disksCount = this.reader.readInt(4); + if (this.disksCount > 1) { + throw new Error("Multi-volumes zip are not supported"); + } + }, + /** + * Read the local files, based on the offset read in the central part. + */ + readLocalFiles: function() { + var i, file; + for (i = 0; i < this.files.length; i++) { + file = this.files[i]; + this.reader.setIndex(file.localHeaderOffset); + this.checkSignature(sig.LOCAL_FILE_HEADER); + file.readLocalPart(this.reader); + file.handleUTF8(); + file.processAttributes(); + } + }, + /** + * Read the central directory. + */ + readCentralDir: function() { + var file; + + this.reader.setIndex(this.centralDirOffset); + while (this.reader.readAndCheckSignature(sig.CENTRAL_FILE_HEADER)) { + file = new ZipEntry({ + zip64: this.zip64 + }, this.loadOptions); + file.readCentralPart(this.reader); + this.files.push(file); + } + + if (this.centralDirRecords !== this.files.length) { + if (this.centralDirRecords !== 0 && this.files.length === 0) { + // We expected some records but couldn't find ANY. + // This is really suspicious, as if something went wrong. + throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length); + } else { + // We found some records but not all. + // Something is wrong but we got something for the user: no error here. + // console.warn("expected", this.centralDirRecords, "records in central dir, got", this.files.length); + } + } + }, + /** + * Read the end of central directory. + */ + readEndOfCentral: function() { + var offset = this.reader.lastIndexOfSignature(sig.CENTRAL_DIRECTORY_END); + if (offset < 0) { + // Check if the content is a truncated zip or complete garbage. + // A "LOCAL_FILE_HEADER" is not required at the beginning (auto + // extractible zip for example) but it can give a good hint. + // If an ajax request was used without responseType, we will also + // get unreadable data. + var isGarbage = !this.isSignature(0, sig.LOCAL_FILE_HEADER); + + if (isGarbage) { + throw new Error("Can't find end of central directory : is this a zip file ? " + + "If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"); + } else { + throw new Error("Corrupted zip: can't find end of central directory"); + } + + } + this.reader.setIndex(offset); + var endOfCentralDirOffset = offset; + this.checkSignature(sig.CENTRAL_DIRECTORY_END); + this.readBlockEndOfCentral(); + + + /* extract from the zip spec : + 4) If one of the fields in the end of central directory + record is too small to hold required data, the field + should be set to -1 (0xFFFF or 0xFFFFFFFF) and the + ZIP64 format record should be created. + 5) The end of central directory record and the + Zip64 end of central directory locator record must + reside on the same disk when splitting or spanning + an archive. + */ + if (this.diskNumber === utils.MAX_VALUE_16BITS || this.diskWithCentralDirStart === utils.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === utils.MAX_VALUE_16BITS || this.centralDirRecords === utils.MAX_VALUE_16BITS || this.centralDirSize === utils.MAX_VALUE_32BITS || this.centralDirOffset === utils.MAX_VALUE_32BITS) { + this.zip64 = true; + + /* + Warning : the zip64 extension is supported, but ONLY if the 64bits integer read from + the zip file can fit into a 32bits integer. This cannot be solved : JavaScript represents + all numbers as 64-bit double precision IEEE 754 floating point numbers. + So, we have 53bits for integers and bitwise operations treat everything as 32bits. + see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/Bitwise_Operators + and http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf section 8.5 + */ + + // should look for a zip64 EOCD locator + offset = this.reader.lastIndexOfSignature(sig.ZIP64_CENTRAL_DIRECTORY_LOCATOR); + if (offset < 0) { + throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator"); + } + this.reader.setIndex(offset); + this.checkSignature(sig.ZIP64_CENTRAL_DIRECTORY_LOCATOR); + this.readBlockZip64EndOfCentralLocator(); + + // now the zip64 EOCD record + if (!this.isSignature(this.relativeOffsetEndOfZip64CentralDir, sig.ZIP64_CENTRAL_DIRECTORY_END)) { + // console.warn("ZIP64 end of central directory not where expected."); + this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(sig.ZIP64_CENTRAL_DIRECTORY_END); + if (this.relativeOffsetEndOfZip64CentralDir < 0) { + throw new Error("Corrupted zip: can't find the ZIP64 end of central directory"); + } + } + this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir); + this.checkSignature(sig.ZIP64_CENTRAL_DIRECTORY_END); + this.readBlockZip64EndOfCentral(); + } + + var expectedEndOfCentralDirOffset = this.centralDirOffset + this.centralDirSize; + if (this.zip64) { + expectedEndOfCentralDirOffset += 20; // end of central dir 64 locator + expectedEndOfCentralDirOffset += 12 /* should not include the leading 12 bytes */ + this.zip64EndOfCentralSize; + } + + var extraBytes = endOfCentralDirOffset - expectedEndOfCentralDirOffset; + + if (extraBytes > 0) { + // console.warn(extraBytes, "extra bytes at beginning or within zipfile"); + if (this.isSignature(endOfCentralDirOffset, sig.CENTRAL_FILE_HEADER)) { + // The offsets seem wrong, but we have something at the specified offset. + // So… we keep it. + } else { + // the offset is wrong, update the "zero" of the reader + // this happens if data has been prepended (crx files for example) + this.reader.zero = extraBytes; + } + } else if (extraBytes < 0) { + throw new Error("Corrupted zip: missing " + Math.abs(extraBytes) + " bytes."); + } + }, + prepareReader: function(data) { + this.reader = readerFor(data); + }, + /** + * Read a zip file and create ZipEntries. + * @param {String|ArrayBuffer|Uint8Array|Buffer} data the binary string representing a zip file. + */ + load: function(data) { + this.prepareReader(data); + this.readEndOfCentral(); + this.readCentralDir(); + this.readLocalFiles(); + } +}; +// }}} end of ZipEntries +module.exports = ZipEntries; + +},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(require,module,exports){ +'use strict'; +var readerFor = require('./reader/readerFor'); +var utils = require('./utils'); +var CompressedObject = require('./compressedObject'); +var crc32fn = require('./crc32'); +var utf8 = require('./utf8'); +var compressions = require('./compressions'); +var support = require('./support'); + +var MADE_BY_DOS = 0x00; +var MADE_BY_UNIX = 0x03; + +/** + * Find a compression registered in JSZip. + * @param {string} compressionMethod the method magic to find. + * @return {Object|null} the JSZip compression object, null if none found. + */ +var findCompression = function(compressionMethod) { + for (var method in compressions) { + if (!compressions.hasOwnProperty(method)) { + continue; + } + if (compressions[method].magic === compressionMethod) { + return compressions[method]; + } + } + return null; +}; + +// class ZipEntry {{{ +/** + * An entry in the zip file. + * @constructor + * @param {Object} options Options of the current file. + * @param {Object} loadOptions Options for loading the stream. + */ +function ZipEntry(options, loadOptions) { + this.options = options; + this.loadOptions = loadOptions; +} +ZipEntry.prototype = { + /** + * say if the file is encrypted. + * @return {boolean} true if the file is encrypted, false otherwise. + */ + isEncrypted: function() { + // bit 1 is set + return (this.bitFlag & 0x0001) === 0x0001; + }, + /** + * say if the file has utf-8 filename/comment. + * @return {boolean} true if the filename/comment is in utf-8, false otherwise. + */ + useUTF8: function() { + // bit 11 is set + return (this.bitFlag & 0x0800) === 0x0800; + }, + /** + * Read the local part of a zip file and add the info in this object. + * @param {DataReader} reader the reader to use. + */ + readLocalPart: function(reader) { + var compression, localExtraFieldsLength; + + // we already know everything from the central dir ! + // If the central dir data are false, we are doomed. + // On the bright side, the local part is scary : zip64, data descriptors, both, etc. + // The less data we get here, the more reliable this should be. + // Let's skip the whole header and dash to the data ! + reader.skip(22); + // in some zip created on windows, the filename stored in the central dir contains \ instead of /. + // Strangely, the filename here is OK. + // I would love to treat these zip files as corrupted (see http://www.info-zip.org/FAQ.html#backslashes + // or APPNOTE#4.4.17.1, "All slashes MUST be forward slashes '/'") but there are a lot of bad zip generators... + // Search "unzip mismatching "local" filename continuing with "central" filename version" on + // the internet. + // + // I think I see the logic here : the central directory is used to display + // content and the local directory is used to extract the files. Mixing / and \ + // may be used to display \ to windows users and use / when extracting the files. + // Unfortunately, this lead also to some issues : http://seclists.org/fulldisclosure/2009/Sep/394 + this.fileNameLength = reader.readInt(2); + localExtraFieldsLength = reader.readInt(2); // can't be sure this will be the same as the central dir + // the fileName is stored as binary data, the handleUTF8 method will take care of the encoding. + this.fileName = reader.readData(this.fileNameLength); + reader.skip(localExtraFieldsLength); + + if (this.compressedSize === -1 || this.uncompressedSize === -1) { + throw new Error("Bug or corrupted zip : didn't get enough information from the central directory " + "(compressedSize === -1 || uncompressedSize === -1)"); + } + + compression = findCompression(this.compressionMethod); + if (compression === null) { // no compression found + throw new Error("Corrupted zip : compression " + utils.pretty(this.compressionMethod) + " unknown (inner file : " + utils.transformTo("string", this.fileName) + ")"); + } + this.decompressed = new CompressedObject(this.compressedSize, this.uncompressedSize, this.crc32, compression, reader.readData(this.compressedSize)); + }, + + /** + * Read the central part of a zip file and add the info in this object. + * @param {DataReader} reader the reader to use. + */ + readCentralPart: function(reader) { + this.versionMadeBy = reader.readInt(2); + reader.skip(2); + // this.versionNeeded = reader.readInt(2); + this.bitFlag = reader.readInt(2); + this.compressionMethod = reader.readString(2); + this.date = reader.readDate(); + this.crc32 = reader.readInt(4); + this.compressedSize = reader.readInt(4); + this.uncompressedSize = reader.readInt(4); + var fileNameLength = reader.readInt(2); + this.extraFieldsLength = reader.readInt(2); + this.fileCommentLength = reader.readInt(2); + this.diskNumberStart = reader.readInt(2); + this.internalFileAttributes = reader.readInt(2); + this.externalFileAttributes = reader.readInt(4); + this.localHeaderOffset = reader.readInt(4); + + if (this.isEncrypted()) { + throw new Error("Encrypted zip are not supported"); + } + + // will be read in the local part, see the comments there + reader.skip(fileNameLength); + this.readExtraFields(reader); + this.parseZIP64ExtraField(reader); + this.fileComment = reader.readData(this.fileCommentLength); + }, + + /** + * Parse the external file attributes and get the unix/dos permissions. + */ + processAttributes: function () { + this.unixPermissions = null; + this.dosPermissions = null; + var madeBy = this.versionMadeBy >> 8; + + // Check if we have the DOS directory flag set. + // We look for it in the DOS and UNIX permissions + // but some unknown platform could set it as a compatibility flag. + this.dir = this.externalFileAttributes & 0x0010 ? true : false; + + if(madeBy === MADE_BY_DOS) { + // first 6 bits (0 to 5) + this.dosPermissions = this.externalFileAttributes & 0x3F; + } + + if(madeBy === MADE_BY_UNIX) { + this.unixPermissions = (this.externalFileAttributes >> 16) & 0xFFFF; + // the octal permissions are in (this.unixPermissions & 0x01FF).toString(8); + } + + // fail safe : if the name ends with a / it probably means a folder + if (!this.dir && this.fileNameStr.slice(-1) === '/') { + this.dir = true; + } + }, + + /** + * Parse the ZIP64 extra field and merge the info in the current ZipEntry. + * @param {DataReader} reader the reader to use. + */ + parseZIP64ExtraField: function(reader) { + + if (!this.extraFields[0x0001]) { + return; + } + + // should be something, preparing the extra reader + var extraReader = readerFor(this.extraFields[0x0001].value); + + // I really hope that these 64bits integer can fit in 32 bits integer, because js + // won't let us have more. + if (this.uncompressedSize === utils.MAX_VALUE_32BITS) { + this.uncompressedSize = extraReader.readInt(8); + } + if (this.compressedSize === utils.MAX_VALUE_32BITS) { + this.compressedSize = extraReader.readInt(8); + } + if (this.localHeaderOffset === utils.MAX_VALUE_32BITS) { + this.localHeaderOffset = extraReader.readInt(8); + } + if (this.diskNumberStart === utils.MAX_VALUE_32BITS) { + this.diskNumberStart = extraReader.readInt(4); + } + }, + /** + * Read the central part of a zip file and add the info in this object. + * @param {DataReader} reader the reader to use. + */ + readExtraFields: function(reader) { + var end = reader.index + this.extraFieldsLength, + extraFieldId, + extraFieldLength, + extraFieldValue; + + if (!this.extraFields) { + this.extraFields = {}; + } + + while (reader.index + 4 < end) { + extraFieldId = reader.readInt(2); + extraFieldLength = reader.readInt(2); + extraFieldValue = reader.readData(extraFieldLength); + + this.extraFields[extraFieldId] = { + id: extraFieldId, + length: extraFieldLength, + value: extraFieldValue + }; + } + + reader.setIndex(end); + }, + /** + * Apply an UTF8 transformation if needed. + */ + handleUTF8: function() { + var decodeParamType = support.uint8array ? "uint8array" : "array"; + if (this.useUTF8()) { + this.fileNameStr = utf8.utf8decode(this.fileName); + this.fileCommentStr = utf8.utf8decode(this.fileComment); + } else { + var upath = this.findExtraFieldUnicodePath(); + if (upath !== null) { + this.fileNameStr = upath; + } else { + // ASCII text or unsupported code page + var fileNameByteArray = utils.transformTo(decodeParamType, this.fileName); + this.fileNameStr = this.loadOptions.decodeFileName(fileNameByteArray); + } + + var ucomment = this.findExtraFieldUnicodeComment(); + if (ucomment !== null) { + this.fileCommentStr = ucomment; + } else { + // ASCII text or unsupported code page + var commentByteArray = utils.transformTo(decodeParamType, this.fileComment); + this.fileCommentStr = this.loadOptions.decodeFileName(commentByteArray); + } + } + }, + + /** + * Find the unicode path declared in the extra field, if any. + * @return {String} the unicode path, null otherwise. + */ + findExtraFieldUnicodePath: function() { + var upathField = this.extraFields[0x7075]; + if (upathField) { + var extraReader = readerFor(upathField.value); + + // wrong version + if (extraReader.readInt(1) !== 1) { + return null; + } + + // the crc of the filename changed, this field is out of date. + if (crc32fn(this.fileName) !== extraReader.readInt(4)) { + return null; + } + + return utf8.utf8decode(extraReader.readData(upathField.length - 5)); + } + return null; + }, + + /** + * Find the unicode comment declared in the extra field, if any. + * @return {String} the unicode comment, null otherwise. + */ + findExtraFieldUnicodeComment: function() { + var ucommentField = this.extraFields[0x6375]; + if (ucommentField) { + var extraReader = readerFor(ucommentField.value); + + // wrong version + if (extraReader.readInt(1) !== 1) { + return null; + } + + // the crc of the comment changed, this field is out of date. + if (crc32fn(this.fileComment) !== extraReader.readInt(4)) { + return null; + } + + return utf8.utf8decode(extraReader.readData(ucommentField.length - 5)); + } + return null; + } +}; +module.exports = ZipEntry; + +},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(require,module,exports){ +'use strict'; + +var StreamHelper = require('./stream/StreamHelper'); +var DataWorker = require('./stream/DataWorker'); +var utf8 = require('./utf8'); +var CompressedObject = require('./compressedObject'); +var GenericWorker = require('./stream/GenericWorker'); + +/** + * A simple object representing a file in the zip file. + * @constructor + * @param {string} name the name of the file + * @param {String|ArrayBuffer|Uint8Array|Buffer} data the data + * @param {Object} options the options of the file + */ +var ZipObject = function(name, data, options) { + this.name = name; + this.dir = options.dir; + this.date = options.date; + this.comment = options.comment; + this.unixPermissions = options.unixPermissions; + this.dosPermissions = options.dosPermissions; + + this._data = data; + this._dataBinary = options.binary; + // keep only the compression + this.options = { + compression : options.compression, + compressionOptions : options.compressionOptions + }; +}; + +ZipObject.prototype = { + /** + * Create an internal stream for the content of this object. + * @param {String} type the type of each chunk. + * @return StreamHelper the stream. + */ + internalStream: function (type) { + var result = null, outputType = "string"; + try { + if (!type) { + throw new Error("No output type specified."); + } + outputType = type.toLowerCase(); + var askUnicodeString = outputType === "string" || outputType === "text"; + if (outputType === "binarystring" || outputType === "text") { + outputType = "string"; + } + result = this._decompressWorker(); + + var isUnicodeString = !this._dataBinary; + + if (isUnicodeString && !askUnicodeString) { + result = result.pipe(new utf8.Utf8EncodeWorker()); + } + if (!isUnicodeString && askUnicodeString) { + result = result.pipe(new utf8.Utf8DecodeWorker()); + } + } catch (e) { + result = new GenericWorker("error"); + result.error(e); + } + + return new StreamHelper(result, outputType, ""); + }, + + /** + * Prepare the content in the asked type. + * @param {String} type the type of the result. + * @param {Function} onUpdate a function to call on each internal update. + * @return Promise the promise of the result. + */ + async: function (type, onUpdate) { + return this.internalStream(type).accumulate(onUpdate); + }, + + /** + * Prepare the content as a nodejs stream. + * @param {String} type the type of each chunk. + * @param {Function} onUpdate a function to call on each internal update. + * @return Stream the stream. + */ + nodeStream: function (type, onUpdate) { + return this.internalStream(type || "nodebuffer").toNodejsStream(onUpdate); + }, + + /** + * Return a worker for the compressed content. + * @private + * @param {Object} compression the compression object to use. + * @param {Object} compressionOptions the options to use when compressing. + * @return Worker the worker. + */ + _compressWorker: function (compression, compressionOptions) { + if ( + this._data instanceof CompressedObject && + this._data.compression.magic === compression.magic + ) { + return this._data.getCompressedWorker(); + } else { + var result = this._decompressWorker(); + if(!this._dataBinary) { + result = result.pipe(new utf8.Utf8EncodeWorker()); + } + return CompressedObject.createWorkerFrom(result, compression, compressionOptions); + } + }, + /** + * Return a worker for the decompressed content. + * @private + * @return Worker the worker. + */ + _decompressWorker : function () { + if (this._data instanceof CompressedObject) { + return this._data.getContentWorker(); + } else if (this._data instanceof GenericWorker) { + return this._data; + } else { + return new DataWorker(this._data); + } + } +}; + +var removedMethods = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"]; +var removedFn = function () { + throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide."); +}; + +for(var i = 0; i < removedMethods.length; i++) { + ZipObject.prototype[removedMethods[i]] = removedFn; +} +module.exports = ZipObject; + +},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(require,module,exports){ +(function (global){ +'use strict'; +var Mutation = global.MutationObserver || global.WebKitMutationObserver; + +var scheduleDrain; + +{ + if (Mutation) { + var called = 0; + var observer = new Mutation(nextTick); + var element = global.document.createTextNode(''); + observer.observe(element, { + characterData: true + }); + scheduleDrain = function () { + element.data = (called = ++called % 2); + }; + } else if (!global.setImmediate && typeof global.MessageChannel !== 'undefined') { + var channel = new global.MessageChannel(); + channel.port1.onmessage = nextTick; + scheduleDrain = function () { + channel.port2.postMessage(0); + }; + } else if ('document' in global && 'onreadystatechange' in global.document.createElement('script')) { + scheduleDrain = function () { + + // Create a + + + + + +
+ +

index.html

+
+ + \ No newline at end of file diff --git a/apidocs/overview-tree.html b/apidocs/overview-tree.html new file mode 100644 index 000000000..f2a4a3d0a --- /dev/null +++ b/apidocs/overview-tree.html @@ -0,0 +1,584 @@ + + + + + +Class Hierarchy (hap-java 2.0.10-SNAPSHOT API) + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+
+

Class Hierarchy

+ +
+
+

Interface Hierarchy

+ +
+
+

Enum Hierarchy

+ +
+
+
+
+ +

Copyright © 2026. All rights reserved.

+
+ + \ No newline at end of file diff --git a/apidocs/package-search-index.js b/apidocs/package-search-index.js new file mode 100644 index 000000000..6b32617a8 --- /dev/null +++ b/apidocs/package-search-index.js @@ -0,0 +1 @@ +packageSearchIndex = [{"l":"All Packages","url":"allpackages-index.html"},{"l":"io.github.hapjava.accessories"},{"l":"io.github.hapjava.accessories.optionalcharacteristic"},{"l":"io.github.hapjava.characteristics"},{"l":"io.github.hapjava.characteristics.impl.accessoryinformation"},{"l":"io.github.hapjava.characteristics.impl.airpurifier"},{"l":"io.github.hapjava.characteristics.impl.airquality"},{"l":"io.github.hapjava.characteristics.impl.audio"},{"l":"io.github.hapjava.characteristics.impl.base"},{"l":"io.github.hapjava.characteristics.impl.battery"},{"l":"io.github.hapjava.characteristics.impl.carbondioxidesensor"},{"l":"io.github.hapjava.characteristics.impl.carbonmonoxidesensor"},{"l":"io.github.hapjava.characteristics.impl.common"},{"l":"io.github.hapjava.characteristics.impl.contactsensor"},{"l":"io.github.hapjava.characteristics.impl.fan"},{"l":"io.github.hapjava.characteristics.impl.filtermaintenance"},{"l":"io.github.hapjava.characteristics.impl.garagedoor"},{"l":"io.github.hapjava.characteristics.impl.heatercooler"},{"l":"io.github.hapjava.characteristics.impl.humidifier"},{"l":"io.github.hapjava.characteristics.impl.humiditysensor"},{"l":"io.github.hapjava.characteristics.impl.inputsource"},{"l":"io.github.hapjava.characteristics.impl.leaksensor"},{"l":"io.github.hapjava.characteristics.impl.lightbulb"},{"l":"io.github.hapjava.characteristics.impl.lightsensor"},{"l":"io.github.hapjava.characteristics.impl.lock"},{"l":"io.github.hapjava.characteristics.impl.motionsensor"},{"l":"io.github.hapjava.characteristics.impl.occupancysensor"},{"l":"io.github.hapjava.characteristics.impl.outlet"},{"l":"io.github.hapjava.characteristics.impl.securitysystem"},{"l":"io.github.hapjava.characteristics.impl.slat"},{"l":"io.github.hapjava.characteristics.impl.smokesensor"},{"l":"io.github.hapjava.characteristics.impl.television"},{"l":"io.github.hapjava.characteristics.impl.televisionspeaker"},{"l":"io.github.hapjava.characteristics.impl.thermostat"},{"l":"io.github.hapjava.characteristics.impl.valve"},{"l":"io.github.hapjava.characteristics.impl.windowcovering"},{"l":"io.github.hapjava.server"},{"l":"io.github.hapjava.services"},{"l":"io.github.hapjava.services.impl"}] \ No newline at end of file diff --git a/apidocs/package-search-index.zip b/apidocs/package-search-index.zip new file mode 100644 index 000000000..c14fa21b6 Binary files /dev/null and b/apidocs/package-search-index.zip differ diff --git a/apidocs/resources/glass.png b/apidocs/resources/glass.png new file mode 100644 index 000000000..a7f591f46 Binary files /dev/null and b/apidocs/resources/glass.png differ diff --git a/apidocs/resources/x.png b/apidocs/resources/x.png new file mode 100644 index 000000000..30548a756 Binary files /dev/null and b/apidocs/resources/x.png differ diff --git a/apidocs/script.js b/apidocs/script.js new file mode 100644 index 000000000..d832e60e0 --- /dev/null +++ b/apidocs/script.js @@ -0,0 +1,153 @@ +/* + * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +var moduleSearchIndex; +var packageSearchIndex; +var typeSearchIndex; +var memberSearchIndex; +var tagSearchIndex; +function loadScripts(doc, tag) { + createElem(doc, tag, 'jquery/jszip/dist/jszip.js'); + createElem(doc, tag, 'jquery/jszip-utils/dist/jszip-utils.js'); + if (window.navigator.userAgent.indexOf('MSIE ') > 0 || window.navigator.userAgent.indexOf('Trident/') > 0 || + window.navigator.userAgent.indexOf('Edge/') > 0) { + createElem(doc, tag, 'jquery/jszip-utils/dist/jszip-utils-ie.js'); + } + createElem(doc, tag, 'search.js'); + + $.get(pathtoroot + "module-search-index.zip") + .done(function() { + JSZipUtils.getBinaryContent(pathtoroot + "module-search-index.zip", function(e, data) { + JSZip.loadAsync(data).then(function(zip){ + zip.file("module-search-index.json").async("text").then(function(content){ + moduleSearchIndex = JSON.parse(content); + }); + }); + }); + }); + $.get(pathtoroot + "package-search-index.zip") + .done(function() { + JSZipUtils.getBinaryContent(pathtoroot + "package-search-index.zip", function(e, data) { + JSZip.loadAsync(data).then(function(zip){ + zip.file("package-search-index.json").async("text").then(function(content){ + packageSearchIndex = JSON.parse(content); + }); + }); + }); + }); + $.get(pathtoroot + "type-search-index.zip") + .done(function() { + JSZipUtils.getBinaryContent(pathtoroot + "type-search-index.zip", function(e, data) { + JSZip.loadAsync(data).then(function(zip){ + zip.file("type-search-index.json").async("text").then(function(content){ + typeSearchIndex = JSON.parse(content); + }); + }); + }); + }); + $.get(pathtoroot + "member-search-index.zip") + .done(function() { + JSZipUtils.getBinaryContent(pathtoroot + "member-search-index.zip", function(e, data) { + JSZip.loadAsync(data).then(function(zip){ + zip.file("member-search-index.json").async("text").then(function(content){ + memberSearchIndex = JSON.parse(content); + }); + }); + }); + }); + $.get(pathtoroot + "tag-search-index.zip") + .done(function() { + JSZipUtils.getBinaryContent(pathtoroot + "tag-search-index.zip", function(e, data) { + JSZip.loadAsync(data).then(function(zip){ + zip.file("tag-search-index.json").async("text").then(function(content){ + tagSearchIndex = JSON.parse(content); + }); + }); + }); + }); + if (!moduleSearchIndex) { + createElem(doc, tag, 'module-search-index.js'); + } + if (!packageSearchIndex) { + createElem(doc, tag, 'package-search-index.js'); + } + if (!typeSearchIndex) { + createElem(doc, tag, 'type-search-index.js'); + } + if (!memberSearchIndex) { + createElem(doc, tag, 'member-search-index.js'); + } + if (!tagSearchIndex) { + createElem(doc, tag, 'tag-search-index.js'); + } + $(window).resize(function() { + $('.navPadding').css('padding-top', $('.fixedNav').css("height")); + }); +} + +function createElem(doc, tag, path) { + var script = doc.createElement(tag); + var scriptElement = doc.getElementsByTagName(tag)[0]; + script.src = pathtoroot + path; + scriptElement.parentNode.insertBefore(script, scriptElement); +} + +function show(type) { + count = 0; + for (var key in data) { + var row = document.getElementById(key); + if ((data[key] & type) !== 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) { + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.textContent = tabs[value][1]; + } + else { + var a = document.createElement("a"); + a.setAttribute("href", "javascript:show(" + value + ");"); + a.textContent = tabs[value][1]; + sNode.className = tableTab; + spanNode.textContent = ""; + spanNode.appendChild(a); + } + } +} + +function updateModuleFrame(pFrame, cFrame) { + top.packageFrame.location = pFrame; + top.classFrame.location = cFrame; +} \ No newline at end of file diff --git a/apidocs/search.js b/apidocs/search.js new file mode 100644 index 000000000..447ae6652 --- /dev/null +++ b/apidocs/search.js @@ -0,0 +1,326 @@ +/* + * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +var noResult = {l: "No results found"}; +var catModules = "Modules"; +var catPackages = "Packages"; +var catTypes = "Types"; +var catMembers = "Members"; +var catSearchTags = "SearchTags"; +var highlight = "$&"; +var camelCaseRegexp = ""; +var secondaryMatcher = ""; +function getHighlightedText(item) { + var ccMatcher = new RegExp(camelCaseRegexp); + var label = item.replace(ccMatcher, highlight); + if (label === item) { + label = item.replace(secondaryMatcher, highlight); + } + return label; +} +function getURLPrefix(ui) { + var urlPrefix=""; + if (useModuleDirectories) { + var slash = "/"; + if (ui.item.category === catModules) { + return ui.item.l + slash; + } else if (ui.item.category === catPackages && ui.item.m) { + return ui.item.m + slash; + } else if ((ui.item.category === catTypes && ui.item.p) || ui.item.category === catMembers) { + $.each(packageSearchIndex, function(index, item) { + if (item.m && ui.item.p == item.l) { + urlPrefix = item.m + slash; + } + }); + return urlPrefix; + } else { + return urlPrefix; + } + } + return urlPrefix; +} +var watermark = 'Search'; +$(function() { + $("#search").val(''); + $("#search").prop("disabled", false); + $("#reset").prop("disabled", false); + $("#search").val(watermark).addClass('watermark'); + $("#search").blur(function() { + if ($(this).val().length == 0) { + $(this).val(watermark).addClass('watermark'); + } + }); + $("#search").on('click keydown', function() { + if ($(this).val() == watermark) { + $(this).val('').removeClass('watermark'); + } + }); + $("#reset").click(function() { + $("#search").val(''); + $("#search").focus(); + }); + $("#search").focus(); + $("#search")[0].setSelectionRange(0, 0); +}); +$.widget("custom.catcomplete", $.ui.autocomplete, { + _create: function() { + this._super(); + this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)"); + }, + _renderMenu: function(ul, items) { + var rMenu = this, + currentCategory = ""; + rMenu.menu.bindings = $(); + $.each(items, function(index, item) { + var li; + if (item.l !== noResult.l && item.category !== currentCategory) { + ul.append("
  • " + item.category + "
  • "); + currentCategory = item.category; + } + li = rMenu._renderItemData(ul, item); + if (item.category) { + li.attr("aria-label", item.category + " : " + item.l); + li.attr("class", "resultItem"); + } else { + li.attr("aria-label", item.l); + li.attr("class", "resultItem"); + } + }); + }, + _renderItem: function(ul, item) { + var label = ""; + if (item.category === catModules) { + label = getHighlightedText(item.l); + } else if (item.category === catPackages) { + label = (item.m) + ? getHighlightedText(item.m + "/" + item.l) + : getHighlightedText(item.l); + } else if (item.category === catTypes) { + label = (item.p) + ? getHighlightedText(item.p + "." + item.l) + : getHighlightedText(item.l); + } else if (item.category === catMembers) { + label = getHighlightedText(item.p + "." + (item.c + "." + item.l)); + } else if (item.category === catSearchTags) { + label = getHighlightedText(item.l); + } else { + label = item.l; + } + var li = $("
  • ").appendTo(ul); + var div = $("
    ").appendTo(li); + if (item.category === catSearchTags) { + if (item.d) { + div.html(label + " (" + item.h + ")
    " + + item.d + "
    "); + } else { + div.html(label + " (" + item.h + ")"); + } + } else { + div.html(label); + } + return li; + } +}); +$(function() { + $("#search").catcomplete({ + minLength: 1, + delay: 100, + source: function(request, response) { + var result = new Array(); + var presult = new Array(); + var tresult = new Array(); + var mresult = new Array(); + var tgresult = new Array(); + var secondaryresult = new Array(); + var displayCount = 0; + var exactMatcher = new RegExp("^" + $.ui.autocomplete.escapeRegex(request.term) + "$", "i"); + camelCaseRegexp = ($.ui.autocomplete.escapeRegex(request.term)).split(/(?=[A-Z])/).join("([a-z0-9_$]*?)"); + var camelCaseMatcher = new RegExp("^" + camelCaseRegexp); + secondaryMatcher = new RegExp($.ui.autocomplete.escapeRegex(request.term), "i"); + + // Return the nested innermost name from the specified object + function nestedName(e) { + return e.l.substring(e.l.lastIndexOf(".") + 1); + } + + function concatResults(a1, a2) { + a1 = a1.concat(a2); + a2.length = 0; + return a1; + } + + if (moduleSearchIndex) { + var mdleCount = 0; + $.each(moduleSearchIndex, function(index, item) { + item.category = catModules; + if (exactMatcher.test(item.l)) { + result.push(item); + mdleCount++; + } else if (camelCaseMatcher.test(item.l)) { + result.push(item); + } else if (secondaryMatcher.test(item.l)) { + secondaryresult.push(item); + } + }); + displayCount = mdleCount; + result = concatResults(result, secondaryresult); + } + if (packageSearchIndex) { + var pCount = 0; + var pkg = ""; + $.each(packageSearchIndex, function(index, item) { + item.category = catPackages; + pkg = (item.m) + ? (item.m + "/" + item.l) + : item.l; + if (exactMatcher.test(item.l)) { + presult.push(item); + pCount++; + } else if (camelCaseMatcher.test(pkg)) { + presult.push(item); + } else if (secondaryMatcher.test(pkg)) { + secondaryresult.push(item); + } + }); + result = result.concat(concatResults(presult, secondaryresult)); + displayCount = (pCount > displayCount) ? pCount : displayCount; + } + if (typeSearchIndex) { + var tCount = 0; + $.each(typeSearchIndex, function(index, item) { + item.category = catTypes; + var s = nestedName(item); + if (exactMatcher.test(s)) { + tresult.push(item); + tCount++; + } else if (camelCaseMatcher.test(s)) { + tresult.push(item); + } else if (secondaryMatcher.test(item.p + "." + item.l)) { + secondaryresult.push(item); + } + }); + result = result.concat(concatResults(tresult, secondaryresult)); + displayCount = (tCount > displayCount) ? tCount : displayCount; + } + if (memberSearchIndex) { + var mCount = 0; + $.each(memberSearchIndex, function(index, item) { + item.category = catMembers; + var s = nestedName(item); + if (exactMatcher.test(s)) { + mresult.push(item); + mCount++; + } else if (camelCaseMatcher.test(s)) { + mresult.push(item); + } else if (secondaryMatcher.test(item.c + "." + item.l)) { + secondaryresult.push(item); + } + }); + result = result.concat(concatResults(mresult, secondaryresult)); + displayCount = (mCount > displayCount) ? mCount : displayCount; + } + if (tagSearchIndex) { + var tgCount = 0; + $.each(tagSearchIndex, function(index, item) { + item.category = catSearchTags; + if (exactMatcher.test(item.l)) { + tgresult.push(item); + tgCount++; + } else if (secondaryMatcher.test(item.l)) { + secondaryresult.push(item); + } + }); + result = result.concat(concatResults(tgresult, secondaryresult)); + displayCount = (tgCount > displayCount) ? tgCount : displayCount; + } + displayCount = (displayCount > 500) ? displayCount : 500; + var counter = function() { + var count = {Modules: 0, Packages: 0, Types: 0, Members: 0, SearchTags: 0}; + var f = function(item) { + count[item.category] += 1; + return (count[item.category] <= displayCount); + }; + return f; + }(); + response(result.filter(counter)); + }, + response: function(event, ui) { + if (!ui.content.length) { + ui.content.push(noResult); + } else { + $("#search").empty(); + } + }, + autoFocus: true, + position: { + collision: "flip" + }, + select: function(event, ui) { + if (ui.item.l !== noResult.l) { + var url = getURLPrefix(ui); + if (ui.item.category === catModules) { + if (useModuleDirectories) { + url += "module-summary.html"; + } else { + url = ui.item.l + "-summary.html"; + } + } else if (ui.item.category === catPackages) { + if (ui.item.url) { + url = ui.item.url; + } else { + url += ui.item.l.replace(/\./g, '/') + "/package-summary.html"; + } + } else if (ui.item.category === catTypes) { + if (ui.item.url) { + url = ui.item.url; + } else if (ui.item.p === "") { + url += ui.item.l + ".html"; + } else { + url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.l + ".html"; + } + } else if (ui.item.category === catMembers) { + if (ui.item.p === "") { + url += ui.item.c + ".html" + "#"; + } else { + url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.c + ".html" + "#"; + } + if (ui.item.url) { + url += ui.item.url; + } else { + url += ui.item.l; + } + } else if (ui.item.category === catSearchTags) { + url += ui.item.u; + } + if (top !== window) { + parent.classFrame.location = pathtoroot + url; + } else { + window.location.href = pathtoroot + url; + } + $("#search").focus(); + } + } + }); +}); \ No newline at end of file diff --git a/apidocs/stylesheet.css b/apidocs/stylesheet.css new file mode 100644 index 000000000..c615d2989 --- /dev/null +++ b/apidocs/stylesheet.css @@ -0,0 +1,910 @@ +/* + * Javadoc style sheet + */ + +@import url('resources/fonts/dejavu.css'); + +/* + * Styles for individual HTML elements. + * + * These are styles that are specific to individual HTML elements. Changing them affects the style of a particular + * HTML element throughout the page. + */ + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; + padding:0; + height:100%; + width:100%; +} +iframe { + margin:0; + padding:0; + height:100%; + width:100%; + overflow-y:scroll; + border:none; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a[href]:hover, a[href]:focus { + text-decoration:none; + color:#bb7a2a; +} +a[name] { + color:#353833; +} +a[name]:before, a[name]:target, a[id]:before, a[id]:target { + content:""; + display:inline-block; + position:relative; + padding-top:129px; + margin-top:-129px; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} + +/* + * Styles for HTML generated by javadoc. + * + * These are style classes that are used by the standard doclet to generate HTML documentation. + */ + +/* + * Styles for document title and copyright. + */ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* + * Styles for navigation bar. + */ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.navPadding { + padding-top: 107px; +} +.fixedNav { + position:fixed; + width:100%; + z-index:999; + background-color:#ffffff; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.navListSearch { + float:right; + margin:0 0 0 0; + padding:0; +} +ul.navListSearch li { + list-style:none; + float:right; + padding: 5px 6px; + text-transform:uppercase; +} +ul.navListSearch li label { + position:relative; + right:-16px; +} +ul.subNavList li { + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* + * Styles for page header and footer. + */ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexNav { + position:relative; + font-size:12px; + background-color:#dee3e9; +} +.indexNav ul { + margin-top:0; + padding:5px; +} +.indexNav ul li { + display:inline; + list-style-type:none; + padding-right:10px; + text-transform:uppercase; +} +.indexNav h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* + * Styles for headings. + */ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* + * Styles for page layout containers. + */ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer, +.allClassesContainer, .allPackagesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* + * Styles for lists. + */ +li.circle { + list-style:circle; +} +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* + * Styles for tables. + */ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary, +.requiresSummary, .packagesSummary, .providesSummary, .usesSummary { + width:100%; + border-spacing:0; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary, .requiresSummary, .packagesSummary, .providesSummary, .usesSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption, +.requiresSummary caption, .packagesSummary caption, .providesSummary caption, .usesSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.constantsSummary caption a:link, .constantsSummary caption a:visited, +.useSummary caption a:link, .useSummary caption a:visited { + color:#1f389c; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.deprecatedSummary caption a:link, +.requiresSummary caption a:link, .packagesSummary caption a:link, .providesSummary caption a:link, +.usesSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.requiresSummary caption a:hover, .packagesSummary caption a:hover, .providesSummary caption a:hover, +.usesSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.requiresSummary caption a:active, .packagesSummary caption a:active, .providesSummary caption a:active, +.usesSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.deprecatedSummary caption a:visited, +.requiresSummary caption a:visited, .packagesSummary caption a:visited, .providesSummary caption a:visited, +.usesSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span, +.requiresSummary caption span, .packagesSummary caption span, .providesSummary caption span, +.usesSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span, .packagesSummary caption span.activeTableTab span, +.overviewSummary caption span.activeTableTab span, .typeSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span, .packagesSummary caption span.tableTab span, +.overviewSummary caption span.tableTab span, .typeSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab, +.packagesSummary caption span.tableTab, .packagesSummary caption span.activeTableTab, +.overviewSummary caption span.tableTab, .overviewSummary caption span.activeTableTab, +.typeSummary caption span.tableTab, .typeSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd, +.requiresSummary .tabEnd, .packagesSummary .tabEnd, .providesSummary .tabEnd, .usesSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd, .packagesSummary .activeTableTab .tabEnd, +.overviewSummary .activeTableTab .tabEnd, .typeSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd, .packagesSummary .tableTab .tabEnd, +.overviewSummary .tableTab .tabEnd, .typeSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; +} +.rowColor th, .altColor th { + font-weight:normal; +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td, +.requiresSummary td, .packagesSummary td, .providesSummary td, .usesSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colFirst, th.colSecond, th.colLast, th.colConstructorName, th.colDeprecatedItemName, .useSummary th, +.constantsSummary th, .packagesSummary th, td.colFirst, td.colSecond, td.colLast, .useSummary td, +.constantsSummary td { + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colSecond, th.colLast, th.colConstructorName, th.colDeprecatedItemName, .constantsSummary th, +.packagesSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + font-size:13px; +} +td.colSecond, th.colSecond, td.colLast, th.colConstructorName, th.colDeprecatedItemName, th.colLast { + font-size:13px; +} +.constantsSummary th, .packagesSummary th { + font-size:13px; +} +.providesSummary th.colFirst, .providesSummary th.colLast, .providesSummary td.colFirst, +.providesSummary td.colLast { + white-space:normal; + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.requiresSummary td.colFirst, .requiresSummary th.colFirst, +.packagesSummary td.colFirst, .packagesSummary td.colSecond, .packagesSummary th.colFirst, .packagesSummary th, +.usesSummary td.colFirst, .usesSummary th.colFirst, +.providesSummary td.colFirst, .providesSummary th.colFirst, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colSecond, .memberSummary th.colSecond, .memberSummary th.colConstructorName, +.typeSummary td.colFirst, .typeSummary th.colFirst { + vertical-align:top; +} +.packagesSummary th.colLast, .packagesSummary td.colLast { + white-space:normal; +} +td.colFirst a:link, td.colFirst a:visited, +td.colSecond a:link, td.colSecond a:visited, +th.colFirst a:link, th.colFirst a:visited, +th.colSecond a:link, th.colSecond a:visited, +th.colConstructorName a:link, th.colConstructorName a:visited, +th.colDeprecatedItemName a:link, th.colDeprecatedItemName a:visited, +.constantValuesContainer td a:link, .constantValuesContainer td a:visited, +.allClassesContainer td a:link, .allClassesContainer td a:visited, +.allPackagesContainer td a:link, .allPackagesContainer td a:visited { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor, .altColor th { + background-color:#FFFFFF; +} +.rowColor, .rowColor th { + background-color:#EEEEEF; +} +/* + * Styles for contents. + */ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} +td.colLast div { + padding-top:0px; +} +td.colLast a { + padding-bottom:3px; +} +/* + * Styles for formatting effect. + */ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .implementationLabel, .memberNameLabel, .memberNameLink, +.moduleLabelInPackage, .moduleLabelInType, .overrideSpecifyLabel, .packageLabelInType, +.packageHierarchyLabel, .paramLabel, .returnLabel, .seeLabel, .simpleTagLabel, +.throwsLabel, .typeNameLabel, .typeNameLink, .searchTagLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} +.deprecationBlock { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; + border-style:solid; + border-width:thin; + border-radius:10px; + padding:10px; + margin-bottom:10px; + margin-right:10px; + display:inline-block; +} +div.block div.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} +div.contentContainer ul.blockList li.blockList h2 { + padding-bottom:0px; +} +/* + * Styles for IFRAME. + */ +.mainContainer { + margin:0 auto; + padding:0; + height:100%; + width:100%; + position:fixed; + top:0; + left:0; +} +.leftContainer { + height:100%; + position:fixed; + width:320px; +} +.leftTop { + position:relative; + float:left; + width:315px; + top:0; + left:0; + height:30%; + border-right:6px solid #ccc; + border-bottom:6px solid #ccc; +} +.leftBottom { + position:relative; + float:left; + width:315px; + bottom:0; + left:0; + height:70%; + border-right:6px solid #ccc; + border-top:1px solid #000; +} +.rightContainer { + position:absolute; + left:320px; + top:0; + bottom:0; + height:100%; + right:0; + border-left:1px solid #000; +} +.rightIframe { + margin:0; + padding:0; + height:100%; + right:30px; + width:100%; + overflow:visible; + margin-bottom:30px; +} +/* + * Styles specific to HTML5 elements. + */ +main, nav, header, footer, section { + display:block; +} +/* + * Styles for javadoc search. + */ +.ui-autocomplete-category { + font-weight:bold; + font-size:15px; + padding:7px 0 7px 3px; + background-color:#4D7A97; + color:#FFFFFF; +} +.resultItem { + font-size:13px; +} +.ui-autocomplete { + max-height:85%; + max-width:65%; + overflow-y:scroll; + overflow-x:scroll; + white-space:nowrap; + box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); +} +ul.ui-autocomplete { + position:fixed; + z-index:999999; + background-color: #FFFFFF; +} +ul.ui-autocomplete li { + float:left; + clear:both; + width:100%; +} +.resultHighlight { + font-weight:bold; +} +.ui-autocomplete .result-item { + font-size: inherit; +} +#search { + background-image:url('resources/glass.png'); + background-size:13px; + background-repeat:no-repeat; + background-position:2px 3px; + padding-left:20px; + position:relative; + right:-18px; +} +#reset { + background-color: rgb(255,255,255); + background-image:url('resources/x.png'); + background-position:center; + background-repeat:no-repeat; + background-size:12px; + border:0 none; + width:16px; + height:17px; + position:relative; + left:-4px; + top:-4px; + font-size:0px; +} +.watermark { + color:#545454; +} +.searchTagDescResult { + font-style:italic; + font-size:11px; +} +.searchTagHolderResult { + font-style:italic; + font-size:12px; +} +.searchTagResult:before, .searchTagResult:target { + color:red; +} +.moduleGraph span { + display:none; + position:absolute; +} +.moduleGraph:hover span { + display:block; + margin: -100px 0 0 100px; + z-index: 1; +} +.methodSignature { + white-space:normal; +} + +/* + * Styles for user-provided tables. + * + * borderless: + * No borders, vertical margins, styled caption. + * This style is provided for use with existing doc comments. + * In general, borderless tables should not be used for layout purposes. + * + * plain: + * Plain borders around table and cells, vertical margins, styled caption. + * Best for small tables or for complex tables for tables with cells that span + * rows and columns, when the "striped" style does not work well. + * + * striped: + * Borders around the table and vertical borders between cells, striped rows, + * vertical margins, styled caption. + * Best for tables that have a header row, and a body containing a series of simple rows. + */ + +table.borderless, +table.plain, +table.striped { + margin-top: 10px; + margin-bottom: 10px; +} +table.borderless > caption, +table.plain > caption, +table.striped > caption { + font-weight: bold; + font-size: smaller; +} +table.borderless th, table.borderless td, +table.plain th, table.plain td, +table.striped th, table.striped td { + padding: 2px 5px; +} +table.borderless, +table.borderless > thead > tr > th, table.borderless > tbody > tr > th, table.borderless > tr > th, +table.borderless > thead > tr > td, table.borderless > tbody > tr > td, table.borderless > tr > td { + border: none; +} +table.borderless > thead > tr, table.borderless > tbody > tr, table.borderless > tr { + background-color: transparent; +} +table.plain { + border-collapse: collapse; + border: 1px solid black; +} +table.plain > thead > tr, table.plain > tbody tr, table.plain > tr { + background-color: transparent; +} +table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, +table.plain > thead > tr > td, table.plain > tbody > tr > td, table.plain > tr > td { + border: 1px solid black; +} +table.striped { + border-collapse: collapse; + border: 1px solid black; +} +table.striped > thead { + background-color: #E3E3E3; +} +table.striped > thead > tr > th, table.striped > thead > tr > td { + border: 1px solid black; +} +table.striped > tbody > tr:nth-child(even) { + background-color: #EEE +} +table.striped > tbody > tr:nth-child(odd) { + background-color: #FFF +} +table.striped > tbody > tr > th, table.striped > tbody > tr > td { + border-left: 1px solid black; + border-right: 1px solid black; +} +table.striped > tbody > tr > th { + font-weight: normal; +} \ No newline at end of file diff --git a/apidocs/type-search-index.js b/apidocs/type-search-index.js new file mode 100644 index 000000000..036392388 --- /dev/null +++ b/apidocs/type-search-index.js @@ -0,0 +1 @@ +typeSearchIndex = [{"p":"io.github.hapjava.characteristics.impl.accessoryinformation","l":"AccessoryFlagsCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.accessoryinformation","l":"AccessoryFlagsEnum"},{"p":"io.github.hapjava.services.impl","l":"AccessoryInformationService"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithAccessoryFlags"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithActive"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithAirPlayEnable"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithBrightness"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithCarbonDioxideLevel"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithCarbonMonoxideLevel"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithClosedCaptions"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithColor"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithColorTemperature"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithConfiguredName"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithCoolingThresholdTemperature"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithCurrentHorizontalTilting"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithCurrentMediaState"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithCurrentRelativeHumidity"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithCurrentTilting"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithCurrentVerticalTilting"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithDuration"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithFanState"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithFilterLifeLevel"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithHardwareRevision"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithHeatingThresholdTemperature"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithHoldPosition"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithHumidityDehumidifierThreshold"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithHumidityHumidifierThreshold"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithIdentifier"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithInputDeviceType"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithIsConfigured"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithLockCurrentState"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithLockTargetState"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithMute"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithName"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithNitrogenDioxideDensity"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithObstructionDetection"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithOzoneDensity"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithPhysicalControlsLock"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithPictureMode"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithPM10Density"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithPM25Density"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithPowerMode"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithRemainingDuration"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithResetFilterIndication"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithRotationDirection"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithRotationSpeed"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithSecurityAlarmType"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithServiceLabelIndex"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithStatusActive"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithStatusFault"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithStatusLowBattery"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithStatusTampered"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithSulphurDioxideDensity"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithSwingMode"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithTargetHorizontalTilting"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithTargetMediaState"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithTargetRelativeHumidity"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithTargetTilting"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithTargetVerticalTilting"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithTargetVisibilityState"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithTemperatureDisplayUnits"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithVerticalTilting"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithVOCDensity"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithVolume"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithVolumeControlType"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithVolumeSelector"},{"p":"io.github.hapjava.accessories.optionalcharacteristic","l":"AccessoryWithWaterLevel"},{"p":"io.github.hapjava.characteristics.impl.common","l":"ActiveCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"ActiveEnum"},{"p":"io.github.hapjava.characteristics.impl.common","l":"ActiveIdentifierCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"AirPlayEnableCharacteristic"},{"p":"io.github.hapjava.accessories","l":"AirPurifierAccessory"},{"p":"io.github.hapjava.services.impl","l":"AirPurifierService"},{"p":"io.github.hapjava.accessories","l":"AirQualityAccessory"},{"p":"io.github.hapjava.characteristics.impl.airquality","l":"AirQualityCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.airquality","l":"AirQualityEnum"},{"p":"io.github.hapjava.services.impl","l":"AirQualityService"},{"l":"All Classes","url":"allclasses-index.html"},{"p":"io.github.hapjava.characteristics.impl.base","l":"BaseCharacteristic"},{"p":"io.github.hapjava.accessories","l":"BasicFanAccessory"},{"p":"io.github.hapjava.services.impl","l":"BasicFanService"},{"p":"io.github.hapjava.accessories","l":"BatteryAccessory"},{"p":"io.github.hapjava.characteristics.impl.battery","l":"BatteryLevelCharacteristic"},{"p":"io.github.hapjava.services.impl","l":"BatteryService"},{"p":"io.github.hapjava.characteristics.impl.base","l":"BooleanCharacteristic"},{"p":"io.github.hapjava.accessories","l":"Bridge"},{"p":"io.github.hapjava.characteristics.impl.lightbulb","l":"BrightnessCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.carbondioxidesensor","l":"CarbonDioxideDetectedCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.carbondioxidesensor","l":"CarbonDioxideDetectedEnum"},{"p":"io.github.hapjava.characteristics.impl.carbondioxidesensor","l":"CarbonDioxideLevelCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.carbondioxidesensor","l":"CarbonDioxidePeakLevelCharacteristic"},{"p":"io.github.hapjava.accessories","l":"CarbonDioxideSensorAccessory"},{"p":"io.github.hapjava.services.impl","l":"CarbonDioxideSensorService"},{"p":"io.github.hapjava.characteristics.impl.carbonmonoxidesensor","l":"CarbonMonoxideDetectedCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.carbonmonoxidesensor","l":"CarbonMonoxideDetectedEnum"},{"p":"io.github.hapjava.characteristics.impl.carbonmonoxidesensor","l":"CarbonMonoxideLevelCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.carbonmonoxidesensor","l":"CarbonMonoxidePeakLevelCharacteristic"},{"p":"io.github.hapjava.accessories","l":"CarbonMonoxideSensorAccessory"},{"p":"io.github.hapjava.services.impl","l":"CarbonMonoxideSensorService"},{"p":"io.github.hapjava.characteristics","l":"Characteristic"},{"p":"io.github.hapjava.characteristics","l":"CharacteristicEnum"},{"p":"io.github.hapjava.characteristics.impl.battery","l":"ChargingStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.battery","l":"ChargingStateEnum"},{"p":"io.github.hapjava.characteristics.impl.television","l":"ClosedCaptionsCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.television","l":"ClosedCaptionsEnum"},{"p":"io.github.hapjava.characteristics.impl.lightbulb","l":"ColorTemperatureCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"ConfiguredNameCharacteristic"},{"p":"io.github.hapjava.accessories","l":"ContactSensorAccessory"},{"p":"io.github.hapjava.services.impl","l":"ContactSensorService"},{"p":"io.github.hapjava.characteristics.impl.contactsensor","l":"ContactSensorStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.contactsensor","l":"ContactStateEnum"},{"p":"io.github.hapjava.characteristics.impl.thermostat","l":"CoolingThresholdTemperatureCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.airpurifier","l":"CurrentAirPurifierCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.airpurifier","l":"CurrentAirPurifierStateEnum"},{"p":"io.github.hapjava.characteristics.impl.lightsensor","l":"CurrentAmbientLightLevelCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.garagedoor","l":"CurrentDoorStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.garagedoor","l":"CurrentDoorStateEnum"},{"p":"io.github.hapjava.characteristics.impl.fan","l":"CurrentFanStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.fan","l":"CurrentFanStateEnum"},{"p":"io.github.hapjava.characteristics.impl.heatercooler","l":"CurrentHeaterCoolerStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.heatercooler","l":"CurrentHeaterCoolerStateEnum"},{"p":"io.github.hapjava.characteristics.impl.thermostat","l":"CurrentHeatingCoolingStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.thermostat","l":"CurrentHeatingCoolingStateEnum"},{"p":"io.github.hapjava.characteristics.impl.windowcovering","l":"CurrentHorizontalTiltAngleCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.humidifier","l":"CurrentHumidifierDehumidifierStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.humidifier","l":"CurrentHumidifierDehumidifierStateEnum"},{"p":"io.github.hapjava.characteristics.impl.television","l":"CurrentMediaStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.television","l":"CurrentMediaStateEnum"},{"p":"io.github.hapjava.characteristics.impl.windowcovering","l":"CurrentPositionCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.humiditysensor","l":"CurrentRelativeHumidityCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.securitysystem","l":"CurrentSecuritySystemStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.securitysystem","l":"CurrentSecuritySystemStateEnum"},{"p":"io.github.hapjava.characteristics.impl.slat","l":"CurrentSlatStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.slat","l":"CurrentSlatStateEnum"},{"p":"io.github.hapjava.characteristics.impl.thermostat","l":"CurrentTemperatureCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.slat","l":"CurrentTiltAngleCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.windowcovering","l":"CurrentVerticalTiltAngleCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.inputsource","l":"CurrentVisibilityStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.inputsource","l":"CurrentVisibilityStateEnum"},{"p":"io.github.hapjava.accessories","l":"DoorAccessory"},{"p":"io.github.hapjava.accessories","l":"DoorbellAccessory"},{"p":"io.github.hapjava.services.impl","l":"DoorbellService"},{"p":"io.github.hapjava.services.impl","l":"DoorService"},{"p":"io.github.hapjava.characteristics.impl.base","l":"EnumCharacteristic"},{"p":"io.github.hapjava.characteristics","l":"EventableCharacteristic"},{"p":"io.github.hapjava.characteristics","l":"ExceptionalConsumer"},{"p":"io.github.hapjava.accessories","l":"FanAccessory"},{"p":"io.github.hapjava.services.impl","l":"FanService"},{"p":"io.github.hapjava.accessories","l":"FaucetAccessory"},{"p":"io.github.hapjava.services.impl","l":"FaucetService"},{"p":"io.github.hapjava.characteristics.impl.filtermaintenance","l":"FilterChangeIndicationCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.filtermaintenance","l":"FilterChangeIndicationEnum"},{"p":"io.github.hapjava.characteristics.impl.filtermaintenance","l":"FilterLifeLevelCharacteristic"},{"p":"io.github.hapjava.accessories","l":"FilterMaintenanceAccessory"},{"p":"io.github.hapjava.services.impl","l":"FilterMaintenanceService"},{"p":"io.github.hapjava.characteristics.impl.accessoryinformation","l":"FirmwareRevisionCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.base","l":"FloatCharacteristic"},{"p":"io.github.hapjava.accessories","l":"GarageDoorOpenerAccessory"},{"p":"io.github.hapjava.services.impl","l":"GarageDoorOpenerService"},{"p":"io.github.hapjava.services.impl","l":"HAPProtocolInformationService"},{"p":"io.github.hapjava.characteristics.impl.accessoryinformation","l":"HardwareRevisionCharacteristic"},{"p":"io.github.hapjava.accessories","l":"HeaterCoolerAccessory"},{"p":"io.github.hapjava.services.impl","l":"HeaterCoolerService"},{"p":"io.github.hapjava.characteristics.impl.thermostat","l":"HeatingThresholdTemperatureCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.windowcovering","l":"HoldPositionCharacteristic"},{"p":"io.github.hapjava.accessories","l":"HomekitAccessory"},{"p":"io.github.hapjava.server","l":"HomekitAccessoryCategories"},{"p":"io.github.hapjava.server","l":"HomekitAuthInfo"},{"p":"io.github.hapjava.characteristics","l":"HomekitCharacteristicChangeCallback"},{"p":"io.github.hapjava.server","l":"HomekitWebHandler"},{"p":"io.github.hapjava.characteristics.impl.lightbulb","l":"HueCharacteristic"},{"p":"io.github.hapjava.accessories","l":"HumidifierDehumidifierAccessory"},{"p":"io.github.hapjava.services.impl","l":"HumidifierDehumidifierService"},{"p":"io.github.hapjava.characteristics.impl.humidifier","l":"HumidityDehumidifierThresholdCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.humidifier","l":"HumidityHumidifierThresholdCharacteristic"},{"p":"io.github.hapjava.accessories","l":"HumiditySensorAccessory"},{"p":"io.github.hapjava.services.impl","l":"HumiditySensorService"},{"p":"io.github.hapjava.characteristics.impl.common","l":"IdentifierCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.accessoryinformation","l":"IdentifyCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.inputsource","l":"InputDeviceTypeCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.inputsource","l":"InputDeviceTypeEnum"},{"p":"io.github.hapjava.accessories","l":"InputSourceAccessory"},{"p":"io.github.hapjava.services.impl","l":"InputSourceService"},{"p":"io.github.hapjava.characteristics.impl.inputsource","l":"InputSourceTypeCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.inputsource","l":"InputSourceTypeEnum"},{"p":"io.github.hapjava.characteristics.impl.base","l":"IntegerCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"InUseCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"InUseEnum"},{"p":"io.github.hapjava.accessories","l":"IrrigationSystemAccessory"},{"p":"io.github.hapjava.services.impl","l":"IrrigationSystemService"},{"p":"io.github.hapjava.characteristics.impl.common","l":"IsConfiguredCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"IsConfiguredEnum"},{"p":"io.github.hapjava.characteristics.impl.leaksensor","l":"LeakDetectedStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.leaksensor","l":"LeakDetectedStateEnum"},{"p":"io.github.hapjava.accessories","l":"LeakSensorAccessory"},{"p":"io.github.hapjava.services.impl","l":"LeakSensorService"},{"p":"io.github.hapjava.accessories","l":"LightbulbAccessory"},{"p":"io.github.hapjava.services.impl","l":"LightbulbService"},{"p":"io.github.hapjava.accessories","l":"LightSensorAccessory"},{"p":"io.github.hapjava.services.impl","l":"LightSensorService"},{"p":"io.github.hapjava.characteristics.impl.lock","l":"LockCurrentStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.lock","l":"LockCurrentStateEnum"},{"p":"io.github.hapjava.accessories","l":"LockMechanismAccessory"},{"p":"io.github.hapjava.services.impl","l":"LockMechanismService"},{"p":"io.github.hapjava.characteristics.impl.fan","l":"LockPhysicalControlsCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.fan","l":"LockPhysicalControlsEnum"},{"p":"io.github.hapjava.characteristics.impl.lock","l":"LockTargetStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.lock","l":"LockTargetStateEnum"},{"p":"io.github.hapjava.characteristics.impl.accessoryinformation","l":"ManufacturerCharacteristic"},{"p":"io.github.hapjava.accessories","l":"MicrophoneAccessory"},{"p":"io.github.hapjava.services.impl","l":"MicrophoneService"},{"p":"io.github.hapjava.characteristics.impl.accessoryinformation","l":"ModelCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.motionsensor","l":"MotionDetectedCharacteristic"},{"p":"io.github.hapjava.accessories","l":"MotionSensorAccessory"},{"p":"io.github.hapjava.services.impl","l":"MotionSensorService"},{"p":"io.github.hapjava.characteristics.impl.audio","l":"MuteCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"NameCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.airquality","l":"NitrogenDioxideDensityCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"ObstructionDetectedCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.occupancysensor","l":"OccupancyDetectedCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.occupancysensor","l":"OccupancyDetectedEnum"},{"p":"io.github.hapjava.accessories","l":"OccupancySensorAccessory"},{"p":"io.github.hapjava.services.impl","l":"OccupancySensorService"},{"p":"io.github.hapjava.characteristics.impl.common","l":"OnCharacteristic"},{"p":"io.github.hapjava.accessories","l":"OutletAccessory"},{"p":"io.github.hapjava.characteristics.impl.outlet","l":"OutletInUseCharacteristic"},{"p":"io.github.hapjava.services.impl","l":"OutletService"},{"p":"io.github.hapjava.characteristics.impl.airquality","l":"OzoneDensityCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.television","l":"PictureModeCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.television","l":"PictureModeEnum"},{"p":"io.github.hapjava.characteristics.impl.airquality","l":"PM10DensityCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.airquality","l":"PM25DensityCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.windowcovering","l":"PositionStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.windowcovering","l":"PositionStateEnum"},{"p":"io.github.hapjava.characteristics.impl.television","l":"PowerModeCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.television","l":"PowerModeEnum"},{"p":"io.github.hapjava.characteristics.impl.common","l":"ProgrammableSwitchEnum"},{"p":"io.github.hapjava.characteristics.impl.common","l":"ProgrammableSwitchEventCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"ProgramModeCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"ProgramModeEnum"},{"p":"io.github.hapjava.characteristics.impl.valve","l":"RemainingDurationCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.television","l":"RemoteKeyCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.television","l":"RemoteKeyEnum"},{"p":"io.github.hapjava.characteristics.impl.filtermaintenance","l":"ResetFilterIndicationCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.fan","l":"RotationDirectionCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.fan","l":"RotationDirectionEnum"},{"p":"io.github.hapjava.characteristics.impl.fan","l":"RotationSpeedCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.lightbulb","l":"SaturationCharacteristic"},{"p":"io.github.hapjava.accessories","l":"SecuritySystemAccessory"},{"p":"io.github.hapjava.characteristics.impl.securitysystem","l":"SecuritySystemAlarmTypeCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.securitysystem","l":"SecuritySystemAlarmTypeEnum"},{"p":"io.github.hapjava.services.impl","l":"SecuritySystemService"},{"p":"io.github.hapjava.characteristics.impl.accessoryinformation","l":"SerialNumberCharacteristic"},{"p":"io.github.hapjava.services","l":"Service"},{"p":"io.github.hapjava.characteristics.impl.common","l":"ServiceLabelIndexCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"ServiceLabelNamespaceCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"ServiceLabelNamespaceEnum"},{"p":"io.github.hapjava.services.impl","l":"ServiceLabelService"},{"p":"io.github.hapjava.characteristics.impl.valve","l":"SetDurationCharacteristic"},{"p":"io.github.hapjava.accessories","l":"SlatAccessory"},{"p":"io.github.hapjava.services.impl","l":"SlatService"},{"p":"io.github.hapjava.characteristics.impl.slat","l":"SlatTypeCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.slat","l":"SlatTypeEnum"},{"p":"io.github.hapjava.characteristics.impl.television","l":"SleepDiscoveryModeCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.television","l":"SleepDiscoveryModeEnum"},{"p":"io.github.hapjava.accessories","l":"SmartSpeakerAccessory"},{"p":"io.github.hapjava.services.impl","l":"SmartSpeakerService"},{"p":"io.github.hapjava.characteristics.impl.smokesensor","l":"SmokeDetectedCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.smokesensor","l":"SmokeDetectedStateEnum"},{"p":"io.github.hapjava.accessories","l":"SmokeSensorAccessory"},{"p":"io.github.hapjava.services.impl","l":"SmokeSensorService"},{"p":"io.github.hapjava.accessories","l":"SpeakerAccessory"},{"p":"io.github.hapjava.services.impl","l":"SpeakerService"},{"p":"io.github.hapjava.accessories","l":"StatelessProgrammableSwitchAccessory"},{"p":"io.github.hapjava.services.impl","l":"StatelessProgrammableSwitchService"},{"p":"io.github.hapjava.characteristics.impl.base","l":"StaticStringCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"StatusActiveCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"StatusFaultCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"StatusFaultEnum"},{"p":"io.github.hapjava.characteristics.impl.battery","l":"StatusLowBatteryCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.battery","l":"StatusLowBatteryEnum"},{"p":"io.github.hapjava.characteristics.impl.common","l":"StatusTamperedCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.common","l":"StatusTamperedEnum"},{"p":"io.github.hapjava.characteristics.impl.base","l":"StringCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.airquality","l":"SulphurDioxideDensityCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.fan","l":"SwingModeCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.fan","l":"SwingModeEnum"},{"p":"io.github.hapjava.accessories","l":"SwitchAccessory"},{"p":"io.github.hapjava.services.impl","l":"SwitchService"},{"p":"io.github.hapjava.characteristics.impl.airpurifier","l":"TargetAirPurifierStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.airpurifier","l":"TargetAirPurifierStateEnum"},{"p":"io.github.hapjava.characteristics.impl.garagedoor","l":"TargetDoorStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.garagedoor","l":"TargetDoorStateEnum"},{"p":"io.github.hapjava.characteristics.impl.fan","l":"TargetFanStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.fan","l":"TargetFanStateEnum"},{"p":"io.github.hapjava.characteristics.impl.heatercooler","l":"TargetHeaterCoolerStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.heatercooler","l":"TargetHeaterCoolerStateEnum"},{"p":"io.github.hapjava.characteristics.impl.thermostat","l":"TargetHeatingCoolingStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.thermostat","l":"TargetHeatingCoolingStateEnum"},{"p":"io.github.hapjava.characteristics.impl.windowcovering","l":"TargetHorizontalTiltAngleCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.humidifier","l":"TargetHumidifierDehumidifierStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.humidifier","l":"TargetHumidifierDehumidifierStateEnum"},{"p":"io.github.hapjava.characteristics.impl.television","l":"TargetMediaStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.television","l":"TargetMediaStateEnum"},{"p":"io.github.hapjava.characteristics.impl.windowcovering","l":"TargetPositionCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.humiditysensor","l":"TargetRelativeHumidityCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.securitysystem","l":"TargetSecuritySystemStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.securitysystem","l":"TargetSecuritySystemStateEnum"},{"p":"io.github.hapjava.characteristics.impl.thermostat","l":"TargetTemperatureCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.slat","l":"TargetTiltAngleCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.windowcovering","l":"TargetVerticalTiltAngleCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.inputsource","l":"TargetVisibilityStateCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.inputsource","l":"TargetVisibilityStateEnum"},{"p":"io.github.hapjava.accessories","l":"TelevisionAccessory"},{"p":"io.github.hapjava.services.impl","l":"TelevisionService"},{"p":"io.github.hapjava.accessories","l":"TelevisionSpeakerAccessory"},{"p":"io.github.hapjava.services.impl","l":"TelevisionSpeakerService"},{"p":"io.github.hapjava.characteristics.impl.thermostat","l":"TemperatureDisplayUnitCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.thermostat","l":"TemperatureDisplayUnitEnum"},{"p":"io.github.hapjava.accessories","l":"TemperatureSensorAccessory"},{"p":"io.github.hapjava.services.impl","l":"TemperatureSensorService"},{"p":"io.github.hapjava.accessories","l":"ThermostatAccessory"},{"p":"io.github.hapjava.services.impl","l":"ThermostatService"},{"p":"io.github.hapjava.accessories","l":"ValveAccessory"},{"p":"io.github.hapjava.services.impl","l":"ValveService"},{"p":"io.github.hapjava.characteristics.impl.valve","l":"ValveTypeCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.valve","l":"ValveTypeEnum"},{"p":"io.github.hapjava.characteristics.impl.common","l":"VersionCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.airquality","l":"VOCDensityCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.audio","l":"VolumeCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.televisionspeaker","l":"VolumeControlTypeCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.televisionspeaker","l":"VolumeControlTypeEnum"},{"p":"io.github.hapjava.characteristics.impl.televisionspeaker","l":"VolumeSelectorCharacteristic"},{"p":"io.github.hapjava.characteristics.impl.televisionspeaker","l":"VolumeSelectorEnum"},{"p":"io.github.hapjava.characteristics.impl.common","l":"WaterLavelCharacteristic"},{"p":"io.github.hapjava.accessories","l":"WindowAccessory"},{"p":"io.github.hapjava.accessories","l":"WindowCoveringAccessory"},{"p":"io.github.hapjava.services.impl","l":"WindowCoveringService"},{"p":"io.github.hapjava.services.impl","l":"WindowService"}] \ No newline at end of file diff --git a/apidocs/type-search-index.zip b/apidocs/type-search-index.zip new file mode 100644 index 000000000..7ccf4aace Binary files /dev/null and b/apidocs/type-search-index.zip differ diff --git a/cpd.html b/cpd.html new file mode 100644 index 000000000..793c15bd2 --- /dev/null +++ b/cpd.html @@ -0,0 +1,1146 @@ + + + + + + hap-java – CPD Results + + + + + + + + +
    + +
    +
    +
    +
    +

    CPD Results

    +

    The following document contains the results of PMD's CPD 5.3.5.

    +
    +

    Duplications

    + + + + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/ContactSensorService.java29
    io/github/hapjava/services/impl/HumiditySensorService.java30
    io/github/hapjava/services/impl/LeakSensorService.java29
    +
    +
                accessory::unsubscribeContactState));
    +
    +    if (accessory instanceof AccessoryWithStatusActive) {
    +      addOptionalCharacteristic(
    +          new StatusActiveCharacteristic(
    +              ((AccessoryWithStatusActive) accessory)::getStatusActive,
    +              ((AccessoryWithStatusActive) accessory)::subscribeStatusActive,
    +              ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive));
    +    }
    +    if (accessory instanceof AccessoryWithName) {
    +      addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +    if (accessory instanceof AccessoryWithStatusFault) {
    +      addOptionalCharacteristic(
    +          new StatusFaultCharacteristic(
    +              ((AccessoryWithStatusFault) accessory)::getStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::subscribeStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault));
    +    }
    +    if (accessory instanceof AccessoryWithStatusTampered) {
    +      addOptionalCharacteristic(
    +          new StatusTamperedCharacteristic(
    +              ((AccessoryWithStatusTampered) accessory)::getStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered));
    +    }
    +    if (accessory instanceof AccessoryWithStatusLowBattery) {
    +      addOptionalCharacteristic(
    +          new StatusLowBatteryCharacteristic(
    +              ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery));
    +    }
    +  }
    +
    +  public void addOptionalCharacteristic(NameCharacteristic name) {
    +    addCharacteristic(name);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) {
    +    addCharacteristic(statusActive);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) {
    +    addCharacteristic(statusFault);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) {
    +    addCharacteristic(statusTampered);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) {
    +    addCharacteristic(statusLowBattery);
    +  }
    +}
    + + + + + + + + + + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/LightSensorService.java32
    io/github/hapjava/services/impl/MotionSensorService.java29
    io/github/hapjava/services/impl/OccupancySensorService.java29
    io/github/hapjava/services/impl/SmokeSensorService.java29
    io/github/hapjava/services/impl/TemperatureSensorService.java33
    +
    +
                accessory::unsubscribeCurrentAmbientLightLevel));
    +
    +    if (accessory instanceof AccessoryWithName) {
    +      addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +    if (accessory instanceof AccessoryWithStatusActive) {
    +      addOptionalCharacteristic(
    +          new StatusActiveCharacteristic(
    +              ((AccessoryWithStatusActive) accessory)::getStatusActive,
    +              ((AccessoryWithStatusActive) accessory)::subscribeStatusActive,
    +              ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive));
    +    }
    +    if (accessory instanceof AccessoryWithStatusFault) {
    +      addOptionalCharacteristic(
    +          new StatusFaultCharacteristic(
    +              ((AccessoryWithStatusFault) accessory)::getStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::subscribeStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault));
    +    }
    +    if (accessory instanceof AccessoryWithStatusTampered) {
    +      addOptionalCharacteristic(
    +          new StatusTamperedCharacteristic(
    +              ((AccessoryWithStatusTampered) accessory)::getStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered));
    +    }
    +    if (accessory instanceof AccessoryWithStatusLowBattery) {
    +      addOptionalCharacteristic(
    +          new StatusLowBatteryCharacteristic(
    +              ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery));
    +    }
    +  }
    +
    +  public void addOptionalCharacteristic(NameCharacteristic name) {
    +    addCharacteristic(name);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) {
    +    addCharacteristic(statusActive);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) {
    +    addCharacteristic(statusFault);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) {
    +    addCharacteristic(statusTampered);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) {
    +    addCharacteristic(statusLowBattery);
    +  }
    +}
    + + + + + + + + + + + + + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/CarbonDioxideSensorService.java53
    io/github/hapjava/services/impl/LightSensorService.java34
    io/github/hapjava/services/impl/MotionSensorService.java30
    io/github/hapjava/services/impl/OccupancySensorService.java30
    io/github/hapjava/services/impl/SmokeSensorService.java30
    io/github/hapjava/services/impl/TemperatureSensorService.java34
    +
    +
        if (accessory instanceof AccessoryWithName) {
    +      addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +    if (accessory instanceof AccessoryWithStatusActive) {
    +      addOptionalCharacteristic(
    +          new StatusActiveCharacteristic(
    +              ((AccessoryWithStatusActive) accessory)::getStatusActive,
    +              ((AccessoryWithStatusActive) accessory)::subscribeStatusActive,
    +              ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive));
    +    }
    +    if (accessory instanceof AccessoryWithStatusFault) {
    +      addOptionalCharacteristic(
    +          new StatusFaultCharacteristic(
    +              ((AccessoryWithStatusFault) accessory)::getStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::subscribeStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault));
    +    }
    +    if (accessory instanceof AccessoryWithStatusTampered) {
    +      addOptionalCharacteristic(
    +          new StatusTamperedCharacteristic(
    +              ((AccessoryWithStatusTampered) accessory)::getStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered));
    +    }
    +    if (accessory instanceof AccessoryWithStatusLowBattery) {
    +      addOptionalCharacteristic(
    +          new StatusLowBatteryCharacteristic(
    +              ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery));
    +    }
    +  }
    +
    +  public void addOptionalCharacteristic(NameCharacteristic name) {
    +    addCharacteristic(name);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) {
    +    addCharacteristic(statusActive);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) {
    +    addCharacteristic(statusFault);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) {
    +    addCharacteristic(statusTampered);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) {
    +    addCharacteristic(statusLowBattery);
    +  }
    + + + + + + + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/CarbonMonoxideSensorService.java47
    io/github/hapjava/services/impl/ContactSensorService.java31
    io/github/hapjava/services/impl/HumiditySensorService.java32
    io/github/hapjava/services/impl/LeakSensorService.java31
    +
    +
        if (accessory instanceof AccessoryWithStatusActive) {
    +      addOptionalCharacteristic(
    +          new StatusActiveCharacteristic(
    +              ((AccessoryWithStatusActive) accessory)::getStatusActive,
    +              ((AccessoryWithStatusActive) accessory)::subscribeStatusActive,
    +              ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive));
    +    }
    +    if (accessory instanceof AccessoryWithName) {
    +      addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +    if (accessory instanceof AccessoryWithStatusFault) {
    +      addOptionalCharacteristic(
    +          new StatusFaultCharacteristic(
    +              ((AccessoryWithStatusFault) accessory)::getStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::subscribeStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault));
    +    }
    +    if (accessory instanceof AccessoryWithStatusTampered) {
    +      addOptionalCharacteristic(
    +          new StatusTamperedCharacteristic(
    +              ((AccessoryWithStatusTampered) accessory)::getStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered));
    +    }
    +    if (accessory instanceof AccessoryWithStatusLowBattery) {
    +      addOptionalCharacteristic(
    +          new StatusLowBatteryCharacteristic(
    +              ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery));
    +    }
    +  }
    +
    +  public void addOptionalCharacteristic(NameCharacteristic name) {
    +    addCharacteristic(name);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) {
    +    addCharacteristic(statusActive);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) {
    +    addCharacteristic(statusFault);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) {
    +    addCharacteristic(statusTampered);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) {
    +    addCharacteristic(statusLowBattery);
    +  }
    + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/CarbonDioxideSensorService.java61
    io/github/hapjava/services/impl/CarbonMonoxideSensorService.java55
    +
    +
                  ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive));
    +    }
    +    if (accessory instanceof AccessoryWithStatusFault) {
    +      addOptionalCharacteristic(
    +          new StatusFaultCharacteristic(
    +              ((AccessoryWithStatusFault) accessory)::getStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::subscribeStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault));
    +    }
    +    if (accessory instanceof AccessoryWithStatusTampered) {
    +      addOptionalCharacteristic(
    +          new StatusTamperedCharacteristic(
    +              ((AccessoryWithStatusTampered) accessory)::getStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered));
    +    }
    +    if (accessory instanceof AccessoryWithStatusLowBattery) {
    +      addOptionalCharacteristic(
    +          new StatusLowBatteryCharacteristic(
    +              ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery));
    +    }
    +  }
    +
    +  public void addOptionalCharacteristic(NameCharacteristic name) {
    +    addCharacteristic(name);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) {
    +    addCharacteristic(statusActive);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) {
    +    addCharacteristic(statusFault);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) {
    +    addCharacteristic(statusTampered);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) {
    +    addCharacteristic(statusLowBattery);
    +  }
    +
    +  public void addOptionalCharacteristic(CarbonDioxideLevelCharacteristic carbonDioxideLevel) {
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/ContactSensorService.java39
    io/github/hapjava/services/impl/HumiditySensorService.java40
    io/github/hapjava/services/impl/LeakSensorService.java39
    io/github/hapjava/services/impl/LightSensorService.java42
    io/github/hapjava/services/impl/MotionSensorService.java38
    io/github/hapjava/services/impl/OccupancySensorService.java38
    io/github/hapjava/services/impl/SmokeSensorService.java38
    io/github/hapjava/services/impl/TemperatureSensorService.java42
    +
    +
          addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +    if (accessory instanceof AccessoryWithStatusFault) {
    +      addOptionalCharacteristic(
    +          new StatusFaultCharacteristic(
    +              ((AccessoryWithStatusFault) accessory)::getStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::subscribeStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault));
    +    }
    +    if (accessory instanceof AccessoryWithStatusTampered) {
    +      addOptionalCharacteristic(
    +          new StatusTamperedCharacteristic(
    +              ((AccessoryWithStatusTampered) accessory)::getStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered));
    +    }
    +    if (accessory instanceof AccessoryWithStatusLowBattery) {
    +      addOptionalCharacteristic(
    +          new StatusLowBatteryCharacteristic(
    +              ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery));
    +    }
    +  }
    +
    +  public void addOptionalCharacteristic(NameCharacteristic name) {
    +    addCharacteristic(name);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) {
    +    addCharacteristic(statusActive);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) {
    +    addCharacteristic(statusFault);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) {
    +    addCharacteristic(statusTampered);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) {
    +    addCharacteristic(statusLowBattery);
    +  }
    +}
    + + + + + + + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/CarbonDioxideSensorService.java61
    io/github/hapjava/services/impl/ContactSensorService.java39
    io/github/hapjava/services/impl/HumiditySensorService.java40
    io/github/hapjava/services/impl/LeakSensorService.java39
    +
    +
                  ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive));
    +    }
    +    if (accessory instanceof AccessoryWithStatusFault) {
    +      addOptionalCharacteristic(
    +          new StatusFaultCharacteristic(
    +              ((AccessoryWithStatusFault) accessory)::getStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::subscribeStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault));
    +    }
    +    if (accessory instanceof AccessoryWithStatusTampered) {
    +      addOptionalCharacteristic(
    +          new StatusTamperedCharacteristic(
    +              ((AccessoryWithStatusTampered) accessory)::getStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered));
    +    }
    +    if (accessory instanceof AccessoryWithStatusLowBattery) {
    +      addOptionalCharacteristic(
    +          new StatusLowBatteryCharacteristic(
    +              ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery));
    +    }
    +  }
    +
    +  public void addOptionalCharacteristic(NameCharacteristic name) {
    +    addCharacteristic(name);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) {
    +    addCharacteristic(statusActive);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) {
    +    addCharacteristic(statusFault);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) {
    +    addCharacteristic(statusTampered);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) {
    +    addCharacteristic(statusLowBattery);
    +  }
    + + + + + + + + + + + + + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/CarbonMonoxideSensorService.java55
    io/github/hapjava/services/impl/LightSensorService.java42
    io/github/hapjava/services/impl/MotionSensorService.java38
    io/github/hapjava/services/impl/OccupancySensorService.java38
    io/github/hapjava/services/impl/SmokeSensorService.java38
    io/github/hapjava/services/impl/TemperatureSensorService.java42
    +
    +
          addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +    if (accessory instanceof AccessoryWithStatusFault) {
    +      addOptionalCharacteristic(
    +          new StatusFaultCharacteristic(
    +              ((AccessoryWithStatusFault) accessory)::getStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::subscribeStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault));
    +    }
    +    if (accessory instanceof AccessoryWithStatusTampered) {
    +      addOptionalCharacteristic(
    +          new StatusTamperedCharacteristic(
    +              ((AccessoryWithStatusTampered) accessory)::getStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered));
    +    }
    +    if (accessory instanceof AccessoryWithStatusLowBattery) {
    +      addOptionalCharacteristic(
    +          new StatusLowBatteryCharacteristic(
    +              ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery));
    +    }
    +  }
    +
    +  public void addOptionalCharacteristic(NameCharacteristic name) {
    +    addCharacteristic(name);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) {
    +    addCharacteristic(statusActive);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) {
    +    addCharacteristic(statusFault);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) {
    +    addCharacteristic(statusTampered);
    +  }
    +
    +  public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) {
    +    addCharacteristic(statusLowBattery);
    +  }
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/AirQualityService.java103
    io/github/hapjava/services/impl/CarbonDioxideSensorService.java54
    io/github/hapjava/services/impl/LightSensorService.java35
    io/github/hapjava/services/impl/MotionSensorService.java31
    io/github/hapjava/services/impl/OccupancySensorService.java31
    io/github/hapjava/services/impl/SmokeSensorService.java31
    io/github/hapjava/services/impl/TemperatureSensorService.java35
    +
    +
                  ((AccessoryWithVOCDensity) accessory)::unsubscribeVOCDensity));
    +    }
    +    if (accessory instanceof AccessoryWithStatusActive) {
    +      addOptionalCharacteristic(
    +          new StatusActiveCharacteristic(
    +              ((AccessoryWithStatusActive) accessory)::getStatusActive,
    +              ((AccessoryWithStatusActive) accessory)::subscribeStatusActive,
    +              ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive));
    +    }
    +    if (accessory instanceof AccessoryWithStatusFault) {
    +      addOptionalCharacteristic(
    +          new StatusFaultCharacteristic(
    +              ((AccessoryWithStatusFault) accessory)::getStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::subscribeStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault));
    +    }
    +    if (accessory instanceof AccessoryWithStatusTampered) {
    +      addOptionalCharacteristic(
    +          new StatusTamperedCharacteristic(
    +              ((AccessoryWithStatusTampered) accessory)::getStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered));
    +    }
    +    if (accessory instanceof AccessoryWithStatusLowBattery) {
    +      addOptionalCharacteristic(
    +          new StatusLowBatteryCharacteristic(
    +              ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery));
    +    }
    +  }
    +
    +  public void addOptionalCharacteristic(NameCharacteristic name) {
    +    addCharacteristic(name);
    +  }
    +
    +  public void addOptionalCharacteristic(OzoneDensityCharacteristic ozoneDensity) {
    + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/HeaterCoolerService.java60
    io/github/hapjava/services/impl/HumidifierDehumidifierService.java61
    +
    +
                accessory::unsubscribeTargetHeaterCoolerState));
    +    if (accessory instanceof AccessoryWithName) {
    +      addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +    if (accessory instanceof AccessoryWithRotationSpeed) {
    +      addOptionalCharacteristic(
    +          new RotationSpeedCharacteristic(
    +              ((AccessoryWithRotationSpeed) accessory)::getRotationSpeed,
    +              ((AccessoryWithRotationSpeed) accessory)::setRotationSpeed,
    +              ((AccessoryWithRotationSpeed) accessory)::subscribeRotationSpeed,
    +              ((AccessoryWithRotationSpeed) accessory)::unsubscribeRotationSpeed));
    +    }
    +    if (accessory instanceof AccessoryWithSwingMode) {
    +      addOptionalCharacteristic(
    +          new SwingModeCharacteristic(
    +              ((AccessoryWithSwingMode) accessory)::getSwingMode,
    +              ((AccessoryWithSwingMode) accessory)::setSwingMode,
    +              ((AccessoryWithSwingMode) accessory)::subscribeSwingMode,
    +              ((AccessoryWithSwingMode) accessory)::unsubscribeSwingMode));
    +    }
    +    if (accessory instanceof AccessoryWithPhysicalControlsLock) {
    +      addOptionalCharacteristic(
    +          new LockPhysicalControlsCharacteristic(
    +              ((AccessoryWithPhysicalControlsLock) accessory)::getLockControls,
    +              ((AccessoryWithPhysicalControlsLock) accessory)::setLockControls,
    +              ((AccessoryWithPhysicalControlsLock) accessory)::subscribeLockControls,
    +              ((AccessoryWithPhysicalControlsLock) accessory)::unsubscribeLockControls));
    +    }
    +    if (accessory instanceof AccessoryWithCoolingThresholdTemperature) {
    + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/HeaterCoolerService.java86
    io/github/hapjava/services/impl/ThermostatService.java71
    +
    +
                  ((AccessoryWithPhysicalControlsLock) accessory)::unsubscribeLockControls));
    +    }
    +    if (accessory instanceof AccessoryWithCoolingThresholdTemperature) {
    +      addOptionalCharacteristic(
    +          new CoolingThresholdTemperatureCharacteristic(
    +              ((AccessoryWithCoolingThresholdTemperature) accessory)
    +                  .getMinCoolingThresholdTemperature(),
    +              ((AccessoryWithCoolingThresholdTemperature) accessory)
    +                  .getMaxCoolingThresholdTemperature(),
    +              ((AccessoryWithCoolingThresholdTemperature) accessory)
    +                  .getStepCoolingThresholdTemperature(),
    +              ((AccessoryWithCoolingThresholdTemperature) accessory)
    +                  ::getCoolingThresholdTemperature,
    +              ((AccessoryWithCoolingThresholdTemperature) accessory)
    +                  ::setCoolingThresholdTemperature,
    +              ((AccessoryWithCoolingThresholdTemperature) accessory)
    +                  ::subscribeCoolingThresholdTemperature,
    +              ((AccessoryWithCoolingThresholdTemperature) accessory)
    +                  ::unsubscribeCoolingThresholdTemperature));
    +    }
    +    if (accessory instanceof AccessoryWithHeatingThresholdTemperature) {
    +      addOptionalCharacteristic(
    +          new HeatingThresholdTemperatureCharacteristic(
    +              ((AccessoryWithHeatingThresholdTemperature) accessory)
    +                  .getMinHeatingThresholdTemperature(),
    +              ((AccessoryWithHeatingThresholdTemperature) accessory)
    +                  .getMaxHeatingThresholdTemperature(),
    +              ((AccessoryWithHeatingThresholdTemperature) accessory)
    +                  .getStepHeatingThresholdTemperature(),
    +              ((AccessoryWithHeatingThresholdTemperature) accessory)
    +                  ::getHeatingThresholdTemperature,
    +              ((AccessoryWithHeatingThresholdTemperature) accessory)
    +                  ::setHeatingThresholdTemperature,
    +              ((AccessoryWithHeatingThresholdTemperature) accessory)
    +                  ::subscribeHeatingThresholdTemperature,
    +              ((AccessoryWithHeatingThresholdTemperature) accessory)
    +                  ::unsubscribeHeatingThresholdTemperature));
    +    }
    +    if (accessory instanceof AccessoryWithTemperatureDisplayUnits) {
    + + + + + + + + + + +
    FileLine
    io/github/hapjava/server/impl/crypto/ChachaDecoder.java17
    io/github/hapjava/server/impl/crypto/ChachaEncoder.java15
    +
    +
      public ChachaDecoder(byte[] key, byte[] nonce) throws IOException {
    +    this.key = key;
    +    // ChaCha20-Poly1305 requires exactly 12 bytes (96 bits) for nonce
    +    this.nonce = ensureNonceSize(nonce);
    +    this.cipher = new ChaCha20Poly1305();
    +  }
    +
    +  private byte[] ensureNonceSize(byte[] nonce) {
    +    if (nonce == null) {
    +      return new byte[12]; // Default to zero nonce if null
    +    }
    +
    +    // For HomeKit pairing messages, handle Apple's string-based nonces
    +    if (nonce.length == 8) {
    +      // Apple's HomeKit implementation uses a specific nonce format
    +      // Based on RFC 7539 and Apple's implementation, the nonce should be:
    +      // - 4 bytes constant (0x00000000)
    +      // - 8 bytes nonce string
    +      // This matches ChaCha20's 96-bit nonce requirement
    +      byte[] adjustedNonce = new byte[12];
    +      // Put the 8-byte nonce at the END (bytes 4-11), not at the beginning
    +      System.arraycopy(nonce, 0, adjustedNonce, 4, 8);
    +      // First 4 bytes remain zero (counter initialization)
    +      return adjustedNonce;
    +    }
    +
    +    if (nonce.length == 12) {
    +      return nonce; // Already correct size
    +    }
    +
    +    // For other nonce lengths, pad or truncate to 12 bytes
    +    byte[] adjustedNonce = new byte[12];
    +    if (nonce.length < 12) {
    +      // Pad with zeros if too short - put nonce at beginning
    +      System.arraycopy(nonce, 0, adjustedNonce, 0, nonce.length);
    +      // Remaining bytes are already zero
    +    } else {
    +      // Truncate if too long - take first 12 bytes
    +      System.arraycopy(nonce, 0, adjustedNonce, 0, 12);
    +    }
    +
    +    return adjustedNonce;
    +  }
    + + + + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/FanService.java63
    io/github/hapjava/services/impl/HeaterCoolerService.java62
    io/github/hapjava/services/impl/HumidifierDehumidifierService.java63
    +
    +
                  ((AccessoryWithRotationDirection) accessory)::unsubscribeRotationDirection));
    +    }
    +    if (accessory instanceof AccessoryWithRotationSpeed) {
    +      addOptionalCharacteristic(
    +          new RotationSpeedCharacteristic(
    +              ((AccessoryWithRotationSpeed) accessory)::getRotationSpeed,
    +              ((AccessoryWithRotationSpeed) accessory)::setRotationSpeed,
    +              ((AccessoryWithRotationSpeed) accessory)::subscribeRotationSpeed,
    +              ((AccessoryWithRotationSpeed) accessory)::unsubscribeRotationSpeed));
    +    }
    +    if (accessory instanceof AccessoryWithSwingMode) {
    +      addOptionalCharacteristic(
    +          new SwingModeCharacteristic(
    +              ((AccessoryWithSwingMode) accessory)::getSwingMode,
    +              ((AccessoryWithSwingMode) accessory)::setSwingMode,
    +              ((AccessoryWithSwingMode) accessory)::subscribeSwingMode,
    +              ((AccessoryWithSwingMode) accessory)::unsubscribeSwingMode));
    +    }
    +    if (accessory instanceof AccessoryWithPhysicalControlsLock) {
    +      addOptionalCharacteristic(
    +          new LockPhysicalControlsCharacteristic(
    +              ((AccessoryWithPhysicalControlsLock) accessory)::getLockControls,
    +              ((AccessoryWithPhysicalControlsLock) accessory)::setLockControls,
    +              ((AccessoryWithPhysicalControlsLock) accessory)::subscribeLockControls,
    +              ((AccessoryWithPhysicalControlsLock) accessory)::unsubscribeLockControls));
    +    }
    + + + + + + + + + + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/AirQualityService.java110
    io/github/hapjava/services/impl/CarbonMonoxideSensorService.java55
    io/github/hapjava/services/impl/ContactSensorService.java39
    io/github/hapjava/services/impl/HumiditySensorService.java40
    io/github/hapjava/services/impl/LeakSensorService.java39
    +
    +
                  ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive));
    +    }
    +    if (accessory instanceof AccessoryWithStatusFault) {
    +      addOptionalCharacteristic(
    +          new StatusFaultCharacteristic(
    +              ((AccessoryWithStatusFault) accessory)::getStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::subscribeStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault));
    +    }
    +    if (accessory instanceof AccessoryWithStatusTampered) {
    +      addOptionalCharacteristic(
    +          new StatusTamperedCharacteristic(
    +              ((AccessoryWithStatusTampered) accessory)::getStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered));
    +    }
    +    if (accessory instanceof AccessoryWithStatusLowBattery) {
    +      addOptionalCharacteristic(
    +          new StatusLowBatteryCharacteristic(
    +              ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery,
    +              ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery));
    +    }
    +  }
    +
    +  public void addOptionalCharacteristic(NameCharacteristic name) {
    +    addCharacteristic(name);
    +  }
    +
    +  public void addOptionalCharacteristic(OzoneDensityCharacteristic ozoneDensity) {
    + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/DoorService.java29
    io/github/hapjava/services/impl/WindowService.java27
    +
    +
      public DoorService(DoorAccessory accessory) {
    +    this(
    +        new CurrentPositionCharacteristic(
    +            accessory::getCurrentPosition,
    +            accessory::subscribeCurrentPosition,
    +            accessory::unsubscribeCurrentPosition),
    +        new TargetPositionCharacteristic(
    +            accessory::getTargetPosition,
    +            accessory::setTargetPosition,
    +            accessory::subscribeTargetPosition,
    +            accessory::unsubscribeTargetPosition),
    +        new PositionStateCharacteristic(
    +            accessory::getPositionState,
    +            accessory::subscribePositionState,
    +            accessory::unsubscribePositionState));
    +    if (accessory instanceof AccessoryWithName) {
    +      addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +    if (accessory instanceof AccessoryWithHoldPosition) {
    +      addOptionalCharacteristic(
    +          new HoldPositionCharacteristic(((AccessoryWithHoldPosition) accessory)::setHoldPosition));
    +    }
    +    if (accessory instanceof AccessoryWithObstructionDetection) {
    +      addOptionalCharacteristic(
    +          new ObstructionDetectedCharacteristic(
    +              ((AccessoryWithObstructionDetection) accessory)::getObstructionDetected,
    +              ((AccessoryWithObstructionDetection) accessory)::subscribeObstructionDetected,
    +              ((AccessoryWithObstructionDetection) accessory)::unsubscribeObstructionDetected));
    +    }
    + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/MicrophoneService.java21
    io/github/hapjava/services/impl/SpeakerService.java18
    +
    +
      public MicrophoneService(MicrophoneAccessory accessory) {
    +    this(
    +        new MuteCharacteristic(
    +            accessory::isMuted,
    +            accessory::setMute,
    +            accessory::subscribeMuteState,
    +            accessory::unsubscribeMuteState));
    +    if (accessory instanceof AccessoryWithName) {
    +      addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +    if (accessory instanceof AccessoryWithVolume) {
    +      addOptionalCharacteristic(
    +          new VolumeCharacteristic(
    +              ((AccessoryWithVolume) accessory)::getVolume,
    +              ((AccessoryWithVolume) accessory)::setVolume,
    +              ((AccessoryWithVolume) accessory)::subscribeVolume,
    +              ((AccessoryWithVolume) accessory)::unsubscribeVolume));
    +    }
    +  }
    +
    +  public void addOptionalCharacteristic(NameCharacteristic name) {
    +    addCharacteristic(name);
    +  }
    +
    +  public void addOptionalCharacteristic(VolumeCharacteristic volume) {
    +    addCharacteristic(volume);
    +  }
    +}
    + + + + + + + + + + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/CarbonMonoxideSensorService.java54
    io/github/hapjava/services/impl/ContactSensorService.java38
    io/github/hapjava/services/impl/HumiditySensorService.java39
    io/github/hapjava/services/impl/LeakSensorService.java38
    io/github/hapjava/services/impl/SecuritySystemService.java39
    +
    +
        if (accessory instanceof AccessoryWithName) {
    +      addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +    if (accessory instanceof AccessoryWithStatusFault) {
    +      addOptionalCharacteristic(
    +          new StatusFaultCharacteristic(
    +              ((AccessoryWithStatusFault) accessory)::getStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::subscribeStatusFault,
    +              ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault));
    +    }
    +    if (accessory instanceof AccessoryWithStatusTampered) {
    +      addOptionalCharacteristic(
    +          new StatusTamperedCharacteristic(
    +              ((AccessoryWithStatusTampered) accessory)::getStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered,
    +              ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered));
    +    }
    +    if (accessory instanceof AccessoryWithStatusLowBattery) {
    + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/DoorService.java39
    io/github/hapjava/services/impl/WindowCoveringService.java45
    +
    +
                accessory::unsubscribeTargetPosition),
    +        new PositionStateCharacteristic(
    +            accessory::getPositionState,
    +            accessory::subscribePositionState,
    +            accessory::unsubscribePositionState));
    +    if (accessory instanceof AccessoryWithName) {
    +      addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +    if (accessory instanceof AccessoryWithHoldPosition) {
    +      addOptionalCharacteristic(
    +          new HoldPositionCharacteristic(((AccessoryWithHoldPosition) accessory)::setHoldPosition));
    +    }
    +    if (accessory instanceof AccessoryWithObstructionDetection) {
    +      addOptionalCharacteristic(
    +          new ObstructionDetectedCharacteristic(
    +              ((AccessoryWithObstructionDetection) accessory)::getObstructionDetected,
    +              ((AccessoryWithObstructionDetection) accessory)::subscribeObstructionDetected,
    +              ((AccessoryWithObstructionDetection) accessory)::unsubscribeObstructionDetected));
    +    }
    +    if (accessory instanceof AccessoryWithMute) {
    + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/WindowCoveringService.java45
    io/github/hapjava/services/impl/WindowService.java37
    +
    +
                accessory::unsubscribeCurrentPosition),
    +        new PositionStateCharacteristic(
    +            accessory::getPositionState,
    +            accessory::subscribePositionState,
    +            accessory::unsubscribePositionState));
    +    if (accessory instanceof AccessoryWithName) {
    +      addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +    if (accessory instanceof AccessoryWithHoldPosition) {
    +      addOptionalCharacteristic(
    +          new HoldPositionCharacteristic(((AccessoryWithHoldPosition) accessory)::setHoldPosition));
    +    }
    +
    +    if (accessory instanceof AccessoryWithObstructionDetection) {
    +      addOptionalCharacteristic(
    +          new ObstructionDetectedCharacteristic(
    +              ((AccessoryWithObstructionDetection) accessory)::getObstructionDetected,
    +              ((AccessoryWithObstructionDetection) accessory)::subscribeObstructionDetected,
    +              ((AccessoryWithObstructionDetection) accessory)::unsubscribeObstructionDetected));
    +    }
    + + + + + + + + + + +
    FileLine
    io/github/hapjava/services/impl/BasicFanService.java33
    io/github/hapjava/services/impl/FanService.java55
    +
    +
          addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName));
    +    }
    +
    +    if (accessory instanceof AccessoryWithRotationDirection) {
    +      addOptionalCharacteristic(
    +          new RotationDirectionCharacteristic(
    +              ((AccessoryWithRotationDirection) accessory)::getRotationDirection,
    +              ((AccessoryWithRotationDirection) accessory)::setRotationDirection,
    +              ((AccessoryWithRotationDirection) accessory)::subscribeRotationDirection,
    +              ((AccessoryWithRotationDirection) accessory)::unsubscribeRotationDirection));
    +    }
    +    if (accessory instanceof AccessoryWithRotationSpeed) {
    +      addOptionalCharacteristic(
    +          new RotationSpeedCharacteristic(
    +              ((AccessoryWithRotationSpeed) accessory)::getRotationSpeed,
    +              ((AccessoryWithRotationSpeed) accessory)::setRotationSpeed,
    +              ((AccessoryWithRotationSpeed) accessory)::subscribeRotationSpeed,
    +              ((AccessoryWithRotationSpeed) accessory)::unsubscribeRotationSpeed));
    +    }
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/css/maven-base.css b/css/maven-base.css new file mode 100644 index 000000000..052175f53 --- /dev/null +++ b/css/maven-base.css @@ -0,0 +1,168 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +body { + margin: 0px; + padding: 0px; +} +table { + padding:0px; + width: 100%; + margin-left: -2px; + margin-right: -2px; +} +acronym { + cursor: help; + border-bottom: 1px dotted #feb; +} +table.bodyTable th, table.bodyTable td { + padding: 2px 4px 2px 4px; + vertical-align: top; +} +div.clear{ + clear:both; + visibility: hidden; +} +div.clear hr{ + display: none; +} +#bannerLeft, #bannerRight { + font-size: xx-large; + font-weight: bold; +} +#bannerLeft img, #bannerRight img { + margin: 0px; +} +.xleft, #bannerLeft img { + float:left; +} +.xright, #bannerRight { + float:right; +} +#banner { + padding: 0px; +} +#breadcrumbs { + padding: 3px 10px 3px 10px; +} +#leftColumn { + width: 170px; + float:left; + overflow: auto; +} +#bodyColumn { + margin-right: 1.5em; + margin-left: 197px; +} +#legend { + padding: 8px 0 8px 0; +} +#navcolumn { + padding: 8px 4px 0 8px; +} +#navcolumn h5 { + margin: 0; + padding: 0; + font-size: small; +} +#navcolumn ul { + margin: 0; + padding: 0; + font-size: small; +} +#navcolumn li { + list-style-type: none; + background-image: none; + background-repeat: no-repeat; + background-position: 0 0.4em; + padding-left: 16px; + list-style-position: outside; + line-height: 1.2em; + font-size: smaller; +} +#navcolumn li.expanded { + background-image: url(../images/expanded.gif); +} +#navcolumn li.collapsed { + background-image: url(../images/collapsed.gif); +} +#navcolumn li.none { + text-indent: -1em; + margin-left: 1em; +} +#poweredBy { + text-align: center; +} +#navcolumn img { + margin-top: 10px; + margin-bottom: 3px; +} +#poweredBy img { + display:block; + margin: 20px 0 20px 17px; +} +#search img { + margin: 0px; + display: block; +} +#search #q, #search #btnG { + border: 1px solid #999; + margin-bottom:10px; +} +#search form { + margin: 0px; +} +#lastPublished { + font-size: x-small; +} +.navSection { + margin-bottom: 2px; + padding: 8px; +} +.navSectionHead { + font-weight: bold; + font-size: x-small; +} +.section { + padding: 4px; +} +#footer { + padding: 3px 10px 3px 10px; + font-size: x-small; +} +#breadcrumbs { + font-size: x-small; + margin: 0pt; +} +.source { + padding: 12px; + margin: 1em 7px 1em 7px; +} +.source pre { + margin: 0px; + padding: 0px; +} +#navcolumn img.imageLink, .imageLink { + padding-left: 0px; + padding-bottom: 0px; + padding-top: 0px; + padding-right: 2px; + border: 0px; + margin: 0px; +} \ No newline at end of file diff --git a/css/maven-theme.css b/css/maven-theme.css new file mode 100644 index 000000000..78d04ed45 --- /dev/null +++ b/css/maven-theme.css @@ -0,0 +1,160 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +body { + padding: 0px 0px 10px 0px; +} +body, td, select, input, li{ + font-family: Verdana, Helvetica, Arial, sans-serif; + font-size: 13px; +} +code{ + font-family: Courier, monospace; + font-size: 13px; +} +a { + text-decoration: none; +} +a:link { + color:#36a; +} +a:visited { + color:#47a; +} +a:active, a:hover { + color:#69c; +} +#legend li.externalLink { + background: url(../images/external.png) left top no-repeat; + padding-left: 18px; +} +a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover { + background: url(../images/external.png) right center no-repeat; + padding-right: 18px; +} +#legend li.newWindow { + background: url(../images/newwindow.png) left top no-repeat; + padding-left: 18px; +} +a.newWindow, a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover { + background: url(../images/newwindow.png) right center no-repeat; + padding-right: 18px; +} +h2 { + padding: 4px 4px 4px 6px; + border: 1px solid #999; + color: #900; + background-color: #ddd; + font-weight:900; + font-size: x-large; +} +h3 { + padding: 4px 4px 4px 6px; + border: 1px solid #aaa; + color: #900; + background-color: #eee; + font-weight: normal; + font-size: large; +} +h4 { + padding: 4px 4px 4px 6px; + border: 1px solid #bbb; + color: #900; + background-color: #fff; + font-weight: normal; + font-size: large; +} +h5 { + padding: 4px 4px 4px 6px; + color: #900; + font-size: medium; +} +p { + line-height: 1.3em; + font-size: small; +} +#breadcrumbs { + border-top: 1px solid #aaa; + border-bottom: 1px solid #aaa; + background-color: #ccc; +} +#leftColumn { + margin: 10px 0 0 5px; + border: 1px solid #999; + background-color: #eee; + padding-bottom: 3px; /* IE-9 scrollbar-fix */ +} +#navcolumn h5 { + font-size: smaller; + border-bottom: 1px solid #aaaaaa; + padding-top: 2px; + color: #000; +} + +table.bodyTable th { + color: white; + background-color: #bbb; + text-align: left; + font-weight: bold; +} + +table.bodyTable th, table.bodyTable td { + font-size: 1em; +} + +table.bodyTable tr.a { + background-color: #ddd; +} + +table.bodyTable tr.b { + background-color: #eee; +} + +.source { + border: 1px solid #999; +} +dl { + padding: 4px 4px 4px 6px; + border: 1px solid #aaa; + background-color: #ffc; +} +dt { + color: #900; +} +#organizationLogo img, #projectLogo img, #projectLogo span{ + margin: 8px; +} +#banner { + border-bottom: 1px solid #fff; +} +.errormark, .warningmark, .donemark, .infomark { + background: url(../images/icon_error_sml.gif) no-repeat; +} + +.warningmark { + background-image: url(../images/icon_warning_sml.gif); +} + +.donemark { + background-image: url(../images/icon_success_sml.gif); +} + +.infomark { + background-image: url(../images/icon_info_sml.gif); +} diff --git a/css/print.css b/css/print.css new file mode 100644 index 000000000..09f2aa517 --- /dev/null +++ b/css/print.css @@ -0,0 +1,26 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +#banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, #leftColumn, #navColumn { + display: none !important; +} +#bodyColumn, body.docs div.docs { + margin: 0 !important; + border: none !important +} \ No newline at end of file diff --git a/css/site.css b/css/site.css new file mode 100644 index 000000000..055e7e286 --- /dev/null +++ b/css/site.css @@ -0,0 +1 @@ +/* You can override this file with your own styles */ \ No newline at end of file diff --git a/dependencies.html b/dependencies.html new file mode 100644 index 000000000..7ab9c8b49 --- /dev/null +++ b/dependencies.html @@ -0,0 +1,982 @@ + + + + + + hap-java – Project Dependencies + + + + + + + + + +
    +
    +
    +

    Project Dependencies

    +
    +

    compile

    +

    The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GroupIdArtifactIdVersionTypeLicenses
    com.nimbusdssrp6a1.5.2jarApache License Version 2.0, January 2004
    io.nettynetty-buffer4.1.139.FinaljarApache License, Version 2.0
    io.nettynetty-codec4.1.139.FinaljarApache License, Version 2.0
    io.nettynetty-codec-http4.1.139.FinaljarApache License, Version 2.0
    io.nettynetty-common4.1.139.FinaljarApache License, Version 2.0
    io.nettynetty-handler4.1.139.FinaljarApache License, Version 2.0
    io.nettynetty-resolver4.1.139.FinaljarApache License, Version 2.0
    io.nettynetty-transport4.1.139.FinaljarApache License, Version 2.0
    javax.jsonjavax.json-api1.0jarDual license consisting of the CDDL v1.1 and GPL v2
    net.vrallev.eccecc-25519-java1.0.1jarApache License version 2.0
    org.bouncycastlebcpkix-jdk18on1.83jarBouncy Castle Licence
    org.bouncycastlebctls-jdk18on1.82jarBouncy Castle Licence
    org.glassfishjavax.json1.0.4jarDual license consisting of the CDDL v1.1 and GPL v2
    org.jmdnsjmdns3.5.6jarApache License, Version 2.0
    org.slf4jslf4j-api1.7.10jarMIT License
    org.zeromqcurve25519-java0.1.0jarApache License, Version 2.0
    +
    +

    test

    +

    The following is a list of test dependencies for this project. These dependencies are only required to compile and run unit tests for the application:

    + + + + + + + + + + + + + + + + + + + + + + + + +
    GroupIdArtifactIdVersionTypeLicenses
    junitjunit4.13.1jarEclipse Public License 1.0
    org.assertjassertj-core3.27.7jarApache-2.0
    org.mockitomockito-core3.8.0jarThe MIT License
    +
    +

    Project Transitive Dependencies

    +

    The following is a list of transitive dependencies for this project. Transitive dependencies are the dependencies of the project dependencies.

    +
    +

    compile

    +

    The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:

    + + + + + + + + + + + + + + + + + + + + + + + + +
    GroupIdArtifactIdVersionTypeLicenses
    io.nettynetty-transport-native-unix-common4.1.139.FinaljarApache License, Version 2.0
    org.bouncycastlebcprov-jdk18on1.83jarBouncy Castle Licence
    org.bouncycastlebcutil-jdk18on1.83jarBouncy Castle Licence
    +
    +

    test

    +

    The following is a list of test dependencies for this project. These dependencies are only required to compile and run unit tests for the application:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GroupIdArtifactIdVersionTypeLicenses
    net.bytebuddybyte-buddy1.10.20jarApache License, Version 2.0
    net.bytebuddybyte-buddy-agent1.10.20jarApache License, Version 2.0
    org.hamcresthamcrest-core1.3jarNew BSD License
    org.objenesisobjenesis3.1jarApache License, Version 2.0
    +
    +

    Project Dependency Graph

    + + +
    +

    Dependency Tree

    +
    +
    +

    Licenses

    +

    Apache License Version 2.0, January 2004: Nimbus SRP6a

    +

    Apache License version 2.0: ECC-25519

    +

    Eclipse Public License 1.0: JUnit

    +

    MIT License: SLF4J API Module, hap-java

    +

    The MIT License: mockito-core

    +

    Apache License, Version 2.0: Byte Buddy (without dependencies), Byte Buddy agent, JmDNS, Netty/Buffer, Netty/Codec, Netty/Codec/HTTP, Netty/Common, Netty/Handler, Netty/Resolver, Netty/Transport, Netty/Transport/Native/Unix/Common, Objenesis, curve25519-java

    +

    Apache-2.0: AssertJ Core

    +

    Dual license consisting of the CDDL v1.1 and GPL v2: JSR 353 (JSON Processing) API, JSR 353 (JSON Processing) Default Provider

    +

    New BSD License: Hamcrest Core

    +

    Bouncy Castle Licence: Bouncy Castle ASN.1 Extension and Utility APIs, Bouncy Castle PKIX, CMS, EAC, TSP, PKCS, OCSP, CMP, and CRMF APIs, Bouncy Castle Provider, Bouncy Castle TLS/JSSE APIs

    +
    +

    Dependency File Details

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FilenameSizeEntriesClassesPackagesJava VersionDebug Information
    srp6a-1.5.2.jar33.6 kB352421.7Yes
    netty-buffer-4.1.139.Final.jar365.5 kB18616921.6Yes
    netty-codec-4.1.139.Final.jar363 kB252223101.6Yes
    netty-codec-http-4.1.139.Final.jar696.8 kB43540691.6Yes
    netty-common-4.1.139.Final.jar740.6 kB584548131.6Yes
    netty-handler-4.1.139.Final.jar590.9 kB396364121.6Yes
    netty-resolver-4.1.139.Final.jar37.9 kB412911.6Yes
    netty-transport-4.1.139.Final.jar524.2 kB418388121.6Yes
    netty-transport-native-unix-common-4.1.139.Final.jar44.3 kB453211.6Yes
    javax.json-api-1.0.jar19.8 kB392831.6Yes
    junit-4.13.1.jar382.7 kB387348321.5Yes
    byte-buddy-1.10.20.jar3.5 MB2512----
       • Root-25102456361.6Yes
       • Versioned-2119No
    byte-buddy-agent-1.10.20.jar259.2 kB81----
       • Root-796211.5Yes
       • Versioned-2119No
    ecc-25519-java-1.0.1.jar64.1 kB503371.7Yes
    assertj-core-3.27.7.jar1.4 MB887----
       • Root-883842291.8Yes
       • Versioned-4119No
    bcpkix-jdk18on-1.83.jar1.2 MB996----
       • Root-992931521.8No
       • Versioned-4119No
    bcprov-jdk18on-1.83.jar8.5 MB6176----
       • Root-478345841781.8No
       • Versioned-12451137939No
       • Versioned-4334111No
       • Versioned-2920115No
       • Versioned-3520621No
       • Versioned-4129525No
    bctls-jdk18on-1.82.jar1.5 MB1027----
       • Root-568551101.8No
       • Versioned-45143799No
       • Versioned-83125Yes
    bcutil-jdk18on-1.83.jar707.3 kB672----
       • Root-668611481.8No
       • Versioned-4119No
    javax.json-1.0.4.jar85.1 kB887251.6Yes
    hamcrest-core-1.3.jar45 kB524531.5Yes
    jmdns-3.5.6.jar216.4 kB13411771.6Yes
    mockito-core-3.8.0.jar665.7 kB663590651.8Yes
    objenesis-3.1.jar60.4 kB6448101.8Yes
    slf4j-api-1.7.10.jar32.1 kB392831.5Yes
    curve25519-java-0.1.0.jar13.9 kB11311.6Yes
    TotalSizeEntriesClassesPackagesJava VersionDebug Information
    2622 MB16270135325521.822
    compile: 19compile: 15.6 MBcompile: 11624compile: 9141compile: 3761.8compile: 15
    test: 7test: 6.3 MBtest: 4646test: 4391test: 1761.8test: 7
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/dependency-info.html b/dependency-info.html new file mode 100644 index 000000000..bdc7de92a --- /dev/null +++ b/dependency-info.html @@ -0,0 +1,78 @@ + + + + + + hap-java – Maven Coordinates + + + + + + + + + +
    +
    +
    +

    Maven Coordinates

    +
    +

    Apache Maven

    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/distribution-management.html b/distribution-management.html new file mode 100644 index 000000000..509f786e0 --- /dev/null +++ b/distribution-management.html @@ -0,0 +1,83 @@ + + + + + + hap-java – Project Distribution Management + + + + + + + + +
    + +
    +
    +
    +
    +

    Overview

    +

    The following is the distribution management information used by this project.

    + + +
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/findbugs.html b/findbugs.html new file mode 100644 index 000000000..9c8b41a3d --- /dev/null +++ b/findbugs.html @@ -0,0 +1,387 @@ + + + + + + hap-java – FindBugs Bug Detector Report + + + + + + + + +
    + +
    +
    +
    +
    +

    FindBugs Bug Detector Report

    +

    The following document contains the results of FindBugs

    +

    FindBugs Version is 3.0.1

    +

    Threshold is medium

    +

    Effort is min

    +
    +

    Summary

    + + + + + + + + + + +
    ClassesBugsErrorsMissing Classes
    41827069
    + +
    +

    io.github.hapjava.characteristics.impl.base.EnumCharacteristic

    + + + + + + + + + + + + + + + + + + +
    BugCategoryDetailsLinePriority
    io.github.hapjava.characteristics.impl.base.EnumCharacteristic.getValidValues() may expose internal representation by returning EnumCharacteristic.validValuesMALICIOUS_CODEEI_EXPOSE_REP160Medium
    new io.github.hapjava.characteristics.impl.base.EnumCharacteristic(String, String, CharacteristicEnum[], Optional, Optional, Optional, Optional) may expose internal representation by storing an externally mutable object into EnumCharacteristic.validValuesMALICIOUS_CODEEI_EXPOSE_REP256Medium
    +
    +

    io.github.hapjava.server.impl.HomekitRoot

    + + + + + + + + + + + + +
    BugCategoryDetailsLinePriority
    Inconsistent synchronization of io.github.hapjava.server.impl.HomekitRoot.nestedBatches; locked 71% of timeMT_CORRECTNESSIS2_INCONSISTENT_SYNC132Medium
    +
    +

    io.github.hapjava.server.impl.HomekitUtils

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    BugCategoryDetailsLinePriority
    Comparison of String objects using == or != in io.github.hapjava.server.impl.HomekitUtils.generatePin() BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ46High
    Comparison of String objects using == or != in io.github.hapjava.server.impl.HomekitUtils.generatePin() BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ46High
    Comparison of String objects using == or != in io.github.hapjava.server.impl.HomekitUtils.generatePin() BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ46High
    Comparison of String objects using == or != in io.github.hapjava.server.impl.HomekitUtils.generatePin() BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ46High
    Comparison of String objects using == or != in io.github.hapjava.server.impl.HomekitUtils.generatePin() BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ46High
    Comparison of String objects using == or != in io.github.hapjava.server.impl.HomekitUtils.generatePin() BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ46High
    Comparison of String objects using == or != in io.github.hapjava.server.impl.HomekitUtils.generatePin() BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ46High
    Comparison of String objects using == or != in io.github.hapjava.server.impl.HomekitUtils.generatePin() BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ46High
    Comparison of String objects using == or != in io.github.hapjava.server.impl.HomekitUtils.generatePin() BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ46High
    Comparison of String objects using == or != in io.github.hapjava.server.impl.HomekitUtils.generatePin() BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ46High
    Comparison of String objects using == or != in io.github.hapjava.server.impl.HomekitUtils.generatePin() BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ46High
    Comparison of String objects using == or != in io.github.hapjava.server.impl.HomekitUtils.generatePin() BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ46High
    +
    +

    io.github.hapjava.server.impl.connections.SubscriptionManager

    + + + + + + + + + + + + +
    BugCategoryDetailsLinePriority
    Comparison of String objects using == or != in io.github.hapjava.server.impl.connections.SubscriptionManager.resync(HomekitRegistry) BAD_PRACTICEES_COMPARING_STRINGS_WITH_EQ188Medium
    +
    +

    io.github.hapjava.server.impl.crypto.ChachaDecoder

    + + + + + + + + + + + + +
    BugCategoryDetailsLinePriority
    new io.github.hapjava.server.impl.crypto.ChachaDecoder(byte[], byte[]) may expose internal representation by storing an externally mutable object into ChachaDecoder.keyMALICIOUS_CODEEI_EXPOSE_REP218Medium
    +
    +

    io.github.hapjava.server.impl.crypto.ChachaEncoder

    + + + + + + + + + + + + + + + + + + +
    BugCategoryDetailsLinePriority
    Dead store to len in io.github.hapjava.server.impl.crypto.ChachaEncoder.encodeCiphertext(byte[], byte[])STYLEDLS_DEAD_LOCAL_STORE76Medium
    new io.github.hapjava.server.impl.crypto.ChachaEncoder(byte[], byte[]) may expose internal representation by storing an externally mutable object into ChachaEncoder.keyMALICIOUS_CODEEI_EXPOSE_REP216Medium
    +
    +

    io.github.hapjava.server.impl.crypto.HAPSetupCodeUtils

    + + + + + + + + + + + + + + + + + + + + + + + + +
    BugCategoryDetailsLinePriority
    Boxing/unboxing to parse a primitive io.github.hapjava.server.impl.crypto.HAPSetupCodeUtils.getSetupURI(String, String, int)PERFORMANCEDM_BOXED_PRIMITIVE_FOR_PARSING61High
    Found reliance on default encoding in io.github.hapjava.server.impl.crypto.HAPSetupCodeUtils.calculateHash(String, Digest): String.getBytes()I18NDM_DEFAULT_ENCODING24High
    Vacuous lor operation on HAPSetupCodeUtils.java:[line 54] in io.github.hapjava.server.impl.crypto.HAPSetupCodeUtils.getSetupURI(String, String, int)STYLEINT_VACUOUS_BIT_OPERATION54Medium
    +
    +

    io.github.hapjava.server.impl.jmdns.JmdnsHomekitAdvertiser

    + + + + + + + + + + + + +
    BugCategoryDetailsLinePriority
    Comparison of String parameter using == or != in io.github.hapjava.server.impl.jmdns.JmdnsHomekitAdvertiser.setMac(String) BAD_PRACTICEES_COMPARING_PARAMETER_STRING_WITH_EQ105High
    +
    +

    io.github.hapjava.server.impl.json.AccessoryController

    + + + + + + + + + + + + +
    BugCategoryDetailsLinePriority
    Nullcheck of jsonWriter at line 70 of value previously dereferenced in io.github.hapjava.server.impl.json.AccessoryController.listing()CORRECTNESSRCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE70Medium
    +
    +

    io.github.hapjava.server.impl.json.CharacteristicsController

    + + + + + + + + + + + + +
    BugCategoryDetailsLinePriority
    Nullcheck of jsonWriter at line 63 of value previously dereferenced in io.github.hapjava.server.impl.json.CharacteristicsController.get(HttpRequest)CORRECTNESSRCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE63Medium
    +
    +

    io.github.hapjava.server.impl.json.EventController

    + + + + + + + + + + + + + + + + + + +
    BugCategoryDetailsLinePriority
    Nullcheck of jsonWriter at line 30 of value previously dereferenced in io.github.hapjava.server.impl.json.EventController.getMessage(int, int, EventableCharacteristic)CORRECTNESSRCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE30Medium
    Nullcheck of jsonWriter at line 51 of value previously dereferenced in io.github.hapjava.server.impl.json.EventController.getMessage(List)CORRECTNESSRCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE51Medium
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/images/close.gif b/images/close.gif new file mode 100644 index 000000000..1c26bbc52 Binary files /dev/null and b/images/close.gif differ diff --git a/images/collapsed.gif b/images/collapsed.gif new file mode 100644 index 000000000..6e7108406 Binary files /dev/null and b/images/collapsed.gif differ diff --git a/images/expanded.gif b/images/expanded.gif new file mode 100644 index 000000000..0fef3d89e Binary files /dev/null and b/images/expanded.gif differ diff --git a/images/external.png b/images/external.png new file mode 100644 index 000000000..3f999fc88 Binary files /dev/null and b/images/external.png differ diff --git a/images/icon_error_sml.gif b/images/icon_error_sml.gif new file mode 100644 index 000000000..61132ef2b Binary files /dev/null and b/images/icon_error_sml.gif differ diff --git a/images/icon_info_sml.gif b/images/icon_info_sml.gif new file mode 100644 index 000000000..c6cb9ad7c Binary files /dev/null and b/images/icon_info_sml.gif differ diff --git a/images/icon_success_sml.gif b/images/icon_success_sml.gif new file mode 100644 index 000000000..52e85a430 Binary files /dev/null and b/images/icon_success_sml.gif differ diff --git a/images/icon_warning_sml.gif b/images/icon_warning_sml.gif new file mode 100644 index 000000000..873bbb52c Binary files /dev/null and b/images/icon_warning_sml.gif differ diff --git a/images/logos/build-by-maven-black.png b/images/logos/build-by-maven-black.png new file mode 100644 index 000000000..919fd0f66 Binary files /dev/null and b/images/logos/build-by-maven-black.png differ diff --git a/images/logos/build-by-maven-white.png b/images/logos/build-by-maven-white.png new file mode 100644 index 000000000..7d44c9c2e Binary files /dev/null and b/images/logos/build-by-maven-white.png differ diff --git a/images/logos/maven-feather.png b/images/logos/maven-feather.png new file mode 100644 index 000000000..b5ada836e Binary files /dev/null and b/images/logos/maven-feather.png differ diff --git a/images/newwindow.png b/images/newwindow.png new file mode 100644 index 000000000..6287f72bd Binary files /dev/null and b/images/newwindow.png differ diff --git a/index.html b/index.html new file mode 100644 index 000000000..ad102fbfb --- /dev/null +++ b/index.html @@ -0,0 +1,77 @@ + + + + + + hap-java – About + + + + + + + + + +
    +
    +
    +

    About hap-java

    +

    Homekit Accessory Protocol for Java

    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/licenses.html b/licenses.html new file mode 100644 index 000000000..e481ef442 --- /dev/null +++ b/licenses.html @@ -0,0 +1,85 @@ + + + + + + hap-java – Project Licenses + + + + + + + + + +
    +
    +
    +

    Overview

    +

    Typically the licenses listed for the project are that of the project itself, and not of dependencies.

    +
    +

    Project Licenses

    +
    +

    MIT License

    [Original text] +

    Copy of the license follows:

    +

    301 Moved Permanently

    +
    cloudflare
    +
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/plugin-management.html b/plugin-management.html new file mode 100644 index 000000000..01bb581b9 --- /dev/null +++ b/plugin-management.html @@ -0,0 +1,101 @@ + + + + + + hap-java – Project Plugin Management + + + + + + + + + +
    +
    +
    +

    Project Plugin Management

    + + + + + + + + + + + + + + + + + + + + + + + + +
    GroupIdArtifactIdVersion
    org.apache.maven.pluginsmaven-antrun-plugin3.1.0
    org.apache.maven.pluginsmaven-assembly-plugin3.7.1
    org.apache.maven.pluginsmaven-dependency-plugin3.7.0
    org.apache.maven.pluginsmaven-release-plugin3.0.1
    org.apache.maven.pluginsmaven-site-plugin3.7.1
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/plugins.html b/plugins.html new file mode 100644 index 000000000..91148711c --- /dev/null +++ b/plugins.html @@ -0,0 +1,152 @@ + + + + + + hap-java – Project Plugins + + + + + + + + + +
    +
    +
    +

    Project Build Plugins

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GroupIdArtifactIdVersion
    com.coveofmt-maven-plugin2.9
    org.apache.maven.pluginsmaven-clean-plugin3.2.0
    org.apache.maven.pluginsmaven-compiler-plugin3.8.0
    org.apache.maven.pluginsmaven-deploy-plugin3.1.4
    org.apache.maven.pluginsmaven-install-plugin3.1.4
    org.apache.maven.pluginsmaven-jar-plugin3.5.0
    org.apache.maven.pluginsmaven-javadoc-plugin3.2.0
    org.apache.maven.pluginsmaven-resources-plugin3.4.0
    org.apache.maven.pluginsmaven-scm-publish-plugin3.1.0
    org.apache.maven.pluginsmaven-site-plugin3.7.1
    org.apache.maven.pluginsmaven-source-plugin3.0.1
    org.apache.maven.pluginsmaven-surefire-plugin3.5.4
    +
    +

    Project Report Plugins

    + + + + + + + + + + + + + + + + + + + + +
    GroupIdArtifactIdVersion
    org.apache.maven.pluginsmaven-javadoc-plugin3.0.1
    org.apache.maven.pluginsmaven-pmd-plugin3.6
    org.apache.maven.pluginsmaven-project-info-reports-plugin3.9.0
    org.codehaus.mojofindbugs-maven-plugin3.0.3
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/pmd.html b/pmd.html new file mode 100644 index 000000000..c285b4b9c --- /dev/null +++ b/pmd.html @@ -0,0 +1,157 @@ + + + + + + hap-java – PMD Results + + + + + + + + +
    + +
    +
    +
    +
    +

    PMD Results

    +

    The following document contains the results of PMD 5.3.5.

    +
    +

    Files

    +
    +

    io/github/hapjava/characteristics/impl/base/StringCharacteristic.java

    + + + + + + +
    ViolationLine
    Overriding method merely calls super53–55
    +
    +

    io/github/hapjava/server/impl/HomekitBridge.java

    + + + + + + +
    ViolationLine
    Avoid unused private fields such as 'hardwareRevision'.16
    +
    +

    io/github/hapjava/server/impl/crypto/ChachaDecoder.java

    + + + + + + + + + +
    ViolationLine
    Avoid unused private fields such as 'cipher'.13
    Avoid unused private methods such as 'bytesToHex(byte)'.87
    +
    +

    io/github/hapjava/server/impl/crypto/ChachaEncoder.java

    + + + + + + +
    ViolationLine
    Avoid unused private methods such as 'bytesToHex(byte)'.56
    +
    +

    io/github/hapjava/server/impl/jmdns/JmdnsHomekitAdvertiser.java

    + + + + + + +
    ViolationLine
    Avoid empty catch blocks80–82
    +
    +

    io/github/hapjava/server/impl/pairing/ExchangeHandler.java

    + + + + + + +
    ViolationLine
    Avoid unused private methods such as 'bytesToHex(byte)'.66
    +
    +

    io/github/hapjava/server/impl/pairing/PairingsManager.java

    + + + + + + +
    ViolationLine
    Avoid unused private fields such as 'LOGGER'.20
    +
    +

    io/github/hapjava/services/impl/AbstractServiceImpl.java

    + + + + + + +
    ViolationLine
    Avoid unused private fields such as 'logger'.15
    +
    +

    io/github/hapjava/services/impl/TelevisionSpeakerService.java

    + + + + + + +
    ViolationLine
    An empty statement (semicolon) not part of a loop56
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 7bbbb9021..000000000 --- a/pom.xml +++ /dev/null @@ -1,364 +0,0 @@ - - - 4.0.0 - io.github.hap-java - hap - hap-java - Homekit Accessory Protocol for Java - 2.0.10-SNAPSHOT - jar - https://github.com/hap-java/HAP-Java - - - UTF-8 - 4.1.139.Final - - - - - MIT License - http://www.opensource.org/licenses/mit-license.php - repo - - - - - scm:git:https://github.com/hap-java/HAP-Java.git - scm:git:https://github.com/hap-java/HAP-Java.git - https://github.com/hap-java/HAP-Java.git - HEAD - - - - - Andy Lintner - dev@beowulfe.com - https://github.com/beowulfe - - - Cody Cutrer - cody@cutrer.us - https://github.com/ccutrer - - - Tim Harper - timcharper@gmail.com - https://github.com/timcharper - - - - - - - org.slf4j - slf4j-api - 1.7.10 - - - - io.netty - netty-common - ${netty.version} - - - - io.netty - netty-buffer - ${netty.version} - - - - io.netty - netty-transport - ${netty.version} - - - - io.netty - netty-handler - ${netty.version} - - - - io.netty - netty-codec - ${netty.version} - - - - io.netty - netty-codec-http - ${netty.version} - - - - io.netty - netty-resolver - ${netty.version} - - - - com.nimbusds - srp6a - 1.5.2 - - - - org.bouncycastle - bcpkix-jdk18on - 1.83 - - - - org.bouncycastle - bctls-jdk18on - 1.82 - - - - net.vrallev.ecc - ecc-25519-java - 1.0.1 - - - - org.zeromq - curve25519-java - 0.1.0 - - - - javax.json - javax.json-api - 1.0 - - - - org.glassfish - javax.json - 1.0.4 - - - - org.jmdns - jmdns - 3.5.6 - - - - junit - junit - 4.13.1 - test - - - - org.mockito - mockito-core - 3.8.0 - test - - - - org.assertj - assertj-core - 3.27.7 - test - - - - - - - - com.coveo - fmt-maven-plugin - 2.9 - - - - format - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.0 - - 1.8 - 1.8 - - - - org.apache.maven.plugins - maven-source-plugin - 3.0.1 - - - attach-sources - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.2.0 - - io.github.hapjava.server.impl - 8 - - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-scm-publish-plugin - 3.1.0 - - - scm-publish - site-deploy - - publish-scm - - - scm:git:https://github.com/hap-java/HAP-Java.git - gh-pages - - - - - - org.apache.maven.plugins - maven-site-plugin - 3.7.1 - - - stage-for-scm-publish - post-site - - stage - - - false - - - - - - - - - - org.apache.maven.plugins - maven-site-plugin - - true - - - - - - - - - - website - https://hap-java.github.io/ - - - github - https://maven.pkg.github.com/hap-java/HAP-Java - - - github - https://maven.pkg.github.com/hap-java/HAP-Java - - - - - - - org.apache.maven.plugins - maven-pmd-plugin - 3.6 - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.0.1 - - io.github.hapjava.server.impl - 8 - false - - - - - javadoc - - - - - - org.codehaus.mojo - findbugs-maven-plugin - 3.0.3 - - - - - - - ossrh - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.5 - - - sign-artifacts - verify - - sign - - - - - HAP-Java - - --pinentry-mode - loopback - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.3 - true - - ossrh - https://s01.oss.sonatype.org/ - true - - - - - - - - diff --git a/project-info.html b/project-info.html new file mode 100644 index 000000000..1771cf5c7 --- /dev/null +++ b/project-info.html @@ -0,0 +1,113 @@ + + + + + + hap-java – Project Information + + + + + + + + +
    + +
    +
    +
    +
    +

    Project Information

    +

    This document provides an overview of the various documents and links that are part of this project's general information. All of this content is automatically generated by Maven on behalf of the project.

    +
    +

    Overview

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DocumentDescription
    DependenciesThis document lists the project's dependencies and provides information on each dependency.
    Maven CoordinatesThis document describes how to include this project as a dependency using various dependency management tools.
    Distribution ManagementThis document provides informations on the distribution management of this project.
    AboutHomekit Accessory Protocol for Java
    LicensesThis document lists the project license(s).
    Plugin ManagementThis document lists the plugins that are defined through pluginManagement.
    PluginsThis document lists the build plugins and the report plugins used by this project.
    Source Code ManagementThis document lists ways to access the online source repository.
    SummaryThis document lists other related information of this project
    TeamThis document provides information on the members of this project. These are the individuals who have contributed to the project in one form or another.
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/project-reports.html b/project-reports.html new file mode 100644 index 000000000..2c505b3ca --- /dev/null +++ b/project-reports.html @@ -0,0 +1,89 @@ + + + + + + hap-java – Generated Reports + + + + + + + + +
    + +
    +
    +
    +
    +

    Generated Reports

    +

    This document provides an overview of the various reports that are automatically generated by Maven . Each report is briefly described below.

    +
    +

    Overview

    + + + + + + + + + + + + + + + +
    DocumentDescription
    CPDDuplicate code detection.
    PMDVerification of coding rules.
    JavadocJavadoc API documentation.
    FindBugsGenerates a source code report with the FindBugs Library.
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/scm.html b/scm.html new file mode 100644 index 000000000..551365c2f --- /dev/null +++ b/scm.html @@ -0,0 +1,80 @@ + + + + + + hap-java – Source Code Management + + + + + + + + +
    + +
    +
    +
    +
    +

    Overview

    +

    This project uses Git to manage its source code. Instructions on Git use can be found at https://git-scm.com/doc.

    +
    +

    Web Browser Access

    +

    The following is a link to a browsable version of the source repository:

    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/src/main/java/io/github/hapjava/accessories/AirPurifierAccessory.java b/src/main/java/io/github/hapjava/accessories/AirPurifierAccessory.java deleted file mode 100644 index 3766f75a1..000000000 --- a/src/main/java/io/github/hapjava/accessories/AirPurifierAccessory.java +++ /dev/null @@ -1,86 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierStateEnum; -import io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.AirPurifierService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** An air purifier. */ -public interface AirPurifierAccessory extends HomekitAccessory { - /** - * Mandatory: Retrieves the current active state of the fan'. - * - * @return a future that will contain the binary state - */ - CompletableFuture isActive(); - - /** - * Sets the active state of the fan - * - * @param state the binary state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setActive(boolean state) throws Exception; - - /** - * Subscribes to changes in the active state of the fan. - * - * @param callback the function to call when the direction changes. - */ - void subscribeActive(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the active state of the fan. */ - void unsubscribeActive(); - - /** - * Retrieves the current state of the air purifier - * - * @return a future that will contain the state - */ - CompletableFuture getCurrentState(); - - /** - * Subscribes to changes in the state of the air purifier. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the state of the air purifier. */ - void unsubscribeCurrentState(); - - /** - * Retrieves the air purifier target state. - * - * @return a future that will contain the air purifier target state . - */ - CompletableFuture getTargetState(); - - /** - * set target state the air purifier target state. - * - * @param state air purifier target state - * @return a future that completes when the change is made - */ - CompletableFuture setTargetState(TargetAirPurifierStateEnum state); - - /** - * Subscribes to changes in the target state of the air purifier. - * - * @param callback the function to call when the target state changes. - */ - void subscribeTargetState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the target state of the air purifier. */ - void unsubscribeTargetState(); - - @Override - default Collection getServices() { - return Collections.singleton(new AirPurifierService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/AirQualityAccessory.java b/src/main/java/io/github/hapjava/accessories/AirQualityAccessory.java deleted file mode 100644 index 309fb486e..000000000 --- a/src/main/java/io/github/hapjava/accessories/AirQualityAccessory.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.airquality.AirQualityEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.AirQualityService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** An air quality accessory which can include several sensors. */ -public interface AirQualityAccessory extends HomekitAccessory { - - /** - * Retrieves the state of the air quality - * - * @return a future that will contain the state - */ - CompletableFuture getAirQuality(); - - /** - * Subscribes to changes in the air quality - * - * @param callback the function to call when the air quality changes. - */ - void subscribeAirQuality(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the air quality. */ - void unsubscribeAirQuality(); - - @Override - default Collection getServices() { - return Collections.singleton(new AirQualityService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/BasicFanAccessory.java b/src/main/java/io/github/hapjava/accessories/BasicFanAccessory.java deleted file mode 100644 index 98c4bf497..000000000 --- a/src/main/java/io/github/hapjava/accessories/BasicFanAccessory.java +++ /dev/null @@ -1,46 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.BasicFanService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A fan with mandatory characteristics. - * - * @author Andy Lintner - */ -public interface BasicFanAccessory extends HomekitAccessory { - /** - * Mandatory: Retrieves the current power state of the fan. - * - * @return a future that will contain the binary state - */ - CompletableFuture isOn(); - - /** - * Sets the active state of the fan - * - * @param state the binary state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setOn(boolean state) throws Exception; - - /** - * Subscribes to changes in the active state of the fan. - * - * @param callback the function to call when the active state changes. - */ - void subscribeOn(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the active state of the fan. */ - void unsubscribeOn(); - - @Override - default Collection getServices() { - return Collections.singleton(new BasicFanService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/BatteryAccessory.java b/src/main/java/io/github/hapjava/accessories/BatteryAccessory.java deleted file mode 100644 index d3724bc50..000000000 --- a/src/main/java/io/github/hapjava/accessories/BatteryAccessory.java +++ /dev/null @@ -1,74 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.battery.ChargingStateEnum; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.BatteryService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * Devices with battery . - * - * @author Gaston Dombiak - */ -public interface BatteryAccessory extends HomekitAccessory { - - /** - * Retrieves the battery level of the accessory. - * - * @return a future that will contain the accessory's battery state - */ - CompletableFuture getBatteryLevel(); - - /** - * Queries if the device battery level is low; returning a value of true will cause a low-battery - * status to appear in Home for the device. - * - * @return a future that will contain the accessory's low battery state - */ - CompletableFuture getLowBatteryState(); - - /** - * Retriece the battery charging state. - * - * @return a future that will contain the battery charging state - */ - CompletableFuture getChargingState(); - - /** - * Subscribes to changes in the battery level. - * - * @param callback the function to call when battery level changes. - */ - void subscribeBatteryLevel(HomekitCharacteristicChangeCallback callback); - /** - * Subscribes to changes in the battery level. - * - * @param callback the function to call when low battery state changes. - */ - void subscribeLowBatteryState(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the battery level. - * - * @param callback the function to call when low battery state changes. - */ - void subscribeBatteryChargingState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the battery level. */ - void unsubscribeBatteryLevel(); - - /** Unsubscribes from changes in the low battery state. */ - void unsubscribeLowBatteryState(); - - /** Unsubscribes from changes in the low battery state. */ - void unsubscribeBatteryChargingState(); - - @Override - default Collection getServices() { - return Collections.singleton(new BatteryService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/Bridge.java b/src/main/java/io/github/hapjava/accessories/Bridge.java deleted file mode 100644 index e53c427f2..000000000 --- a/src/main/java/io/github/hapjava/accessories/Bridge.java +++ /dev/null @@ -1,8 +0,0 @@ -package io.github.hapjava.accessories; - -/** HomeKit bridge service. */ -public interface Bridge extends HomekitAccessory { - - @Override - default void identify() {} -} diff --git a/src/main/java/io/github/hapjava/accessories/CarbonDioxideSensorAccessory.java b/src/main/java/io/github/hapjava/accessories/CarbonDioxideSensorAccessory.java deleted file mode 100644 index 185aedd13..000000000 --- a/src/main/java/io/github/hapjava/accessories/CarbonDioxideSensorAccessory.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.CarbonDioxideSensorService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** A carbon dioxide sensor reports carbon dioxide level. */ -public interface CarbonDioxideSensorAccessory extends HomekitAccessory { - - /** - * Retrieves the state of the sensor that indicates if carbon dioxide has been detected. - * - * @return a future that will contain the carbon dioxide sensor's state - */ - CompletableFuture getCarbonDioxideDetectedState(); - - /** - * Subscribes to changes in the carbon dioxide's state. - * - * @param callback the function to call when the state changes. - */ - void subscribeCarbonDioxideDetectedState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the carbon dioxide's state. */ - void unsubscribeCarbonDioxideDetectedState(); - - @Override - default Collection getServices() { - return Collections.singleton(new CarbonDioxideSensorService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/CarbonMonoxideSensorAccessory.java b/src/main/java/io/github/hapjava/accessories/CarbonMonoxideSensorAccessory.java deleted file mode 100644 index 93cfebbd6..000000000 --- a/src/main/java/io/github/hapjava/accessories/CarbonMonoxideSensorAccessory.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.CarbonMonoxideSensorService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A carbon monoxide sensor reports whether carbon monoxide has been detected or not. - * - * @author Gaston Dombiak - */ -public interface CarbonMonoxideSensorAccessory extends HomekitAccessory { - - /** - * Retrieves the state of the sensor that indicates if carbon monoxide has been detected. - * - * @return a future that will contain the carbon monoxide sensor's state - */ - CompletableFuture getCarbonMonoxideDetectedState(); - - /** - * Subscribes to changes in the carbon monoxide's state. - * - * @param callback the function to call when the state changes. - */ - void subscribeCarbonMonoxideDetectedState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the carbon monoxide's state. */ - void unsubscribeCarbonMonoxideDetectedState(); - - @Override - default Collection getServices() { - return Collections.singleton(new CarbonMonoxideSensorService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/ContactSensorAccessory.java b/src/main/java/io/github/hapjava/accessories/ContactSensorAccessory.java deleted file mode 100644 index 754f6981b..000000000 --- a/src/main/java/io/github/hapjava/accessories/ContactSensorAccessory.java +++ /dev/null @@ -1,41 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.contactsensor.ContactStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.ContactSensorService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A contact sensor that reports whether contact is detected or not. Typical contact sensors are - * window/door sensors. When contact is detected it means that the door/window is closed. - * - * @author Gaston Dombiak - */ -public interface ContactSensorAccessory extends HomekitAccessory { - - /** - * Retrieves the state of the contact. This is whether the contact is detected or not. Detected - * contact means door/window is closed. - * - * @return a future that will contain the contact's state - */ - CompletableFuture getCurrentState(); - - /** - * Subscribes to changes in the contact state. - * - * @param callback the function to call when the state changes. - */ - void subscribeContactState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the contact state. */ - void unsubscribeContactState(); - - @Override - default Collection getServices() { - return Collections.singleton(new ContactSensorService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/DoorAccessory.java b/src/main/java/io/github/hapjava/accessories/DoorAccessory.java deleted file mode 100644 index 1049c7686..000000000 --- a/src/main/java/io/github/hapjava/accessories/DoorAccessory.java +++ /dev/null @@ -1,78 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.windowcovering.PositionStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.DoorService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** A motorized door with current and target position. */ -public interface DoorAccessory extends HomekitAccessory { - - /** - * Retrieves the position state of the door - * - * @return a future which will contain the door's position state - */ - CompletableFuture getPositionState(); - - /** - * Retrieves the current position of the door - * - * @return a future which will contain the door's current position - */ - CompletableFuture getCurrentPosition(); - - /** - * Retrieves the target position of the door - * - * @return a future which will contain the door's target position - */ - CompletableFuture getTargetPosition(); - - /** - * Sets the targeted state of the door. - * - * @param position the targeted position - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setTargetPosition(Integer position) throws Exception; - - /** - * Subscribes to changes in the door's position state - * - * @param callback the function to call when the state changes - */ - void subscribePositionState(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the door's current position - * - * @param callback the function to call when the current position changes - */ - void subscribeCurrentPosition(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the door's target position - * - * @param callback the function to call when the target position changes - */ - void subscribeTargetPosition(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the door's state */ - void unsubscribePositionState(); - - /** Unsubscribes from changes in the door's current position */ - void unsubscribeCurrentPosition(); - - /** Unsubscribes from changes in the door's target position */ - void unsubscribeTargetPosition(); - - @Override - default Collection getServices() { - return Collections.singleton(new DoorService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/DoorbellAccessory.java b/src/main/java/io/github/hapjava/accessories/DoorbellAccessory.java deleted file mode 100644 index d46d4a00e..000000000 --- a/src/main/java/io/github/hapjava/accessories/DoorbellAccessory.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.DoorbellService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** doorbell accessory with a switch (button push) event. */ -public interface DoorbellAccessory extends HomekitAccessory { - - /** - * Retrieves the last states of the doorbell. Bluetooth device should return the last event, the - * IP device should always return null - * - * @return state of the door bell event - */ - CompletableFuture getSwitchEvent(); - - /** - * Subscribes to changes in doorbell switch event, i.e. pressing on the door bell button. - * - * @param callback the function to call when the state changes. - */ - void subscribeSwitchEvent(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in doorbell switch event. */ - void unsubscribeSwitchEvent(); - - @Override - default Collection getServices() { - return Collections.singleton(new DoorbellService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/FanAccessory.java b/src/main/java/io/github/hapjava/accessories/FanAccessory.java deleted file mode 100644 index 641214e76..000000000 --- a/src/main/java/io/github/hapjava/accessories/FanAccessory.java +++ /dev/null @@ -1,46 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.FanService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A fan with mandatory characteristics. - * - * @author Andy Lintner - */ -public interface FanAccessory extends HomekitAccessory { - /** - * Mandatory: Retrieves the current active state of the fan'. - * - * @return a future that will contain the binary state - */ - CompletableFuture isActive(); - - /** - * Sets the active state of the fan - * - * @param state the binary state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setActive(boolean state) throws Exception; - - /** - * Subscribes to changes in the active state of the fan. - * - * @param callback the function to call when the active state changes. - */ - void subscribeActive(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the active state of the fan. */ - void unsubscribeActive(); - - @Override - default Collection getServices() { - return Collections.singleton(new FanService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/FaucetAccessory.java b/src/main/java/io/github/hapjava/accessories/FaucetAccessory.java deleted file mode 100644 index 7a000fcec..000000000 --- a/src/main/java/io/github/hapjava/accessories/FaucetAccessory.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.FaucetService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** Faucets or shower heads accessory. */ -public interface FaucetAccessory extends HomekitAccessory { - /** - * Mandatory: Retrieves the current active state of the faucet. - * - * @return a future that will contain the binary state - */ - CompletableFuture isActive(); - - /** - * Sets the active state of the faucet - * - * @param state the binary state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setActive(boolean state) throws Exception; - - /** - * Subscribes to changes in the active state of the faucet. - * - * @param callback the function to call when the active state changes. - */ - void subscribeActive(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the active state of the faucet. */ - void unsubscribeActive(); - - @Override - default Collection getServices() { - return Collections.singleton(new FaucetService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/FilterMaintenanceAccessory.java b/src/main/java/io/github/hapjava/accessories/FilterMaintenanceAccessory.java deleted file mode 100644 index 2ebee5495..000000000 --- a/src/main/java/io/github/hapjava/accessories/FilterMaintenanceAccessory.java +++ /dev/null @@ -1,40 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.FilterMaintenanceService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A Filter maintenance with mandatory characteristics. - * - *

    The HomeKit app doesn't support a separate FilterMaintenance, but as a linked service to - * AirPurifier. - */ -public interface FilterMaintenanceAccessory extends HomekitAccessory { - - /** - * The filter change indictaion. It's either yes or no. - * - * @return FilterChangeIndicationEnum - */ - CompletableFuture getFilterChangeIndication(); - - /** - * Subscribes to changes in the filter change indication. - * - * @param callback the function to call when the state changes. - */ - void subscribeFilterChangeIndication(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the filter change indication. */ - void unsubscribeFilterChangeIndication(); - - @Override - default Collection getServices() { - return Collections.singleton(new FilterMaintenanceService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/GarageDoorOpenerAccessory.java b/src/main/java/io/github/hapjava/accessories/GarageDoorOpenerAccessory.java deleted file mode 100644 index 37bd8a063..000000000 --- a/src/main/java/io/github/hapjava/accessories/GarageDoorOpenerAccessory.java +++ /dev/null @@ -1,83 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateEnum; -import io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.GarageDoorOpenerService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * garage door opener accessory with control and status of a garage door - * - * @author Andy Lintner - */ -public interface GarageDoorOpenerAccessory extends HomekitAccessory { - - /** - * Retrieves the current state of the door - * - * @return a future which will contain the door's state - */ - CompletableFuture getCurrentDoorState(); - - /** - * Retrieves the targeted state of the door - * - * @return a future which will contain the door's targeted state - */ - CompletableFuture getTargetDoorState(); - - /** - * Retrieves an indicator of an obstruction detected by the door - * - * @return a future which will contain the indicator - */ - CompletableFuture getObstructionDetected(); - - /** - * Sets the targeted state of the door. - * - * @param state the targeted state - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setTargetDoorState(TargetDoorStateEnum state) throws Exception; - - /** - * Subscribes to changes in the door's state - * - * @param callback the function to call when the state changes - */ - void subscribeCurrentDoorState(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the door's targeted state - * - * @param callback the function to call when the targeted state changes - */ - void subscribeTargetDoorState(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the obstruction detected indicator - * - * @param callback the function to call when the indicator chnages - */ - void subscribeObstructionDetected(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the door's state */ - void unsubscribeCurrentDoorState(); - - /** Unsubscribes from changes in the door's targeted state */ - void unsubscribeTargetDoorState(); - - /** Unsubscribes from changes in the door's obstruction detected indicator */ - void unsubscribeObstructionDetected(); - - @Override - default Collection getServices() { - return Collections.singleton(new GarageDoorOpenerService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/HeaterCoolerAccessory.java b/src/main/java/io/github/hapjava/accessories/HeaterCoolerAccessory.java deleted file mode 100644 index d72af203a..000000000 --- a/src/main/java/io/github/hapjava/accessories/HeaterCoolerAccessory.java +++ /dev/null @@ -1,121 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateEnum; -import io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.HeaterCoolerService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** Heater Cooler accessory */ -public interface HeaterCoolerAccessory extends HomekitAccessory { - /** - * Retrieves the current temperature, in celsius degrees. - * - * @return a future that will contain the temperature. - */ - CompletableFuture getCurrentTemperature(); - - /** - * Mandatory: Retrieves the current active state of the Heater Cooler. - * - * @return a future that will contain the binary state - */ - CompletableFuture isActive(); - - /** - * Sets the active state of the Heater Cooler - * - * @param state the binary state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setActive(boolean state) throws Exception; - - /** - * Retrieves the heater /cooler current state. - * - * @return a future that will contain the heater cooler current state . - */ - CompletableFuture getCurrentHeaterCoolerState(); - - /** - * Retrieves the heater cooler target state. - * - * @return a future that will contain the heater cooler target state . - */ - CompletableFuture getTargetHeaterCoolerState(); - - /** - * set heater cooler target state the lock target state. - * - * @param state heater cooler target state - * @return a future that completes when the change is made - */ - CompletableFuture setTargetHeaterCoolerState(TargetHeaterCoolerStateEnum state); - - /** - * Subscribes to changes in the heater cooler current state. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentHeaterCoolerState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in heater cooler current state. */ - void unsubscribeCurrentHeaterCoolerState(); - - /** - * Subscribes to changes in the heater cooler target state. - * - * @param callback the function to call when the state changes. - */ - void subscribeTargetHeaterCoolerState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in heater cooler target state. */ - void unsubscribeTargetHeaterCoolerState(); - - /** - * Subscribes to changes in the active state of the heater cooler . - * - * @param callback the function to call when the active state changes. - */ - void subscribeActive(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the active state of the heater cooler . */ - void unsubscribeActive(); - - /** - * Subscribes to changes in the current temperature. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentTemperature(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current temperature. */ - void unsubscribeCurrentTemperature(); - - /** - * Valid values for current state. - * - * @return array of valid current states - */ - default CurrentHeaterCoolerStateEnum[] getCurrentHeaterCoolerStateValidValues() { - return CurrentHeaterCoolerStateEnum.values(); - } - - /** - * Valid values for target state. - * - * @return array of valid target states - */ - default TargetHeaterCoolerStateEnum[] getTargetHeaterCoolerStateValidValues() { - return TargetHeaterCoolerStateEnum.values(); - } - - @Override - default Collection getServices() { - return Collections.singleton(new HeaterCoolerService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/HomekitAccessory.java b/src/main/java/io/github/hapjava/accessories/HomekitAccessory.java deleted file mode 100644 index 64c406492..000000000 --- a/src/main/java/io/github/hapjava/accessories/HomekitAccessory.java +++ /dev/null @@ -1,99 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.AccessoryInformationService; -import java.util.Collection; -import java.util.Collections; -import java.util.Iterator; -import java.util.concurrent.CompletableFuture; - -/** - * Base interface for all HomeKit Accessories. You can implement this interface directly, but most - * users will prefer to use the more full featured interfaces in {@link - * io.github.hapjava.accessories} which include a default implementation of {@link #getServices()}. - * - * @author Andy Lintner - */ -public interface HomekitAccessory { - - /** - * A unique identifier that must remain static across invocations to prevent errors with paired - * iOS devices. When used as a child of a Bridge, this value must be greater than 1, as that ID is - * reserved for the Bridge itself. - * - * @return the unique identifier. - */ - int getId(); - - /** - * Returns a name to display in iOS. - * - * @return the label. - */ - CompletableFuture getName(); - - /** - * Performs an operation that can be used to identify the accessory. This action can be performed - * without pairing. - */ - void identify(); - - /** - * Returns a serial number to display in iOS. - * - * @return the serial number, or null. - */ - CompletableFuture getSerialNumber(); - - /** - * Returns a model name to display in iOS. - * - * @return the model name, or null. - */ - CompletableFuture getModel(); - - /** - * Returns a manufacturer to display in iOS. - * - * @return the manufacturer, or null. - */ - CompletableFuture getManufacturer(); - - /** - * Returns a firmware revision to display in iOS. - * - * @return the firmware revision, or null. - */ - CompletableFuture getFirmwareRevision(); - - /** - * The collection of Services this accessory supports. Services are the primary way to interact - * with the accessory via HomeKit. Besides the Services offered here, the accessory will - * automatically include the required information service. - * - *

    This method will only be useful if you're implementing your own accessory type. For the - * standard accessories, use the default implementation provided by the interfaces in {@link - * io.github.hapjava.accessories}. - * - * @return the collection of services. - */ - default Collection getServices() { - return Collections.singleton(new AccessoryInformationService(this)); - }; - - /** - * default implementation which is sufficient if accessory has only one service - * - * @return primary service - */ - default Service getPrimaryService() { - Iterator iterator = getServices().iterator(); - while (iterator.hasNext()) { - Service service = iterator.next(); - if (!(service instanceof AccessoryInformationService)) { - return service; - } - } - return null; - }; -} diff --git a/src/main/java/io/github/hapjava/accessories/HumidifierDehumidifierAccessory.java b/src/main/java/io/github/hapjava/accessories/HumidifierDehumidifierAccessory.java deleted file mode 100644 index 63a460526..000000000 --- a/src/main/java/io/github/hapjava/accessories/HumidifierDehumidifierAccessory.java +++ /dev/null @@ -1,114 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateEnum; -import io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.HumidifierDehumidifierService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** Humidifier/Dehumidifier accessory */ -public interface HumidifierDehumidifierAccessory extends HomekitAccessory { - /** - * Retrieves the current relative humidity. - * - * @return a future that will contain the humidity as a value between 0 and 100. - */ - CompletableFuture getCurrentHumidity(); - - /** - * Mandatory: Retrieves the current active state of the humidifier/dehumidifier. - * - * @return a future that will contain the binary state - */ - CompletableFuture isActive(); - - /** - * Sets the active state of the humidifier/dehumidifier - * - * @param state the binary state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setActive(boolean state) throws Exception; - - /** - * Retrieves the humidifier/dehumidifier current state. - * - * @return a future that will contain the humidifier/dehumidifier current state . - */ - CompletableFuture getCurrentHumidifierDehumidifierState(); - - /** - * Retrieves the humidifier/dehumidifier target state. - * - * @return a future that will contain the humidifier/dehumidifier target state . - */ - CompletableFuture getTargetHumidifierDehumidifierState(); - - /** - * set humidifier/dehumidifier target state the lock target state. - * - * @param state humidifier/dehumidifier target state - * @return a future that completes when the change is made - */ - CompletableFuture setTargetHumidifierDehumidifierState( - TargetHumidifierDehumidifierStateEnum state); - - /** - * Valid values for target state. - * - * @return array of valid target states. - */ - default TargetHumidifierDehumidifierStateEnum[] - getTargetHumidifierDehumidifierStateValidValues() { - return TargetHumidifierDehumidifierStateEnum.values(); - } - - /** - * Subscribes to changes in the humidifier/dehumidifier current state. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentHumidifierDehumidifierState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in humidifier/dehumidifier current state. */ - void unsubscribeCurrentHumidifierDehumidifierState(); - - /** - * Subscribes to changes in the humidifier/dehumidifier target state. - * - * @param callback the function to call when the state changes. - */ - void subscribeTargetHumidifierDehumidifierState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in humidifier/dehumidifier target state. */ - void unsubscribeTargetHumidifierDehumidifierState(); - - /** - * Subscribes to changes in the active state of the humidifier/dehumidifier . - * - * @param callback the function to call when the active state changes. - */ - void subscribeActive(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the active state of the humidifier/dehumidifier . */ - void unsubscribeActive(); - - /** - * Subscribes to changes in the current humidity. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentHumidity(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current humidity. */ - void unsubscribeCurrentHumidity(); - - @Override - default Collection getServices() { - return Collections.singleton(new HumidifierDehumidifierService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/HumiditySensorAccessory.java b/src/main/java/io/github/hapjava/accessories/HumiditySensorAccessory.java deleted file mode 100644 index 07c24be58..000000000 --- a/src/main/java/io/github/hapjava/accessories/HumiditySensorAccessory.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.HumiditySensorService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A humidity sensor that reports the current relative humidity. - * - * @author Andy Lintner - */ -public interface HumiditySensorAccessory extends HomekitAccessory { - - /** - * Retrieves the current relative humidity. - * - * @return a future that will contain the humidity as a value between 0 and 100 - */ - CompletableFuture getCurrentRelativeHumidity(); - - /** - * Subscribes to changes in the current relative humidity. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentRelativeHumidity(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current relative humidity. */ - void unsubscribeCurrentRelativeHumidity(); - - @Override - default Collection getServices() { - return Collections.singleton(new HumiditySensorService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/InputSourceAccessory.java b/src/main/java/io/github/hapjava/accessories/InputSourceAccessory.java deleted file mode 100644 index cfa5ae3d6..000000000 --- a/src/main/java/io/github/hapjava/accessories/InputSourceAccessory.java +++ /dev/null @@ -1,104 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.common.IsConfiguredEnum; -import io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateEnum; -import io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.InputSourceService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** Input Source accessory. */ -public interface InputSourceAccessory extends HomekitAccessory { - - /** - * Retrieves configured name of input source. - * - * @return configured name of input source - */ - CompletableFuture getConfiguredName(); - - /** - * Sets the configured name. - * - * @param name configured name - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setConfiguredName(String name) throws Exception; - - /** - * Subscribes to changes in configured name. - * - * @param callback the function to call when the configured name changes. - */ - void subscribeConfiguredName(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the configured name. */ - void unsubscribeConfiguredName(); - - /** - * Retrieves the flag whether input source is configured. - * - * @return a future that will contain the flag . - */ - CompletableFuture isConfigured(); - /** - * set the flag whether input source is configured. - * - * @param state is configured state - * @return a future that completes when the change is made - */ - CompletableFuture setIsConfigured(IsConfiguredEnum state); - - /** - * Subscribes to changes in isConfigured. - * - * @param callback the function to call when the state changes. - */ - void subscribeIsConfigured(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in isConfigured. */ - void unsubscribeIsConfigured(); - - /** - * Retrieves the input source type. - * - * @return a future that will contain the input source type. - */ - CompletableFuture getInputSourceType(); - - /** - * Subscribes to changes in input source type. - * - * @param callback the function to call when the type changes. - */ - void subscribeInputSourceType(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the input source type. */ - void unsubscribeInputSourceType(); - - /** - * Retrieves the current visibility state. - * - * @return a future that will contain the current visibility state. - */ - CompletableFuture getCurrentVisibilityState(); - - /** - * Subscribes to changes in current visibility state. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentVisibilityState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current visibility state. */ - void unsubscribeCurrentVisibilityState(); - - @Override - default Collection getServices() { - return Collections.singleton(new InputSourceService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/IrrigationSystemAccessory.java b/src/main/java/io/github/hapjava/accessories/IrrigationSystemAccessory.java deleted file mode 100644 index dffa2e00b..000000000 --- a/src/main/java/io/github/hapjava/accessories/IrrigationSystemAccessory.java +++ /dev/null @@ -1,82 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.common.ActiveEnum; -import io.github.hapjava.characteristics.impl.common.InUseEnum; -import io.github.hapjava.characteristics.impl.common.ProgramModeEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.IrrigationSystemService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** irrigation system accessory that controls several valves. */ -public interface IrrigationSystemAccessory extends HomekitAccessory { - - /** - * An irrigation system is set to Active when the system is enabled. When one of the valves is set - * to In Use, the irrigation system must be set to in use. - * - * @return a future that will contain the binary state - */ - CompletableFuture getActive(); - - /** - * Sets the irrigation active state - * - * @param active the binary state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setActive(ActiveEnum active) throws Exception; - - /** - * Retrieves the program mode status - * - * @return a future that will contain the valve type. - */ - CompletableFuture getProgramMode(); - - /** - * Retrieves the current inUse state of the irrigation; InUse means one of the valves is set to In - * Use. - * - * @return a future that will contain the binary state - */ - CompletableFuture getInUse(); - - /** - * Subscribes to changes in the inUse state. - * - * @param callback the function to call when the state changes. - */ - void subscribeInUse(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the inUse state. */ - void unsubscribeInUse(); - - /** - * Subscribes to changes in the active state of the irrigation. - * - * @param callback the function to call when the state changes. - */ - void subscribeActive(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the irrigation active state. */ - void unsubscribeActive(); - - /** - * Subscribes to changes in the program mode of the irrigation system. - * - * @param callback the function to call when the state changes. - */ - void subscribeProgramMode(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the program mode. */ - void unsubscribeProgramMode(); - - @Override - default Collection getServices() { - return Collections.singleton(new IrrigationSystemService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/LeakSensorAccessory.java b/src/main/java/io/github/hapjava/accessories/LeakSensorAccessory.java deleted file mode 100644 index c36ce278c..000000000 --- a/src/main/java/io/github/hapjava/accessories/LeakSensorAccessory.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.LeakSensorService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A leak sensor that reports whether a leak has been detected. - * - * @author Tim Harper - */ -public interface LeakSensorAccessory extends HomekitAccessory { - - /** - * Retrieves the state of the leak sensor. If true then leak has been detected. - * - * @return a future that will contain the leak sensor's state - */ - CompletableFuture getLeakDetected(); - - /** - * Subscribes to changes in the leak sensor. - * - * @param callback the function to call when the state changes. - */ - void subscribeLeakDetected(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the leak sensor. */ - void unsubscribeLeakDetected(); - - @Override - default Collection getServices() { - return Collections.singleton(new LeakSensorService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/LightSensorAccessory.java b/src/main/java/io/github/hapjava/accessories/LightSensorAccessory.java deleted file mode 100644 index 2087b1e99..000000000 --- a/src/main/java/io/github/hapjava/accessories/LightSensorAccessory.java +++ /dev/null @@ -1,69 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.lightsensor.CurrentAmbientLightLevelCharacteristic; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.LightSensorService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A light sensor that reports current ambient light level. - * - * @author Gaston Dombiak - */ -public interface LightSensorAccessory extends HomekitAccessory { - - /** - * Retrieves the current ambient light level. - * - * @return a future that will contain the luminance level expressed in LUX. - */ - CompletableFuture getCurrentAmbientLightLevel(); - - /** - * Subscribes to changes in the current ambient light level. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentAmbientLightLevel(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current ambient light level. */ - void unsubscribeCurrentAmbientLightLevel(); - - /** - * return the min value for current ambient light level. overwrite if you want to change the - * default value. - * - * @return min current ambient light level - */ - default double getMinCurrentAmbientLightLevel() { - return CurrentAmbientLightLevelCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for current ambient light level. overwrite if you want to change the - * default value. - * - * @return max current ambient light level - */ - default double getMaxCurrentAmbientLightLevel() { - return CurrentAmbientLightLevelCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * return the min step value for current ambient light level. overwrite if you want to change the - * default value. - * - * @return min step current ambient light level - */ - default double getMinStepCurrentAmbientLightLevel() { - return CurrentAmbientLightLevelCharacteristic.DEFAULT_STEP; - } - - @Override - default Collection getServices() { - return Collections.singleton(new LightSensorService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/LightbulbAccessory.java b/src/main/java/io/github/hapjava/accessories/LightbulbAccessory.java deleted file mode 100644 index 8a6caaed8..000000000 --- a/src/main/java/io/github/hapjava/accessories/LightbulbAccessory.java +++ /dev/null @@ -1,47 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.LightbulbService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A simple light with a binary state. - * - * @author Andy Lintner - */ -public interface LightbulbAccessory extends HomekitAccessory { - - /** - * Retrieves the current binary state of the light. - * - * @return a future that will contain the binary state - */ - CompletableFuture getLightbulbPowerState(); - - /** - * Sets the binary state of the light - * - * @param powerState the binary state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setLightbulbPowerState(boolean powerState) throws Exception; - - /** - * Subscribes to changes in the binary state of the light. - * - * @param callback the function to call when the state changes. - */ - void subscribeLightbulbPowerState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the binary state of the light. */ - void unsubscribeLightbulbPowerState(); - - @Override - default Collection getServices() { - return Collections.singleton(new LightbulbService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/LockMechanismAccessory.java b/src/main/java/io/github/hapjava/accessories/LockMechanismAccessory.java deleted file mode 100644 index f12f3e286..000000000 --- a/src/main/java/io/github/hapjava/accessories/LockMechanismAccessory.java +++ /dev/null @@ -1,61 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.lock.LockCurrentStateEnum; -import io.github.hapjava.characteristics.impl.lock.LockTargetStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.LockMechanismService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** Lock mechanism with current and target state. */ -public interface LockMechanismAccessory extends HomekitAccessory { - - /** - * Retrieves the lock current state. - * - * @return a future that will contain the lock current state . - */ - CompletableFuture getLockCurrentState(); - - /** - * Retrieves the lock target state. - * - * @return a future that will contain the lock target state . - */ - CompletableFuture getLockTargetState(); - - /** - * set lock target state the lock target state. - * - * @param state lock target state - * @return a future that completes when the change is made - */ - CompletableFuture setLockTargetState(LockTargetStateEnum state); - - /** - * Subscribes to changes in the lock current state. - * - * @param callback the function to call when the state changes. - */ - void subscribeLockCurrentState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in lock current state. */ - void unsubscribeLockCurrentState(); - - /** - * Subscribes to changes in the lock target state. - * - * @param callback the function to call when the state changes. - */ - void subscribeLockTargetState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in lock target state. */ - void unsubscribeLockTargetState(); - - @Override - default Collection getServices() { - return Collections.singleton(new LockMechanismService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/MicrophoneAccessory.java b/src/main/java/io/github/hapjava/accessories/MicrophoneAccessory.java deleted file mode 100644 index f63f8b70c..000000000 --- a/src/main/java/io/github/hapjava/accessories/MicrophoneAccessory.java +++ /dev/null @@ -1,43 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.MicrophoneService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** Microphone accessory with mute state. */ -public interface MicrophoneAccessory extends HomekitAccessory { - - /** - * Retrieves mute status. - * - * @return true if accessory is muted - */ - CompletableFuture isMuted(); - - /** - * Sets the mute status - * - * @param mute true if accessory should be muted - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setMute(boolean mute) throws Exception; - - /** - * Subscribes to changes in mute state. - * - * @param callback the function to call when the state changes. - */ - void subscribeMuteState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the mute state. */ - void unsubscribeMuteState(); - - @Override - default Collection getServices() { - return Collections.singleton(new MicrophoneService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/MotionSensorAccessory.java b/src/main/java/io/github/hapjava/accessories/MotionSensorAccessory.java deleted file mode 100644 index e843068b1..000000000 --- a/src/main/java/io/github/hapjava/accessories/MotionSensorAccessory.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.MotionSensorService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A motion sensor that reports whether motion has been detected. - * - * @author Gaston Dombiak - */ -public interface MotionSensorAccessory extends HomekitAccessory { - - /** - * Retrieves the state of the motion sensor. If true then motion has been detected. - * - * @return a future that will contain the motion sensor's state - */ - CompletableFuture getMotionDetected(); - - /** - * Subscribes to changes in the motion sensor. - * - * @param callback the function to call when the state changes. - */ - void subscribeMotionDetected(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the motion sensor. */ - void unsubscribeMotionDetected(); - - @Override - default Collection getServices() { - return Collections.singleton(new MotionSensorService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/OccupancySensorAccessory.java b/src/main/java/io/github/hapjava/accessories/OccupancySensorAccessory.java deleted file mode 100644 index 5fc3cff1e..000000000 --- a/src/main/java/io/github/hapjava/accessories/OccupancySensorAccessory.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.OccupancySensorService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * An occupancy sensor that reports whether occupancy has been detected. - * - * @author Tim Harper - */ -public interface OccupancySensorAccessory extends HomekitAccessory { - /** - * Retrieves the state of the occupancy sensor. If true then occupancy has been detected. - * - * @return a future that will contain the occupancy sensor's state - */ - CompletableFuture getOccupancyDetected(); - - /** - * Subscribes to changes in the occupancy sensor. - * - * @param callback the function to call when the state changes. - */ - void subscribeOccupancyDetected(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the occupancy sensor. */ - void unsubscribeOccupancyDetected(); - - @Override - default Collection getServices() { - return Collections.singleton(new OccupancySensorService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/OutletAccessory.java b/src/main/java/io/github/hapjava/accessories/OutletAccessory.java deleted file mode 100644 index 213f673b7..000000000 --- a/src/main/java/io/github/hapjava/accessories/OutletAccessory.java +++ /dev/null @@ -1,64 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.OutletService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A power outlet with boolean power and usage states. - * - * @author Andy Lintner - */ -public interface OutletAccessory extends HomekitAccessory { - - /** - * Retrieves the current binary state of the outlet's power. - * - * @return a future that will contain the binary state - */ - CompletableFuture getPowerState(); - - /** - * Retrieves the current binary state indicating whether the outlet is in use. - * - * @return a future that will contain the binary state - */ - CompletableFuture getOutletInUse(); - - /** - * Sets the binary state of the outlet's power. - * - * @param state the binary state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setPowerState(boolean state) throws Exception; - - /** - * Subscribes to changes in the binary state of the outlet's power. - * - * @param callback the function to call when the state changes. - */ - void subscribePowerState(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the binary state indicating whether the outlet is in use. - * - * @param callback the function to call when the state changes. - */ - void subscribeOutletInUse(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the binary state of the outlet's power. */ - void unsubscribePowerState(); - - /** Unsubscribes from changes in the binary state indicating whether hte outlet is in use. */ - void unsubscribeOutletInUse(); - - @Override - default Collection getServices() { - return Collections.singleton(new OutletService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/SecuritySystemAccessory.java b/src/main/java/io/github/hapjava/accessories/SecuritySystemAccessory.java deleted file mode 100644 index 43c12acd2..000000000 --- a/src/main/java/io/github/hapjava/accessories/SecuritySystemAccessory.java +++ /dev/null @@ -1,89 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateEnum; -import io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.SecuritySystemService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A security system that can be armed so that when a contact sensor is opened or a motion sensor - * detects movement, then a siren could be fired off. There are different modes for arming the - * system. See {@link TargetSecuritySystemStateEnum} for more information. - * - * @author Gaston Dombiak - */ -public interface SecuritySystemAccessory extends HomekitAccessory { - - /** - * Retrieves the current state of the security system. The state describes if the system is armed - * in any of its variations; or if the alarm has been triggered; or if the system is disarmed. - * - * @return current state of the security system. - */ - CompletableFuture getCurrentSecuritySystemState(); - - /** - * Subscribes to changes to the state of the security system. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentSecuritySystemState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the state of the security system. */ - void unsubscribeCurrentSecuritySystemState(); - - /** - * Sets the state of the security system. The security system could be armed in any of its - * variations or disarmed. - * - * @param state target state of the security system. - * @throws Exception when the change cannot be made. - */ - void setTargetSecuritySystemState(TargetSecuritySystemStateEnum state) throws Exception; - - /** - * Retrieves the pending, but not yet completed, state of the security system. - * - * @return target state of the security system. - */ - CompletableFuture getTargetSecuritySystemState(); - - /** - * Subscribes to changes in the pending, but not yet completed, state of the security system. - * - * @param callback the function to call when the state changes. - */ - void subscribeTargetSecuritySystemState(HomekitCharacteristicChangeCallback callback); - - /** - * Unsubscribes from changes in the pending, but not yet completed, state of the security system. - */ - void unsubscribeTargetSecuritySystemState(); - - /** - * Valid values for current state. - * - * @return array of valid current states. - */ - default CurrentSecuritySystemStateEnum[] getCurrentSecuritySystemStateValidValues() { - return CurrentSecuritySystemStateEnum.values(); - } - - /** - * Valid values for target state. - * - * @return array of valid targe states. - */ - default TargetSecuritySystemStateEnum[] getTargetSecuritySystemStateValidValues() { - return TargetSecuritySystemStateEnum.values(); - } - - @Override - default Collection getServices() { - return Collections.singleton(new SecuritySystemService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/SlatAccessory.java b/src/main/java/io/github/hapjava/accessories/SlatAccessory.java deleted file mode 100644 index 62888ab60..000000000 --- a/src/main/java/io/github/hapjava/accessories/SlatAccessory.java +++ /dev/null @@ -1,43 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.slat.CurrentSlatStateEnum; -import io.github.hapjava.characteristics.impl.slat.SlatTypeEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.SlatService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** A slat accessory which tilts on a vertical or a horizontal axis. */ -public interface SlatAccessory extends HomekitAccessory { - - /** - * Retrieves the current state of the slat - * - * @return a future that will contain the state - */ - CompletableFuture getSlatState(); - - /** - * Subscribes to changes in the state of the slat. - * - * @param callback the function to call when the state changes. - */ - void subscribeSlatState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the state of the slat. */ - void unsubscribeSlatState(); - - /** - * Retrieves the slat type. - * - * @return a future that will slat type. - */ - CompletableFuture getSlatType(); - - @Override - default Collection getServices() { - return Collections.singleton(new SlatService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/SmartSpeakerAccessory.java b/src/main/java/io/github/hapjava/accessories/SmartSpeakerAccessory.java deleted file mode 100644 index 9f70af2be..000000000 --- a/src/main/java/io/github/hapjava/accessories/SmartSpeakerAccessory.java +++ /dev/null @@ -1,62 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum; -import io.github.hapjava.characteristics.impl.television.TargetMediaStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.SmartSpeakerService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** Smart Speaker accessory. */ -public interface SmartSpeakerAccessory extends HomekitAccessory { - - /** - * Retrieves the current media state (see {@link - * io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum} for supported values). - * - * @return a future that will contain the current media state - */ - CompletableFuture getCurrentMediaState(); - - /** - * Subscribes to changes in the current media state. - * - * @param callback the function to call when the current media state changes. - */ - void subscribeCurrentMediaState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current media state. */ - void unsubscribeCurrentMediaState(); - - /** - * Retrieves the target media state (see {@link TargetMediaStateEnum} for supported values). - * - * @return a future that will contain the target media state - */ - CompletableFuture getTargetMediaState(); - - /** - * Set the target media state (see {@link TargetMediaStateEnum} for supported values). - * - * @param targetMediaState target media state - * @return a future that completes when the change is made - */ - CompletableFuture setTargetMediaState(TargetMediaStateEnum targetMediaState); - - /** - * Subscribes to changes in the target media state. - * - * @param callback the function to call when the target media state changes. - */ - void subscribeTargetMediaState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the target media state. */ - void unsubscribeTargetMediaState(); - - @Override - default Collection getServices() { - return Collections.singleton(new SmartSpeakerService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/SmokeSensorAccessory.java b/src/main/java/io/github/hapjava/accessories/SmokeSensorAccessory.java deleted file mode 100644 index b6a8b1054..000000000 --- a/src/main/java/io/github/hapjava/accessories/SmokeSensorAccessory.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.SmokeSensorService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A smoke sensor reports whether smoke has been detected or not. - * - * @author Gaston Dombiak - */ -public interface SmokeSensorAccessory extends HomekitAccessory { - - /** - * Retrieves the state of the smoke sensor. This is whether smoke has been detected or not. - * - * @return a future that will contain the smoke sensor's state - */ - CompletableFuture getSmokeDetectedState(); - - /** - * Subscribes to changes in the smoke sensor's state. - * - * @param callback the function to call when the state changes. - */ - void subscribeSmokeDetectedState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the smoke sensor's state. */ - void unsubscribeSmokeDetectedState(); - - @Override - default Collection getServices() { - return Collections.singleton(new SmokeSensorService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/SpeakerAccessory.java b/src/main/java/io/github/hapjava/accessories/SpeakerAccessory.java deleted file mode 100644 index 661607a30..000000000 --- a/src/main/java/io/github/hapjava/accessories/SpeakerAccessory.java +++ /dev/null @@ -1,43 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.SpeakerService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** Speaker accessory. */ -public interface SpeakerAccessory extends HomekitAccessory { - - /** - * Retrieves mute status. - * - * @return true if accessory is muted - */ - CompletableFuture isMuted(); - - /** - * Sets the mute status - * - * @param mute true if accessory should be muted - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setMute(boolean mute) throws Exception; - - /** - * Subscribes to changes in mute state. - * - * @param callback the function to call when the state changes. - */ - void subscribeMuteState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the mute state. */ - void unsubscribeMuteState(); - - @Override - default Collection getServices() { - return Collections.singleton(new SpeakerService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/StatelessProgrammableSwitchAccessory.java b/src/main/java/io/github/hapjava/accessories/StatelessProgrammableSwitchAccessory.java deleted file mode 100644 index 354c36587..000000000 --- a/src/main/java/io/github/hapjava/accessories/StatelessProgrammableSwitchAccessory.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.StatelessProgrammableSwitchService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** The Stateless Programmable Switch accessory */ -public interface StatelessProgrammableSwitchAccessory extends HomekitAccessory { - - /** - * Retrieves the last states of the switch. Bluetooth device should return the last event, the IP - * device should always return null - * - * @return state of the switch event - */ - CompletableFuture getSwitchEvent(); - - /** - * Subscribes to changes in switch event, i.e. pressing on the button. - * - * @param callback the function to call when the state changes. - */ - void subscribeSwitchEvent(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in switch event. */ - void unsubscribeSwitchEvent(); - - @Override - default Collection getServices() { - return Collections.singleton(new StatelessProgrammableSwitchService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/SwitchAccessory.java b/src/main/java/io/github/hapjava/accessories/SwitchAccessory.java deleted file mode 100644 index aae442f90..000000000 --- a/src/main/java/io/github/hapjava/accessories/SwitchAccessory.java +++ /dev/null @@ -1,47 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.SwitchService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A simple switch with a binary state. - * - * @author Andy Lintner - */ -public interface SwitchAccessory extends HomekitAccessory { - - /** - * Retrieves the current binary state of the switch. - * - * @return a future that will contain the binary state - */ - CompletableFuture getSwitchState(); - - /** - * Sets the binary state of the switch - * - * @param state the binary state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setSwitchState(boolean state) throws Exception; - - /** - * Subscribes to changes in the binary state of the switch. - * - * @param callback the function to call when the state changes. - */ - void subscribeSwitchState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the binary state of the switch. */ - void unsubscribeSwitchState(); - - @Override - default Collection getServices() { - return Collections.singleton(new SwitchService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/TelevisionAccessory.java b/src/main/java/io/github/hapjava/accessories/TelevisionAccessory.java deleted file mode 100644 index b51efe319..000000000 --- a/src/main/java/io/github/hapjava/accessories/TelevisionAccessory.java +++ /dev/null @@ -1,123 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.television.RemoteKeyEnum; -import io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.TelevisionService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** Television accessory. */ -public interface TelevisionAccessory extends HomekitAccessory { - - /** - * Retrieves the current active state of the TV. - * - * @return a future that will contain the state - */ - CompletableFuture isActive(); - - /** - * Sets the active state of the TV - * - * @param state the state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setActive(boolean state) throws Exception; - - /** - * Subscribes to changes in the active state of the TV . - * - * @param callback the function to call when the active state changes. - */ - void subscribeActive(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the active state of the TV. */ - void unsubscribeActive(); - - /** - * Retrieves the active identifier - * - * @return a future that will contain the active identifier. - */ - CompletableFuture getActiveIdentifier(); - - /** - * Sets the active identifier - * - * @param identifier the active identifier - * @return a future that completes when the active identifier is changed - * @throws Exception when the active identifier cannot be set - */ - CompletableFuture setActiveIdentifier(Integer identifier) throws Exception; - - /** - * Subscribes to changes in the active identifier. - * - * @param callback the function to call when the active identifier changes. - */ - void subscribeActiveIdentifier(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the active identifier. */ - void unsubscribeActiveIdentifier(); - - /** - * Retrieves configured name. - * - * @return configured name - */ - CompletableFuture getConfiguredName(); - - /** - * Sets the configured name - * - * @param name configured name - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setConfiguredName(String name) throws Exception; - - /** - * Subscribes to changes in configured name. - * - * @param callback the function to call when the configureed name changes. - */ - void subscribeConfiguredName(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the configured name state. */ - void unsubscribeConfiguredName(); - - /** - * Sends the remote key. - * - * @param key remote key - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setRemoteKey(RemoteKeyEnum key) throws Exception; - - /** - * Retrieves the sleep discovery mode. - * - * @return a future that will contain the sleep discovery mode . - */ - CompletableFuture getSleepDiscoveryMode(); - - /** - * Subscribes to changes in sleep discovery mode. - * - * @param callback the function to call when the sleep discovery mode changes. - */ - void subscribeSleepDiscoveryMode(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the sleep discovery mode. */ - void unsubscribeSleepDiscoveryMode(); - - @Override - default Collection getServices() { - return Collections.singleton(new TelevisionService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/TelevisionSpeakerAccessory.java b/src/main/java/io/github/hapjava/accessories/TelevisionSpeakerAccessory.java deleted file mode 100644 index 28df1437d..000000000 --- a/src/main/java/io/github/hapjava/accessories/TelevisionSpeakerAccessory.java +++ /dev/null @@ -1,43 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.TelevisionSpeakerService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** Television speaker accessory. */ -public interface TelevisionSpeakerAccessory extends HomekitAccessory { - - /** - * Retrieves mute status. - * - * @return true if accessory is muted - */ - CompletableFuture isMuted(); - - /** - * Sets the mute status - * - * @param mute true if accessory should be muted - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setMute(boolean mute) throws Exception; - - /** - * Subscribes to changes in mute state. - * - * @param callback the function to call when the state changes. - */ - void subscribeMuteState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the mute state. */ - void unsubscribeMuteState(); - - @Override - default Collection getServices() { - return Collections.singleton(new TelevisionSpeakerService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/TemperatureSensorAccessory.java b/src/main/java/io/github/hapjava/accessories/TemperatureSensorAccessory.java deleted file mode 100644 index 4f9184926..000000000 --- a/src/main/java/io/github/hapjava/accessories/TemperatureSensorAccessory.java +++ /dev/null @@ -1,68 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.TemperatureSensorService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A temperature sensor that reports the current temperature - * - * @author Andy Lintner - */ -public interface TemperatureSensorAccessory extends HomekitAccessory { - - /** - * Retrieves the current temperature, in celsius degrees. - * - * @return a future that will contain the temperature. - */ - CompletableFuture getCurrentTemperature(); - - /** - * return the min value for current temperature. overwrite if you want to change the default - * value. - * - * @return min current temperature - */ - default double getMinCurrentTemperature() { - return 0; - } - - /** - * return the max value for current temperature. overwrite if you want to change the default - * value. - * - * @return max current temperature - */ - default double getMaxCurrentTemperature() { - return 100; - } - - /** - * return the min step value for current temperature. overwrite if you want to change the default - * value. - * - * @return min step current temperature - */ - default double getMinStepCurrentTemperature() { - return 0.1; - } - - /** - * Subscribes to changes in the current temperature. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentTemperature(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current temperature. */ - void unsubscribeCurrentTemperature(); - - @Override - default Collection getServices() { - return Collections.singleton(new TemperatureSensorService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/ThermostatAccessory.java b/src/main/java/io/github/hapjava/accessories/ThermostatAccessory.java deleted file mode 100644 index 837993853..000000000 --- a/src/main/java/io/github/hapjava/accessories/ThermostatAccessory.java +++ /dev/null @@ -1,214 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateEnum; -import io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateEnum; -import io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.ThermostatService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A thermostat with heating and cooling controls. - * - * @author Andy Lintner - */ -public interface ThermostatAccessory extends HomekitAccessory { - - /** - * Retrieves the current temperature, in celsius degrees. - * - * @return a future that will contain the temperature. - */ - CompletableFuture getCurrentTemperature(); - - /** - * return the min value for current temperature. overwrite if you want to change the default - * value. - * - * @return min current temperature - */ - default double getMinCurrentTemperature() { - return 0; - } - - /** - * return the max value for current temperature. overwrite if you want to change the default - * value. - * - * @return max current temperature - */ - default double getMaxCurrentTemperature() { - return 100; - } - - /** - * return the min step value for current temperature. overwrite if you want to change the default - * value. - * - * @return min step current temperature - */ - default double getMinStepCurrentTemperature() { - return 0.1; - } - - /** - * Retrieves the target temperature, in celsius degrees. - * - * @return a future that will contain the target temperature. - */ - CompletableFuture getTargetTemperature(); - - /** - * Sets the target temperature. - * - * @param value the target temperature, in celsius degrees. - * @throws Exception when the temperature cannot be changed. - */ - void setTargetTemperature(Double value) throws Exception; - - /** - * return the min value for target temperature. overwrite if you want to change the default value. - * - * @return min target temperature - */ - default double getMinTargetTemperature() { - return 10; - } - - /** - * return the max value for target temperature. overwrite if you want to change the default value. - * - * @return max target temperature - */ - default double getMaxTargetTemperature() { - return 38; - } - - /** - * return the min step value for target temperature. overwrite if you want to change the default - * value. - * - * @return min step target temperature - */ - default double getMinStepTargetTemperature() { - return 0.1; - } - - /** - * Retrieves the current {@link CurrentHeatingCoolingStateEnum} of the thermostat. - * - * @return a future that will contain the mode. - */ - CompletableFuture getCurrentState(); - - /** - * Sets the {@link TargetHeatingCoolingStateEnum} of the thermostat. - * - * @param mode The {@link TargetHeatingCoolingStateEnum} to set. - * @throws Exception when the change cannot be made. - */ - void setTargetState(TargetHeatingCoolingStateEnum mode) throws Exception; - - /** - * Retrieves the pending, but not yet complete, {@link TargetHeatingCoolingStateEnum} of the - * thermostat. - * - * @return a future that will contain the target mode. - */ - CompletableFuture getTargetState(); - - /** - * Retrieves the temperture display units, e.g. C or F. - * - * @return a future that will contain the temperature unit. - */ - CompletableFuture getTemperatureDisplayUnit(); - - /** - * Sets the temperature unit. - * - * @param value the temperature display unit. - * @throws Exception when the temperature cannot be changed. - */ - void setTemperatureDisplayUnit(TemperatureDisplayUnitEnum value) throws Exception; - - /** - * Subscribes to changes in the pending, but not yet complete, {@link - * TargetHeatingCoolingStateEnum} of the thermostat. - * - * @param callback the function to call when the state changes. - */ - void subscribeTargetState(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the target temperature. - * - * @param callback the function to call when the state changes. - */ - void subscribeTargetTemperature(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the temperature display unit. - * - * @param callback the function to call when the uni changes. - */ - void subscribeTemperatureDisplayUnit(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the current temperature. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentTemperature(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the {@link CurrentHeatingCoolingStateEnum} of the thermostat. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the mode of the thermostat. */ - void unsubscribeCurrentState(); - - /** - * Unsubscribes from changes in the pending, but not yet complete, {@link - * TargetHeatingCoolingStateEnum} of the thermostat. - */ - void unsubscribeTargetState(); - - /** Unsubscribes from changes in the current temperature. */ - void unsubscribeCurrentTemperature(); - - /** Unsubscribes from changes in temperature display unit */ - void unsubscribeTemperatureDisplayUnit(); - - /** Unsubscribes from changes in the target temperature. */ - void unsubscribeTargetTemperature(); - - /** - * Valid values for current state. - * - * @return array of valid current states. - */ - default CurrentHeatingCoolingStateEnum[] getCurrentHeatingCoolingStateValidValues() { - return CurrentHeatingCoolingStateEnum.values(); - } - - /** - * Valid values for target state. - * - * @return array of valid targe states. - */ - default TargetHeatingCoolingStateEnum[] getTargetHeatingCoolingStateValidValues() { - return TargetHeatingCoolingStateEnum.values(); - } - - @Override - default Collection getServices() { - return Collections.singleton(new ThermostatService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/ValveAccessory.java b/src/main/java/io/github/hapjava/accessories/ValveAccessory.java deleted file mode 100644 index 3db17e41f..000000000 --- a/src/main/java/io/github/hapjava/accessories/ValveAccessory.java +++ /dev/null @@ -1,91 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.common.ActiveEnum; -import io.github.hapjava.characteristics.impl.common.InUseEnum; -import io.github.hapjava.characteristics.impl.valve.ValveTypeEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.ValveService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** - * A Valve (sprinkler head, faucet, etc.) - * - * @author Tim Harper - */ -public interface ValveAccessory extends HomekitAccessory { - - /** - * Retrieves the current active state of the valve; Active could mean the valve is open (but not - * necessarily running), or that the valve is associated with an active watering program (like a - * watering program) but is not currently running. - * - *

    To communicate water is flowing through a valve, inUse should be used. - * - * @return a future that will contain the binary state - */ - CompletableFuture getValveActive(); - - /** - * Sets the valve active state - * - * @param active the binary state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setValveActive(ActiveEnum active) throws Exception; - - /** - * Subscribes to changes in the active state of the valve. - * - * @param callback the function to call when the state changes. - */ - void subscribeValveActive(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the valve active state. */ - void unsubscribeValveActive(); - - /** - * Retrieves the current inUse state of the valve; InUse usually means water is flowing through - * the valve. - * - *

    To communicate water is flowing through a valve, inUse should be used. - * - * @return a future that will contain the binary state - */ - CompletableFuture getValveInUse(); - - /** - * Subscribes to changes in the inUse state of the valve. - * - * @param callback the function to call when the state changes. - */ - void subscribeValveInUse(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the valve inUse state. */ - void unsubscribeValveInUse(); - - /** - * Retrieves the valve type. - * - * @return a future that will contain the valve type. - */ - CompletableFuture getValveType(); - - /** - * Subscribes to changes in the valveType state of the valve. - * - * @param callback the function to call when the state changes. - */ - void subscribeValveType(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the valveType state. */ - void unsubscribeValveType(); - - @Override - default Collection getServices() { - return Collections.singleton(new ValveService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/WindowAccessory.java b/src/main/java/io/github/hapjava/accessories/WindowAccessory.java deleted file mode 100644 index 6cc52322b..000000000 --- a/src/main/java/io/github/hapjava/accessories/WindowAccessory.java +++ /dev/null @@ -1,78 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.windowcovering.PositionStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.WindowService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** motorized window accessory. */ -public interface WindowAccessory extends HomekitAccessory { - - /** - * Retrieves the position state of the door - * - * @return a future which will contain the door's position state - */ - CompletableFuture getPositionState(); - - /** - * Retrieves the current position of the door - * - * @return a future which will contain the door's current position - */ - CompletableFuture getCurrentPosition(); - - /** - * Retrieves the target position of the door - * - * @return a future which will contain the door's target position - */ - CompletableFuture getTargetPosition(); - - /** - * Sets the targeted state of the door. - * - * @param position the targeted position - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setTargetPosition(Integer position) throws Exception; - - /** - * Subscribes to changes in the door's position state - * - * @param callback the function to call when the state changes - */ - void subscribePositionState(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the door's current position - * - * @param callback the function to call when the current position changes - */ - void subscribeCurrentPosition(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the door's target position - * - * @param callback the function to call when the target position changes - */ - void subscribeTargetPosition(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the door's state */ - void unsubscribePositionState(); - - /** Unsubscribes from changes in the door's current position */ - void unsubscribeCurrentPosition(); - - /** Unsubscribes from changes in the door's target position */ - void unsubscribeTargetPosition(); - - @Override - default Collection getServices() { - return Collections.singleton(new WindowService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/WindowCoveringAccessory.java b/src/main/java/io/github/hapjava/accessories/WindowCoveringAccessory.java deleted file mode 100644 index 1b618d66f..000000000 --- a/src/main/java/io/github/hapjava/accessories/WindowCoveringAccessory.java +++ /dev/null @@ -1,77 +0,0 @@ -package io.github.hapjava.accessories; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.windowcovering.PositionStateEnum; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.WindowCoveringService; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -/** A window covering, like blinds, which can be remotely controlled. */ -public interface WindowCoveringAccessory extends HomekitAccessory { - /** - * Retrieves the current position - * - * @return a future that will contain the position as a value between 0 and 100 - */ - CompletableFuture getCurrentPosition(); - - /** - * Retrieves the target position - * - * @return a future that will contain the target position as a value between 0 and 100 - */ - CompletableFuture getTargetPosition(); - - /** - * Retrieves the state of the position: increasing, decreasing, or stopped - * - * @return a future that will contain the current state - */ - CompletableFuture getPositionState(); - - /** - * Sets the target position - * - * @param position the target position to set, as a value between 1 and 100 - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setTargetPosition(int position) throws Exception; - - /** - * Subscribes to changes in the current position. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentPosition(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the target position. - * - * @param callback the function to call when the state changes. - */ - void subscribeTargetPosition(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the position state: increasing, decreasing, or stopped - * - * @param callback the function to call when the state changes. - */ - void subscribePositionState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current position. */ - void unsubscribeCurrentPosition(); - - /** Unsubscribes from changes in the target position. */ - void unsubscribeTargetPosition(); - - /** Unsubscribes from changes in the position state */ - void unsubscribePositionState(); - - @Override - default Collection getServices() { - return Collections.singleton(new WindowCoveringService(this)); - } -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithAccessoryFlags.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithAccessoryFlags.java deleted file mode 100644 index 27d9c2e18..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithAccessoryFlags.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsEnum; -import java.util.concurrent.CompletableFuture; - -/** Accessory with accessory flags, which indicates that additional setup is required */ -public interface AccessoryWithAccessoryFlags { - - /** - * When set indicates accessory requires additional setup. - * - * @return a future that will contain the accessory flags - */ - CompletableFuture getAccessoryFlags(); - - /** - * Subscribes to changes in accessory flags - * - * @param callback the function to call when the accessory flags changes. - */ - void subscribeAccessoryFlags(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the accessory flags . */ - void unsubscribeAccessoryFlags(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithActive.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithActive.java deleted file mode 100644 index 4ad11be63..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithActive.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.common.ActiveEnum; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with active characteristic {@link - * io.github.hapjava.characteristics.impl.common.ActiveCharacteristic}. - */ -public interface AccessoryWithActive { - - /** - * Retrieves the active state (see {@link - * io.github.hapjava.characteristics.impl.common.ActiveEnum} for supported values). - * - * @return a future that will contain the active state - */ - CompletableFuture getActive(); - - /** - * Set the active state (see {@link ActiveEnum} for supported values). - * - * @param active active state - * @return a future that completes when the change is made - */ - CompletableFuture setActive(ActiveEnum active); - - /** - * Subscribes to changes in the active state. - * - * @param callback the function to call when the active state changes. - */ - void subscribeActive(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the active state. */ - void unsubscribeActive(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithAirPlayEnable.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithAirPlayEnable.java deleted file mode 100644 index 76b90b43f..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithAirPlayEnable.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with AirPlay enable characteristic {@link - * io.github.hapjava.characteristics.impl.common.AirPlayEnableCharacteristic}. - */ -public interface AccessoryWithAirPlayEnable { - - /** - * Retrieves the AirPlay enable state - * - * @return a future that will contain the AirPlay enable state. - */ - CompletableFuture getAirPlayEnable(); - - /** - * Sets the AirPlay enable state - * - * @param state AirPlay enable state - * @return a future that completes when the AirPlay enable is changed - * @throws Exception when the AirPlay enable cannot be set - */ - CompletableFuture setAirPlayEnable(Integer state) throws Exception; - - /** - * Subscribes to changes in the AirPlay enable state. - * - * @param callback the function to call when the AirPlay enable state changes. - */ - void subscribeAirPlayEnable(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the AirPlay enable state. */ - void unsubscribeAirPlayEnable(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithBrightness.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithBrightness.java deleted file mode 100644 index 4fa4557c2..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithBrightness.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with brightness values. - * - * @author Andy Lintner - */ -public interface AccessoryWithBrightness { - - /** - * Retrieves the current brightness of the light - * - * @return a future that will contain the brightness, expressed as an integer between 0 and 100. - */ - CompletableFuture getBrightness(); - - /** - * Sets the current brightness of the light - * - * @param value the brightness, on a scale of 0 to 100, to set - * @return a future that completes when the brightness is changed - * @throws Exception when the brightness cannot be set - */ - CompletableFuture setBrightness(Integer value) throws Exception; - - /** - * Subscribes to changes in the brightness of the light. - * - * @param callback the function to call when the state changes. - */ - void subscribeBrightness(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the brightness of the light. */ - void unsubscribeBrightness(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCarbonDioxideLevel.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCarbonDioxideLevel.java deleted file mode 100644 index bd143b22f..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCarbonDioxideLevel.java +++ /dev/null @@ -1,104 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideLevelCharacteristic; -import io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxidePeakLevelCharacteristic; -import java.util.concurrent.CompletableFuture; - -/** Accessory with carbon dioxide level and peak level characteristic. */ -public interface AccessoryWithCarbonDioxideLevel { - - /** - * Retrieves the carbon dioxide peak level - * - * @return a future that will contain the carbon dioxide level as a value between 0 and 100000 - */ - CompletableFuture getCarbonDioxidePeakLevel(); - - /** - * Retrieves the carbon dioxide level - * - * @return a future that will contain the carbon dioxide level as a value between 0 and 100000 - */ - CompletableFuture getCarbonDioxideLevel(); - - /** - * return the min value for carbon dioxide level. overwrite if you want to change the default - * value. - * - * @return min carbon dioxide level - */ - default double getMinCarbonDioxideLevel() { - return CarbonDioxideLevelCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for carbon dioxide level. overwrite if you want to change the default - * value. - * - * @return max carbon dioxide level - */ - default double getMaxCarbonDioxideLevel() { - return CarbonDioxideLevelCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * return the min step value for carbon dioxide level. overwrite if you want to change the default - * value. - * - * @return min step carbon dioxide level - */ - default double getMinStepCarbonDioxideLevel() { - return CarbonDioxideLevelCharacteristic.DEFAULT_STEP; - } - - /** - * return the min value for carbon dioxide peak level. overwrite if you want to change the default - * value. - * - * @return min carbon dioxide peak level - */ - default double getMinCarbonDioxidePeakLevel() { - return CarbonDioxidePeakLevelCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for carbon dioxide peak level. overwrite if you want to change the default - * value. - * - * @return max carbon dioxide peak level - */ - default double getMaxCarbonDioxidePeakLevel() { - return CarbonDioxidePeakLevelCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * return the min step value for carbon dioxide peak level. overwrite if you want to change the - * default value. - * - * @return min step carbon dioxide peak level - */ - default double getMinStepCarbonDioxidePeakLevel() { - return CarbonDioxidePeakLevelCharacteristic.DEFAULT_STEP; - } - - /** - * Subscribes to changes in the carbon dioxide level. - * - * @param callback the function to call when the state changes. - */ - void subscribeCarbonDioxideLevel(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the carbon dioxide level. */ - void unsubscribeCarbonDioxideLevel(); - - /** - * Subscribes to changes in the carbon dioxide level. - * - * @param callback the function to call when the state changes. - */ - void subscribeCarbonDioxidePeakLevel(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the carbon dioxide level. */ - void unsubscribeCarbonDioxidePeakLevel(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCarbonMonoxideLevel.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCarbonMonoxideLevel.java deleted file mode 100644 index cbccd9647..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCarbonMonoxideLevel.java +++ /dev/null @@ -1,104 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideLevelCharacteristic; -import io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxidePeakLevelCharacteristic; -import java.util.concurrent.CompletableFuture; - -/** Accessory with carbon monoxide level and peak level characteristic. */ -public interface AccessoryWithCarbonMonoxideLevel { - - /** - * Retrieves the carbon monoxide peak level - * - * @return a future that will contain the carbon monoxide level as a value between 0 and 100000 - */ - CompletableFuture getCarbonMonoxidePeakLevel(); - - /** - * Retrieves the carbon monoxide level - * - * @return a future that will contain the carbon monoxide level as a value between 0 and 100000 - */ - CompletableFuture getCarbonMonoxideLevel(); - - /** - * return the min value for carbon monoxide level. overwrite if you want to change the default - * value. - * - * @return min carbon monoxide level - */ - default double getMinCarbonMonoxideLevel() { - return CarbonMonoxideLevelCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for carbon monoxide level. overwrite if you want to change the default - * value. - * - * @return max carbon monoxide level - */ - default double getMaxCarbonMonoxideLevel() { - return CarbonMonoxideLevelCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * return the min step value for carbon monoxide level. overwrite if you want to change the - * default value. - * - * @return min step carbon monoxide level - */ - default double getMinStepCarbonMonoxideLevel() { - return CarbonMonoxideLevelCharacteristic.DEFAULT_STEP; - } - - /** - * return the min value for carbon monoxide peak level. overwrite if you want to change the - * default value. - * - * @return min carbon monoxide peak level - */ - default double getMinCarbonMonoxidePeakLevel() { - return CarbonMonoxidePeakLevelCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for carbon monoxide peak level. overwrite if you want to change the - * default value. - * - * @return max carbon monoxide peak level - */ - default double getMaxCarbonMonoxidePeakLevel() { - return CarbonMonoxidePeakLevelCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * return the min step value for carbon monoxide peak level. overwrite if you want to change the - * default value. - * - * @return min step carbon monoxide peak level - */ - default double getMinStepCarbonMonoxidePeakLevel() { - return CarbonMonoxidePeakLevelCharacteristic.DEFAULT_STEP; - } - - /** - * Subscribes to changes in the carbon monoxide level. - * - * @param callback the function to call when the state changes. - */ - void subscribeCarbonMonoxideLevel(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the carbon monoxide level. */ - void unsubscribeCarbonMonoxideLevel(); - - /** - * Subscribes to changes in the carbon monoxide level. - * - * @param callback the function to call when the state changes. - */ - void subscribeCarbonMonoxidePeakLevel(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the carbon monoxide level. */ - void unsubscribeCarbonMonoxidePeakLevel(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithClosedCaptions.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithClosedCaptions.java deleted file mode 100644 index c13da3289..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithClosedCaptions.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.television.ClosedCaptionsEnum; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with closed captions characteristic {@link - * io.github.hapjava.characteristics.impl.television.ClosedCaptionsCharacteristic}. - */ -public interface AccessoryWithClosedCaptions { - - /** - * Retrieves the closed captions state (see {@link ClosedCaptionsEnum} for supported values). - * - * @return a future that will contain the closed captions - */ - CompletableFuture getClosedCaptions(); - - /** - * Set the closed captions state (see {@link ClosedCaptionsEnum} for supported values). - * - * @param closedCaptions closed captions - * @return a future that completes when the change is made - */ - CompletableFuture setClosedCaptions(ClosedCaptionsEnum closedCaptions); - - /** - * Subscribes to changes in the closed captions. - * - * @param callback the function to call when the closed captions changes. - */ - void subscribeClosedCaptions(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the closed captions. */ - void unsubscribeClosedCaptions(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithColor.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithColor.java deleted file mode 100644 index e8f2dd66a..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithColor.java +++ /dev/null @@ -1,64 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with Color - * - * @author Andy Lintner - */ -public interface AccessoryWithColor { - - /** - * Retrieves the current hue of the light. - * - * @return a future that will contain the hue, expressed in arc degrees from 0 to 360. - */ - CompletableFuture getHue(); - - /** - * Sets the current hue of the light - * - * @param value the hue to set, expressed in arc degrees from 0 to 360. - * @return a future that completes when the hue is changed - * @throws Exception when the hue cannot be changed. - */ - CompletableFuture setHue(Double value) throws Exception; - - /** - * Subscribes to changes in the hue of the light. - * - * @param callback the function to call when the state changes. - */ - void subscribeHue(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the hue of the light. */ - void unsubscribeHue(); - - /** - * Retrieves the saturation of the light. - * - * @return a future that will contain the saturation, expressed as a value between 0 and 100. - */ - CompletableFuture getSaturation(); - - /** - * Sets the saturation of the light. - * - * @param value the saturation to set, expressed as a value between 0 and 100. - * @return a future that completes when the saturation is changed. - * @throws Exception when the saturation cannot be set. - */ - CompletableFuture setSaturation(Double value) throws Exception; - - /** - * Subscribes to changes in the saturation of the light. - * - * @param callback the function to call when the state changes. - */ - void subscribeSaturation(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the saturation of the light. */ - void unsubscribeSaturation(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithColorTemperature.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithColorTemperature.java deleted file mode 100644 index ecf74ba63..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithColorTemperature.java +++ /dev/null @@ -1,53 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.lightbulb.ColorTemperatureCharacteristic; -import java.util.concurrent.CompletableFuture; - -/** Accessory with color temperature. */ -public interface AccessoryWithColorTemperature { - - /** - * Retrieves the color temperature - * - * @return a future that will contain the brightness, expressed as an integer between 0 and 100. - */ - CompletableFuture getColorTemperature(); - - /** - * Sets the color temperature - * - * @param value the brightness, on a scale of 0 to 100, to set - * @return a future that completes when the brightness is changed - * @throws Exception when the brightness cannot be set - */ - CompletableFuture setColorTemperature(Integer value) throws Exception; - - /** - * return the min value for color temperature. overwrite if you want to change the default value. - * - * @return min color temperature - */ - default int getMinColorTemperature() { - return ColorTemperatureCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for color temperature. overwrite if you want to change the default value. - * - * @return max color temperature - */ - default int getMaxColorTemperature() { - return ColorTemperatureCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * Subscribes to changes in color temperature. - * - * @param callback the function to call when the color temperature changes. - */ - void subscribeColorTemperature(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the color temperature. */ - void unsubscribeColorTemperature(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithConfiguredName.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithConfiguredName.java deleted file mode 100644 index 0c9528130..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithConfiguredName.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Accessory with configured name. */ -public interface AccessoryWithConfiguredName { - - /** - * Retrieves configured name. - * - * @return configured name - */ - CompletableFuture getConfiguredName(); - - /** - * Sets the configured name - * - * @param name configured name - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setConfiguredName(String name) throws Exception; - - /** - * Subscribes to changes in configured name. - * - * @param callback the function to call when the configureed name changes. - */ - void subscribeConfiguredName(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the configured name state. */ - void unsubscribeConfiguredName(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCoolingThresholdTemperature.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCoolingThresholdTemperature.java deleted file mode 100644 index c42398a10..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCoolingThresholdTemperature.java +++ /dev/null @@ -1,63 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Accessory with cooling threshold temperature. */ -public interface AccessoryWithCoolingThresholdTemperature { - - /** - * Retrieves the temperature above which the thermostat should begin cooling. - * - * @return a future that will contain the threshold temperature, in celsius degrees. - */ - CompletableFuture getCoolingThresholdTemperature(); - - /** - * Sets the temperature above which the thermostat should begin cooling. - * - * @param value the threshold temperature, in celsius degrees. - * @throws Exception when the threshold temperature cannot be changed. - */ - void setCoolingThresholdTemperature(Double value) throws Exception; - - /** - * return the min value for cooling threshold temperature. overwrite if you want to change the - * default value. - * - * @return min threshold temperature - */ - default double getMinCoolingThresholdTemperature() { - return 10; - } - - /** - * return the max value for cooling threshold temperature. overwrite if you want to change the - * default value. - * - * @return max threshold temperature - */ - default double getMaxCoolingThresholdTemperature() { - return 35; - } - - /** - * return the min step value for cooling threshold temperature. overwrite if you want to change - * the default value. - * - * @return step for threshold temperature - */ - default double getStepCoolingThresholdTemperature() { - return 0.1; - } - - /** - * Subscribes to changes in the cooling threshold. - * - * @param callback the function to call when the state changes. - */ - void subscribeCoolingThresholdTemperature(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the cooling threshold. */ - void unsubscribeCoolingThresholdTemperature(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentHorizontalTilting.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentHorizontalTilting.java deleted file mode 100644 index b5ce298bf..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentHorizontalTilting.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with current horizontal tilting characteristic. - * - * @author Andy Lintner - */ -public interface AccessoryWithCurrentHorizontalTilting { - - /** - * Retrieves the current horizontal tilt angle - * - * @return a future that will contain the position as a value between -90 and 90 - */ - CompletableFuture getCurrentHorizontalTiltAngle(); - - /** - * Subscribes to changes in the current horizontal tilt angle. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentHorizontalTiltAngle(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current horizontal tilt angle */ - void unsubscribeCurrentHorizontalTiltAngle(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentMediaState.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentMediaState.java deleted file mode 100644 index 22350d9b4..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentMediaState.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with current media state characteristic {@link - * io.github.hapjava.characteristics.impl.television.CurrentMediaStateCharacteristic}. - */ -public interface AccessoryWithCurrentMediaState { - - /** - * Retrieves the current media state (see {@link - * io.github.hapjava.characteristics.impl.television.CurrentMediaStateEnum} for supported values). - * - * @return a future that will contain the current media state - */ - CompletableFuture getCurrentMediaState(); - - /** - * Subscribes to changes in the current media state. - * - * @param callback the function to call when the current media state changes. - */ - void subscribeCurrentMediaState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current media state. */ - void unsubscribeCurrentMediaState(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentRelativeHumidity.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentRelativeHumidity.java deleted file mode 100644 index 562e42649..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentRelativeHumidity.java +++ /dev/null @@ -1,25 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** accessory with current relative humidity. */ -public interface AccessoryWithCurrentRelativeHumidity { - - /** - * Retrieves the current relative humidity. - * - * @return a future that will contain the current relative humidity. - */ - CompletableFuture getCurrentRelativeHumidity(); - - /** - * Subscribes to changes in current relative humidity. - * - * @param callback the function to call when the current relative humidity changes. - */ - void subscribeCurrentRelativeHumidity(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current relative humidity. */ - void unsubscribeCurrentRelativeHumidity(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentTilting.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentTilting.java deleted file mode 100644 index 54a558491..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentTilting.java +++ /dev/null @@ -1,25 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Accessory with current tilting characteristic. */ -public interface AccessoryWithCurrentTilting { - - /** - * Retrieves the current tilt angle - * - * @return a future that will contain the position as a value between -90 and 90 - */ - CompletableFuture getCurrentTiltAngle(); - - /** - * Subscribes to changes in the current tilt angle. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentTiltAngle(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current tilt angle */ - void unsubscribeCurrentTiltAngle(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentVerticalTilting.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentVerticalTilting.java deleted file mode 100644 index 3b996c925..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithCurrentVerticalTilting.java +++ /dev/null @@ -1,24 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Accessory with current vertical tilting characteristic. */ -public interface AccessoryWithCurrentVerticalTilting { - /** - * Retrieves the current vertical tilt angle - * - * @return a future that will contain the position as a value between -90 and 90 - */ - CompletableFuture getCurrentVerticalTiltAngle(); - - /** - * Subscribes to changes in the current vertical tilt angle. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentVerticalTiltAngle(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current vertical tilt angle */ - void unsubscribeCurrentVerticalTiltAngle(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithDuration.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithDuration.java deleted file mode 100644 index a5cebf97c..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithDuration.java +++ /dev/null @@ -1,52 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.valve.SetDurationCharacteristic; -import java.util.concurrent.CompletableFuture; - -/** Accessory with duration characteristic. */ -public interface AccessoryWithDuration { - - /** - * Retrieves the current set duration; - * - * @return a future with the value - */ - CompletableFuture getSetDuration(); - - /** - * return the min value for duration. overwrite if you want to change the default value. - * - * @return min remaining duration - */ - default int getMinDuration() { - return SetDurationCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for duration. overwrite if you want to change the default value. - * - * @return max duration - */ - default int getMaxDuration() { - return SetDurationCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * Sets the duration for which the service should run. - * - * @param value duration in seconds - * @return a future that completes when the change is made - */ - CompletableFuture setSetDuration(int value); - - /** - * Subscribes to changes in the set duration - * - * @param callback the function when the duration has changed - */ - void subscribeSetDuration(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeSetDuration(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithFanState.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithFanState.java deleted file mode 100644 index 75be61e8c..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithFanState.java +++ /dev/null @@ -1,56 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.fan.CurrentFanStateEnum; -import io.github.hapjava.characteristics.impl.fan.TargetFanStateEnum; -import java.util.concurrent.CompletableFuture; - -/** - * An accessory with current and target fan states. - * - * @author Andy Lintner - */ -public interface AccessoryWithFanState { - - /** - * Retrieves the current state of the fan (INACTIVE, IDLE, BLOWING AIR). - * - * @return a future that will contain the state - */ - CompletableFuture getCurrentFanState(); - - /** - * Retrieves the target state of the fan (MANUAL, AUTO). - * - * @return a future that will contain the state - */ - CompletableFuture getTargetFanState(); - - /** - * Set the target state of the fan (MANUAL, AUTO). - * - * @param targetState target state - * @return a future that completes when the change is made - */ - CompletableFuture setTargetFanState(TargetFanStateEnum targetState); - - /** - * Subscribes to changes in the current fan state. - * - * @param callback the function to call when the direction changes. - */ - void subscribeCurrentFanState(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the target fan state. - * - * @param callback the function to call when the direction changes. - */ - void subscribeTargetFanState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current state of the fan. */ - void unsubscribeCurrentFanState(); - - /** Unsubscribes from changes in the target state of the fan. */ - void unsubscribeTargetFanState(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithFilterLifeLevel.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithFilterLifeLevel.java deleted file mode 100644 index 2b94d4ec9..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithFilterLifeLevel.java +++ /dev/null @@ -1,25 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Accessory with filter level characteristics */ -public interface AccessoryWithFilterLifeLevel { - - /** - * what's the filter life level, percentage wise - * - * @return filter life level - */ - CompletableFuture getFilterLifeLevel(); - - /** - * Subscribes to changes in the filter life level. - * - * @param callback the function to call when the level changes. - */ - void subscribeFilterLifeLevel(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current filter life level. */ - void unsubscribeFilterLifeLevel(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHardwareRevision.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHardwareRevision.java deleted file mode 100644 index 866921817..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHardwareRevision.java +++ /dev/null @@ -1,14 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import java.util.concurrent.CompletableFuture; - -/** Accessory with hardware revision. */ -public interface AccessoryWithHardwareRevision { - - /** - * Returns a hardware revision to display in iOS. - * - * @return the hardware revision, or null. - */ - CompletableFuture getHardwareRevision(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHeatingThresholdTemperature.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHeatingThresholdTemperature.java deleted file mode 100644 index 02cb3f819..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHeatingThresholdTemperature.java +++ /dev/null @@ -1,62 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -public interface AccessoryWithHeatingThresholdTemperature { - - /** - * Retrieves the temperature below which the thermostat should begin heating. - * - * @return a future that will contain the threshold temperature, in celsius degrees. - */ - CompletableFuture getHeatingThresholdTemperature(); - - /** - * Sets the temperature below which the thermostat should begin heating. - * - * @param value the threshold temperature, in celsius degrees. - * @throws Exception when the threshold temperature cannot be changed. - */ - void setHeatingThresholdTemperature(Double value) throws Exception; - - /** - * return the min value for heating threshold temperature. overwrite if you want to change the - * default value. - * - * @return min threshold temperature - */ - default double getMinHeatingThresholdTemperature() { - return 0; - } - - /** - * return the max value for heating threshold temperature. overwrite if you want to change the - * default value. - * - * @return max threshold temperature - */ - default double getMaxHeatingThresholdTemperature() { - return 25; - } - - /** - * return the min step value for heating threshold temperature. overwrite if you want to change - * the default value. - * - * @return step for threshold temperature - */ - default double getStepHeatingThresholdTemperature() { - return 0.1; - } - - /** - * Subscribes to changes in the heating threshold. - * - * @param callback the function to call when the state changes. - */ - void subscribeHeatingThresholdTemperature(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the heating threshold. */ - void unsubscribeHeatingThresholdTemperature(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHoldPosition.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHoldPosition.java deleted file mode 100644 index b1d0d65fa..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHoldPosition.java +++ /dev/null @@ -1,16 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import java.util.concurrent.CompletableFuture; - -/** Accessory with hold position */ -public interface AccessoryWithHoldPosition { - - /** - * Sets the hold position state - * - * @param hold whether or not to hold the current position state - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setHoldPosition(boolean hold) throws Exception; -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHumidityDehumidifierThreshold.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHumidityDehumidifierThreshold.java deleted file mode 100644 index 4dff49352..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHumidityDehumidifierThreshold.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Dehumidifier with humidity threshold. */ -public interface AccessoryWithHumidityDehumidifierThreshold { - - /** - * Retrieves the humidity threshold. - * - * @return a future that will contain the humidity threshold. - */ - CompletableFuture getHumidityThreshold(); - - /** - * Sets the humidity threshold above which the dehumidifier should be turned on. - * - * @param value the humidity threshold, in celsius degrees. - * @throws Exception when the threshold cannot be changed. - */ - void setHumidityThreshold(Double value) throws Exception; - - /** - * Subscribes to changes in the humidity threshold. - * - * @param callback the function to call when the state changes. - */ - void subscribeHumidityThreshold(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the humidity threshold. */ - void unsubscribeHumidityThreshold(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHumidityHumidifierThreshold.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHumidityHumidifierThreshold.java deleted file mode 100644 index f783a3039..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithHumidityHumidifierThreshold.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Humidifier with humidity threshold. */ -public interface AccessoryWithHumidityHumidifierThreshold { - - /** - * Retrieves the humidity threshold. - * - * @return a future that will contain the humidity threshold. - */ - CompletableFuture getHumidityThreshold(); - - /** - * Sets the humidity threshold above which the humidifier should be turned on. - * - * @param value the humidity threshold, in celsius degrees. - * @throws Exception when the threshold cannot be changed. - */ - void setHumidityThreshold(Double value) throws Exception; - - /** - * Subscribes to changes in the humidity threshold. - * - * @param callback the function to call when the state changes. - */ - void subscribeHumidityThreshold(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the humidity threshold. */ - void unsubscribeHumidityThreshold(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithIdentifier.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithIdentifier.java deleted file mode 100644 index b181d4d99..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithIdentifier.java +++ /dev/null @@ -1,17 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with identifier characteristic {@link - * io.github.hapjava.characteristics.impl.common.IdentifierCharacteristic}. - */ -public interface AccessoryWithIdentifier { - - /** - * Retrieves the identifier of service. - * - * @return a future with the identifier - */ - CompletableFuture getIdentifier(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithInputDeviceType.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithInputDeviceType.java deleted file mode 100644 index fca5f5df1..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithInputDeviceType.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with input devices, e.g. television. {@link - * io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeCharacteristic} - */ -public interface AccessoryWithInputDeviceType { - - /** - * Retrieves the input device type. See {@link InputDeviceTypeEnum} for supported values. - * - * @return a future with the value - */ - CompletableFuture getInputDeviceType(); - - /** - * Subscribes to changes in input device type. - * - * @param callback the function when the input device type changes - */ - void subscribeInputDeviceType(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeInputDeviceType(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithIsConfigured.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithIsConfigured.java deleted file mode 100644 index 017fdce5f..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithIsConfigured.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.common.IsConfiguredEnum; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with isConfigured characteristics. This characteristic describes if the service is - * configured for use. For example, all of the valves in an irrigation system may not be configured - * depending on physical wire connection. - */ -public interface AccessoryWithIsConfigured { - - /** - * isConfigured state - * - * @return a future that will contain the isConfigured state - */ - CompletableFuture getIsConfigured(); - - /** - * Set the isConfigured (NOT_CONFIGURED, CONFIGURED). - * - * @param isConfigured isConfigured state - * @return a future that completes when the change is made - */ - CompletableFuture setIsConfigured(IsConfiguredEnum isConfigured); - - /** - * Subscribes to changes in isConfigured state - * - * @param callback the function to call when the isConfigured state changes. - */ - void subscribeIsConfigured(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the isConfigured state. */ - void unsubscribeIsConfigured(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithLockCurrentState.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithLockCurrentState.java deleted file mode 100644 index f3f9782ca..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithLockCurrentState.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.lock.LockCurrentStateEnum; -import java.util.concurrent.CompletableFuture; - -/** Accessory with current lock state. */ -public interface AccessoryWithLockCurrentState { - - /** - * Retrieves the lock states. The current state of the physical security mechanism (e.g. deadbolt) - * - * @return a future with the value - */ - CompletableFuture getLockCurrentState(); - - /** - * Subscribes to changes in lock current state. - * - * @param callback the function when the lock current state changes - */ - void subscribeLockCurrentState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeLockCurrentState(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithLockTargetState.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithLockTargetState.java deleted file mode 100644 index 41ef0d3ed..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithLockTargetState.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.lock.LockTargetStateEnum; -import java.util.concurrent.CompletableFuture; - -/** Accessory with lock target state. */ -public interface AccessoryWithLockTargetState { - - /** - * Retrieves the lock states. The target state of the physical security mechanism (e.g. deadbolt) - * - * @return a future with the value - */ - CompletableFuture getLockTargetState(); - - /** - * Sets the lock target state - * - * @param state the target state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setLockTargetState(LockTargetStateEnum state) throws Exception; - - /** - * Subscribes to changes in lock target state. - * - * @param callback the function when the lock target state changes - */ - void subscribeLockTargetState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeLockTargetState(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithMute.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithMute.java deleted file mode 100644 index a0bb08579..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithMute.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with mute characteristic {@link - * io.github.hapjava.characteristics.impl.audio.MuteCharacteristic}. - */ -public interface AccessoryWithMute { - - /** - * Retrieves mute status. - * - * @return true if accessory is muted - */ - CompletableFuture isMuted(); - - /** - * Sets the mute status - * - * @param mute true if accessory should be muted - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setMute(boolean mute) throws Exception; - - /** - * Subscribes to changes in mute state. - * - * @param callback the function to call when the state changes. - */ - void subscribeMuteState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the mute state. */ - void unsubscribeMuteState(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithName.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithName.java deleted file mode 100644 index 626429124..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithName.java +++ /dev/null @@ -1,14 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import java.util.concurrent.CompletableFuture; - -/** Accessory with name. */ -public interface AccessoryWithName { - - /** - * Retrieves the name of service. - * - * @return a future with the name - */ - CompletableFuture getName(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithNitrogenDioxideDensity.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithNitrogenDioxideDensity.java deleted file mode 100644 index 6aead4f98..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithNitrogenDioxideDensity.java +++ /dev/null @@ -1,56 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.airquality.NitrogenDioxideDensityCharacteristic; -import java.util.concurrent.CompletableFuture; - -/** Accessory with nitrogen dioxide density characteristic. */ -public interface AccessoryWithNitrogenDioxideDensity { - - /** - * Retrieves the nitrogen dioxide density. - * - * @return a future with the nitrogen dioxide density - */ - CompletableFuture getNitrogenDioxideDensity(); - - /** - * return the min value for nitrogen dioxide density. overwrite if you want to change the default - * value. - * - * @return min nitrogen dioxide density - */ - default double getMinNitrogenDioxideDensity() { - return NitrogenDioxideDensityCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for nitrogen dioxide density. overwrite if you want to change the default - * value. - * - * @return max nitrogen dioxide density - */ - default double getMaxNitrogenDioxideDensity() { - return NitrogenDioxideDensityCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * return the min step value for nitrogen dioxide density. overwrite if you want to change the - * default value. - * - * @return min step nitrogen dioxide density - */ - default double getMinStepNitrogenDioxideDensity() { - return NitrogenDioxideDensityCharacteristic.DEFAULT_STEP; - } - - /** - * Subscribes to changes in nitrogen dioxide density. - * - * @param callback the function when nitrogen dioxide density changes - */ - void subscribeNitrogenDioxideDensity(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeNitrogenDioxideDensity(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithObstructionDetection.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithObstructionDetection.java deleted file mode 100644 index 859379cd0..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithObstructionDetection.java +++ /dev/null @@ -1,25 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Accessory with hold position */ -public interface AccessoryWithObstructionDetection { - - /** - * Retrieves an indication obstructed is detected - * - * @return a future that will contain a boolean indicating whether an obstruction is present - */ - CompletableFuture getObstructionDetected(); - - /** - * Subscribes to changes in the obstruction detected state - * - * @param callback the function to call when the state changes. - */ - void subscribeObstructionDetected(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the obstruction detected state */ - void unsubscribeObstructionDetected(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithOzoneDensity.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithOzoneDensity.java deleted file mode 100644 index efba2a49f..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithOzoneDensity.java +++ /dev/null @@ -1,53 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.airquality.OzoneDensityCharacteristic; -import java.util.concurrent.CompletableFuture; - -/** Accessory with Ozone Density characteristic. */ -public interface AccessoryWithOzoneDensity { - - /** - * Retrieves the ozone density. - * - * @return a future with the ozone density - */ - CompletableFuture getOzoneDensity(); - - /** - * return the min value for ozone density. overwrite if you want to change the default value. - * - * @return min ozone density - */ - default double getMinOzoneDensity() { - return OzoneDensityCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for ozone density. overwrite if you want to change the default value. - * - * @return max ozone density - */ - default double getMaxOzoneDensity() { - return OzoneDensityCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * return the min step value for ozone density. overwrite if you want to change the default value. - * - * @return min step ozone density - */ - default double getMinStepOzoneDensity() { - return OzoneDensityCharacteristic.DEFAULT_STEP; - } - - /** - * Subscribes to changes in ozone density. - * - * @param callback the function when ozone density changes - */ - void subscribeOzoneDensity(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeOzoneDensity(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPM10Density.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPM10Density.java deleted file mode 100644 index 2ae3cded0..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPM10Density.java +++ /dev/null @@ -1,53 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.airquality.PM10DensityCharacteristic; -import java.util.concurrent.CompletableFuture; - -/** Accessory with PM10 Density characteristic. */ -public interface AccessoryWithPM10Density { - - /** - * Retrieves the PM10 density. - * - * @return a future with the PM10 density - */ - CompletableFuture getPM10Density(); - - /** - * return the min value for PM10 density. overwrite if you want to change the default value. - * - * @return min PM10 density - */ - default double getMinPM10Density() { - return PM10DensityCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for PM10 density. overwrite if you want to change the default value. - * - * @return max PM10 density - */ - default double getMaxPM10Density() { - return PM10DensityCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * return the min step value for PM10 density. overwrite if you want to change the default value. - * - * @return min step PM10 density - */ - default double getMinStepPM10Density() { - return PM10DensityCharacteristic.DEFAULT_STEP; - } - - /** - * Subscribes to changes in PM10 density. - * - * @param callback the function when PM10 density changes - */ - void subscribePM10Density(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribePM10Density(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPM25Density.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPM25Density.java deleted file mode 100644 index 02488f52d..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPM25Density.java +++ /dev/null @@ -1,53 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.airquality.PM25DensityCharacteristic; -import java.util.concurrent.CompletableFuture; - -/** Accessory with PM25 Density characteristic. */ -public interface AccessoryWithPM25Density { - - /** - * Retrieves the PM25 density. - * - * @return a future with the PM25 density - */ - CompletableFuture getPM25Density(); - - /** - * return the min value for PM25 density. overwrite if you want to change the default value. - * - * @return min PM25 density - */ - default double getMinPM25Density() { - return PM25DensityCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for PM25 density. overwrite if you want to change the default value. - * - * @return max PM25 density - */ - default double getMaxPM25Density() { - return PM25DensityCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * return the min step value for PM25 density. overwrite if you want to change the default value. - * - * @return min step PM25 density - */ - default double getMinStepPM25Density() { - return PM25DensityCharacteristic.DEFAULT_STEP; - } - - /** - * Subscribes to changes in PM25 density. - * - * @param callback the function when PM25 density changes - */ - void subscribePM25Density(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribePM25Density(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPhysicalControlsLock.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPhysicalControlsLock.java deleted file mode 100644 index 2e1e3cd87..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPhysicalControlsLock.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsEnum; -import java.util.concurrent.CompletableFuture; - -/** Accessory with physical controls which can be locked, e.g. child lock */ -public interface AccessoryWithPhysicalControlsLock { - - /** - * OPTIONAL: Retrieves the lock controls. - * - * @return a future that will contain the lock controls - */ - CompletableFuture getLockControls(); - - /** - * Set the lock controls (DISABLED, ENABLED). - * - * @param lockControls lock controls mode - * @return a future that completes when the change is made - */ - CompletableFuture setLockControls(LockPhysicalControlsEnum lockControls); - - /** - * Subscribes to changes in the lock controls. - * - * @param callback the function to call when the lock controls changes. - */ - void subscribeLockControls(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the lock controls. */ - void unsubscribeLockControls(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPictureMode.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPictureMode.java deleted file mode 100644 index b369b98bf..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPictureMode.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.television.PictureModeEnum; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with picture mode characteristic {@link - * io.github.hapjava.characteristics.impl.television.PictureModeCharacteristic}. - */ -public interface AccessoryWithPictureMode { - - /** - * Retrieves the picture mode (see {@link - * io.github.hapjava.characteristics.impl.television.PictureModeEnum} for supported values). - * - * @return a future that will contain the picture mode - */ - CompletableFuture getPictureMode(); - - /** - * Set the picture mode (see {@link - * io.github.hapjava.characteristics.impl.television.PictureModeEnum} for supported values). - * - * @param pictureMode picture mode - * @return a future that completes when the change is made - */ - CompletableFuture setPictureMode(PictureModeEnum pictureMode); - - /** - * Subscribes to changes in the picture mode. - * - * @param callback the function to call when the picture mode changes. - */ - void subscribePictureMode(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the picture mode. */ - void unsubscribePictureMode(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPowerMode.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPowerMode.java deleted file mode 100644 index 5abb7e6f1..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithPowerMode.java +++ /dev/null @@ -1,16 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.impl.television.PowerModeEnum; -import java.util.concurrent.CompletableFuture; - -/** An accessory with power mode. */ -public interface AccessoryWithPowerMode { - - /** - * Set the power mode. See {@link PowerModeEnum} for supported values - * - * @param mode target power mode - * @return a future that completes when the change is made - */ - CompletableFuture setPowerMode(PowerModeEnum mode); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRemainingDuration.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRemainingDuration.java deleted file mode 100644 index 7859fb396..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRemainingDuration.java +++ /dev/null @@ -1,49 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.valve.RemainingDurationCharacteristic; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with remaining duration characteristic. - * - * @author Tim Harper - */ -public interface AccessoryWithRemainingDuration { - - /** - * Retrieves the remaining duration - * - * @return a future with the duration in seconds - */ - CompletableFuture getRemainingDuration(); - - /** - * return the min value for remaining duration. overwrite if you want to change the default value. - * - * @return min remaining duration - */ - default int getMinRemainingDuration() { - return RemainingDurationCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for remaining duration. overwrite if you want to change the default value. - * - * @return max remaining duration - */ - default int getMaxRemainingDuration() { - return RemainingDurationCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * Subscribes to changes in the duration; note it is not necessary to emit a change every second, - * homekit infers the countdown progress client side. - * - * @param callback the function when the existing duration has been replaced with a new one. - */ - void subscribeRemainingDuration(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeRemainingDuration(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithResetFilterIndication.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithResetFilterIndication.java deleted file mode 100644 index 737ca03ec..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithResetFilterIndication.java +++ /dev/null @@ -1,16 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import java.util.concurrent.CompletableFuture; - -/** Accessory with filter reset characteristics */ -public interface AccessoryWithResetFilterIndication { - - /** - * Request to reset the filter level - * - * @param indication always 1, by HomeKit protocol. (to be ignored) - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture resetFilterIndication(Integer indication) throws Exception; -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRotationDirection.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRotationDirection.java deleted file mode 100644 index 91acf9afa..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRotationDirection.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.fan.RotationDirectionEnum; -import java.util.concurrent.CompletableFuture; - -/** accessory with rotation direction characteristics. */ -public interface AccessoryWithRotationDirection { - - /** - * Retrieves the current rotation direction. - * - * @return a future that will contain the direction - */ - CompletableFuture getRotationDirection(); - - /** - * Sets the rotation direction - * - * @param direction the direction to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setRotationDirection(RotationDirectionEnum direction) throws Exception; - - /** - * Subscribes to changes in the rotation direction. - * - * @param callback the function to call when the direction changes. - */ - void subscribeRotationDirection(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the rotation direction. */ - void unsubscribeRotationDirection(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRotationSpeed.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRotationSpeed.java deleted file mode 100644 index ef39947ce..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithRotationSpeed.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** accessory with rotation speed characteristics. */ -public interface AccessoryWithRotationSpeed { - - /** - * Retrieves the current speed of the rotation - * - * @return a future that will contain the speed, expressed as an integer between 0 and 100. - */ - CompletableFuture getRotationSpeed(); - - /** - * Sets the speed of the rotation - * - * @param speed the speed to set, expressed as an integer between 0 and 100. - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setRotationSpeed(Double speed) throws Exception; - - /** - * Subscribes to changes in the rotation speed. - * - * @param callback the function to call when the speed changes. - */ - void subscribeRotationSpeed(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the rotation speed. */ - void unsubscribeRotationSpeed(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSecurityAlarmType.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSecurityAlarmType.java deleted file mode 100644 index 036fd35b3..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSecurityAlarmType.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeEnum; -import java.util.concurrent.CompletableFuture; - -/** This characteristic describes the type of alarm triggered by a security system. */ -public interface AccessoryWithSecurityAlarmType { - - /** - * return alarm type See {@link SecuritySystemAlarmTypeEnum} for possible values - * - * @return a future with the value - */ - CompletableFuture getSecurityAlarmType(); - - /** - * Subscribes to changes in status alarm type - * - * @param callback the function when the alarm type changes - */ - void subscribeSecurityAlarmType(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeSecurityAlarmType(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithServiceLabelIndex.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithServiceLabelIndex.java deleted file mode 100644 index 07cb17fc7..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithServiceLabelIndex.java +++ /dev/null @@ -1,14 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import java.util.concurrent.CompletableFuture; - -/** Accessory with service label index. T */ -public interface AccessoryWithServiceLabelIndex { - - /** - * Retrieves the service label index. - * - * @return a future with the service label index - */ - CompletableFuture getServiceLabelIndex(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusActive.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusActive.java deleted file mode 100644 index 6bd7a18b5..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusActive.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Accessory with status active. */ -public interface AccessoryWithStatusActive { - - /** - * Retrieves the status active. A value of true indicates that the accessory is active and is - * functioning without any errors. - * - * @return a future with the value - */ - CompletableFuture getStatusActive(); - - /** - * Subscribes to changes in status active. - * - * @param callback the function when the status active changes - */ - void subscribeStatusActive(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeStatusActive(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusFault.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusFault.java deleted file mode 100644 index b6b0aebdf..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusFault.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.common.StatusFaultEnum; -import java.util.concurrent.CompletableFuture; - -/** Accessory with characteristic that describes an accessory which has a fault. */ -public interface AccessoryWithStatusFault { - - /** - * Retrieves the status fault. A non-zero value indicates that the accessory has experienced a - * fault that may be interfering with its intended functionality. A value of 0 indicates that - * there is no fault. - * - * @return a future with the value - */ - CompletableFuture getStatusFault(); - - /** - * Subscribes to changes in status fault. - * - * @param callback the function when the status fault changes - */ - void subscribeStatusFault(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeStatusFault(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusLowBattery.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusLowBattery.java deleted file mode 100644 index def16df5d..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusLowBattery.java +++ /dev/null @@ -1,27 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryEnum; -import java.util.concurrent.CompletableFuture; - -/** This characteristic describes an accessoryʼs battery status. */ -public interface AccessoryWithStatusLowBattery { - - /** - * A status of 1 indicates that the battery level of the accessory is low. Value should return to - * 0 when the battery charges to a level thats above the low threshold. - * - * @return a future with the value - */ - CompletableFuture getStatusLowBattery(); - - /** - * Subscribes to changes in status low battery. - * - * @param callback the function when the status low batter changes - */ - void subscribeStatusLowBattery(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeStatusLowBattery(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusTampered.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusTampered.java deleted file mode 100644 index fe25d2f44..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithStatusTampered.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.common.StatusTamperedEnum; -import java.util.concurrent.CompletableFuture; - -/** This characteristic describes an accessory which has been tampered with. */ -public interface AccessoryWithStatusTampered { - - /** - * Retrieves the status tampered. - * - * @return a future with the value - */ - CompletableFuture getStatusTampered(); - - /** - * Subscribes to changes in status tampered. - * - * @param callback the function when the status tampered changes - */ - void subscribeStatusTampered(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeStatusTampered(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSulphurDioxideDensity.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSulphurDioxideDensity.java deleted file mode 100644 index dbe0cc947..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSulphurDioxideDensity.java +++ /dev/null @@ -1,56 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.airquality.SulphurDioxideDensityCharacteristic; -import java.util.concurrent.CompletableFuture; - -/** Accessory with sulphur dioxide density characteristic. */ -public interface AccessoryWithSulphurDioxideDensity { - - /** - * Retrieves the sulphur dioxide density. - * - * @return a future with the sulphur dioxide density - */ - CompletableFuture getSulphurDioxideDensity(); - - /** - * return the min value for sulphur dioxide density. overwrite if you want to change the default - * value. - * - * @return min sulphur dioxide density - */ - default double getMinSulphurDioxideDensity() { - return SulphurDioxideDensityCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for sulphur dioxide density. overwrite if you want to change the default - * value. - * - * @return max sulphur dioxide density - */ - default double getMaxSulphurDioxideDensity() { - return SulphurDioxideDensityCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * return the min step value for sulphur dioxide density. overwrite if you want to change the - * default value. - * - * @return min step sulphur dioxide density - */ - default double getMinStepSulphurDioxideDensity() { - return SulphurDioxideDensityCharacteristic.DEFAULT_STEP; - } - - /** - * Subscribes to changes in sulphur dioxide density. - * - * @param callback the function when sulphur dioxide density changes - */ - void subscribeSulphurDioxideDensity(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeSulphurDioxideDensity(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSwingMode.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSwingMode.java deleted file mode 100644 index ae49ffee6..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithSwingMode.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.fan.SwingModeEnum; -import java.util.concurrent.CompletableFuture; - -/** Accessory with Swing Mode characteristics. */ -public interface AccessoryWithSwingMode { - - /** - * Retrieves the swing mode. - * - * @return a future that will contain the swing mode - */ - CompletableFuture getSwingMode(); - - /** - * Set the swing mode (DISABLED, ENABLED). - * - * @param swingMode swing mode - * @return a future that completes when the change is made - */ - CompletableFuture setSwingMode(SwingModeEnum swingMode); - - /** - * Subscribes to changes in the swing mode. - * - * @param callback the function to call when the swing mode changes. - */ - void subscribeSwingMode(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the swing mode. */ - void unsubscribeSwingMode(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetHorizontalTilting.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetHorizontalTilting.java deleted file mode 100644 index cc154520d..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetHorizontalTilting.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with target horizontal tilting characteristic. - * - * @author Andy Lintner - */ -public interface AccessoryWithTargetHorizontalTilting { - - /** - * Retrieves the target horizontal tilt angle - * - * @return a future that will contain the target position as a value between -90 and 90 - */ - CompletableFuture getTargetHorizontalTiltAngle(); - - /** - * Sets the target position - * - * @param angle the target angle to set, as a value between -90 and 90 - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setTargetHorizontalTiltAngle(int angle) throws Exception; - - /** - * Subscribes to changes in the target horizontal tilt angle. - * - * @param callback the function to call when the state changes. - */ - void subscribeTargetHorizontalTiltAngle(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the target horizontal tilt angle */ - void unsubscribeTargetHorizontalTiltAngle(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetMediaState.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetMediaState.java deleted file mode 100644 index e1f1a34bd..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetMediaState.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.television.TargetMediaStateEnum; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with target media state characteristic {@link - * io.github.hapjava.characteristics.impl.television.TargetMediaStateCharacteristic}. - */ -public interface AccessoryWithTargetMediaState { - - /** - * Retrieves the target media state (see {@link TargetMediaStateEnum} for supported values). - * - * @return a future that will contain the target media state - */ - CompletableFuture getTargetMediaState(); - - /** - * Set the target media state (see {@link TargetMediaStateEnum} for supported values). - * - * @param targetMediaState target media state - * @return a future that completes when the change is made - */ - CompletableFuture setTargetMediaState(TargetMediaStateEnum targetMediaState); - - /** - * Subscribes to changes in the target media state. - * - * @param callback the function to call when the target media state changes. - */ - void subscribeTargetMediaState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the target media state. */ - void unsubscribeTargetMediaState(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetRelativeHumidity.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetRelativeHumidity.java deleted file mode 100644 index 23ac5fd97..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetRelativeHumidity.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** accessory with target relative humidity. */ -public interface AccessoryWithTargetRelativeHumidity { - - /** - * Retrieves the target relative humidity. - * - * @return a future that will contain the target relative humidity. - */ - CompletableFuture getTargetRelativeHumidity(); - - /** - * Sets the target relative humidity. - * - * @param value the target relative humidity. - * @throws Exception when the target relative humidity cannot be changed. - */ - void setTargetRelativeHumidity(Double value) throws Exception; - - /** - * Subscribes to changes in the target relative humidity. - * - * @param callback the function to call when the target relative humidity changes. - */ - void subscribeTargetRelativeHumidity(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the target relative humidity. */ - void unsubscribeTargetRelativeHumidity(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetTilting.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetTilting.java deleted file mode 100644 index 9c2bc8009..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetTilting.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Accessory with target tilting characteristic. */ -public interface AccessoryWithTargetTilting { - - /** - * Retrieves the target tilt angle - * - * @return a future that will contain the target position as a value between -90 and 90 - */ - CompletableFuture getTargetTiltAngle(); - - /** - * Sets the target tilt angle - * - * @param angle the target angle to set, as a value between -90 and 90 - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setTargetTiltAngle(int angle) throws Exception; - - /** - * Subscribes to changes in the target tilt angle. - * - * @param callback the function to call when the state changes. - */ - void subscribeTargetTiltAngle(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the target tilt angle */ - void unsubscribeTargetTiltAngle(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetVerticalTilting.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetVerticalTilting.java deleted file mode 100644 index e87607204..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetVerticalTilting.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Accessory with target vertical tilting characteristic. */ -public interface AccessoryWithTargetVerticalTilting { - - /** - * Retrieves the target vertical tilt angle - * - * @return a future that will contain the target position as a value between -90 and 90 - */ - CompletableFuture getTargetVerticalTiltAngle(); - - /** - * Sets the target position - * - * @param angle the target angle to set, as a value between -90 and 90 - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setTargetVerticalTiltAngle(int angle) throws Exception; - - /** - * Subscribes to changes in the target vertical tilt angle. - * - * @param callback the function to call when the state changes. - */ - void subscribeTargetVerticalTiltAngle(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the target vertical tilt angle */ - void unsubscribeTargetVerticalTiltAngle(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetVisibilityState.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetVisibilityState.java deleted file mode 100644 index dcadd1cc5..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTargetVisibilityState.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateEnum; -import java.util.concurrent.CompletableFuture; - -/** accessory with target visibility state characteristics. */ -public interface AccessoryWithTargetVisibilityState { - - /** - * Retrieves the target visibility state. - * - * @return a future that will contain the target visibility state - */ - CompletableFuture getTargetVisibilityState(); - - /** - * Sets the target visibility state - * - * @param state the target visibility state to set - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setTargetVisibilityState(TargetVisibilityStateEnum state) - throws Exception; - - /** - * Subscribes to changes in t target visibility state. - * - * @param callback the function to call when the target visibility state changes. - */ - void subscribeTargetVisibilityState(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the target visibility state. */ - void unsubscribeTargetVisibilityState(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTemperatureDisplayUnits.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTemperatureDisplayUnits.java deleted file mode 100644 index b9407b34b..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithTemperatureDisplayUnits.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitEnum; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with characteristic that describes units of temperature used for presentation purposes - * (e.g. the units of temperature displayed on the screen). - */ -public interface AccessoryWithTemperatureDisplayUnits { - - /** - * Retrieves temperature display units - * - * @return a future that will contain temperature display units - */ - CompletableFuture getTemperatureDisplayUnits(); - - /** - * Sets the temperature display units - * - * @param units the target temperature display units - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setTemperatureDisplayUnits(TemperatureDisplayUnitEnum units) - throws Exception; - - /** - * Subscribes to changes in the temperature display units - * - * @param callback the function to call when temperature display units changes. - */ - void subscribeTemperatureDisplayUnits(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the temperature display units */ - void unsubscribeTemperatureDisplayUnits(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVOCDensity.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVOCDensity.java deleted file mode 100644 index f8a7bc46b..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVOCDensity.java +++ /dev/null @@ -1,53 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.airquality.VOCDensityCharacteristic; -import java.util.concurrent.CompletableFuture; - -/** Accessory with VOC Density characteristic. */ -public interface AccessoryWithVOCDensity { - - /** - * Retrieves the VOC density. - * - * @return a future with the VOC density - */ - CompletableFuture getVOCDensity(); - - /** - * return the min value for VOC density. overwrite if you want to change the default value. - * - * @return min VOC density - */ - default double getMinVOCDensity() { - return VOCDensityCharacteristic.DEFAULT_MIN_VALUE; - } - - /** - * return the max value for VOC density. overwrite if you want to change the default value. - * - * @return max VOC density - */ - default double getMaxVOCDensity() { - return VOCDensityCharacteristic.DEFAULT_MAX_VALUE; - } - - /** - * return the min step value for VOC density. overwrite if you want to change the default value. - * - * @return min step VOC density - */ - default double getMinStepVOCDensity() { - return VOCDensityCharacteristic.DEFAULT_STEP; - } - - /** - * Subscribes to changes in VOC density. - * - * @param callback the function when VOC density changes - */ - void subscribeVOCDensity(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes */ - void unsubscribeVOCDensity(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVerticalTilting.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVerticalTilting.java deleted file mode 100644 index 3e849e5bb..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVerticalTilting.java +++ /dev/null @@ -1,50 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Accessory with vertical tilting characteristic. */ -public interface AccessoryWithVerticalTilting { - /** - * Retrieves the current vertical tilt angle - * - * @return a future that will contain the position as a value between -90 and 90 - */ - CompletableFuture getCurrentVerticalTiltAngle(); - - /** - * Retrieves the target vertical tilt angle - * - * @return a future that will contain the target position as a value between -90 and 90 - */ - CompletableFuture getTargetVerticalTiltAngle(); - - /** - * Sets the target position - * - * @param angle the target angle to set, as a value between -90 and 90 - * @return a future that completes when the change is made - * @throws Exception when the change cannot be made - */ - CompletableFuture setTargetVerticalTiltAngle(int angle) throws Exception; - - /** - * Subscribes to changes in the current vertical tilt angle. - * - * @param callback the function to call when the state changes. - */ - void subscribeCurrentVerticalTiltAngle(HomekitCharacteristicChangeCallback callback); - - /** - * Subscribes to changes in the target vertical tilt angle. - * - * @param callback the function to call when the state changes. - */ - void subscribeTargetVerticalTiltAngle(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the current vertical tilt angle */ - void unsubscribeCurrentVerticalTiltAngle(); - - /** Unsubscribes from changes in the target vertical tilt angle */ - void unsubscribeTargetVerticalTiltAngle(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolume.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolume.java deleted file mode 100644 index b6dda376f..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolume.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Accessory with volume values. */ -public interface AccessoryWithVolume { - - /** - * Retrieves the current volume - * - * @return a future that will contain the volume, expressed as an integer between 0 and 100. - */ - CompletableFuture getVolume(); - - /** - * Sets the current volume - * - * @param value the volume, on a scale of 0 to 100, to set - * @return a future that completes when the volume is changed - * @throws Exception when the volume cannot be set - */ - CompletableFuture setVolume(Integer value) throws Exception; - - /** - * Subscribes to changes in the volume. - * - * @param callback the function to call when the state changes. - */ - void subscribeVolume(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the volume. */ - void unsubscribeVolume(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolumeControlType.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolumeControlType.java deleted file mode 100644 index 21a6f6c66..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolumeControlType.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeEnum; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with volume control type {@link - * io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeCharacteristic} - */ -public interface AccessoryWithVolumeControlType { - - /** - * Retrieves the current volume control type. see {@link VolumeControlTypeEnum} for possible - * values - * - * @return a future that will contain the type. - */ - CompletableFuture getVolumeControlType(); - - /** - * Subscribes to changes in the volume. - * - * @param callback the function to call when the state changes. - */ - void subscribeVolumeControlType(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the volume. */ - void unsubscribeVolumeControlType(); -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolumeSelector.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolumeSelector.java deleted file mode 100644 index 0c2a2890f..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithVolumeSelector.java +++ /dev/null @@ -1,20 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorEnum; -import java.util.concurrent.CompletableFuture; - -/** - * Accessory with volume selector {@link - * io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorCharacteristic} - */ -public interface AccessoryWithVolumeSelector { - - /** - * Sets the volume selector - * - * @param value the volume selector - * @return a future that completes when the volume selector is changed - * @throws Exception when the volume selector cannot be set - */ - CompletableFuture setVolumeSelector(VolumeSelectorEnum value) throws Exception; -} diff --git a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithWaterLevel.java b/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithWaterLevel.java deleted file mode 100644 index 591a1b5ac..000000000 --- a/src/main/java/io/github/hapjava/accessories/optionalcharacteristic/AccessoryWithWaterLevel.java +++ /dev/null @@ -1,25 +0,0 @@ -package io.github.hapjava.accessories.optionalcharacteristic; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.concurrent.CompletableFuture; - -/** Accessory with water level. */ -public interface AccessoryWithWaterLevel { - - /** - * Retrieves the water level in percent. - * - * @return a future that will contain the water level, expressed as an double between 0 and 100. - */ - CompletableFuture getWaterLevel(); - - /** - * Subscribes to changes in the water level. - * - * @param callback the function to call when the state changes. - */ - void subscribeWaterLevel(HomekitCharacteristicChangeCallback callback); - - /** Unsubscribes from changes in the water level. */ - void unsubscribeWaterLevel(); -} diff --git a/src/main/java/io/github/hapjava/accessories/package-info.java b/src/main/java/io/github/hapjava/accessories/package-info.java deleted file mode 100644 index 0678de41f..000000000 --- a/src/main/java/io/github/hapjava/accessories/package-info.java +++ /dev/null @@ -1,2 +0,0 @@ -/** Contains interfaces that can be implemented to represent an exposed accessory. */ -package io.github.hapjava.accessories; diff --git a/src/main/java/io/github/hapjava/characteristics/Characteristic.java b/src/main/java/io/github/hapjava/characteristics/Characteristic.java deleted file mode 100644 index b2454e5f9..000000000 --- a/src/main/java/io/github/hapjava/characteristics/Characteristic.java +++ /dev/null @@ -1,57 +0,0 @@ -package io.github.hapjava.characteristics; - -import java.util.concurrent.CompletableFuture; -import javax.json.JsonObject; -import javax.json.JsonObjectBuilder; -import javax.json.JsonValue; - -/** - * Interface for the characteristics provided by a Service. - * - *

    Characteristics are the lowest level building block of the HomeKit Accessory Protocol. They - * define variables that can be retrieved or set by the remote client. Most consumers of this - * library will be better served by using one of the characteristic classes in {@link - * io.github.hapjava.characteristics} when creating custom accessory types (the standard accessories - * from {@link io.github.hapjava.accessories} already include the necessary characteristics), - * instead of trying to implement the JSON formats directly. - * - * @author Andy Lintner - */ -public interface Characteristic { - /** @return The UUID type for this characteristic. */ - String getType(); - - /** - * Adds an attribute to the passed JsonObjectBuilder named "value" with the current value of the - * characteristic. - * - * @param characteristicBuilder the JsonObjectBuilder to add the value attribute to. - */ - void supplyValue(JsonObjectBuilder characteristicBuilder); - - /** - * Creates the JSON representation of the characteristic, in accordance with the HomeKit Accessory - * Protocol. - * - * @param iid The instance ID of the characteristic to be included in the serialization. - * @return the future completing with the resulting JSON. - */ - CompletableFuture toJson(int iid); - - /** - * Invoked by the remote client, this updates the current value of the characteristic. - * - * @param jsonValue the JSON serialized value to set. - */ - void setValue(JsonValue jsonValue); - - /** - * Invoked by the remote client, this updates the current value of the characteristic. - * - * @param jsonValue the JSON serialized value to set. - * @param username the authenticated username making the request - */ - default void setValue(JsonValue jsonValue, String username) { - setValue(jsonValue); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/CharacteristicEnum.java b/src/main/java/io/github/hapjava/characteristics/CharacteristicEnum.java deleted file mode 100644 index bc8dbc9c2..000000000 --- a/src/main/java/io/github/hapjava/characteristics/CharacteristicEnum.java +++ /dev/null @@ -1,5 +0,0 @@ -package io.github.hapjava.characteristics; - -public interface CharacteristicEnum { - int getCode(); -} diff --git a/src/main/java/io/github/hapjava/characteristics/EventableCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/EventableCharacteristic.java deleted file mode 100644 index 1da8f228b..000000000 --- a/src/main/java/io/github/hapjava/characteristics/EventableCharacteristic.java +++ /dev/null @@ -1,20 +0,0 @@ -package io.github.hapjava.characteristics; - -/** - * A characteristic that can be listened to by the connected iOS device. - * - * @author Andy Lintner - */ -public interface EventableCharacteristic extends Characteristic { - - /** - * Begin listening to changes to this characteristic. When a change is made, call the provided - * function. - * - * @param callback a function to call when a change is made to the characteristic value. - */ - void subscribe(HomekitCharacteristicChangeCallback callback); - - /** Stop listening to changes to this characteristic. */ - void unsubscribe(); -} diff --git a/src/main/java/io/github/hapjava/characteristics/ExceptionalConsumer.java b/src/main/java/io/github/hapjava/characteristics/ExceptionalConsumer.java deleted file mode 100644 index 1c625470d..000000000 --- a/src/main/java/io/github/hapjava/characteristics/ExceptionalConsumer.java +++ /dev/null @@ -1,9 +0,0 @@ -package io.github.hapjava.characteristics; - -public interface ExceptionalConsumer { - void accept(T t) throws Exception; - - default void accept(T t, String username) throws Exception { - accept(t); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/HomekitCharacteristicChangeCallback.java b/src/main/java/io/github/hapjava/characteristics/HomekitCharacteristicChangeCallback.java deleted file mode 100644 index e2d5bc5f2..000000000 --- a/src/main/java/io/github/hapjava/characteristics/HomekitCharacteristicChangeCallback.java +++ /dev/null @@ -1,20 +0,0 @@ -package io.github.hapjava.characteristics; - -/** - * A callback interface for notifying subscribers that a characteristic value has changed. - * - *

    {@link EventableCharacteristic}s can be subscribed to, and in doing so, are supplied an - * instance of this class. Implementors should call the {@link #changed()} method on the passed - * object when a subscribed characteristic changes. - * - * @author Andy Lintner - */ -@FunctionalInterface -public interface HomekitCharacteristicChangeCallback { - - /** - * Call when the value of the characteristic that was subscribed to when this object was passed - * changes. - */ - void changed(); -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/AccessoryFlagsCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/AccessoryFlagsCharacteristic.java deleted file mode 100644 index f04a4dd8e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/AccessoryFlagsCharacteristic.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.github.hapjava.characteristics.impl.accessoryinformation; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic indicates whether accessory requires additional setup. See {@link - * AccessoryFlagsEnum} for possible values. - */ -public class AccessoryFlagsCharacteristic extends EnumCharacteristic { - - public AccessoryFlagsCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000A6-0000-1000-8000-0026BB765291", - "accessory flags", - AccessoryFlagsEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/AccessoryFlagsEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/AccessoryFlagsEnum.java deleted file mode 100644 index a849383e8..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/AccessoryFlagsEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.accessoryinformation; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0x0001 (bit0) ”Requires additional setup” 0x0002 - 0xFFFF ”Reserved” */ -public enum AccessoryFlagsEnum implements CharacteristicEnum { - NO_FLAGS(0), - REQUIRES_ADDITIONAL_SETUP(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(AccessoryFlagsEnum.values()) - .collect(Collectors.toMap(AccessoryFlagsEnum::getCode, t -> t)); - } - - public static AccessoryFlagsEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - AccessoryFlagsEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/FirmwareRevisionCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/FirmwareRevisionCharacteristic.java deleted file mode 100644 index 542cb805b..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/FirmwareRevisionCharacteristic.java +++ /dev/null @@ -1,19 +0,0 @@ -package io.github.hapjava.characteristics.impl.accessoryinformation; - -import io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Supplier; - -/** This characteristic describes a firmware revision string */ -public class FirmwareRevisionCharacteristic extends StaticStringCharacteristic { - - public FirmwareRevisionCharacteristic(Supplier> getter) { - super( - "00000052-0000-1000-8000-0026BB765291", - "firmware revision", - Optional.of(getter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/HardwareRevisionCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/HardwareRevisionCharacteristic.java deleted file mode 100644 index f323de0d8..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/HardwareRevisionCharacteristic.java +++ /dev/null @@ -1,19 +0,0 @@ -package io.github.hapjava.characteristics.impl.accessoryinformation; - -import io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Supplier; - -/** This characteristic describes a hardware revision in a form x[.y[.z]] (e.g. ”100.1.1”) */ -public class HardwareRevisionCharacteristic extends StaticStringCharacteristic { - - public HardwareRevisionCharacteristic(Supplier> getter) { - super( - "00000053-0000-1000-8000-0026BB765291", - "hardware revision", - Optional.of(getter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/IdentifyCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/IdentifyCharacteristic.java deleted file mode 100644 index 8936ba77d..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/IdentifyCharacteristic.java +++ /dev/null @@ -1,19 +0,0 @@ -package io.github.hapjava.characteristics.impl.accessoryinformation; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.impl.base.BooleanCharacteristic; -import java.util.Optional; - -/** This characteristic enables accessory to run its identify routine. */ -public class IdentifyCharacteristic extends BooleanCharacteristic { - - public IdentifyCharacteristic(ExceptionalConsumer setter) { - super( - "00000014-0000-1000-8000-0026BB765291", - "identifies the accessory", - Optional.empty(), - Optional.of(setter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/ManufacturerCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/ManufacturerCharacteristic.java deleted file mode 100644 index 777b571c2..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/ManufacturerCharacteristic.java +++ /dev/null @@ -1,19 +0,0 @@ -package io.github.hapjava.characteristics.impl.accessoryinformation; - -import io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Supplier; - -/** This characteristic contains the name of the company whose brand will appear on the accessory */ -public class ManufacturerCharacteristic extends StaticStringCharacteristic { - - public ManufacturerCharacteristic(Supplier> getter) { - super( - "00000020-0000-1000-8000-0026BB765291", - "manufacturer", - Optional.of(getter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/ModelCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/ModelCharacteristic.java deleted file mode 100644 index 4df7975af..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/ModelCharacteristic.java +++ /dev/null @@ -1,19 +0,0 @@ -package io.github.hapjava.characteristics.impl.accessoryinformation; - -import io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Supplier; - -/** This characteristic contains the manufacturer-specific model of the accessory */ -public class ModelCharacteristic extends StaticStringCharacteristic { - - public ModelCharacteristic(Supplier> getter) { - super( - "00000021-0000-1000-8000-0026BB765291", - "model", - Optional.of(getter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/SerialNumberCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/SerialNumberCharacteristic.java deleted file mode 100644 index 0c9860d73..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/accessoryinformation/SerialNumberCharacteristic.java +++ /dev/null @@ -1,19 +0,0 @@ -package io.github.hapjava.characteristics.impl.accessoryinformation; - -import io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Supplier; - -/** This characteristic contains the manufacturer-specific serial number of the accessory. */ -public class SerialNumberCharacteristic extends StaticStringCharacteristic { - - public SerialNumberCharacteristic(Supplier> getter) { - super( - "00000030-0000-1000-8000-0026BB765291", - "serial number", - Optional.of(getter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/airpurifier/CurrentAirPurifierCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/airpurifier/CurrentAirPurifierCharacteristic.java deleted file mode 100644 index c5b506c40..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/airpurifier/CurrentAirPurifierCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.airpurifier; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the current state of the air purifier. See {@link - * CurrentAirPurifierStateEnum} for possible values. - */ -public class CurrentAirPurifierCharacteristic - extends EnumCharacteristic { - - public CurrentAirPurifierCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000A9-0000-1000-8000-0026BB765291", - "current air purifier state", - CurrentAirPurifierStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/airpurifier/CurrentAirPurifierStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/airpurifier/CurrentAirPurifierStateEnum.java deleted file mode 100644 index ce4d8cc0d..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/airpurifier/CurrentAirPurifierStateEnum.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.github.hapjava.characteristics.impl.airpurifier; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Inactive” 1 ”Idle” 2 ”Purifying Air” */ -public enum CurrentAirPurifierStateEnum implements CharacteristicEnum { - INACTIVE(0), - IDLE(1), - PURIFYING_AIR(2); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(CurrentAirPurifierStateEnum.values()) - .collect(Collectors.toMap(CurrentAirPurifierStateEnum::getCode, t -> t)); - } - - public static CurrentAirPurifierStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - CurrentAirPurifierStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/airpurifier/TargetAirPurifierStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/airpurifier/TargetAirPurifierStateCharacteristic.java deleted file mode 100644 index e8452d655..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/airpurifier/TargetAirPurifierStateCharacteristic.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.github.hapjava.characteristics.impl.airpurifier; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the target state of the air purifier. See {@link - * TargetAirPurifierStateEnum} for possible values. - */ -public class TargetAirPurifierStateCharacteristic - extends EnumCharacteristic { - - public TargetAirPurifierStateCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000A8-0000-1000-8000-0026BB765291", - "Air purifier state", - TargetAirPurifierStateEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/airpurifier/TargetAirPurifierStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/airpurifier/TargetAirPurifierStateEnum.java deleted file mode 100644 index a20a73e9f..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/airpurifier/TargetAirPurifierStateEnum.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.github.hapjava.characteristics.impl.airpurifier; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Manual” 1 ”Auto” */ -public enum TargetAirPurifierStateEnum implements CharacteristicEnum { - MANUAL(0), - AUTO(1); - private static final Map reverse; - - static { - reverse = - Arrays.stream(TargetAirPurifierStateEnum.values()) - .collect(Collectors.toMap(t -> t.getCode(), t -> t)); - } - - public static TargetAirPurifierStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - private TargetAirPurifierStateEnum(int code) { - this.code = code; - } - - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/airquality/AirQualityCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/airquality/AirQualityCharacteristic.java deleted file mode 100644 index 448b90383..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/airquality/AirQualityCharacteristic.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.characteristics.impl.airquality; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the air quality. See {@link AirQualityEnum} for possible values. - */ -public class AirQualityCharacteristic extends EnumCharacteristic { - - public AirQualityCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000095-0000-1000-8000-0026BB765291", - "air quality", - AirQualityEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/airquality/AirQualityEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/airquality/AirQualityEnum.java deleted file mode 100644 index 390b51dfe..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/airquality/AirQualityEnum.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.github.hapjava.characteristics.impl.airquality; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Unknown” 1 ”Excellent” 2 ”Good” 3 ”Fair” 4 ”Inferior” 5 ”Poor” */ -public enum AirQualityEnum implements CharacteristicEnum { - UNKNOWN(0), - EXCELLENT(1), - GOOD(2), - FAIR(3), - INFERIOR(4), - POOR(5); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(AirQualityEnum.values()) - .collect(Collectors.toMap(AirQualityEnum::getCode, t -> t)); - } - - public static AirQualityEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - AirQualityEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/airquality/NitrogenDioxideDensityCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/airquality/NitrogenDioxideDensityCharacteristic.java deleted file mode 100644 index 1e37e28b6..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/airquality/NitrogenDioxideDensityCharacteristic.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.characteristics.impl.airquality; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic contains the current NO2 density in micrograms/m3. */ -public class NitrogenDioxideDensityCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 1000; - public static final double DEFAULT_STEP = 1; - - public NitrogenDioxideDensityCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000C4-0000-1000-8000-0026BB765291", - "nitrogen dioxide density", - minValue, - maxValue, - minStep, - "micrograms", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public NitrogenDioxideDensityCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, DEFAULT_STEP, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/airquality/OzoneDensityCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/airquality/OzoneDensityCharacteristic.java deleted file mode 100644 index 577339288..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/airquality/OzoneDensityCharacteristic.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.characteristics.impl.airquality; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic contains the current ozone density in micrograms/m3. */ -public class OzoneDensityCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 1000; - public static final double DEFAULT_STEP = 1; - - public OzoneDensityCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000C3-0000-1000-8000-0026BB765291", - "ozone density", - minValue, - maxValue, - minStep, - "micrograms", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public OzoneDensityCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, DEFAULT_STEP, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/airquality/PM10DensityCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/airquality/PM10DensityCharacteristic.java deleted file mode 100644 index a7b9c1245..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/airquality/PM10DensityCharacteristic.java +++ /dev/null @@ -1,44 +0,0 @@ -package io.github.hapjava.characteristics.impl.airquality; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic contains the current PM10 micrometer particulate density in micrograms/m3. - */ -public class PM10DensityCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 1000; - public static final double DEFAULT_STEP = 1; - - public PM10DensityCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000C7-0000-1000-8000-0026BB765291", - "PM10 density", - minValue, - maxValue, - minStep, - "micrograms", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public PM10DensityCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, DEFAULT_STEP, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/airquality/PM25DensityCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/airquality/PM25DensityCharacteristic.java deleted file mode 100644 index 1667934ef..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/airquality/PM25DensityCharacteristic.java +++ /dev/null @@ -1,44 +0,0 @@ -package io.github.hapjava.characteristics.impl.airquality; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic contains the current PM2.5 micrometer particulate density in micrograms/m3. - */ -public class PM25DensityCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 1000; - public static final double DEFAULT_STEP = 1; - - public PM25DensityCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000C6-0000-1000-8000-0026BB765291", - "PM2.5 density", - minValue, - maxValue, - minStep, - "micrograms", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public PM25DensityCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, DEFAULT_STEP, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/airquality/SulphurDioxideDensityCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/airquality/SulphurDioxideDensityCharacteristic.java deleted file mode 100644 index 81df2c64b..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/airquality/SulphurDioxideDensityCharacteristic.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.characteristics.impl.airquality; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic contains the current SO2 density in micrograms/m3. */ -public class SulphurDioxideDensityCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 1000; - public static final double DEFAULT_STEP = 1; - - public SulphurDioxideDensityCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000C5-0000-1000-8000-0026BB765291", - "sulphur dioxide density", - minValue, - maxValue, - minStep, - "micrograms", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public SulphurDioxideDensityCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, DEFAULT_STEP, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/airquality/VOCDensityCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/airquality/VOCDensityCharacteristic.java deleted file mode 100644 index a752161c9..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/airquality/VOCDensityCharacteristic.java +++ /dev/null @@ -1,45 +0,0 @@ -package io.github.hapjava.characteristics.impl.airquality; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic indicates the current volatile organic compound (VOC) density in - * micrograms/m3. - */ -public class VOCDensityCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 1000; - public static final double DEFAULT_STEP = 1; - - public VOCDensityCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000C8-0000-1000-8000-0026BB765291", - "VOC density", - minValue, - maxValue, - minStep, - "micrograms", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public VOCDensityCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, DEFAULT_STEP, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/audio/MuteCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/audio/MuteCharacteristic.java deleted file mode 100644 index 105ca0977..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/audio/MuteCharacteristic.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.characteristics.impl.audio; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.BooleanCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** Mute characteristic to control audio input or output accessory. */ -public class MuteCharacteristic extends BooleanCharacteristic { - public MuteCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000011A-0000-1000-8000-0026BB765291", - "Mute", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/audio/VolumeCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/audio/VolumeCharacteristic.java deleted file mode 100644 index 2d1caedd7..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/audio/VolumeCharacteristic.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.characteristics.impl.audio; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** Volume characteristic to control audio volume. */ -public class VolumeCharacteristic extends IntegerCharacteristic implements EventableCharacteristic { - - public VolumeCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000119-0000-1000-8000-0026BB765291", - "volume", - 0, - 100, - "percentage", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/base/BaseCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/base/BaseCharacteristic.java deleted file mode 100644 index 0808883bb..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/base/BaseCharacteristic.java +++ /dev/null @@ -1,247 +0,0 @@ -package io.github.hapjava.characteristics.impl.base; - -import io.github.hapjava.characteristics.Characteristic; -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutionException; -import java.util.function.Consumer; -import javax.json.Json; -import javax.json.JsonArrayBuilder; -import javax.json.JsonObject; -import javax.json.JsonObjectBuilder; -import javax.json.JsonValue; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * Base class for implementing {@link Characteristic}. - * - * @author Andy Lintner - */ -public abstract class BaseCharacteristic implements Characteristic, EventableCharacteristic { - - private final Logger logger = LoggerFactory.getLogger(BaseCharacteristic.class); - - private final String type; - private final String shortType; - private final String format; - private final String description; - private final boolean isReadable; - private final boolean isWritable; - private final Optional> subscriber; - private final Optional unsubscriber; - - /** - * Default constructor - * - * @param type a string containing a UUID that indicates the type of characteristic. Apple defines - * a set of these, however implementors can create their own as well. - * @param format a string indicating the value type, which must be a recognized type by the - * consuming device. - * @param isWritable indicates whether the value can be changed. - * @param isReadable indicates whether the value can be retrieved. - * @param description a description of the characteristic to be passed to the consuming device. - * @param subscriber subscribes to changes - * @param unsubscriber unsubscribes to changes - */ - public BaseCharacteristic( - String type, - String format, - String description, - boolean isReadable, - boolean isWritable, - Optional> subscriber, - Optional unsubscriber) { - if (type == null || format == null || description == null) { - throw new NullPointerException(); - } - - this.type = type; - this.shortType = this.type.replaceAll("^0*([0-9a-fA-F]+)-0000-1000-8000-0026BB765291$", "$1"); - this.format = format; - this.description = description; - this.isReadable = isReadable; - this.isWritable = isWritable; - this.subscriber = subscriber; - this.unsubscriber = unsubscriber; - } - - @Override - /** {@inheritDoc} */ - public String getType() { - return type; - } - - @Override - /** {@inheritDoc} */ - public final CompletableFuture toJson(int iid) { - return makeBuilder(iid).thenApply(builder -> builder.build()); - } - - /** - * Creates the JSON serialized form of the accessory for use over the HomeKit Accessory Protocol. - * - * @param instanceId the static id of the accessory. - * @return a future that will complete with the JSON builder for the object. - */ - protected CompletableFuture makeBuilder(int instanceId) { - CompletableFuture futureValue = getValue(); - - if (futureValue == null) { - futureValue = CompletableFuture.completedFuture(getDefault()); - } - - return futureValue - .exceptionally( - t -> { - logger.warn("Could not retrieve value " + this.getClass().getName(), t); - return null; - }) - .thenApply( - value -> { - JsonArrayBuilder perms = Json.createArrayBuilder(); - if (isReadable) { - perms.add("pr"); - } - if (isWritable) { - perms.add("pw"); - } - if (subscriber.isPresent()) { - perms.add("ev"); - } - JsonObjectBuilder builder = - Json.createObjectBuilder() - .add("iid", instanceId) - .add("type", shortType) - .add("perms", perms.build()) - .add("format", format); - if (shortType.length() == type.length()) builder.add("description", description); - if (isReadable) setJsonValue(builder, value); - return builder; - }); - } - - /** {@inheritDoc} */ - @Override - public final void setValue(JsonValue jsonValue) { - setValue(jsonValue, null); - } - - /** {@inheritDoc} */ - @Override - public final void setValue(JsonValue jsonValue, String username) { - try { - setValue(convert(jsonValue), username); - } catch (Exception e) { - logger.warn( - "Error while setting JSON value {} for characteristic {} from user {}", - jsonValue, - getClass().getName(), - username, - e); - } - } - - /** {@inheritDoc} */ - @Override - public void supplyValue(JsonObjectBuilder builder) { - CompletableFuture futureValue = getValue(); - - if (futureValue == null) { - setJsonValue(builder, getDefault()); - return; - } - - try { - setJsonValue(builder, futureValue.get()); - } catch (InterruptedException | ExecutionException e) { - logger.warn("Error retrieving value", e); - setJsonValue(builder, getDefault()); - } - } - - /** {@inheritDoc} */ - @Override - public void subscribe(HomekitCharacteristicChangeCallback callback) { - subscriber.ifPresent(s -> s.accept(callback)); - } - - /** {@inheritDoc} */ - @Override - public void unsubscribe() { - unsubscriber.ifPresent(u -> u.run()); - } - - /** - * Converts from the JSON value to a Java object of the type T - * - * @param jsonValue the JSON value to convert from. - * @return the converted Java object. - */ - protected abstract T convert(JsonValue jsonValue); - - /** - * Update the characteristic value using a new value supplied by the connected client. - * - * @param value the new value to set. - * @throws Exception if the value cannot be set. - */ - public abstract void setValue(T value) throws Exception; - - /** - * Update the characteristic value using a new value supplied by the connected client. - * - * @param value the new value to set. - * @param username the authenticated username making the request - * @throws Exception if the value cannot be set. - */ - public void setValue(T value, String username) throws Exception { - setValue(value); - } - - /** - * Retrieves the current value of the characteristic. - * - * @return a future that will complete with the current value. - */ - public abstract CompletableFuture getValue(); - - /** - * Supplies a default value for the characteristic to send to connected clients when the real - * value. cannot be retrieved. - * - * @return a sensible default value. - */ - public abstract T getDefault(); - - /** - * Writes the value key to the serialized characteristic - * - * @param builder The JSON builder to add the value to - * @param value The value to add - */ - protected void setJsonValue(JsonObjectBuilder builder, T value) { - // I don't like this - there should really be a way to construct a disconnected JSONValue... - if (value instanceof Boolean) { - builder.add("value", (Boolean) value); - } else if (value instanceof Double) { - builder.add("value", (Double) value); - } else if (value instanceof Integer) { - builder.add("value", (Integer) value); - } else if (value instanceof Long) { - builder.add("value", (Long) value); - } else if (value instanceof BigInteger) { - builder.add("value", (BigInteger) value); - } else if (value instanceof BigDecimal) { - builder.add("value", (BigDecimal) value); - } else if (value == null) { - builder.addNull("value"); - } else { - builder.add("value", value.toString()); - } - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/base/BooleanCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/base/BooleanCharacteristic.java deleted file mode 100644 index b8c93a4e9..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/base/BooleanCharacteristic.java +++ /dev/null @@ -1,82 +0,0 @@ -package io.github.hapjava.characteristics.impl.base; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; -import javax.json.JsonNumber; -import javax.json.JsonValue; -import javax.json.JsonValue.ValueType; - -/** - * Characteristic that exposes a Boolean value. - * - * @author Andy Lintner - */ -public abstract class BooleanCharacteristic extends BaseCharacteristic { - - private final Optional>> getter; - private final Optional> setter; - - /** - * Default constructor - * - * @param type a string containing a UUID that indicates the type of characteristic. Apple defines - * a set of these, however implementors can create their own as well. - * @param description a description of the characteristic to be passed to the consuming device. - * @param getter getter to retrieve the value - * @param setter setter to set value - * @param subscriber subscriber to subscribe to changes - * @param unsubscriber unsubscriber to unsubscribe from chnages - */ - public BooleanCharacteristic( - String type, - String description, - Optional>> getter, - Optional> setter, - Optional> subscriber, - Optional unsubscriber) { - super( - type, - "bool", - description, - getter.isPresent(), - setter.isPresent(), - subscriber, - unsubscriber); - this.getter = getter; - this.setter = setter; - } - - /** {@inheritDoc} */ - @Override - protected Boolean convert(JsonValue jsonValue) { - if (jsonValue.getValueType().equals(ValueType.NUMBER)) { - return ((JsonNumber) jsonValue).intValue() > 0; - } - return jsonValue.equals(JsonValue.TRUE); - } - - @Override - public CompletableFuture getValue() { - return getter.isPresent() ? getter.map(booleanGetter -> booleanGetter.get()).get() : null; - } - - @Override - public void setValue(Boolean value) throws Exception { - setValue(value, null); - } - - @Override - public void setValue(Boolean value, String username) throws Exception { - if (setter.isPresent()) setter.get().accept(value, username); - } - - /** {@inheritDoc} */ - @Override - public Boolean getDefault() { - return false; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/base/EnumCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/base/EnumCharacteristic.java deleted file mode 100644 index a12cb0673..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/base/EnumCharacteristic.java +++ /dev/null @@ -1,162 +0,0 @@ -package io.github.hapjava.characteristics.impl.base; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.Arrays; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; -import javax.json.Json; -import javax.json.JsonArrayBuilder; -import javax.json.JsonNumber; -import javax.json.JsonObject; -import javax.json.JsonObjectBuilder; -import javax.json.JsonValue; - -/** - * Characteristic that exposes an Enum value. Enums are represented as an Integer value in the - * HomeKit protocol, and classes extending this one must handle the static mapping to an Integer - * value. - * - * @author Andy Lintner - */ -public abstract class EnumCharacteristic - extends BaseCharacteristic { - - private final T[] validValues; - protected Optional>> getter; - protected Optional> setter; - - /** - * Default constructor - * - * @param type a string containing a UUID that indicates the type of characteristic. Apple defines - * a set of these, however implementors can create their own as well. - * @param description a description of the characteristic to be passed to the consuming device. - * @param validValues an array of valid values for enum. - * @param getter getter to retrieve the value - * @param setter setter to set value - * @param subscriber subscriber to subscribe to changes - * @param unsubscriber unsubscriber to unsubscribe from chnages - */ - public EnumCharacteristic( - String type, - String description, - T[] validValues, - Optional>> getter, - Optional> setter, - Optional> subscriber, - Optional unsubscriber) { - super( - type, "int", description, getter.isPresent(), setter.isPresent(), subscriber, unsubscriber); - this.getter = getter; - this.setter = setter; - this.validValues = validValues; - } - - /** {@inheritDoc} */ - @Override - protected CompletableFuture makeBuilder(int iid) { - JsonArrayBuilder validValuesBuilder = Json.createArrayBuilder(); - if (validValues != null && validValues.length != 0) { - Arrays.stream(validValues).forEach((T value) -> validValuesBuilder.add(value.getCode())); - } - return super.makeBuilder(iid) - .thenApply( - builder -> { - return builder.add("valid-values", validValuesBuilder); - }); - } - - /** {@inheritDoc} */ - @Override - protected Integer convert(JsonValue jsonValue) { - if (jsonValue instanceof JsonNumber) { - return ((JsonNumber) jsonValue).intValue(); - } else if (jsonValue == JsonObject.TRUE) { - return 1; // For at least one enum type (locks), homekit will send a true instead of 1 - } else if (jsonValue == JsonObject.FALSE) { - return 0; - } else { - throw new IndexOutOfBoundsException("Cannot convert " + jsonValue.getClass() + " to int"); - } - } - - /** - * @return the current value of this characteristic, or null if it has no value or can't be - * fetched - */ - public CompletableFuture getEnumValue() { - if (!getter.isPresent()) { - return null; - } - return getter.get().get(); - } - - @Override - public CompletableFuture getValue() { - if (!getter.isPresent()) { - return null; - } - return getter - .get() - .get() - .thenApply( - e -> { - if (e == null) { - return null; - } - return e.getCode(); - }); - } - - public void setValue(T value) throws Exception { - setValue(value, null); - } - - public void setValue(T value, String username) throws Exception { - if (!setter.isPresent()) { - return; - } - - setter.get().accept(value, username); - } - - @Override - public void setValue(Integer value) throws Exception { - setValue(value, null); - } - - @Override - public void setValue(Integer value, String username) throws Exception { - if (!setter.isPresent()) { - return; - } - - // check if value is in valid values - if (validValues != null && value != null) { - for (T valid : validValues) { - if (valid.getCode() == value) { - setValue(valid, username); - return; - } - } - } - } - - /** {@inheritDoc} */ - @Override - public Integer getDefault() { - // as default return first item from valid values - if (validValues != null && validValues.length > 0) { - return validValues[0].getCode(); - } - return 0; - } - - public T[] getValidValues() { - return validValues; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/base/FloatCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/base/FloatCharacteristic.java deleted file mode 100644 index f4b5fa562..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/base/FloatCharacteristic.java +++ /dev/null @@ -1,158 +0,0 @@ -package io.github.hapjava.characteristics.impl.base; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; -import javax.json.JsonNumber; -import javax.json.JsonObjectBuilder; -import javax.json.JsonValue; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * A characteristic that provides a Float value type. - * - * @author Andy Lintner - */ -public abstract class FloatCharacteristic extends BaseCharacteristic { - - private static final Logger LOGGER = LoggerFactory.getLogger(FloatCharacteristic.class); - - private final double minValue; - private final double maxValue; - private final double minStep; - private final String unit; - private final Optional>> getter; - private final Optional> setter; - - /** - * Default constructor - * - * @param type a string containing a UUID that indicates the type of characteristic. Apple defines - * a set of these, however implementors can create their own as well. - * @param description a description of the characteristic to be passed to the consuming device. - * @param minValue the minimum supported value. - * @param maxValue the maximum supported value - * @param minStep the smallest supported step. Values will be rounded to a multiple of this. - * @param unit a description of the unit this characteristic supports. - * @param getter getter to retrieve the value - * @param setter setter to set value - * @param subscriber subscriber to subscribe to changes - * @param unsubscriber unsubscriber to unsubscribe from chnages - */ - public FloatCharacteristic( - String type, - String description, - double minValue, - double maxValue, - double minStep, - String unit, - Optional>> getter, - Optional> setter, - Optional> subscriber, - Optional unsubscriber) { - super( - type, - "float", - description, - getter.isPresent(), - setter.isPresent(), - subscriber, - unsubscriber); - this.minValue = minValue; - this.maxValue = maxValue; - this.unit = unit; - this.getter = getter; - this.setter = setter; - this.minStep = minStep; - } - - /** {@inheritDoc} */ - @Override - protected CompletableFuture makeBuilder(int iid) { - return super.makeBuilder(iid) - .thenApply( - builder -> - builder - .add("minValue", minValue) - .add("maxValue", maxValue) - .add("minStep", minStep) - .add("unit", unit)); - } - - /** {@inheritDoc} */ - @Override - protected Double convert(JsonValue jsonValue) { - return ((JsonNumber) jsonValue).doubleValue(); - } - - /** - * {@inheritDoc}. Calls the getDoubleValue method and applies rounding to the minStep supplied in - * the constructor. - */ - @Override - public final CompletableFuture getValue() { - if (!getter.isPresent()) { - return null; - } - double rounder = 1 / this.minStep; - return getter - .get() - .get() - .thenApply(d -> d == null ? null : Math.round(d * rounder) / rounder) - .thenApply( - d -> { - if (d != null) { - if (d < minValue) { - LOGGER.warn( - "Detected value out of range " - + d - + ". Returning min value instead. Characteristic " - + this); - return minValue; - } - if (d > maxValue) { - LOGGER.warn( - "Detected value out of range " - + d - + ". Returning max value instead. Characteristic " - + this); - return maxValue; - } - return d; - } - return null; - }); - } - - @Override - public void setValue(Double value) throws Exception { - setValue(value, null); - } - - @Override - public void setValue(Double value, String username) throws Exception { - if (setter.isPresent()) setter.get().accept(value, username); - } - - /** {@inheritDoc} */ - @Override - public Double getDefault() { - return minValue; - } - - public double getMinValue() { - return minValue; - } - - public double getMaxValue() { - return maxValue; - } - - public double getMinStep() { - return minStep; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/base/IntegerCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/base/IntegerCharacteristic.java deleted file mode 100644 index 6b6cd2982..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/base/IntegerCharacteristic.java +++ /dev/null @@ -1,146 +0,0 @@ -package io.github.hapjava.characteristics.impl.base; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; -import javax.json.JsonNumber; -import javax.json.JsonObjectBuilder; -import javax.json.JsonValue; - -/** - * A characteristic that provides an Integer data type. - * - * @author Andy Lintner - */ -public abstract class IntegerCharacteristic extends BaseCharacteristic { - - private final int minValue; - private final int maxValue; - private final String unit; - private final Optional>> getter; - private final Optional> setter; - - /** - * Default constructor - * - * @param type a string containing a UUID that indicates the type of characteristic. Apple defines - * a set of these, however implementors can create their own as well. - * @param description a description of the characteristic to be passed to the consuming device. - * @param minValue the minimum supported value. - * @param maxValue the maximum supported value - * @param unit a description of the unit this characteristic supports. - * @param getter getter for value - * @param setter setter for value - * @param subscriber subscribers to changes - * @param unsubscriber unsubscribers to changes - */ - public IntegerCharacteristic( - String type, - String description, - int minValue, - int maxValue, - String unit, - Optional>> getter, - Optional> setter, - Optional> subscriber, - Optional unsubscriber) { - this( - type, - "int", - description, - minValue, - maxValue, - unit, - getter, - setter, - subscriber, - unsubscriber); - } - - /** - * Constructor for characteristics whose HAP format differs from the default "int", e.g. "uint8", - * "uint16" or "uint32". Values are still handled as Java {@link Integer}, so the supported range - * must fit into a signed 32-bit integer. - * - * @param type a string containing a UUID that indicates the type of characteristic. Apple defines - * a set of these, however implementors can create their own as well. - * @param format the HAP format to advertise, e.g. "int" or "uint32". - * @param description a description of the characteristic to be passed to the consuming device. - * @param minValue the minimum supported value. - * @param maxValue the maximum supported value - * @param unit a description of the unit this characteristic supports. - * @param getter getter for value - * @param setter setter for value - * @param subscriber subscribers to changes - * @param unsubscriber unsubscribers to changes - */ - protected IntegerCharacteristic( - String type, - String format, - String description, - int minValue, - int maxValue, - String unit, - Optional>> getter, - Optional> setter, - Optional> subscriber, - Optional unsubscriber) { - super( - type, - format, - description, - getter.isPresent(), - setter.isPresent(), - subscriber, - unsubscriber); - this.minValue = minValue; - this.maxValue = maxValue; - this.unit = unit; - this.getter = getter; - this.setter = setter; - } - - /** {@inheritDoc} */ - @Override - protected CompletableFuture makeBuilder(int iid) { - return super.makeBuilder(iid) - .thenApply( - builder -> { - builder.add("minValue", minValue).add("maxValue", maxValue).add("minStep", 1); - if (this.unit != null) { - builder.add("unit", unit); - } - return builder; - }); - } - - @Override - public CompletableFuture getValue() { - return getter.map(integerGetter -> integerGetter.get()).orElse(null); - } - - @Override - public void setValue(Integer value) throws Exception { - setValue(value, null); - } - - @Override - public void setValue(Integer value, String username) throws Exception { - if (setter.isPresent()) setter.get().accept(value, username); - } - - /** {@inheritDoc} */ - @Override - public Integer getDefault() { - return minValue; - } - - /** {@inheritDoc} */ - @Override - protected Integer convert(JsonValue jsonValue) { - return ((JsonNumber) jsonValue).intValue(); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/base/StaticStringCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/base/StaticStringCharacteristic.java deleted file mode 100644 index fc5961d4d..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/base/StaticStringCharacteristic.java +++ /dev/null @@ -1,71 +0,0 @@ -package io.github.hapjava.characteristics.impl.base; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; -import javax.json.JsonObjectBuilder; -import javax.json.JsonString; -import javax.json.JsonValue; - -/** - * A characteristic that provides an immutable String value. - * - * @author Andy Lintner - */ -public class StaticStringCharacteristic extends BaseCharacteristic { - - private static final int MAX_LEN = 255; - - private final Optional>> getter; - /** - * Default constructor - * - * @param type a string containing a UUID that indicates the type of characteristic. Apple defines - * a set of these, however implementors can create their own as well. - * @param description a description of the characteristic to be passed to the consuming device. - * @param getter getter to retrieve the value - * @param subscriber subscriber to subscribe to changes - * @param unsubscriber unsubscriber to unsubscribe from chnages - */ - public StaticStringCharacteristic( - String type, - String description, - Optional>> getter, - Optional> subscriber, - Optional unsubscriber) { - super(type, "string", description, getter.isPresent(), false, subscriber, unsubscriber); - this.getter = getter; - } - - /** {@inheritDoc} */ - @Override - protected CompletableFuture makeBuilder(int iid) { - return super.makeBuilder(iid).thenApply(builder -> builder.add("maxLen", MAX_LEN)); - } - - /** {@inheritDoc} */ - @Override - public String convert(JsonValue jsonValue) { - return ((JsonString) jsonValue).getString(); - } - - /** {@inheritDoc} */ - @Override - public void setValue(String value) throws Exception { - throw new Exception("Cannot modify static strings"); - } - - /** {@inheritDoc} */ - @Override - public CompletableFuture getValue() { - return getter.map(stringGetter -> stringGetter.get()).orElse(null); - } - - /** {@inheritDoc} */ - @Override - public String getDefault() { - return "Unknown"; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/base/StringCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/base/StringCharacteristic.java deleted file mode 100644 index 72ff0afd6..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/base/StringCharacteristic.java +++ /dev/null @@ -1,86 +0,0 @@ -package io.github.hapjava.characteristics.impl.base; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; -import javax.json.JsonObjectBuilder; -import javax.json.JsonString; -import javax.json.JsonValue; - -/** - * A characteristic that provides an string value. - * - * @author Eugen Freiter - */ -public class StringCharacteristic extends BaseCharacteristic { - private final Optional>> getter; - private final Optional> setter; - /** - * Default constructor - * - * @param type a string containing a UUID that indicates the type of characteristic. Apple defines - * a set of these, however implementors can create their own as well. - * @param description a description of the characteristic to be passed to the consuming device. - * @param getter getter to retrieve the value - * @param setter setter for value - * @param subscriber subscriber to subscribe to changes - * @param unsubscriber unsubscriber to unsubscribe from chnages - */ - public StringCharacteristic( - String type, - String description, - Optional>> getter, - Optional> setter, - Optional> subscriber, - Optional unsubscriber) { - super( - type, - "string", - description, - getter.isPresent(), - setter.isPresent(), - subscriber, - unsubscriber); - this.getter = getter; - this.setter = setter; - } - - /** {@inheritDoc} */ - @Override - protected CompletableFuture makeBuilder(int iid) { - return super.makeBuilder(iid); - } - - /** {@inheritDoc} */ - @Override - public String convert(JsonValue jsonValue) { - return ((JsonString) jsonValue).getString(); - } - - /** {@inheritDoc} */ - @Override - public void setValue(String value) throws Exception { - setValue(value, null); - } - - /** {@inheritDoc} */ - @Override - public void setValue(String value, String username) throws Exception { - if (setter.isPresent()) setter.get().accept(value, username); - } - - /** {@inheritDoc} */ - @Override - public CompletableFuture getValue() { - return getter.map(stringGetter -> stringGetter.get()).orElse(null); - } - - /** {@inheritDoc} */ - @Override - public String getDefault() { - return "Unknown"; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/battery/BatteryLevelCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/battery/BatteryLevelCharacteristic.java deleted file mode 100644 index 0fa56ff40..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/battery/BatteryLevelCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.battery; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the current level of the battery. */ -public class BatteryLevelCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - - public BatteryLevelCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000068-0000-1000-8000-0026BB765291", - "battery level", - 0, - 100, - "%", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/battery/ChargingStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/battery/ChargingStateCharacteristic.java deleted file mode 100644 index f034e2c3c..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/battery/ChargingStateCharacteristic.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.github.hapjava.characteristics.impl.battery; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the charging state of a battery or an accessory. See {@link - * ChargingStateEnum} for possible values. - */ -public class ChargingStateCharacteristic extends EnumCharacteristic { - - public ChargingStateCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000008F-0000-1000-8000-0026BB765291", - "Charging state", - ChargingStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/battery/ChargingStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/battery/ChargingStateEnum.java deleted file mode 100644 index d790ff2f7..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/battery/ChargingStateEnum.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.github.hapjava.characteristics.impl.battery; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Not Charging” 1 ”Charging” 2 ”Not Chargeable” */ -public enum ChargingStateEnum implements CharacteristicEnum { - NOT_CHARGING(0), - CHARGING(1), - NOT_CHARABLE(2); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(ChargingStateEnum.values()) - .collect(Collectors.toMap(ChargingStateEnum::getCode, t -> t)); - } - - public static ChargingStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - ChargingStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/battery/StatusLowBatteryCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/battery/StatusLowBatteryCharacteristic.java deleted file mode 100644 index fac7f3ead..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/battery/StatusLowBatteryCharacteristic.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.github.hapjava.characteristics.impl.battery; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes an accessory battery status. See {@link StatusLowBatteryEnum} for - * possible values - */ -public class StatusLowBatteryCharacteristic extends EnumCharacteristic { - - public StatusLowBatteryCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000079-0000-1000-8000-0026BB765291", - "Status Low Battery", - StatusLowBatteryEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/battery/StatusLowBatteryEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/battery/StatusLowBatteryEnum.java deleted file mode 100644 index 92981247d..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/battery/StatusLowBatteryEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.battery; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Battery level is normal” 1 ”Battery level is low” */ -public enum StatusLowBatteryEnum implements CharacteristicEnum { - NORMAL(0), - LOW(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(StatusLowBatteryEnum.values()) - .collect(Collectors.toMap(StatusLowBatteryEnum::getCode, t -> t)); - } - - public static StatusLowBatteryEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - StatusLowBatteryEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideDetectedCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideDetectedCharacteristic.java deleted file mode 100644 index ab327a40e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideDetectedCharacteristic.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.characteristics.impl.carbondioxidesensor; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic indicates the levels of Carbon Dioxide. See {@link CarbonDioxideDetectedEnum} - * for possible values. - */ -public class CarbonDioxideDetectedCharacteristic - extends EnumCharacteristic implements EventableCharacteristic { - - public CarbonDioxideDetectedCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000092-0000-1000-8000-0026BB765291", - "Carbon Dioxide Detected", - CarbonDioxideDetectedEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideDetectedEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideDetectedEnum.java deleted file mode 100644 index a6fe144b0..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideDetectedEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.carbondioxidesensor; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Carbon Dioxide levels are normal” 1 ”Carbon Dioxide levels are abnormal” */ -public enum CarbonDioxideDetectedEnum implements CharacteristicEnum { - NORMAL(0), - ABNORMAL(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(CarbonDioxideDetectedEnum.values()) - .collect(Collectors.toMap(CarbonDioxideDetectedEnum::getCode, t -> t)); - } - - public static CarbonDioxideDetectedEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - CarbonDioxideDetectedEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideLevelCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideLevelCharacteristic.java deleted file mode 100644 index b9b320564..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxideLevelCharacteristic.java +++ /dev/null @@ -1,44 +0,0 @@ -package io.github.hapjava.characteristics.impl.carbondioxidesensor; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic indicates the detected level of Carbon Dioxide in parts per million (ppm). - */ -public class CarbonDioxideLevelCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 100000; - public static final double DEFAULT_STEP = 1; - - public CarbonDioxideLevelCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000093-0000-1000-8000-0026BB765291", - "Carbon Dioxide Level", - minValue, - maxValue, - minStep, - "ppm", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public CarbonDioxideLevelCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, DEFAULT_STEP, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxidePeakLevelCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxidePeakLevelCharacteristic.java deleted file mode 100644 index 1a1793773..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/carbondioxidesensor/CarbonDioxidePeakLevelCharacteristic.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.characteristics.impl.carbondioxidesensor; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic indicates the highest detected level (ppm) of carbon dioxide. */ -public class CarbonDioxidePeakLevelCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 100000; - public static final double DEFAULT_STEP = 1; - - public CarbonDioxidePeakLevelCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000094-0000-1000-8000-0026BB765291", - "Carbon Dioxide Level", - minValue, - maxValue, - minStep, - "ppm", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public CarbonDioxidePeakLevelCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, DEFAULT_STEP, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideDetectedCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideDetectedCharacteristic.java deleted file mode 100644 index 2ef603b6e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideDetectedCharacteristic.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.characteristics.impl.carbonmonoxidesensor; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic indicates the levels of Carbon Monoxide. See {@link - * CarbonMonoxideDetectedEnum} for possible values - */ -public class CarbonMonoxideDetectedCharacteristic - extends EnumCharacteristic implements EventableCharacteristic { - - public CarbonMonoxideDetectedCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000069-0000-1000-8000-0026BB765291", - "Carbon Monoxide Detected", - CarbonMonoxideDetectedEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideDetectedEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideDetectedEnum.java deleted file mode 100644 index 2d1adf7f0..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideDetectedEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.carbonmonoxidesensor; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Carbon Monoxide levels are normal” 1 ”Carbon Monoxide levels are abnormal” */ -public enum CarbonMonoxideDetectedEnum implements CharacteristicEnum { - NORMAL(0), - ABNORMAL(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(CarbonMonoxideDetectedEnum.values()) - .collect(Collectors.toMap(CarbonMonoxideDetectedEnum::getCode, t -> t)); - } - - public static CarbonMonoxideDetectedEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - CarbonMonoxideDetectedEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideLevelCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideLevelCharacteristic.java deleted file mode 100644 index e35171b38..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxideLevelCharacteristic.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.characteristics.impl.carbonmonoxidesensor; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic contains the Carbon Monoxide levels in parts per million (ppm). */ -public class CarbonMonoxideLevelCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 100; - public static final double DEFAULT_STEP = 1; - - public CarbonMonoxideLevelCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000090-0000-1000-8000-0026BB765291", - "Carbon Monoxide Level", - minValue, - maxValue, - minStep, - "ppm", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public CarbonMonoxideLevelCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, DEFAULT_STEP, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxidePeakLevelCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxidePeakLevelCharacteristic.java deleted file mode 100644 index 892901866..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/carbonmonoxidesensor/CarbonMonoxidePeakLevelCharacteristic.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.characteristics.impl.carbonmonoxidesensor; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic indicates the highest detected level (ppm) of Carbon Monoxide. */ -public class CarbonMonoxidePeakLevelCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 100; - public static final double DEFAULT_STEP = 1; - - public CarbonMonoxidePeakLevelCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000091-0000-1000-8000-0026BB765291", - "Carbon Monoxide Peak Level", - minValue, - maxValue, - minStep, - "ppm", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public CarbonMonoxidePeakLevelCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, DEFAULT_STEP, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/ActiveCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/ActiveCharacteristic.java deleted file mode 100644 index 0d7fc2c1c..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/ActiveCharacteristic.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * Active characteristic indicates whether the service is currently active. See {@link ActiveEnum} - * for possible values. - */ -public class ActiveCharacteristic extends EnumCharacteristic { - - public ActiveCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000B0-0000-1000-8000-0026BB765291", - "Active", - ActiveEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/ActiveEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/common/ActiveEnum.java deleted file mode 100644 index 7fd0318c4..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/ActiveEnum.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Inactive” 1 ”Active” 2-255 ”Reserved” */ -public enum ActiveEnum implements CharacteristicEnum { - INACTIVE(0), - ACTIVE(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(ActiveEnum.values()).collect(Collectors.toMap(ActiveEnum::getCode, t -> t)); - } - - public static ActiveEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - ActiveEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/ActiveIdentifierCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/ActiveIdentifierCharacteristic.java deleted file mode 100644 index 587c1b666..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/ActiveIdentifierCharacteristic.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -public class ActiveIdentifierCharacteristic extends IntegerCharacteristic { - - public ActiveIdentifierCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000E7-0000-1000-8000-0026BB765291", - "active identifier", - 0, - 1000, - "", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/AirPlayEnableCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/AirPlayEnableCharacteristic.java deleted file mode 100644 index 6158f13be..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/AirPlayEnableCharacteristic.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** characteristic to control air play. */ -public class AirPlayEnableCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - - public AirPlayEnableCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000025B-0000-1000-8000-0026BB765291", - "AirPlay enable", - 0, - 1, - "", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/ConfiguredNameCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/ConfiguredNameCharacteristic.java deleted file mode 100644 index 471d5a368..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/ConfiguredNameCharacteristic.java +++ /dev/null @@ -1,27 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.StringCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes a configured name. */ -public class ConfiguredNameCharacteristic extends StringCharacteristic { - - public ConfiguredNameCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000E3-0000-1000-8000-0026BB765291", - "configured name", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/IdentifierCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/IdentifierCharacteristic.java deleted file mode 100644 index 4b8f7613c..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/IdentifierCharacteristic.java +++ /dev/null @@ -1,22 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Supplier; - -public class IdentifierCharacteristic extends IntegerCharacteristic { - - public IdentifierCharacteristic(Supplier> getter) { - super( - "000000E6-0000-1000-8000-0026BB765291", - "identifier", - 0, - 1000, - "", - Optional.of(getter), - Optional.empty(), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/InUseCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/InUseCharacteristic.java deleted file mode 100644 index 882c27a01..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/InUseCharacteristic.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic indicates whether the service is in use. See {@link InUseEnum} for possible - * values. - */ -public class InUseCharacteristic extends EnumCharacteristic { - public InUseCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000D2-0000-1000-8000-0026BB765291", - "In Use", - InUseEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/InUseEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/common/InUseEnum.java deleted file mode 100644 index 0b368b128..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/InUseEnum.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Not in use” 1 ”In use” 2-255 ”Reserved” */ -public enum InUseEnum implements CharacteristicEnum { - NOT_IN_USE(0), - IN_USE(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(InUseEnum.values()).collect(Collectors.toMap(InUseEnum::getCode, t -> t)); - } - - public static InUseEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - InUseEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/IsConfiguredCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/IsConfiguredCharacteristic.java deleted file mode 100644 index c016e87c9..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/IsConfiguredCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes whether the service is configured for use. See {@link - * IsConfiguredEnum} for possible values. - */ -public class IsConfiguredCharacteristic extends EnumCharacteristic { - public IsConfiguredCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000D6-0000-1000-8000-0026BB765291", - "Is Configured", - IsConfiguredEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/IsConfiguredEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/common/IsConfiguredEnum.java deleted file mode 100644 index 1d20f6b3b..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/IsConfiguredEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Not Configured” 1 ”Configured” 2-255 ”Reserved” */ -public enum IsConfiguredEnum implements CharacteristicEnum { - NOT_CONFIGURED(0), - CONFIGURED(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(IsConfiguredEnum.values()) - .collect(Collectors.toMap(IsConfiguredEnum::getCode, t -> t)); - } - - public static IsConfiguredEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - IsConfiguredEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/NameCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/NameCharacteristic.java deleted file mode 100644 index 49c3a824a..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/NameCharacteristic.java +++ /dev/null @@ -1,19 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Supplier; - -/** This characteristic describes a name and must not be a null value. */ -public class NameCharacteristic extends StaticStringCharacteristic { - - public NameCharacteristic(Supplier> getter) { - super( - "00000023-0000-1000-8000-0026BB765291", - "name", - Optional.of(getter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/ObstructionDetectedCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/ObstructionDetectedCharacteristic.java deleted file mode 100644 index 2644232e3..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/ObstructionDetectedCharacteristic.java +++ /dev/null @@ -1,24 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.BooleanCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the current state of an obstruction sensor. */ -public class ObstructionDetectedCharacteristic extends BooleanCharacteristic { - public ObstructionDetectedCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000024-0000-1000-8000-0026BB765291", - "Obstruction", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/OnCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/OnCharacteristic.java deleted file mode 100644 index 99da018b8..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/OnCharacteristic.java +++ /dev/null @@ -1,27 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.BooleanCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic represents the states for “on” and “off”. */ -public class OnCharacteristic extends BooleanCharacteristic { - - public OnCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000025-0000-1000-8000-0026BB765291", - "On / Off state", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/ProgramModeCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/ProgramModeCharacteristic.java deleted file mode 100644 index 1580ae392..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/ProgramModeCharacteristic.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes if there are programs scheduled on the accessory. See {@link - * ProgramModeEnum} for possible values. - */ -public class ProgramModeCharacteristic extends EnumCharacteristic { - public ProgramModeCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000D1-0000-1000-8000-0026BB765291", - "Program Mode", - ProgramModeEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/ProgramModeEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/common/ProgramModeEnum.java deleted file mode 100644 index 7924f370b..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/ProgramModeEnum.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 0 ”No Programs Scheduled” 1 ”Program Scheduled” 2 ”Program Scheduled, currently overriden to - * manual mode” - */ -public enum ProgramModeEnum implements CharacteristicEnum { - NO_SCHEDULED(0), - SCHEDULED(1), - SCHEDULED_MANUAL(2); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(ProgramModeEnum.values()) - .collect(Collectors.toMap(ProgramModeEnum::getCode, t -> t)); - } - - public static ProgramModeEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - ProgramModeEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/ProgrammableSwitchEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/common/ProgrammableSwitchEnum.java deleted file mode 100644 index 988472a0c..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/ProgrammableSwitchEnum.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Single Press” 1 ”Double Press” 2 ”Long Press” 3-255 ”Reserved” */ -public enum ProgrammableSwitchEnum implements CharacteristicEnum { - SINGLE_PRESS(0), - DOUBLE_PRESS(1), - LONG_PRESS(2); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(ProgrammableSwitchEnum.values()) - .collect(Collectors.toMap(ProgrammableSwitchEnum::getCode, t -> t)); - } - - public static ProgrammableSwitchEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - ProgrammableSwitchEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/ProgrammableSwitchEventCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/ProgrammableSwitchEventCharacteristic.java deleted file mode 100644 index b19430100..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/ProgrammableSwitchEventCharacteristic.java +++ /dev/null @@ -1,41 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes an event generated by a programmable switch. For BLE accessories, - * read request should return the last event. For IP accessory, read request must return "null". The - * changes are reported via events - * - *

    See {@link ProgrammableSwitchEnum} for possible values. - */ -public class ProgrammableSwitchEventCharacteristic - extends EnumCharacteristic { - - public ProgrammableSwitchEventCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(ProgrammableSwitchEnum.values(), getter, subscriber, unsubscriber); - } - - public ProgrammableSwitchEventCharacteristic( - ProgrammableSwitchEnum[] validValues, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000073-0000-1000-8000-0026BB765291", - "Switch Event", - validValues, - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/ServiceLabelIndexCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/ServiceLabelIndexCharacteristic.java deleted file mode 100644 index 522cb04fe..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/ServiceLabelIndexCharacteristic.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Supplier; - -/** - * This characteristic is used to identify the index of the label according to {@link - * ServiceLabelNamespaceCharacteristic} - */ -public class ServiceLabelIndexCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - - public ServiceLabelIndexCharacteristic(Supplier> getter) { - super( - "000000CB-0000-1000-8000-0026BB765291", - "service label index", - 0, - 100, - "%", - Optional.of(getter), - Optional.empty(), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/ServiceLabelNamespaceCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/ServiceLabelNamespaceCharacteristic.java deleted file mode 100644 index 9f8dd3248..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/ServiceLabelNamespaceCharacteristic.java +++ /dev/null @@ -1,25 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Supplier; - -/** - * This characteristic describes the naming schema for an accessory. See {@link - * ServiceLabelNamespaceEnum} for possible values. - */ -public class ServiceLabelNamespaceCharacteristic - extends EnumCharacteristic { - public ServiceLabelNamespaceCharacteristic( - Supplier> getter) { - super( - "000000CD-0000-1000-8000-0026BB765291", - "service label namespace", - ServiceLabelNamespaceEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/ServiceLabelNamespaceEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/common/ServiceLabelNamespaceEnum.java deleted file mode 100644 index a9b2df513..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/ServiceLabelNamespaceEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Dots. For e.g ”.” ”..” ”...” ”....”” 1 ”Arabic numerals. For e.g. 0,1,2,3” */ -public enum ServiceLabelNamespaceEnum implements CharacteristicEnum { - DOTS(0), - ARABIC_NUMERALS(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(ServiceLabelNamespaceEnum.values()) - .collect(Collectors.toMap(ServiceLabelNamespaceEnum::getCode, t -> t)); - } - - public static ServiceLabelNamespaceEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - ServiceLabelNamespaceEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/StatusActiveCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/StatusActiveCharacteristic.java deleted file mode 100644 index a242ae6a1..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/StatusActiveCharacteristic.java +++ /dev/null @@ -1,24 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.BooleanCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes current working (active and functional) status of accessory. */ -public class StatusActiveCharacteristic extends BooleanCharacteristic { - public StatusActiveCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000075-0000-1000-8000-0026BB765291", - "Active status", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/StatusFaultCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/StatusFaultCharacteristic.java deleted file mode 100644 index 5754e11a8..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/StatusFaultCharacteristic.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes fault status. See {@link StatusFaultEnum} for possible values. */ -public class StatusFaultCharacteristic extends EnumCharacteristic { - - public StatusFaultCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000077-0000-1000-8000-0026BB765291", - "Status Fault", - StatusFaultEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/StatusFaultEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/common/StatusFaultEnum.java deleted file mode 100644 index 4fd866847..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/StatusFaultEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”No Fault” 1 ”General Fault” */ -public enum StatusFaultEnum implements CharacteristicEnum { - NO_FAULT(0), - GENERAL_FAULT(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(StatusFaultEnum.values()) - .collect(Collectors.toMap(StatusFaultEnum::getCode, t -> t)); - } - - public static StatusFaultEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - StatusFaultEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/StatusTamperedCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/StatusTamperedCharacteristic.java deleted file mode 100644 index 501bbaedb..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/StatusTamperedCharacteristic.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes tampered status. See {@link StatusTamperedEnum} for possible - * values. - */ -public class StatusTamperedCharacteristic extends EnumCharacteristic { - - public StatusTamperedCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000007A-0000-1000-8000-0026BB765291", - "Status Tampered", - StatusTamperedEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/StatusTamperedEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/common/StatusTamperedEnum.java deleted file mode 100644 index 2d725c132..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/StatusTamperedEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Accessory is not tampered” 1 ”Accessory is tampered with” */ -public enum StatusTamperedEnum implements CharacteristicEnum { - NOT_TAMPERED(0), - TAMPERED(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(StatusTamperedEnum.values()) - .collect(Collectors.toMap(StatusTamperedEnum::getCode, t -> t)); - } - - public static StatusTamperedEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - StatusTamperedEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/VersionCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/VersionCharacteristic.java deleted file mode 100644 index 75c8aaf9e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/VersionCharacteristic.java +++ /dev/null @@ -1,19 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.impl.base.StaticStringCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Supplier; - -/** This characteristic describes HAP version. */ -public class VersionCharacteristic extends StaticStringCharacteristic { - - public VersionCharacteristic(Supplier> getter) { - super( - "00000037-0000-1000-8000-0026BB765291", - "HAP version", - Optional.of(getter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/common/WaterLavelCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/common/WaterLavelCharacteristic.java deleted file mode 100644 index dda11b087..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/common/WaterLavelCharacteristic.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.characteristics.impl.common; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the water level. */ -public class WaterLavelCharacteristic extends FloatCharacteristic - implements EventableCharacteristic { - - public WaterLavelCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000B5-0000-1000-8000-0026BB765291", - "water level", - 0, - 100, - 1, - "%", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/contactsensor/ContactSensorStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/contactsensor/ContactSensorStateCharacteristic.java deleted file mode 100644 index 8ac3c1fde..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/contactsensor/ContactSensorStateCharacteristic.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.characteristics.impl.contactsensor; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the state of a door/window contact sensor. See {@link - * ContactStateEnum} for possible values. - */ -public class ContactSensorStateCharacteristic extends EnumCharacteristic - implements EventableCharacteristic { - - public ContactSensorStateCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000006A-0000-1000-8000-0026BB765291", - "Contact Sensor", - ContactStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/contactsensor/ContactStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/contactsensor/ContactStateEnum.java deleted file mode 100644 index 275ed9734..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/contactsensor/ContactStateEnum.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.github.hapjava.characteristics.impl.contactsensor; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/* - * 0 ”Contact is detected” - * 1 ”Contact is not detected” - */ -public enum ContactStateEnum implements CharacteristicEnum { - DETECTED(0), - NOT_DETECTED(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(ContactStateEnum.values()) - .collect(Collectors.toMap(ContactStateEnum::getCode, t -> t)); - } - - public static ContactStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - ContactStateEnum(int code) { - this.code = code; - } - - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/fan/CurrentFanStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/fan/CurrentFanStateCharacteristic.java deleted file mode 100644 index 75f932e50..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/fan/CurrentFanStateCharacteristic.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.characteristics.impl.fan; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the current state of the fan. See {@link CurrentFanStateEnum} for - * possible values. - */ -public class CurrentFanStateCharacteristic extends EnumCharacteristic - implements EventableCharacteristic { - - public CurrentFanStateCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000AF-0000-1000-8000-0026BB765291", - "Current Fan State", - CurrentFanStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/fan/CurrentFanStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/fan/CurrentFanStateEnum.java deleted file mode 100644 index 674924e9a..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/fan/CurrentFanStateEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.fan; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -public enum CurrentFanStateEnum implements CharacteristicEnum { - INACTIVE(0), - IDLE(1), - BLOWING_AIR(2); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(CurrentFanStateEnum.values()) - .collect(Collectors.toMap(CurrentFanStateEnum::getCode, t -> t)); - } - - public static CurrentFanStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - CurrentFanStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/fan/LockPhysicalControlsCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/fan/LockPhysicalControlsCharacteristic.java deleted file mode 100644 index 8ea6f35c6..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/fan/LockPhysicalControlsCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.fan; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes physical controls on an accessory (eg. child lock). */ -public class LockPhysicalControlsCharacteristic extends EnumCharacteristic - implements EventableCharacteristic { - - public LockPhysicalControlsCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000A7-0000-1000-8000-0026BB765291", - "Physical Locks", - LockPhysicalControlsEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/fan/LockPhysicalControlsEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/fan/LockPhysicalControlsEnum.java deleted file mode 100644 index 87503ed96..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/fan/LockPhysicalControlsEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.fan; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Control lock disabled” 1 ”Control lock enabled” */ -public enum LockPhysicalControlsEnum implements CharacteristicEnum { - CONTROL_LOCK_DISABLED(0), - CONTROL_LOCK_ENABLED(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(LockPhysicalControlsEnum.values()) - .collect(Collectors.toMap(LockPhysicalControlsEnum::getCode, t -> t)); - } - - public static LockPhysicalControlsEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - LockPhysicalControlsEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/fan/RotationDirectionCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/fan/RotationDirectionCharacteristic.java deleted file mode 100644 index efa82681f..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/fan/RotationDirectionCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.fan; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the direction of rotation of a fan. */ -public class RotationDirectionCharacteristic extends EnumCharacteristic - implements EventableCharacteristic { - - public RotationDirectionCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000028-0000-1000-8000-0026BB765291", - "Rotation direction", - RotationDirectionEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/fan/RotationDirectionEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/fan/RotationDirectionEnum.java deleted file mode 100644 index 20651fd1c..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/fan/RotationDirectionEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.fan; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Clockwise” 1 ”Counter-clockwise” 2-255 ”Reserved” */ -public enum RotationDirectionEnum implements CharacteristicEnum { - CLOCKWISE(0), - COUNTER_CLOCKWISE(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(RotationDirectionEnum.values()) - .collect(Collectors.toMap(RotationDirectionEnum::getCode, t -> t)); - } - - public static RotationDirectionEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - RotationDirectionEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/fan/RotationSpeedCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/fan/RotationSpeedCharacteristic.java deleted file mode 100644 index d7a1d6929..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/fan/RotationSpeedCharacteristic.java +++ /dev/null @@ -1,54 +0,0 @@ -package io.github.hapjava.characteristics.impl.fan; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the rotation speed of a fan. */ -public class RotationSpeedCharacteristic extends FloatCharacteristic - implements EventableCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 100; - public static final double DEFAULT_STEP = 1; - - public RotationSpeedCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000029-0000-1000-8000-0026BB765291", - "Rotation Speed", - minValue, - maxValue, - minStep, - "%", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public RotationSpeedCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - this( - DEFAULT_MIN_VALUE, - DEFAULT_MAX_VALUE, - DEFAULT_STEP, - getter, - setter, - subscriber, - unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/fan/SwingModeCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/fan/SwingModeCharacteristic.java deleted file mode 100644 index ba58dfd0f..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/fan/SwingModeCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.fan; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes if swing mode is enabled. */ -public class SwingModeCharacteristic extends EnumCharacteristic - implements EventableCharacteristic { - - public SwingModeCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000B6-0000-1000-8000-0026BB765291", - "Swing Mode", - SwingModeEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/fan/SwingModeEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/fan/SwingModeEnum.java deleted file mode 100644 index 928bafd27..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/fan/SwingModeEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.fan; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Swing disabled” 1 ”Swing enabled” */ -public enum SwingModeEnum implements CharacteristicEnum { - SWING_DISABLED(0), - SWING_ENABLED(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(SwingModeEnum.values()) - .collect(Collectors.toMap(SwingModeEnum::getCode, t -> t)); - } - - public static SwingModeEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - SwingModeEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/fan/TargetFanStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/fan/TargetFanStateCharacteristic.java deleted file mode 100644 index 1ab9ca305..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/fan/TargetFanStateCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.fan; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the target state of the fan. */ -public class TargetFanStateCharacteristic extends EnumCharacteristic - implements EventableCharacteristic { - - public TargetFanStateCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000BF-0000-1000-8000-0026BB765291", - "Target Fan State", - TargetFanStateEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/fan/TargetFanStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/fan/TargetFanStateEnum.java deleted file mode 100644 index 600f07401..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/fan/TargetFanStateEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.fan; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Manual” 1 ”Auto” */ -public enum TargetFanStateEnum implements CharacteristicEnum { - MANUAL(0), - AUTO(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(TargetFanStateEnum.values()) - .collect(Collectors.toMap(TargetFanStateEnum::getCode, t -> t)); - } - - public static TargetFanStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - TargetFanStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/filtermaintenance/FilterChangeIndicationCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/filtermaintenance/FilterChangeIndicationCharacteristic.java deleted file mode 100644 index 31ccbb25e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/filtermaintenance/FilterChangeIndicationCharacteristic.java +++ /dev/null @@ -1,27 +0,0 @@ -package io.github.hapjava.characteristics.impl.filtermaintenance; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -public class FilterChangeIndicationCharacteristic - extends EnumCharacteristic implements EventableCharacteristic { - - public FilterChangeIndicationCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000AC-0000-1000-8000-0026BB765291", - "filter change indication", - FilterChangeIndicationEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/filtermaintenance/FilterChangeIndicationEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/filtermaintenance/FilterChangeIndicationEnum.java deleted file mode 100644 index 03d610afb..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/filtermaintenance/FilterChangeIndicationEnum.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.characteristics.impl.filtermaintenance; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -public enum FilterChangeIndicationEnum implements CharacteristicEnum { - NO_CHANGE_NEEDED(0), - CHANGE_NEEDED(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(FilterChangeIndicationEnum.values()) - .collect(Collectors.toMap(FilterChangeIndicationEnum::getCode, t -> t)); - } - - public static FilterChangeIndicationEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - FilterChangeIndicationEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/filtermaintenance/FilterLifeLevelCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/filtermaintenance/FilterLifeLevelCharacteristic.java deleted file mode 100644 index 29cdf8d6e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/filtermaintenance/FilterLifeLevelCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.filtermaintenance; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -public class FilterLifeLevelCharacteristic extends FloatCharacteristic - implements EventableCharacteristic { - - public FilterLifeLevelCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000AB-0000-1000-8000-0026BB765291", - "Filter Life Level", - 0, - 100, - 1, - "%", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/filtermaintenance/ResetFilterIndicationCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/filtermaintenance/ResetFilterIndicationCharacteristic.java deleted file mode 100644 index 10d06bf96..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/filtermaintenance/ResetFilterIndicationCharacteristic.java +++ /dev/null @@ -1,21 +0,0 @@ -package io.github.hapjava.characteristics.impl.filtermaintenance; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; - -public class ResetFilterIndicationCharacteristic extends IntegerCharacteristic { - - public ResetFilterIndicationCharacteristic(ExceptionalConsumer setter) { - super( - "000000AD-0000-1000-8000-0026BB765291", - "Reset Filter Indication", - 1, - 1, - null, - Optional.empty(), - Optional.of(setter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/garagedoor/CurrentDoorStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/garagedoor/CurrentDoorStateCharacteristic.java deleted file mode 100644 index e06937daa..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/garagedoor/CurrentDoorStateCharacteristic.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.characteristics.impl.garagedoor; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the current state of a door. */ -public class CurrentDoorStateCharacteristic extends EnumCharacteristic - implements EventableCharacteristic { - - public CurrentDoorStateCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000000E-0000-1000-8000-0026BB765291", - "Current Door State", - CurrentDoorStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/garagedoor/CurrentDoorStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/garagedoor/CurrentDoorStateEnum.java deleted file mode 100644 index 88474e6cc..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/garagedoor/CurrentDoorStateEnum.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.characteristics.impl.garagedoor; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 0 ”Open. The door is fully open.” 1 ”Closed. The door is fully closed.” 2 ”Opening. The door is - * actively opening.” 3 ”Closing. The door is actively closing.” 4 ”Stopped. The door is not moving, - * and it is not fully open nor fully closed.” - */ -public enum CurrentDoorStateEnum implements CharacteristicEnum { - OPEN(0), - CLOSED(1), - OPENING(2), - CLOSING(3), - STOPPED(4); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(CurrentDoorStateEnum.values()) - .collect(Collectors.toMap(CurrentDoorStateEnum::getCode, t -> t)); - } - - public static CurrentDoorStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - CurrentDoorStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/garagedoor/TargetDoorStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/garagedoor/TargetDoorStateCharacteristic.java deleted file mode 100644 index f5b490c6e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/garagedoor/TargetDoorStateCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.garagedoor; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the target state of a door. */ -public class TargetDoorStateCharacteristic extends EnumCharacteristic - implements EventableCharacteristic { - - public TargetDoorStateCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000032-0000-1000-8000-0026BB765291", - "Target Door State", - TargetDoorStateEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/garagedoor/TargetDoorStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/garagedoor/TargetDoorStateEnum.java deleted file mode 100644 index ca282fdc3..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/garagedoor/TargetDoorStateEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.garagedoor; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Open” 1 ”Closed” 2-255 ”Reserved” */ -public enum TargetDoorStateEnum implements CharacteristicEnum { - OPEN(0), - CLOSED(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(TargetDoorStateEnum.values()) - .collect(Collectors.toMap(TargetDoorStateEnum::getCode, t -> t)); - } - - public static TargetDoorStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - TargetDoorStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/heatercooler/CurrentHeaterCoolerStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/heatercooler/CurrentHeaterCoolerStateCharacteristic.java deleted file mode 100644 index f7d48bae6..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/heatercooler/CurrentHeaterCoolerStateCharacteristic.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.github.hapjava.characteristics.impl.heatercooler; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the current state of a heater cooler. */ -public class CurrentHeaterCoolerStateCharacteristic - extends EnumCharacteristic implements EventableCharacteristic { - - public CurrentHeaterCoolerStateCharacteristic( - CurrentHeaterCoolerStateEnum[] validValues, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000B1-0000-1000-8000-0026BB765291", - "current heater cooler state", - validValues, - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/heatercooler/CurrentHeaterCoolerStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/heatercooler/CurrentHeaterCoolerStateEnum.java deleted file mode 100644 index 9864acb12..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/heatercooler/CurrentHeaterCoolerStateEnum.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.github.hapjava.characteristics.impl.heatercooler; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Inactive” 1 ”Idle” 2 ”Heating” 3 ”Cooling” */ -public enum CurrentHeaterCoolerStateEnum implements CharacteristicEnum { - INACTIVE(0), - IDLE(1), - HEATING(2), - COOLING(3); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(CurrentHeaterCoolerStateEnum.values()) - .collect(Collectors.toMap(CurrentHeaterCoolerStateEnum::getCode, t -> t)); - } - - public static CurrentHeaterCoolerStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - CurrentHeaterCoolerStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/heatercooler/TargetHeaterCoolerStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/heatercooler/TargetHeaterCoolerStateCharacteristic.java deleted file mode 100644 index a9a167d45..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/heatercooler/TargetHeaterCoolerStateCharacteristic.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.characteristics.impl.heatercooler; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the target state of heater cooler. */ -public class TargetHeaterCoolerStateCharacteristic - extends EnumCharacteristic implements EventableCharacteristic { - - public TargetHeaterCoolerStateCharacteristic( - TargetHeaterCoolerStateEnum[] validValues, - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000B2-0000-1000-8000-0026BB765291", - "target heater cooler state", - validValues, - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/heatercooler/TargetHeaterCoolerStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/heatercooler/TargetHeaterCoolerStateEnum.java deleted file mode 100644 index a16d3cd6a..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/heatercooler/TargetHeaterCoolerStateEnum.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.github.hapjava.characteristics.impl.heatercooler; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 AUTO - ”Heat or Cool” 1 ”Heat” 2 ”Cool” */ -public enum TargetHeaterCoolerStateEnum implements CharacteristicEnum { - AUTO(0), - HEAT(1), - COOL(2); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(TargetHeaterCoolerStateEnum.values()) - .collect(Collectors.toMap(TargetHeaterCoolerStateEnum::getCode, t -> t)); - } - - public static TargetHeaterCoolerStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - TargetHeaterCoolerStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/humidifier/CurrentHumidifierDehumidifierStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/humidifier/CurrentHumidifierDehumidifierStateCharacteristic.java deleted file mode 100644 index 229d0aa73..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/humidifier/CurrentHumidifierDehumidifierStateCharacteristic.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.github.hapjava.characteristics.impl.humidifier; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the current state of a humidifier or/and a dehumidifier. */ -public class CurrentHumidifierDehumidifierStateCharacteristic - extends EnumCharacteristic - implements EventableCharacteristic { - - public CurrentHumidifierDehumidifierStateCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000B3-0000-1000-8000-0026BB765291", - "current humidifier state", - CurrentHumidifierDehumidifierStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/humidifier/CurrentHumidifierDehumidifierStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/humidifier/CurrentHumidifierDehumidifierStateEnum.java deleted file mode 100644 index d6ec775de..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/humidifier/CurrentHumidifierDehumidifierStateEnum.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.github.hapjava.characteristics.impl.humidifier; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Inactive” 1 ”Idle” 2 ”Humidifying” 3 ”Dehumidifying” */ -public enum CurrentHumidifierDehumidifierStateEnum implements CharacteristicEnum { - INACTIVE(0), - IDLE(1), - HUMIDIFYING(2), - DEHUMIDIFYING(3); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(CurrentHumidifierDehumidifierStateEnum.values()) - .collect(Collectors.toMap(CurrentHumidifierDehumidifierStateEnum::getCode, t -> t)); - } - - public static CurrentHumidifierDehumidifierStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - CurrentHumidifierDehumidifierStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/humidifier/HumidityDehumidifierThresholdCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/humidifier/HumidityDehumidifierThresholdCharacteristic.java deleted file mode 100644 index b8a4ca569..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/humidifier/HumidityDehumidifierThresholdCharacteristic.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.characteristics.impl.humidifier; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the relative humidity dehumidifier threshold on which dehumidifier - * turns on. - */ -public class HumidityDehumidifierThresholdCharacteristic extends FloatCharacteristic { - - public HumidityDehumidifierThresholdCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000C9-0000-1000-8000-0026BB765291", - "humidity threshold dehumidifier", - 0, - 100, - 1, - "%", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/humidifier/HumidityHumidifierThresholdCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/humidifier/HumidityHumidifierThresholdCharacteristic.java deleted file mode 100644 index 2ee8adbf2..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/humidifier/HumidityHumidifierThresholdCharacteristic.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.characteristics.impl.humidifier; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the relative humidity humidifier threshold on which humidifier - * turns on. - */ -public class HumidityHumidifierThresholdCharacteristic extends FloatCharacteristic { - - public HumidityHumidifierThresholdCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000CA-0000-1000-8000-0026BB765291", - "humidity threshold humidifier", - 0, - 100, - 1, - "%", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/humidifier/TargetHumidifierDehumidifierStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/humidifier/TargetHumidifierDehumidifierStateCharacteristic.java deleted file mode 100644 index 4b4a90a54..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/humidifier/TargetHumidifierDehumidifierStateCharacteristic.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.github.hapjava.characteristics.impl.humidifier; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the target state of a humidifier or/and a dehumidifier.. */ -public class TargetHumidifierDehumidifierStateCharacteristic - extends EnumCharacteristic - implements EventableCharacteristic { - - public TargetHumidifierDehumidifierStateCharacteristic( - TargetHumidifierDehumidifierStateEnum[] validValues, - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000B4-0000-1000-8000-0026BB765291", - "target humidifier state", - validValues, - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/humidifier/TargetHumidifierDehumidifierStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/humidifier/TargetHumidifierDehumidifierStateEnum.java deleted file mode 100644 index 3d4fee0a5..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/humidifier/TargetHumidifierDehumidifierStateEnum.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.github.hapjava.characteristics.impl.humidifier; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 - Auto - ”Humidifier or Dehumidifier” 1 ”Humidifier” 2 ”Dehumidifier” */ -public enum TargetHumidifierDehumidifierStateEnum implements CharacteristicEnum { - AUTO(0), - HUMIDIFIER(1), - DEHUMIDIFIER(2); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(TargetHumidifierDehumidifierStateEnum.values()) - .collect(Collectors.toMap(TargetHumidifierDehumidifierStateEnum::getCode, t -> t)); - } - - public static TargetHumidifierDehumidifierStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - TargetHumidifierDehumidifierStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/humiditysensor/CurrentRelativeHumidityCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/humiditysensor/CurrentRelativeHumidityCharacteristic.java deleted file mode 100644 index be77125b6..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/humiditysensor/CurrentRelativeHumidityCharacteristic.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.github.hapjava.characteristics.impl.humiditysensor; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the current relative humidity. */ -public class CurrentRelativeHumidityCharacteristic extends FloatCharacteristic { - - public CurrentRelativeHumidityCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000010-0000-1000-8000-0026BB765291", - "Current Relative Humidity", - 0, - 100, - 1, - "%", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/humiditysensor/TargetRelativeHumidityCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/humiditysensor/TargetRelativeHumidityCharacteristic.java deleted file mode 100644 index ab8ad7e29..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/humiditysensor/TargetRelativeHumidityCharacteristic.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.characteristics.impl.humiditysensor; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the target relative humidity. */ -public class TargetRelativeHumidityCharacteristic extends FloatCharacteristic { - - public TargetRelativeHumidityCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000034-0000-1000-8000-0026BB765291", - "Target Relative Humidity", - 0, - 100, - 1, - "%", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/CurrentVisibilityStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/inputsource/CurrentVisibilityStateCharacteristic.java deleted file mode 100644 index 65c358a3f..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/CurrentVisibilityStateCharacteristic.java +++ /dev/null @@ -1,27 +0,0 @@ -package io.github.hapjava.characteristics.impl.inputsource; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes current visibility state. */ -public class CurrentVisibilityStateCharacteristic - extends EnumCharacteristic { - - public CurrentVisibilityStateCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000135-0000-1000-8000-0026BB765291", - "current visibility state", - CurrentVisibilityStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/CurrentVisibilityStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/inputsource/CurrentVisibilityStateEnum.java deleted file mode 100644 index 2159393d8..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/CurrentVisibilityStateEnum.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.github.hapjava.characteristics.impl.inputsource; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -public enum CurrentVisibilityStateEnum implements CharacteristicEnum { - SHOWN(0), - HIDDEN(1), - UNKNOWN_1(2), - UNKNOWN_2(3); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(CurrentVisibilityStateEnum.values()) - .collect(Collectors.toMap(CurrentVisibilityStateEnum::getCode, t -> t)); - } - - public static CurrentVisibilityStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - CurrentVisibilityStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/InputDeviceTypeCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/inputsource/InputDeviceTypeCharacteristic.java deleted file mode 100644 index 51a6fbde5..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/InputDeviceTypeCharacteristic.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.characteristics.impl.inputsource; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes input device type. */ -public class InputDeviceTypeCharacteristic extends EnumCharacteristic { - - public InputDeviceTypeCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000DC-0000-1000-8000-0026BB765291", - "input device type", - InputDeviceTypeEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/InputDeviceTypeEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/inputsource/InputDeviceTypeEnum.java deleted file mode 100644 index 5c7337174..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/InputDeviceTypeEnum.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.github.hapjava.characteristics.impl.inputsource; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -public enum InputDeviceTypeEnum implements CharacteristicEnum { - OTHER(0), - TV(1), - RECORDING(2), - TUNER(3), - PLAYBACK(4), - AUDIO_SYSTEM(5); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(InputDeviceTypeEnum.values()) - .collect(Collectors.toMap(InputDeviceTypeEnum::getCode, t -> t)); - } - - public static InputDeviceTypeEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - InputDeviceTypeEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/InputSourceTypeCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/inputsource/InputSourceTypeCharacteristic.java deleted file mode 100644 index 91134891b..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/InputSourceTypeCharacteristic.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.characteristics.impl.inputsource; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes input source type. */ -public class InputSourceTypeCharacteristic extends EnumCharacteristic { - - public InputSourceTypeCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000DB-0000-1000-8000-0026BB765291", - "input source type", - InputSourceTypeEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/InputSourceTypeEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/inputsource/InputSourceTypeEnum.java deleted file mode 100644 index 94545ec18..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/InputSourceTypeEnum.java +++ /dev/null @@ -1,43 +0,0 @@ -package io.github.hapjava.characteristics.impl.inputsource; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -public enum InputSourceTypeEnum implements CharacteristicEnum { - OTHER(0), - HOME_SCREEN(1), - TUNER(2), - HDMI(3), - COMPOSITE_VIDEO(4), - S_VIDEO(5), - COMPONENT_VIDEO(6), - DVI(7), - AIRPLAY(8), - USB(9), - APPLICATION(10); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(InputSourceTypeEnum.values()) - .collect(Collectors.toMap(InputSourceTypeEnum::getCode, t -> t)); - } - - public static InputSourceTypeEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - InputSourceTypeEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/TargetVisibilityStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/inputsource/TargetVisibilityStateCharacteristic.java deleted file mode 100644 index ea466d182..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/TargetVisibilityStateCharacteristic.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.github.hapjava.characteristics.impl.inputsource; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes target visibility state. */ -public class TargetVisibilityStateCharacteristic - extends EnumCharacteristic { - - public TargetVisibilityStateCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000134-0000-1000-8000-0026BB765291", - "target visibility state", - TargetVisibilityStateEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/TargetVisibilityStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/inputsource/TargetVisibilityStateEnum.java deleted file mode 100644 index 6a75b0c30..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/inputsource/TargetVisibilityStateEnum.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.characteristics.impl.inputsource; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -public enum TargetVisibilityStateEnum implements CharacteristicEnum { - SHOWN(0), - HIDDEN(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(TargetVisibilityStateEnum.values()) - .collect(Collectors.toMap(TargetVisibilityStateEnum::getCode, t -> t)); - } - - public static TargetVisibilityStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - TargetVisibilityStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/leaksensor/LeakDetectedStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/leaksensor/LeakDetectedStateCharacteristic.java deleted file mode 100644 index ca0a2043e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/leaksensor/LeakDetectedStateCharacteristic.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.characteristics.impl.leaksensor; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic indicates if a sensor detected a leak (e.g. water leak, gas leak). See {@link - * LeakDetectedStateEnum} for possible values - */ -public class LeakDetectedStateCharacteristic extends EnumCharacteristic - implements EventableCharacteristic { - - public LeakDetectedStateCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000070-0000-1000-8000-0026BB765291", - "Leak Detected State", - LeakDetectedStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/leaksensor/LeakDetectedStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/leaksensor/LeakDetectedStateEnum.java deleted file mode 100644 index 1708230c8..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/leaksensor/LeakDetectedStateEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.leaksensor; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Leak is not detected” 1 ”Leak is detected” */ -public enum LeakDetectedStateEnum implements CharacteristicEnum { - LEAK_NOT_DETECTED(0), - LEAK_DETECTED(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(LeakDetectedStateEnum.values()) - .collect(Collectors.toMap(LeakDetectedStateEnum::getCode, t -> t)); - } - - public static LeakDetectedStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - LeakDetectedStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/lightbulb/BrightnessCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/lightbulb/BrightnessCharacteristic.java deleted file mode 100644 index 693e42efc..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/lightbulb/BrightnessCharacteristic.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.lightbulb; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes a perceived level of brightness, The value is a percentage (%) of - * the maximum level of supported brightness. - */ -public class BrightnessCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - - public BrightnessCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000008-0000-1000-8000-0026BB765291", - "level of brightness", - 0, - 100, - "%", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/lightbulb/ColorTemperatureCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/lightbulb/ColorTemperatureCharacteristic.java deleted file mode 100644 index 987ab5eee..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/lightbulb/ColorTemperatureCharacteristic.java +++ /dev/null @@ -1,44 +0,0 @@ -package io.github.hapjava.characteristics.impl.lightbulb; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes color temperature in mireds */ -public class ColorTemperatureCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - public static final int DEFAULT_MIN_VALUE = 50; - public static final int DEFAULT_MAX_VALUE = 400; - - public ColorTemperatureCharacteristic( - int minValue, - int maxValue, - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000CE-0000-1000-8000-0026BB765291", - "color temperature", - minValue, - maxValue, - "mired", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public ColorTemperatureCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, getter, setter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/lightbulb/HueCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/lightbulb/HueCharacteristic.java deleted file mode 100644 index 7a00816bc..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/lightbulb/HueCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.lightbulb; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes hue or color. */ -public class HueCharacteristic extends FloatCharacteristic { - public HueCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000013-0000-1000-8000-0026BB765291", - "hue or color", - 0, - 360, - 1, - "arcdegrees", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/lightbulb/SaturationCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/lightbulb/SaturationCharacteristic.java deleted file mode 100644 index 90694ef98..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/lightbulb/SaturationCharacteristic.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.github.hapjava.characteristics.impl.lightbulb; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes color saturation. */ -public class SaturationCharacteristic extends FloatCharacteristic - implements EventableCharacteristic { - - public SaturationCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000002F-0000-1000-8000-0026BB765291", - "color saturation", - 0, - 100, - 1, - "%", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/lightsensor/CurrentAmbientLightLevelCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/lightsensor/CurrentAmbientLightLevelCharacteristic.java deleted file mode 100644 index afec35ce6..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/lightsensor/CurrentAmbientLightLevelCharacteristic.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.characteristics.impl.lightsensor; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic indicates the current light level in Lux */ -public class CurrentAmbientLightLevelCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0.0001; - public static final double DEFAULT_MAX_VALUE = 100000; - public static final double DEFAULT_STEP = 0.0001; - - public CurrentAmbientLightLevelCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000006B-0000-1000-8000-0026BB765291", - "ambient light level", - minValue, - maxValue, - minStep, - "lux", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public CurrentAmbientLightLevelCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, DEFAULT_STEP, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/lock/LockCurrentStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/lock/LockCurrentStateCharacteristic.java deleted file mode 100644 index b6946313b..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/lock/LockCurrentStateCharacteristic.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.characteristics.impl.lock; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** The current state of the physical security mechanism (e.g. deadbolt). */ -public class LockCurrentStateCharacteristic extends EnumCharacteristic { - - public LockCurrentStateCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000001D-0000-1000-8000-0026BB765291", - "Current Lock State", - LockCurrentStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/lock/LockCurrentStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/lock/LockCurrentStateEnum.java deleted file mode 100644 index 66eb23afe..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/lock/LockCurrentStateEnum.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.github.hapjava.characteristics.impl.lock; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Unsecured” 1 ”Secured” 2 ”Jammed” 3 ”Unknown” 4-255 ”Reserved” */ -public enum LockCurrentStateEnum implements CharacteristicEnum { - UNSECURED(0), - SECURED(1), - JAMMED(2), - UNKNOWN(3); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(LockCurrentStateEnum.values()) - .collect(Collectors.toMap(LockCurrentStateEnum::getCode, t -> t)); - } - - public static LockCurrentStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - LockCurrentStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/lock/LockTargetStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/lock/LockTargetStateCharacteristic.java deleted file mode 100644 index c46a4eab5..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/lock/LockTargetStateCharacteristic.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.characteristics.impl.lock; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** The target state of the physical security mechanism (e.g. deadbolt). */ -public class LockTargetStateCharacteristic extends EnumCharacteristic { - - public LockTargetStateCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000001E-0000-1000-8000-0026BB765291", - "Target Lock State", - LockTargetStateEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/lock/LockTargetStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/lock/LockTargetStateEnum.java deleted file mode 100644 index d5aa0d536..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/lock/LockTargetStateEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.lock; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Unsecured” 1 ”Secured” 4-255 ”Reserved” */ -public enum LockTargetStateEnum implements CharacteristicEnum { - UNSECURED(0), - SECURED(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(LockTargetStateEnum.values()) - .collect(Collectors.toMap(LockTargetStateEnum::getCode, t -> t)); - } - - public static LockTargetStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - LockTargetStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/motionsensor/MotionDetectedCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/motionsensor/MotionDetectedCharacteristic.java deleted file mode 100644 index 4be591bec..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/motionsensor/MotionDetectedCharacteristic.java +++ /dev/null @@ -1,25 +0,0 @@ -package io.github.hapjava.characteristics.impl.motionsensor; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.BooleanCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic indicates if motion (e.g. a person moving) was detected. */ -public class MotionDetectedCharacteristic extends BooleanCharacteristic { - - public MotionDetectedCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000022-0000-1000-8000-0026BB765291", - "Motion detection", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/occupancysensor/OccupancyDetectedCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/occupancysensor/OccupancyDetectedCharacteristic.java deleted file mode 100644 index 0057b0968..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/occupancysensor/OccupancyDetectedCharacteristic.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.characteristics.impl.occupancysensor; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic indicates if occupancy was detected (e.g. a person present). */ -public class OccupancyDetectedCharacteristic extends EnumCharacteristic { - - public OccupancyDetectedCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000071-0000-1000-8000-0026BB765291", - "Occupancy Detected", - OccupancyDetectedEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/occupancysensor/OccupancyDetectedEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/occupancysensor/OccupancyDetectedEnum.java deleted file mode 100644 index 688fa9d24..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/occupancysensor/OccupancyDetectedEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.occupancysensor; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Occupancy is not detected” 1 ”Occupancy is detected” */ -public enum OccupancyDetectedEnum implements CharacteristicEnum { - NOT_DETECTED(0), - DETECTED(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(OccupancyDetectedEnum.values()) - .collect(Collectors.toMap(OccupancyDetectedEnum::getCode, t -> t)); - } - - public static OccupancyDetectedEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - OccupancyDetectedEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/outlet/OutletInUseCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/outlet/OutletInUseCharacteristic.java deleted file mode 100644 index bd70f46f7..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/outlet/OutletInUseCharacteristic.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.characteristics.impl.outlet; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.BooleanCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes if the power outlet has an appliance physically plugged in. This - * characteristic is set to True even if the plugged-in appliance is off. - */ -public class OutletInUseCharacteristic extends BooleanCharacteristic { - - public OutletInUseCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000026-0000-1000-8000-0026BB765291", - "Outlet in Use", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/CurrentSecuritySystemStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/CurrentSecuritySystemStateCharacteristic.java deleted file mode 100644 index 38ec2c3fd..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/CurrentSecuritySystemStateCharacteristic.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.characteristics.impl.securitysystem; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the state of a security system */ -public class CurrentSecuritySystemStateCharacteristic - extends EnumCharacteristic { - - public CurrentSecuritySystemStateCharacteristic( - CurrentSecuritySystemStateEnum[] validValues, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000066-0000-1000-8000-0026BB765291", - "Current Security System State", - validValues, - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/CurrentSecuritySystemStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/CurrentSecuritySystemStateEnum.java deleted file mode 100644 index 90a66cf7e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/CurrentSecuritySystemStateEnum.java +++ /dev/null @@ -1,52 +0,0 @@ -package io.github.hapjava.characteristics.impl.securitysystem; - -import io.github.hapjava.accessories.SecuritySystemAccessory; -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * The current state of a {@link SecuritySystemAccessory}. Unlike {@link - * TargetSecuritySystemStateEnum}, this enum includes a triggered state. 0 ”Stay Arm. The home is - * occupied and the residents are active. e.g. morning or evenings” 1 ”Away Arm. The home is - * unoccupied” 2 ”Night Arm. The home is occupied and the residents are sleeping” 3 ”Disarmed” 4 - * ”Alarm Triggered” 5-255 ”Reserved” - * - * @author Gaston Dombiak - */ -public enum CurrentSecuritySystemStateEnum implements CharacteristicEnum { - - /** The home is occupied and residents are active. */ - STAY_ARM(0), - /** The home is unoccupied. */ - AWAY_ARM(1), - /** The home is occupied and residents are sleeping. */ - NIGHT_ARM(2), - /** The security system is disarmed. */ - DISARMED(3), - /** The security system is triggered. */ - TRIGGERED(4); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(CurrentSecuritySystemStateEnum.values()) - .collect(Collectors.toMap(CurrentSecuritySystemStateEnum::getCode, t -> t)); - } - - public static CurrentSecuritySystemStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - CurrentSecuritySystemStateEnum(int code) { - this.code = code; - } - - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/SecuritySystemAlarmTypeCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/SecuritySystemAlarmTypeCharacteristic.java deleted file mode 100644 index 14c118399..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/SecuritySystemAlarmTypeCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.securitysystem; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the type of alarm triggered by a security system. See {@link - * SecuritySystemAlarmTypeEnum} for possible values. - */ -public class SecuritySystemAlarmTypeCharacteristic - extends EnumCharacteristic { - - public SecuritySystemAlarmTypeCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000008E-0000-1000-8000-0026BB765291", - "Alert Type", - SecuritySystemAlarmTypeEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/SecuritySystemAlarmTypeEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/SecuritySystemAlarmTypeEnum.java deleted file mode 100644 index 00bc0f24e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/SecuritySystemAlarmTypeEnum.java +++ /dev/null @@ -1,45 +0,0 @@ -package io.github.hapjava.characteristics.impl.securitysystem; - -import io.github.hapjava.accessories.SecuritySystemAccessory; -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * Type of alarm of a {@link SecuritySystemAccessory}. - * - *

    This characteristic describes the type of alarm triggered by a security system. A value of 1 - * indicates an ʼunknownʼ cause. Value should revert to 0 when the alarm conditions are cleared. - * - * @author Gaston Dombiak - */ -public enum SecuritySystemAlarmTypeEnum implements CharacteristicEnum { - - /** Alarm conditions are cleared */ - NO_ALARM(0), - /** Alarm type is not known */ - UNKNOWN(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(SecuritySystemAlarmTypeEnum.values()) - .collect(Collectors.toMap(SecuritySystemAlarmTypeEnum::getCode, t -> t)); - } - - public static SecuritySystemAlarmTypeEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - SecuritySystemAlarmTypeEnum(int code) { - this.code = code; - } - - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/TargetSecuritySystemStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/TargetSecuritySystemStateCharacteristic.java deleted file mode 100644 index 5289ba380..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/TargetSecuritySystemStateCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.securitysystem; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the target state of the security system. */ -public class TargetSecuritySystemStateCharacteristic - extends EnumCharacteristic { - - public TargetSecuritySystemStateCharacteristic( - TargetSecuritySystemStateEnum[] validValues, - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000067-0000-1000-8000-0026BB765291", - "Target Security System State", - validValues, - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/TargetSecuritySystemStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/TargetSecuritySystemStateEnum.java deleted file mode 100644 index 81b0adc22..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/securitysystem/TargetSecuritySystemStateEnum.java +++ /dev/null @@ -1,50 +0,0 @@ -package io.github.hapjava.characteristics.impl.securitysystem; - -import io.github.hapjava.accessories.SecuritySystemAccessory; -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * The target state of a {@link SecuritySystemAccessory}. - * - *

    0 ”Stay Arm. The home is occupied and the residents are active. e.g. morning or evenings” 1 - * ”Away Arm. The home is unoccupied” 2 ”Night Arm. The home is occupied and the residents are - * sleeping” 3 ”Disarm” 4-255 ”Reserved” - * - * @author Gaston Dombiak - */ -public enum TargetSecuritySystemStateEnum implements CharacteristicEnum { - - /** Arm the system when the home is occupied and residents are active. */ - STAY_ARM(0), - /** Arm the system when the home is unoccupied. */ - AWAY_ARM(1), - /** Arm the system when the home is occupied and residents are sleeping. */ - NIGHT_ARM(2), - /** Disarm the system. */ - DISARM(3); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(TargetSecuritySystemStateEnum.values()) - .collect(Collectors.toMap(TargetSecuritySystemStateEnum::getCode, t -> t)); - } - - public static TargetSecuritySystemStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - TargetSecuritySystemStateEnum(int code) { - this.code = code; - } - - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/slat/CurrentSlatStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/slat/CurrentSlatStateCharacteristic.java deleted file mode 100644 index 84e5e1daa..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/slat/CurrentSlatStateCharacteristic.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.characteristics.impl.slat; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the current state of the slats. */ -public class CurrentSlatStateCharacteristic extends EnumCharacteristic { - - public CurrentSlatStateCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000AA-0000-1000-8000-0026BB765291", - "current slat state", - CurrentSlatStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/slat/CurrentSlatStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/slat/CurrentSlatStateEnum.java deleted file mode 100644 index a94fd4d8e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/slat/CurrentSlatStateEnum.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.github.hapjava.characteristics.impl.slat; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Fixed” 1 ”Jammed” 2 ”Swinging” */ -public enum CurrentSlatStateEnum implements CharacteristicEnum { - FIXED(0), - JAMMED(1), - SWINGING(2); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(CurrentSlatStateEnum.values()) - .collect(Collectors.toMap(CurrentSlatStateEnum::getCode, t -> t)); - } - - public static CurrentSlatStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - CurrentSlatStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/slat/CurrentTiltAngleCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/slat/CurrentTiltAngleCharacteristic.java deleted file mode 100644 index 3a4868b2c..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/slat/CurrentTiltAngleCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.slat; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describe current tilt angle (between -90 and 90) */ -public class CurrentTiltAngleCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - - public CurrentTiltAngleCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000C1-0000-1000-8000-0026BB765291", - "current tilt angle", - -90, - 90, - "arcdegrees", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/slat/SlatTypeCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/slat/SlatTypeCharacteristic.java deleted file mode 100644 index 0d9f60608..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/slat/SlatTypeCharacteristic.java +++ /dev/null @@ -1,23 +0,0 @@ -package io.github.hapjava.characteristics.impl.slat; - -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Supplier; - -/** - * This characteristic describes the type of the slats. See {@link SlatTypeEnum} for possible values - */ -public class SlatTypeCharacteristic extends EnumCharacteristic { - - public SlatTypeCharacteristic(Supplier> getter) { - super( - "000000C0-0000-1000-8000-0026BB765291", - "slat type", - SlatTypeEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/slat/SlatTypeEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/slat/SlatTypeEnum.java deleted file mode 100644 index 2634b0ef5..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/slat/SlatTypeEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.slat; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Horizontal” 1 ”Vertical” */ -public enum SlatTypeEnum implements CharacteristicEnum { - HORIZONTAL(0), - VERTICAL(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(SlatTypeEnum.values()) - .collect(Collectors.toMap(SlatTypeEnum::getCode, t -> t)); - } - - public static SlatTypeEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - SlatTypeEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/slat/TargetTiltAngleCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/slat/TargetTiltAngleCharacteristic.java deleted file mode 100644 index 2a327522d..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/slat/TargetTiltAngleCharacteristic.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.github.hapjava.characteristics.impl.slat; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the target angle of slats. */ -public class TargetTiltAngleCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - - public TargetTiltAngleCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000C2-0000-1000-8000-0026BB765291", - "target tilt angle", - -90, - 90, - "arcdegrees", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/smokesensor/SmokeDetectedCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/smokesensor/SmokeDetectedCharacteristic.java deleted file mode 100644 index 9befabed0..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/smokesensor/SmokeDetectedCharacteristic.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.characteristics.impl.smokesensor; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic indicates if a sensor detects smoke. */ -public class SmokeDetectedCharacteristic extends EnumCharacteristic { - - public SmokeDetectedCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000076-0000-1000-8000-0026BB765291", - "Smoke Detected", - SmokeDetectedStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/smokesensor/SmokeDetectedStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/smokesensor/SmokeDetectedStateEnum.java deleted file mode 100644 index c6e3b6d5d..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/smokesensor/SmokeDetectedStateEnum.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.characteristics.impl.smokesensor; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Smoke is not detected” 1 ”Smoke is detected” */ -public enum SmokeDetectedStateEnum implements CharacteristicEnum { - NOT_DETECTED(0), - DETECTED(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(SmokeDetectedStateEnum.values()) - .collect(Collectors.toMap(SmokeDetectedStateEnum::getCode, t -> t)); - } - - public static SmokeDetectedStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - SmokeDetectedStateEnum(int code) { - this.code = code; - } - - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/ClosedCaptionsCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/television/ClosedCaptionsCharacteristic.java deleted file mode 100644 index a963ca222..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/ClosedCaptionsCharacteristic.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * Characteristic indicates whether the service provides closed captions. See {@link - * ClosedCaptionsEnum} for possible values. - */ -public class ClosedCaptionsCharacteristic extends EnumCharacteristic { - - public ClosedCaptionsCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000DD-0000-1000-8000-0026BB765291", - "closed captions", - ClosedCaptionsEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/ClosedCaptionsEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/television/ClosedCaptionsEnum.java deleted file mode 100644 index 2eb994149..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/ClosedCaptionsEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Disabled” 1 ”Enabled” 2-255 ”Reserved” */ -public enum ClosedCaptionsEnum implements CharacteristicEnum { - DISABLED(0), - ENABLED(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(ClosedCaptionsEnum.values()) - .collect(Collectors.toMap(ClosedCaptionsEnum::getCode, t -> t)); - } - - public static ClosedCaptionsEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - ClosedCaptionsEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/CurrentMediaStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/television/CurrentMediaStateCharacteristic.java deleted file mode 100644 index ca72c4ee9..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/CurrentMediaStateCharacteristic.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic indicates current media state. See {@link CurrentMediaStateEnum} for possible - * values. - */ -public class CurrentMediaStateCharacteristic extends EnumCharacteristic { - public CurrentMediaStateCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000E0-0000-1000-8000-0026BB765291", - "current media state", - CurrentMediaStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/CurrentMediaStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/television/CurrentMediaStateEnum.java deleted file mode 100644 index 83836c4c6..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/CurrentMediaStateEnum.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Play” 1 ”Pause” 2 "Stop" 3 "Unknown" 4-255 ”Reserved” */ -public enum CurrentMediaStateEnum implements CharacteristicEnum { - PLAY(0), - PAUSE(1), - STOP(2), - UNKNOWN(3); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(CurrentMediaStateEnum.values()) - .collect(Collectors.toMap(CurrentMediaStateEnum::getCode, t -> t)); - } - - public static CurrentMediaStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - CurrentMediaStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/PictureModeCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/television/PictureModeCharacteristic.java deleted file mode 100644 index 7efefa23a..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/PictureModeCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic retrieves / sets picture mode. See {@link PictureModeEnum} for possible - * values. - */ -public class PictureModeCharacteristic extends EnumCharacteristic { - public PictureModeCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000E2-0000-1000-8000-0026BB765291", - "picture mode", - PictureModeEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/PictureModeEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/television/PictureModeEnum.java deleted file mode 100644 index ac387cf65..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/PictureModeEnum.java +++ /dev/null @@ -1,44 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 0 ”Other” 1 ”Standard” 2 "Calibrated" 3 "CalibratedDark" 4 "Vivid" 5 "Game" 6 "Computer" 7 - * "Custom" 8-255 ”Reserved” - */ -public enum PictureModeEnum implements CharacteristicEnum { - OTHER(0), - STANDARD(1), - CALIBRATED(2), - CALIBRATED_DARK(3), - VIVID(4), - GAME(5), - COMPUTER(6), - CUSTOM(7); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(PictureModeEnum.values()) - .collect(Collectors.toMap(PictureModeEnum::getCode, t -> t)); - } - - public static PictureModeEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - PictureModeEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/PowerModeCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/television/PowerModeCharacteristic.java deleted file mode 100644 index cebbe4124..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/PowerModeCharacteristic.java +++ /dev/null @@ -1,20 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; - -/** characteristic sets power mode. See {@link PowerModeEnum} for possible values. */ -public class PowerModeCharacteristic extends EnumCharacteristic { - - public PowerModeCharacteristic(ExceptionalConsumer setter) { - super( - "000000DF-0000-1000-8000-0026BB765291", - "power mode selection", - PowerModeEnum.values(), - Optional.empty(), - Optional.of(setter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/PowerModeEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/television/PowerModeEnum.java deleted file mode 100644 index a171ba135..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/PowerModeEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Show” 1 ”Hide” 2-255 ”Reserved” */ -public enum PowerModeEnum implements CharacteristicEnum { - SHOW(0), - HIDE(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(PowerModeEnum.values()) - .collect(Collectors.toMap(PowerModeEnum::getCode, t -> t)); - } - - public static PowerModeEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - PowerModeEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/RemoteKeyCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/television/RemoteKeyCharacteristic.java deleted file mode 100644 index fe028d10d..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/RemoteKeyCharacteristic.java +++ /dev/null @@ -1,22 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; - -/** - * This characteristic sends information about pressed key on tv remote. See {@link RemoteKeyEnum} - * for possible values. - */ -public class RemoteKeyCharacteristic extends EnumCharacteristic { - public RemoteKeyCharacteristic(ExceptionalConsumer setter) { - super( - "000000E1-0000-1000-8000-0026BB765291", - "remote key", - RemoteKeyEnum.values(), - Optional.empty(), - Optional.of(setter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/RemoteKeyEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/television/RemoteKeyEnum.java deleted file mode 100644 index d62298b84..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/RemoteKeyEnum.java +++ /dev/null @@ -1,45 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -public enum RemoteKeyEnum implements CharacteristicEnum { - REWIND(0), - FAST_FORWARD(1), - NEXT_TRACK(2), - PREV_TRACK(3), - ARROW_UP(4), - ARROW_DOWN(5), - ARROW_LEFT(6), - ARROW_RIGHT(7), - SELECT(8), - BACK(9), - EXIT(10), - PLAY_PAUSE(11), - INFO(15); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(RemoteKeyEnum.values()) - .collect(Collectors.toMap(RemoteKeyEnum::getCode, t -> t)); - } - - public static RemoteKeyEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - RemoteKeyEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/SleepDiscoveryModeCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/television/SleepDiscoveryModeCharacteristic.java deleted file mode 100644 index 2a7f41829..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/SleepDiscoveryModeCharacteristic.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic indicates whether the service can be discovered. See {@link - * SleepDiscoveryModeEnum} for possible values. - */ -public class SleepDiscoveryModeCharacteristic extends EnumCharacteristic { - public SleepDiscoveryModeCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000E8-0000-1000-8000-0026BB765291", - "sleep discovery mode", - SleepDiscoveryModeEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/SleepDiscoveryModeEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/television/SleepDiscoveryModeEnum.java deleted file mode 100644 index da1377b9a..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/SleepDiscoveryModeEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Not discoverable” 1 ”Always discoverable” 2-255 ”Reserved” */ -public enum SleepDiscoveryModeEnum implements CharacteristicEnum { - NOT_DISCOVERABLE(0), - ALWAYS_DISCOVERABLE(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(SleepDiscoveryModeEnum.values()) - .collect(Collectors.toMap(SleepDiscoveryModeEnum::getCode, t -> t)); - } - - public static SleepDiscoveryModeEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - SleepDiscoveryModeEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/TargetMediaStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/television/TargetMediaStateCharacteristic.java deleted file mode 100644 index 8909bb1ea..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/TargetMediaStateCharacteristic.java +++ /dev/null @@ -1,27 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic sets media state. See {@link TargetMediaStateEnum} for possible values. */ -public class TargetMediaStateCharacteristic extends EnumCharacteristic { - public TargetMediaStateCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000137-0000-1000-8000-0026BB765291", - "current media state", - TargetMediaStateEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/television/TargetMediaStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/television/TargetMediaStateEnum.java deleted file mode 100644 index b6f6633ff..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/television/TargetMediaStateEnum.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.github.hapjava.characteristics.impl.television; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Play” 1 ”Pause” 2 "Stop" 3-255 ”Reserved” */ -public enum TargetMediaStateEnum implements CharacteristicEnum { - PLAY(0), - PAUSE(1), - STOP(2); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(TargetMediaStateEnum.values()) - .collect(Collectors.toMap(TargetMediaStateEnum::getCode, t -> t)); - } - - public static TargetMediaStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - TargetMediaStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeControlTypeCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeControlTypeCharacteristic.java deleted file mode 100644 index c6d18a858..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeControlTypeCharacteristic.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.characteristics.impl.televisionspeaker; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic indicates volume control type. See {@link VolumeControlTypeEnum} for possible - * values. - */ -public class VolumeControlTypeCharacteristic extends EnumCharacteristic { - public VolumeControlTypeCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000E9-0000-1000-8000-0026BB765291", - "volume control type", - VolumeControlTypeEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeControlTypeEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeControlTypeEnum.java deleted file mode 100644 index dfeb24636..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeControlTypeEnum.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.github.hapjava.characteristics.impl.televisionspeaker; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -public enum VolumeControlTypeEnum implements CharacteristicEnum { - NONE(0), - RELATIVE(1), - RELATIVE_WITH_CURRENT(2), - ABSOLUTE(3); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(VolumeControlTypeEnum.values()) - .collect(Collectors.toMap(VolumeControlTypeEnum::getCode, t -> t)); - } - - public static VolumeControlTypeEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - VolumeControlTypeEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeSelectorCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeSelectorCharacteristic.java deleted file mode 100644 index 8f2f84e7b..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeSelectorCharacteristic.java +++ /dev/null @@ -1,22 +0,0 @@ -package io.github.hapjava.characteristics.impl.televisionspeaker; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; - -/** - * This characteristic sends information about volume changes. See {@link VolumeSelectorEnum} for - * possible values. - */ -public class VolumeSelectorCharacteristic extends EnumCharacteristic { - public VolumeSelectorCharacteristic(ExceptionalConsumer setter) { - super( - "000000EA-0000-1000-8000-0026BB765291", - "volume selector", - VolumeSelectorEnum.values(), - Optional.empty(), - Optional.of(setter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeSelectorEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeSelectorEnum.java deleted file mode 100644 index 63bc60e50..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/televisionspeaker/VolumeSelectorEnum.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.characteristics.impl.televisionspeaker; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -public enum VolumeSelectorEnum implements CharacteristicEnum { - INCREMENT(0), - DECREMENT(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(VolumeSelectorEnum.values()) - .collect(Collectors.toMap(VolumeSelectorEnum::getCode, t -> t)); - } - - public static VolumeSelectorEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - VolumeSelectorEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/CoolingThresholdTemperatureCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/thermostat/CoolingThresholdTemperatureCharacteristic.java deleted file mode 100644 index d855f70d6..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/CoolingThresholdTemperatureCharacteristic.java +++ /dev/null @@ -1,54 +0,0 @@ -package io.github.hapjava.characteristics.impl.thermostat; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the cooling threshold on which accessories turns on the cooling. - */ -public class CoolingThresholdTemperatureCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 10; - public static final double DEFAULT_MAX_VALUE = 35; - public static final double DEFAULT_STEP = 0.1; - - public CoolingThresholdTemperatureCharacteristic( - double minValue, - double maxValue, - double step, - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000000D-0000-1000-8000-0026BB765291", - "cooling threshold", - minValue, - maxValue, - step, - "C", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public CoolingThresholdTemperatureCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - this( - DEFAULT_MIN_VALUE, - DEFAULT_MAX_VALUE, - DEFAULT_STEP, - getter, - setter, - subscriber, - unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/CurrentHeatingCoolingStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/thermostat/CurrentHeatingCoolingStateCharacteristic.java deleted file mode 100644 index 8c2600a69..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/CurrentHeatingCoolingStateCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.thermostat; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the current mode of an accessory that supports cooling or heating - */ -public class CurrentHeatingCoolingStateCharacteristic - extends EnumCharacteristic { - - public CurrentHeatingCoolingStateCharacteristic( - CurrentHeatingCoolingStateEnum[] validValues, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000000F-0000-1000-8000-0026BB765291", - "Current heating cooling mode", - validValues, - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/CurrentHeatingCoolingStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/thermostat/CurrentHeatingCoolingStateEnum.java deleted file mode 100644 index 487262975..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/CurrentHeatingCoolingStateEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.github.hapjava.characteristics.impl.thermostat; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** 0 ”Off.” 1 ”Heat. The Heater is currently on.” 2 ”Cool. Cooler is currently on.” */ -public enum CurrentHeatingCoolingStateEnum implements CharacteristicEnum { - OFF(0), - HEAT(1), - COOL(2); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(CurrentHeatingCoolingStateEnum.values()) - .collect(Collectors.toMap(CurrentHeatingCoolingStateEnum::getCode, t -> t)); - } - - public static CurrentHeatingCoolingStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - CurrentHeatingCoolingStateEnum(int code) { - this.code = code; - } - - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/CurrentTemperatureCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/thermostat/CurrentTemperatureCharacteristic.java deleted file mode 100644 index f3c2b74ff..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/CurrentTemperatureCharacteristic.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.characteristics.impl.thermostat; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** characteristic describes the current temperature of the environment in Celsius */ -public class CurrentTemperatureCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 100; - public static final double DEFAULT_STEP = 0.1; - - public CurrentTemperatureCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000011-0000-1000-8000-0026BB765291", - "current temperature", - minValue, - maxValue, - minStep, - "C", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public CurrentTemperatureCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, DEFAULT_STEP, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/HeatingThresholdTemperatureCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/thermostat/HeatingThresholdTemperatureCharacteristic.java deleted file mode 100644 index 8d7624f8f..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/HeatingThresholdTemperatureCharacteristic.java +++ /dev/null @@ -1,52 +0,0 @@ -package io.github.hapjava.characteristics.impl.thermostat; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the heating threshold on which heating get turned on. */ -public class HeatingThresholdTemperatureCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 0; - public static final double DEFAULT_MAX_VALUE = 25; - public static final double DEFAULT_STEP = 0.1; - - public HeatingThresholdTemperatureCharacteristic( - double minValue, - double maxValue, - double step, - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000012-0000-1000-8000-0026BB765291", - "heating threshold", - minValue, - maxValue, - step, - "C", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public HeatingThresholdTemperatureCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - this( - DEFAULT_MIN_VALUE, - DEFAULT_MAX_VALUE, - DEFAULT_STEP, - getter, - setter, - subscriber, - unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TargetHeatingCoolingStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TargetHeatingCoolingStateCharacteristic.java deleted file mode 100644 index 844df0c67..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TargetHeatingCoolingStateCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.thermostat; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the target mode of an accessory that supports heating/cooling, */ -public class TargetHeatingCoolingStateCharacteristic - extends EnumCharacteristic { - - public TargetHeatingCoolingStateCharacteristic( - TargetHeatingCoolingStateEnum[] validValues, - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000033-0000-1000-8000-0026BB765291", - "Target heating cooling mode", - validValues, - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TargetHeatingCoolingStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TargetHeatingCoolingStateEnum.java deleted file mode 100644 index 6120422e5..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TargetHeatingCoolingStateEnum.java +++ /dev/null @@ -1,41 +0,0 @@ -package io.github.hapjava.characteristics.impl.thermostat; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 0 ”Off” 1 ”Heat.” 2 ”Cool." 3 ”Auto. Turn on heating or cooling to maintain depending on the - * temperature” - * - * @author Andy Lintner - */ -public enum TargetHeatingCoolingStateEnum implements CharacteristicEnum { - OFF(0), - HEAT(1), - COOL(2), - AUTO(3); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(TargetHeatingCoolingStateEnum.values()) - .collect(Collectors.toMap(t -> t.getCode(), t -> t)); - } - - public static TargetHeatingCoolingStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - private TargetHeatingCoolingStateEnum(int code) { - this.code = code; - } - - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TargetTemperatureCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TargetTemperatureCharacteristic.java deleted file mode 100644 index 9a329d383..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TargetTemperatureCharacteristic.java +++ /dev/null @@ -1,55 +0,0 @@ -package io.github.hapjava.characteristics.impl.thermostat; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.FloatCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the target temperature in Celsius that the accessory is actively - * attempting to reach. - */ -public class TargetTemperatureCharacteristic extends FloatCharacteristic { - public static final double DEFAULT_MIN_VALUE = 10; - public static final double DEFAULT_MAX_VALUE = 38; - public static final double DEFAULT_STEP = 0.1; - - public TargetTemperatureCharacteristic( - double minValue, - double maxValue, - double minStep, - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000035-0000-1000-8000-0026BB765291", - "target temperature", - minValue, - maxValue, - minStep, - "C", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public TargetTemperatureCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - this( - DEFAULT_MIN_VALUE, - DEFAULT_MAX_VALUE, - DEFAULT_STEP, - getter, - setter, - subscriber, - unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TemperatureDisplayUnitCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TemperatureDisplayUnitCharacteristic.java deleted file mode 100644 index 02a23553f..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TemperatureDisplayUnitCharacteristic.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.github.hapjava.characteristics.impl.thermostat; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes units of temperature used for presentation purposes (e.g. the units - * of temperature displayed on the screen). - */ -public class TemperatureDisplayUnitCharacteristic - extends EnumCharacteristic { - - public TemperatureDisplayUnitCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000036-0000-1000-8000-0026BB765291", - "Temperature units", - TemperatureDisplayUnitEnum.values(), - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TemperatureDisplayUnitEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TemperatureDisplayUnitEnum.java deleted file mode 100644 index dbecc60f0..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/thermostat/TemperatureDisplayUnitEnum.java +++ /dev/null @@ -1,41 +0,0 @@ -package io.github.hapjava.characteristics.impl.thermostat; - -import io.github.hapjava.accessories.TemperatureSensorAccessory; -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * The temperature unit used by a {@link TemperatureSensorAccessory}. - * - *

    0 ”Celsius” 1 ”Fahrenheit” - * - * @author Andy Lintner - */ -public enum TemperatureDisplayUnitEnum implements CharacteristicEnum { - CELSIUS(0), - FAHRENHEIT(1); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(TemperatureDisplayUnitEnum.values()) - .collect(Collectors.toMap(t -> t.getCode(), t -> t)); - } - - static TemperatureDisplayUnitEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - private TemperatureDisplayUnitEnum(int code) { - this.code = code; - } - - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/valve/RemainingDurationCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/valve/RemainingDurationCharacteristic.java deleted file mode 100644 index 29409027a..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/valve/RemainingDurationCharacteristic.java +++ /dev/null @@ -1,46 +0,0 @@ -package io.github.hapjava.characteristics.impl.valve; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** - * This characteristic describes the remaining duration of the active status of an accessory, e.g. - * {@link io.github.hapjava.accessories.ValveAccessory}. This characteristic should only notify - * about changes if it defers from normal countdown. - */ -public class RemainingDurationCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - public static final int DEFAULT_MIN_VALUE = 0; - public static final int DEFAULT_MAX_VALUE = 3600; - - public RemainingDurationCharacteristic( - int minValue, - int maxValue, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000D4-0000-1000-8000-0026BB765291", - "uint32", - "remaining duration", - minValue, - maxValue, - "s", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public RemainingDurationCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/valve/SetDurationCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/valve/SetDurationCharacteristic.java deleted file mode 100644 index 109a7bb6e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/valve/SetDurationCharacteristic.java +++ /dev/null @@ -1,45 +0,0 @@ -package io.github.hapjava.characteristics.impl.valve; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the duration, how long an accessory should be set to "InUse". */ -public class SetDurationCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - public static final int DEFAULT_MIN_VALUE = 0; - public static final int DEFAULT_MAX_VALUE = 3600; - - public SetDurationCharacteristic( - int minValue, - int maxValue, - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000D3-0000-1000-8000-0026BB765291", - "uint32", - "set duration", - minValue, - maxValue, - "s", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public SetDurationCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, getter, setter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/valve/ValveTypeCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/valve/ValveTypeCharacteristic.java deleted file mode 100644 index f98e468f4..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/valve/ValveTypeCharacteristic.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.characteristics.impl.valve; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the type of valve. */ -public class ValveTypeCharacteristic extends EnumCharacteristic { - - public ValveTypeCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "000000D5-0000-1000-8000-0026BB765291", - "Valve type", - ValveTypeEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/valve/ValveTypeEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/valve/ValveTypeEnum.java deleted file mode 100644 index d18d923e2..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/valve/ValveTypeEnum.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.characteristics.impl.valve; - -import io.github.hapjava.accessories.ValveAccessory; -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * The mode used by a {@link ValveAccessory} - * - *

    0 ”Generic valve” 1 ”Irrigation” 2 ”Shower head” 3 ”Water faucet” 4-255 ”Reserved” - * - * @author Tim Harper - */ -public enum ValveTypeEnum implements CharacteristicEnum { - GENERIC(0), - IRRIGATION(1), - SHOWER(2), - WATER_FAUCET(3); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(ValveTypeEnum.values()).collect(Collectors.toMap(t -> t.getCode(), t -> t)); - } - - public static ValveTypeEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - private ValveTypeEnum(int code) { - this.code = code; - } - - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/CurrentHorizontalTiltAngleCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/CurrentHorizontalTiltAngleCharacteristic.java deleted file mode 100644 index 272a822f5..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/CurrentHorizontalTiltAngleCharacteristic.java +++ /dev/null @@ -1,41 +0,0 @@ -package io.github.hapjava.characteristics.impl.windowcovering; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the current angle of horizontal slats. */ -public class CurrentHorizontalTiltAngleCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - public static final int DEFAULT_MIN_VALUE = -90; - public static final int DEFAULT_MAX_VALUE = 90; - - public CurrentHorizontalTiltAngleCharacteristic( - int minValue, - int maxValue, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000006C-0000-1000-8000-0026BB765291", - "current horizontal tilt angle", - minValue, - maxValue, - "arcdegrees", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public CurrentHorizontalTiltAngleCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/CurrentPositionCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/CurrentPositionCharacteristic.java deleted file mode 100644 index d51614615..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/CurrentPositionCharacteristic.java +++ /dev/null @@ -1,30 +0,0 @@ -package io.github.hapjava.characteristics.impl.windowcovering; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the current position of accessories. */ -public class CurrentPositionCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - - public CurrentPositionCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000006D-0000-1000-8000-0026BB765291", - "current position", - 0, - 100, - "%", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/CurrentVerticalTiltAngleCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/CurrentVerticalTiltAngleCharacteristic.java deleted file mode 100644 index 7d7168973..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/CurrentVerticalTiltAngleCharacteristic.java +++ /dev/null @@ -1,41 +0,0 @@ -package io.github.hapjava.characteristics.impl.windowcovering; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the current angle of vertical slats for accessory. */ -public class CurrentVerticalTiltAngleCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - public static final int DEFAULT_MIN_VALUE = -90; - public static final int DEFAULT_MAX_VALUE = 90; - - public CurrentVerticalTiltAngleCharacteristic( - int minValue, - int maxValue, - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000006E-0000-1000-8000-0026BB765291", - "current vertical tilt angle", - minValue, - maxValue, - "arcdegrees", - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public CurrentVerticalTiltAngleCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, getter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/HoldPositionCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/HoldPositionCharacteristic.java deleted file mode 100644 index 7a6455919..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/HoldPositionCharacteristic.java +++ /dev/null @@ -1,19 +0,0 @@ -package io.github.hapjava.characteristics.impl.windowcovering; - -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.impl.base.BooleanCharacteristic; -import java.util.Optional; - -/** This characteristic causes the accessories like window covering to stop at its current */ -public class HoldPositionCharacteristic extends BooleanCharacteristic { - - public HoldPositionCharacteristic(ExceptionalConsumer setter) { - super( - "0000006F-0000-1000-8000-0026BB765291", - "Hold Position", - Optional.empty(), - Optional.of(setter), - Optional.empty(), - Optional.empty()); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/PositionStateCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/PositionStateCharacteristic.java deleted file mode 100644 index 5b2488f52..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/PositionStateCharacteristic.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.characteristics.impl.windowcovering; - -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.EnumCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the state of the position of accessories. */ -public class PositionStateCharacteristic extends EnumCharacteristic { - - public PositionStateCharacteristic( - Supplier> getter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "00000072-0000-1000-8000-0026BB765291", - "Position state", - PositionStateEnum.values(), - Optional.of(getter), - Optional.empty(), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/PositionStateEnum.java b/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/PositionStateEnum.java deleted file mode 100644 index 86b9174c8..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/PositionStateEnum.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.github.hapjava.characteristics.impl.windowcovering; - -import io.github.hapjava.characteristics.CharacteristicEnum; -import java.util.Arrays; -import java.util.Map; -import java.util.stream.Collectors; - -/** - * 0 ”Going to the minimum value specified in metadata” 1 ”Going to the maximum value specified in - * metadata” 2 ”Stopped” - */ -public enum PositionStateEnum implements CharacteristicEnum { - DECREASING(0), - INCREASING(1), - STOPPED(2); - - private static final Map reverse; - - static { - reverse = - Arrays.stream(PositionStateEnum.values()) - .collect(Collectors.toMap(PositionStateEnum::getCode, t -> t)); - } - - public static PositionStateEnum fromCode(Integer code) { - return reverse.get(code); - } - - private final int code; - - PositionStateEnum(int code) { - this.code = code; - } - - @Override - public int getCode() { - return code; - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/TargetHorizontalTiltAngleCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/TargetHorizontalTiltAngleCharacteristic.java deleted file mode 100644 index 17639ba6e..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/TargetHorizontalTiltAngleCharacteristic.java +++ /dev/null @@ -1,44 +0,0 @@ -package io.github.hapjava.characteristics.impl.windowcovering; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the target angle of horizontal slats for accessories. */ -public class TargetHorizontalTiltAngleCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - public static final int DEFAULT_MIN_VALUE = -90; - public static final int DEFAULT_MAX_VALUE = 90; - - public TargetHorizontalTiltAngleCharacteristic( - int minValue, - int maxValue, - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000007B-0000-1000-8000-0026BB765291", - "target horizontal tilt angle", - minValue, - maxValue, - "arcdegrees", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public TargetHorizontalTiltAngleCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, getter, setter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/TargetPositionCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/TargetPositionCharacteristic.java deleted file mode 100644 index 6398a0b37..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/TargetPositionCharacteristic.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.github.hapjava.characteristics.impl.windowcovering; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the target position of accessories like door, window, blinds. */ -public class TargetPositionCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - - public TargetPositionCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000007C-0000-1000-8000-0026BB765291", - "target position", - 0, - 100, - "%", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/TargetVerticalTiltAngleCharacteristic.java b/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/TargetVerticalTiltAngleCharacteristic.java deleted file mode 100644 index 03fd7a3f5..000000000 --- a/src/main/java/io/github/hapjava/characteristics/impl/windowcovering/TargetVerticalTiltAngleCharacteristic.java +++ /dev/null @@ -1,44 +0,0 @@ -package io.github.hapjava.characteristics.impl.windowcovering; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.characteristics.ExceptionalConsumer; -import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; -import io.github.hapjava.characteristics.impl.base.IntegerCharacteristic; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Consumer; -import java.util.function.Supplier; - -/** This characteristic describes the target angle of vertical slats. */ -public class TargetVerticalTiltAngleCharacteristic extends IntegerCharacteristic - implements EventableCharacteristic { - public static final int DEFAULT_MIN_VALUE = -90; - public static final int DEFAULT_MAX_VALUE = 90; - - public TargetVerticalTiltAngleCharacteristic( - int minValue, - int maxValue, - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - super( - "0000007D-0000-1000-8000-0026BB765291", - "target vertical tilt angle", - minValue, - maxValue, - "arcdegrees", - Optional.of(getter), - Optional.of(setter), - Optional.of(subscriber), - Optional.of(unsubscriber)); - } - - public TargetVerticalTiltAngleCharacteristic( - Supplier> getter, - ExceptionalConsumer setter, - Consumer subscriber, - Runnable unsubscriber) { - this(DEFAULT_MIN_VALUE, DEFAULT_MAX_VALUE, getter, setter, subscriber, unsubscriber); - } -} diff --git a/src/main/java/io/github/hapjava/characteristics/package-info.java b/src/main/java/io/github/hapjava/characteristics/package-info.java deleted file mode 100644 index 955ab73a7..000000000 --- a/src/main/java/io/github/hapjava/characteristics/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Contains the basic characteristic types that can be supplied over the HomeKit Accessory Protocol. - */ -package io.github.hapjava.characteristics; diff --git a/src/main/java/io/github/hapjava/server/HomekitAccessoryCategories.java b/src/main/java/io/github/hapjava/server/HomekitAccessoryCategories.java deleted file mode 100644 index 05768a947..000000000 --- a/src/main/java/io/github/hapjava/server/HomekitAccessoryCategories.java +++ /dev/null @@ -1,40 +0,0 @@ -package io.github.hapjava.server; - -public final class HomekitAccessoryCategories { - public static final int OTHER = 1; - public static final int BRIDGES = 2; - public static final int FANS = 3; - public static final int GARAGE_DOOR_OPENERS = 4; - public static final int LIGHTING = 5; - public static final int LOCKS = 6; - public static final int OUTLETS = 7; - public static final int SWITCHES = 8; - public static final int THERMOSTATS = 9; - public static final int SENSORS = 10; - public static final int SECURITY_SYSTEMS = 11; - public static final int DOORS = 12; - public static final int WINDOWS = 13; - public static final int WINDOW_COVERINGS = 14; - public static final int PROGRAMMABLE_SWITCHES = 15; - public static final int RANGE_EXTENDER = 16; - public static final int IP_CAMERAS = 17; - public static final int VIDEO_DOORBELLS = 18; - public static final int AIR_PURIFIERS = 19; - public static final int HEATERS = 20; - public static final int AIR_CONDITIONERS = 21; - public static final int HUMIDIFIERS = 22; - public static final int DEHUMIDIFIERS = 23; - public static final int APPLE_TV = 24; - public static final int HOMEPOD = 25; - public static final int SPEAKER = 26; - public static final int AIRPORT = 27; - public static final int SPRINKLERS = 28; - public static final int FAUCETS = 29; - public static final int SHOWER_SYSTEMS = 30; - public static final int TELEVISION = 31; - public static final int REMOTES = 32; - public static final int ROUTER = 33; - public static final int AUDIO_RECEIVER = 34; - public static final int TV_SET_TOP_BOX = 35; - public static final int TV_STREAMING_STICK = 36; -} diff --git a/src/main/java/io/github/hapjava/server/HomekitAuthInfo.java b/src/main/java/io/github/hapjava/server/HomekitAuthInfo.java deleted file mode 100644 index 6441962d7..000000000 --- a/src/main/java/io/github/hapjava/server/HomekitAuthInfo.java +++ /dev/null @@ -1,136 +0,0 @@ -package io.github.hapjava.server; - -import io.github.hapjava.server.impl.HomekitServer; -import io.github.hapjava.server.impl.crypto.HAPSetupCodeUtils; -import java.math.BigInteger; -import java.util.Collection; -import java.util.List; - -/** - * Authentication info that must be provided when constructing a new {@link HomekitServer}. You will - * need to implement this interface yourself to provide the necessary callbacks to a persistent - * storage mechanism. All values provided must be constant across invocations or the accessories - * will require re-pairing within iOS. - * - * @author Andy Lintner - */ -public interface HomekitAuthInfo { - - /** - * A pin code used for pairing the device. This pin will be required within iOS in order to - * complete pairing. The numbers cannot be sequential and should not have a repeating pattern. - * - * @return the pin code, in the form ###-##-### - */ - String getPin(); - - /** - * A setup Id used for pairing the device using QR Code. It can be any alphanumeric combination of - * the length of 4. - * - * @return setup id - */ - default String getSetupId() { - return HAPSetupCodeUtils.generateSetupId(); - } - - /** - * A unique MAC address to be advertised with the HomeKit information. This does not have to be - * the MAC address of the network interface. You can generate this using {@link - * HomekitServer#generateMac()}. - * - * @return the unique MAC address. - */ - String getMac(); - - /** - * The Salt that will be used when hashing the pin code to send to the client. You should generate - * this using {@link HomekitServer#generateSalt()}. - * - * @return the Salt. - */ - BigInteger getSalt(); - - /** - * The private key used by the server during pairing and message encryption. You should generate - * this using {@link HomekitServer#generateKey()} - * - * @return the private key. - */ - byte[] getPrivateKey(); - - /** - * Called during the pairing process, you should store the user and public key in a manner that - * the public key can later be retrieved using {@link #getUserPublicKey(String)}. This must be - * stored in a persistent store as pairing will need to be reset if the information is lost. - * - * @param username the iOS device's username. The value will not be meaningful to anything but - * iOS. - * @param publicKey the iOS device's public key. - * @param isAdmin if the user is an admin, authorized to and/remove other users - */ - default void createUser(String username, byte[] publicKey, boolean isAdmin) { - createUser(username, publicKey); - } - - /** - * Deprecated method to add a user, assuming all users are admins. - * - *

    At least one of the createUser methods must be implemented. - * - * @param username the iOS device's username. - * @param publicKey the iOS device's public key. - */ - default void createUser(String username, byte[] publicKey) { - createUser(username, publicKey, true); - } - - /** - * Called when an iOS device needs to remove an existing pairing. Subsequent calls to {@link - * #getUserPublicKey(String)} for this username return null. - * - * @param username the username to delete from the persistent store. - */ - void removeUser(String username); - - /** - * List all users which have been authenticated. - * - * @return the previously stored list of users. - */ - default Collection listUsers() { - return List.of(); - } - - /** - * Called when an already paired iOS device is re-connecting. The public key returned by this - * method will be compared with the signature of the pair verification request to validate the - * device. - * - * @param username the username of the iOS device to retrieve the public key for. - * @return the previously stored public key for this user. - */ - byte[] getUserPublicKey(String username); - - /** - * Determine if the specified user is an admin. - * - * @param username the username of the iOS device to retrieve permissions for. - * @return the previously stored permissions. - */ - default boolean userIsAdmin(String username) { - return true; - } - - /** - * Called to check if a user has been created. The homekit accessory advertises whether the - * accessory has already been paired. At this time, it's unclear whether multiple users can be - * created, however it is known that advertising as unpaired will break in iOS 9. The default - * value has been provided to maintain API compatibility for implementations targeting iOS 8. - * - * @return whether a user has been created and stored - */ - default boolean hasUser() { - return false; - }; -} diff --git a/src/main/java/io/github/hapjava/server/HomekitWebHandler.java b/src/main/java/io/github/hapjava/server/HomekitWebHandler.java deleted file mode 100644 index d66a843c4..000000000 --- a/src/main/java/io/github/hapjava/server/HomekitWebHandler.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.github.hapjava.server; - -import io.github.hapjava.server.impl.http.HomekitClientConnectionFactory; -import java.util.concurrent.CompletableFuture; - -public interface HomekitWebHandler { - - CompletableFuture start(HomekitClientConnectionFactory clientConnectionFactory); - - void stop(); - - void resetConnections(); -} diff --git a/src/main/java/io/github/hapjava/server/impl/HomekitBridge.java b/src/main/java/io/github/hapjava/server/impl/HomekitBridge.java deleted file mode 100644 index 11efb0d37..000000000 --- a/src/main/java/io/github/hapjava/server/impl/HomekitBridge.java +++ /dev/null @@ -1,67 +0,0 @@ -package io.github.hapjava.server.impl; - -import io.github.hapjava.accessories.Bridge; -import io.github.hapjava.services.Service; -import java.util.Collection; -import java.util.Collections; -import java.util.concurrent.CompletableFuture; - -public class HomekitBridge implements Bridge { - - private final String label; - private final String serialNumber; - private final String model; - private final String manufacturer; - private final String firmwareRevision; - private final String hardwareRevision; - - public HomekitBridge( - String label, - String serialNumber, - String model, - String manufacturer, - String firmwareRevision, - String hardwareRevision) { - this.label = label; - this.serialNumber = serialNumber; - this.model = model; - this.manufacturer = manufacturer; - this.firmwareRevision = firmwareRevision; - this.hardwareRevision = hardwareRevision; - } - - @Override - public CompletableFuture getName() { - return CompletableFuture.completedFuture(label); - } - - @Override - public CompletableFuture getSerialNumber() { - return CompletableFuture.completedFuture(serialNumber); - } - - @Override - public CompletableFuture getModel() { - return CompletableFuture.completedFuture(model); - } - - @Override - public CompletableFuture getManufacturer() { - return CompletableFuture.completedFuture(manufacturer); - } - - @Override - public CompletableFuture getFirmwareRevision() { - return CompletableFuture.completedFuture(firmwareRevision); - } - - @Override - public Collection getServices() { - return Collections.emptyList(); - } - - @Override - public int getId() { - return 1; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/HomekitRegistry.java b/src/main/java/io/github/hapjava/server/impl/HomekitRegistry.java deleted file mode 100644 index 3c70cfb9e..000000000 --- a/src/main/java/io/github/hapjava/server/impl/HomekitRegistry.java +++ /dev/null @@ -1,109 +0,0 @@ -package io.github.hapjava.server.impl; - -import io.github.hapjava.accessories.HomekitAccessory; -import io.github.hapjava.characteristics.Characteristic; -import io.github.hapjava.server.impl.connections.SubscriptionManager; -import io.github.hapjava.services.Service; -import io.github.hapjava.services.impl.AccessoryInformationService; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class HomekitRegistry { - - private static final Logger logger = LoggerFactory.getLogger(HomekitRegistry.class); - - private final String label; - private final SubscriptionManager subscriptions; - private final Map accessories; - private final Map> services = new HashMap<>(); - private final Map> characteristics = - new HashMap<>(); - private boolean isAllowUnauthenticatedRequests = false; - - public HomekitRegistry(String label, SubscriptionManager subscriptions) { - this.label = label; - this.subscriptions = subscriptions; - this.accessories = new ConcurrentHashMap<>(); - reset(); - } - - public synchronized void reset() { - characteristics.clear(); - services.clear(); - for (HomekitAccessory accessory : accessories.values()) { - int iid = 0; - List newServices; - try { - newServices = new ArrayList<>(2); - Collection services = accessory.getServices(); - if (!services.stream() - .anyMatch(s -> s.getType().equals(AccessoryInformationService.TYPE))) { - newServices.add(new AccessoryInformationService(accessory)); - } - for (Service service : services) { - newServices.add(service); - newServices.addAll(service.getLinkedServices()); - } - } catch (Exception e) { - logger.warn("Could not instantiate services for accessory " + accessory.getName(), e); - services.put(accessory, Collections.emptyMap()); - continue; - } - - Map newCharacteristicsByInterfaceId = new HashMap<>(); - Map newServicesByInterfaceId = new HashMap<>(); - for (Service service : newServices) { - newServicesByInterfaceId.put(++iid, service); - for (Characteristic characteristic : service.getCharacteristics()) { - newCharacteristicsByInterfaceId.put(++iid, characteristic); - } - } - services.put(accessory, newServicesByInterfaceId); - characteristics.put(accessory, newCharacteristicsByInterfaceId); - } - subscriptions.resync(this); - } - - public String getLabel() { - return label; - } - - public Collection getAccessories() { - return accessories.values(); - } - - public Map getServices(Integer aid) { - return Collections.unmodifiableMap(services.get(accessories.get(aid))); - } - - public Map getCharacteristics(Integer aid) { - Map characteristics = this.characteristics.get(accessories.get(aid)); - if (characteristics == null) { - return Collections.emptyMap(); - } - return Collections.unmodifiableMap(characteristics); - } - - public void add(HomekitAccessory accessory) { - accessories.put(accessory.getId(), accessory); - } - - public boolean remove(HomekitAccessory accessory) { - return accessories.remove(accessory.getId()) != null; - } - - public boolean isAllowUnauthenticatedRequests() { - return isAllowUnauthenticatedRequests; - } - - public void setAllowUnauthenticatedRequests(boolean allow) { - this.isAllowUnauthenticatedRequests = allow; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/HomekitRoot.java b/src/main/java/io/github/hapjava/server/impl/HomekitRoot.java deleted file mode 100644 index 36bfeefa2..000000000 --- a/src/main/java/io/github/hapjava/server/impl/HomekitRoot.java +++ /dev/null @@ -1,238 +0,0 @@ -package io.github.hapjava.server.impl; - -import io.github.hapjava.accessories.Bridge; -import io.github.hapjava.accessories.HomekitAccessory; -import io.github.hapjava.server.HomekitAccessoryCategories; -import io.github.hapjava.server.HomekitAuthInfo; -import io.github.hapjava.server.HomekitWebHandler; -import io.github.hapjava.server.impl.connections.HomekitClientConnectionFactoryImpl; -import io.github.hapjava.server.impl.connections.SubscriptionManager; -import io.github.hapjava.server.impl.jmdns.JmdnsHomekitAdvertiser; -import java.io.IOException; -import java.net.InetAddress; -import javax.jmdns.JmDNS; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * Provides advertising and handling for HomeKit accessories. This class handles the advertising of - * HomeKit accessories and contains one or more accessories. When implementing a bridge accessory, - * you will interact with this class directly. Instantiate it via {@link - * HomekitServer#createBridge(HomekitAuthInfo, String, String, String, String, String, String)}. For - * single accessories, this is composed by {@link HomekitStandaloneAccessoryServer}. - * - * @author Andy Lintner - */ -public class HomekitRoot { - - private static final Logger logger = LoggerFactory.getLogger(HomekitRoot.class); - private static final int DEFAULT_ACCESSORY_CATEGORY = HomekitAccessoryCategories.OTHER; - private final JmdnsHomekitAdvertiser advertiser; - private final HomekitWebHandler webHandler; - private final HomekitAuthInfo authInfo; - private final String label; - private final int category; - private final HomekitRegistry registry; - private final SubscriptionManager subscriptions = new SubscriptionManager(); - private boolean started = false; - private int configurationIndex = 1; - private int nestedBatches = 0; - private boolean madeChanges = false; - - HomekitRoot( - String label, HomekitWebHandler webHandler, InetAddress host, HomekitAuthInfo authInfo) - throws IOException { - this(label, DEFAULT_ACCESSORY_CATEGORY, webHandler, authInfo, new JmdnsHomekitAdvertiser(host)); - } - - HomekitRoot( - String label, - int category, - HomekitWebHandler webHandler, - InetAddress host, - HomekitAuthInfo authInfo) - throws IOException { - this(label, category, webHandler, authInfo, new JmdnsHomekitAdvertiser(host)); - } - - HomekitRoot( - String label, - int category, - HomekitWebHandler webHandler, - HomekitAuthInfo authInfo, - JmdnsHomekitAdvertiser advertiser) - throws IOException { - this.advertiser = advertiser; - this.webHandler = webHandler; - this.authInfo = authInfo; - this.label = label; - this.category = category; - this.registry = new HomekitRegistry(label, subscriptions); - } - - HomekitRoot( - String label, - int category, - HomekitWebHandler webHandler, - JmDNS jmdns, - HomekitAuthInfo authInfo) - throws IOException { - this(label, category, webHandler, authInfo, new JmdnsHomekitAdvertiser(jmdns)); - } - - HomekitRoot(String label, HomekitWebHandler webHandler, JmDNS jmdns, HomekitAuthInfo authInfo) - throws IOException { - this( - label, DEFAULT_ACCESSORY_CATEGORY, webHandler, authInfo, new JmdnsHomekitAdvertiser(jmdns)); - } - - /** - * Begin a batch update of accessories. - * - *

    After calling this, you can call addAccessory() and removeAccessory() multiple times without - * causing HAP-Java to re-publishing the metadata to HomeKit. You'll need to call - * completeUpdateBatch in order to publish all accumulated changes. - */ - public synchronized void batchUpdate() { - if (this.nestedBatches == 0) madeChanges = false; - ++this.nestedBatches; - } - - /** Publish accumulated accessory changes since batchUpdate() was called. */ - public synchronized void completeUpdateBatch() { - if (--this.nestedBatches == 0 && madeChanges) registry.reset(); - } - - /** - * Add an accessory to be handled and advertised by this root. When using this for a bridge, the - * ID of the accessory must be greater than 1, as that ID is reserved for the Bridge itself. - * - * @param accessory to advertise and handle. - */ - public void addAccessory(HomekitAccessory accessory) { - if (accessory.getId() <= 1 && !(accessory instanceof Bridge)) { - throw new IndexOutOfBoundsException( - "The ID of an accessory used in a bridge must be greater than 1"); - } - addAccessorySkipRangeCheck(accessory); - } - - /** - * Skips the range check. Used by {@link HomekitStandaloneAccessoryServer} as well as {@link - * #addAccessory(HomekitAccessory)}; - * - * @param accessory to advertise and handle. - */ - void addAccessorySkipRangeCheck(HomekitAccessory accessory) { - this.registry.add(accessory); - if (logger.isTraceEnabled()) { - accessory.getName().thenAccept(name -> logger.trace("Added accessory {}", name)); - } - madeChanges = true; - if (started && nestedBatches == 0) { - registry.reset(); - } - } - - /** - * Removes an accessory from being handled or advertised by this root. - * - * @param accessory accessory to cease advertising and handling - */ - public void removeAccessory(HomekitAccessory accessory) { - if (this.registry.remove(accessory)) { - if (logger.isTraceEnabled()) { - accessory.getName().thenAccept(name -> logger.trace("Removed accessory {}", name)); - } - madeChanges = true; - if (started && nestedBatches == 0) { - registry.reset(); - } - } else { - accessory.getName().thenAccept(name -> logger.warn("Could not remove accessory {}", name)); - } - } - - /** - * Starts advertising and handling the previously added HomeKit accessories. You should try to - * call this after you have used the {@link #addAccessory(HomekitAccessory)} method to add all the - * initial accessories you plan on advertising, as any later additions will cause the HomeKit - * clients to reconnect. - */ - public void start() { - started = true; - madeChanges = false; - registry.reset(); - webHandler - .start( - new HomekitClientConnectionFactoryImpl(authInfo, registry, subscriptions, advertiser)) - .thenAccept( - port -> { - try { - refreshAuthInfo(); - advertiser.advertise( - label, - category, - authInfo.getMac(), - port, - configurationIndex, - authInfo.getSetupId()); - } catch (Exception e) { - throw new RuntimeException(e); - } - }); - } - - /** Stops advertising and handling the HomeKit accessories. */ - public void stop() { - advertiser.stop(); - webHandler.stop(); - subscriptions.removeAll(); - started = false; - } - - /** - * Refreshes auth info after it has been changed outside this library - * - * @throws IOException if there is an error in the underlying protocol, such as a TCP error - */ - public void refreshAuthInfo() throws IOException { - advertiser.setMac(authInfo.getMac()); - advertiser.setDiscoverable(!authInfo.hasUser()); - } - - /** - * By default, most homekit requests require that the client be paired. Allowing unauthenticated - * requests can be useful for debugging, but should not be used in production. - * - * @param allow whether to allow unauthenticated requests - */ - public void allowUnauthenticatedRequests(boolean allow) { - registry.setAllowUnauthenticatedRequests(allow); - } - - /** - * By default, the bridge advertises itself at revision 1. If you make changes to the accessories - * you're including in the bridge after your first call to {@link start()}, you should increment - * this number. The behavior of the client if the configuration index were to decrement is - * undefined, so this implementation will not manage the configuration index by automatically - * incrementing - preserving this state across invocations should be handled externally. - * - * @param revision an integer, greater than or equal to one, indicating the revision of the - * accessory information - * @throws IOException if there is an error in the underlying protocol, such as a TCP error - */ - public void setConfigurationIndex(int revision) throws IOException { - if (revision < 1) { - throw new IllegalArgumentException("revision must be greater than or equal to 1"); - } - this.configurationIndex = revision; - if (this.started) { - advertiser.setConfigurationIndex(revision); - } - } - - HomekitRegistry getRegistry() { - return registry; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/HomekitServer.java b/src/main/java/io/github/hapjava/server/impl/HomekitServer.java deleted file mode 100644 index 7728896a2..000000000 --- a/src/main/java/io/github/hapjava/server/impl/HomekitServer.java +++ /dev/null @@ -1,218 +0,0 @@ -package io.github.hapjava.server.impl; - -import io.github.hapjava.accessories.HomekitAccessory; -import io.github.hapjava.server.HomekitAuthInfo; -import io.github.hapjava.server.impl.http.impl.HomekitHttpServer; -import java.io.IOException; -import java.math.BigInteger; -import java.net.InetAddress; -import java.security.InvalidAlgorithmParameterException; -import java.util.concurrent.ExecutionException; -import javax.jmdns.JmDNS; - -/** - * The main entry point for hap-java. Creating an instance of this class will listen for HomeKit - * connections on the supplied port. Only a single root accessory can be added for each unique - * instance and port, however, that accessory may be a {@link #createBridge(HomekitAuthInfo, String, - * String, String, String, String, String) bridge accessory} containing child accessories. - * - *

    The {@link HomekitAuthInfo HomekitAuthInfo} argument when creating accessories should be an - * implementation supplied by your application. Several of the values needed for your implementation - * are provided by this class, specifically {@link #generateKey() generateKey}, {@link - * #generateMac() generateMac}, and {@link #generateSalt()}. It is important that you provide these - * same values on each start of your application or HomeKit will fail to recognize your device as - * being the same. - * - * @author Andy Lintner - */ -public class HomekitServer { - - private final HomekitHttpServer http; - private final InetAddress localAddress; - private final JmDNS jmdns; - - /** - * Constructor. Contains an argument indicating the number of threads to use in the http server. - * The other constructors default this to the number of available processors, however you may - * increase this in an environment with many users and/or blocking accessory implementations. - * - * @param localAddress local address to bind to. - * @param port local port to bind to. - * @param nThreads number of threads to use in the http server - * @throws IOException when the server cannot bind to the supplied port - */ - public HomekitServer(InetAddress localAddress, int port, int nThreads) throws IOException { - this.localAddress = localAddress; - this.jmdns = null; - http = new HomekitHttpServer(localAddress, port, nThreads); - } - - /** - * Constructor - * - * @param jmdns mdns service to register with - * @param port local port to bind to - * @param nThreads number of threads to use in the http server - * @throws IOException when the server cannot bind to the supplied port - */ - public HomekitServer(JmDNS jmdns, int port, int nThreads) throws IOException { - this.jmdns = jmdns; - this.localAddress = null; - http = new HomekitHttpServer(jmdns.getInetAddress(), port, nThreads); - } - - /** - * Constructor - * - * @param localAddress local address to bind to - * @param port local port to bind to - * @throws IOException when the server cannot bind to the supplied port - */ - public HomekitServer(InetAddress localAddress, int port) throws IOException { - this(localAddress, port, Runtime.getRuntime().availableProcessors()); - } - - /** - * Constructor - * - * @param jmdns mdns service to register with - * @param port local port to bind to - * @throws IOException when the server cannot bind to the supplied port - */ - public HomekitServer(JmDNS jmdns, int port) throws IOException { - this(jmdns, port, Runtime.getRuntime().availableProcessors()); - } - /** - * Constructor - * - * @param port local port to bind to. - * @throws IOException when the server cannot bind to the supplied port - */ - public HomekitServer(int port) throws IOException { - this(InetAddress.getLocalHost(), port); - } - - /** Stops the service, closing down existing connections and preventing new ones. */ - public void stop() { - http.stop(); - } - - /** - * Creates a single (non-bridge) accessory - * - * @param authInfo authentication information for this accessory. These values should be persisted - * and re-supplied on re-start of your application. - * @param accessory accessory implementation. This will usually be an implementation of an - * interface in {#link io.github.hapjava.accessories io.github.hapjava.accessories}. - * @return the newly created server. Call {@link HomekitStandaloneAccessoryServer#start start} on - * this to begin. - * @throws IOException when mDNS cannot connect to the network - */ - public HomekitStandaloneAccessoryServer createStandaloneAccessory( - HomekitAuthInfo authInfo, HomekitAccessory accessory) - throws IOException, ExecutionException, InterruptedException { - if (jmdns != null) { - return new HomekitStandaloneAccessoryServer(accessory, http, jmdns, authInfo); - } else { - return new HomekitStandaloneAccessoryServer(accessory, http, localAddress, authInfo); - } - } - - public HomekitStandaloneAccessoryServer createStandaloneAccessory( - HomekitAuthInfo authInfo, HomekitAccessory accessory, int category) - throws IOException, ExecutionException, InterruptedException { - if (jmdns != null) { - return new HomekitStandaloneAccessoryServer(accessory, http, jmdns, authInfo, category); - } else { - return new HomekitStandaloneAccessoryServer( - accessory, http, localAddress, authInfo, category); - } - } - - /** - * Creates a bridge accessory, capable of holding multiple child accessories. This has the - * advantage over multiple standalone accessories of only requiring a single pairing from iOS for - * the bridge. - * - * @param authInfo authentication information for this accessory. These values should be persisted - * and re-supplied on re-start of your application. - * @param label label for the bridge. This will show in iOS during pairing. - * @param manufacturer manufacturer of the bridge. This information is exposed to iOS for unknown - * purposes. - * @param model model of the bridge. This is also exposed to iOS for unknown purposes. - * @param serialNumber serial number of the bridge. Also exposed. Purposes also unknown. - * @param firmwareRevision firmware revision of the bridge. - * @param hardwareRevision hardware revision of the brigde. - * @return the bridge, from which you can {@link HomekitRoot#addAccessory add accessories} and - * then {@link HomekitRoot#start start} handling requests. - * @throws IOException when mDNS cannot connect to the network - */ - public HomekitRoot createBridge( - HomekitAuthInfo authInfo, - String label, - int category, - String manufacturer, - String model, - String serialNumber, - String firmwareRevision, - String hardwareRevision) - throws IOException { - HomekitRoot root; - if (jmdns != null) { - root = new HomekitRoot(label, category, http, jmdns, authInfo); - } else { - root = new HomekitRoot(label, category, http, localAddress, authInfo); - } - root.addAccessory( - new HomekitBridge( - label, serialNumber, model, manufacturer, firmwareRevision, hardwareRevision)); - return root; - } - - /** - * Generates a value to supply in {@link HomekitAuthInfo#getSalt() HomekitAuthInfo.getSalt()}. - * This is used to salt the pin-code. You don't need to worry about that though - the salting is - * done on the plaintext pin. (Yes, plaintext passwords are bad. Please don't secure your nuclear - * storage facility with this implementation) - * - * @return the generated salt - */ - public static BigInteger generateSalt() { - return HomekitUtils.generateSalt(); - } - - /** - * Generates a value to supply in {@link HomekitAuthInfo#getPrivateKey() - * HomekitAuthInfo.getPrivKey()}. This is used as the private key during pairing and connection - * setup. - * - * @return the generated key - * @throws InvalidAlgorithmParameterException if the JVM does not contain the necessary encryption - * algorithms. - */ - public static byte[] generateKey() throws InvalidAlgorithmParameterException { - return HomekitUtils.generateKey(); - } - - /** - * Generates a value to supply in {@link HomekitAuthInfo#getMac() HomekitAuthInfo.getMac()}. This - * is used as the unique identifier of the accessory during mDNS advertising. It is a valid MAC - * address generated in the locally administered range so as not to conflict with any commercial - * devices. - * - * @return the generated MAC - */ - public static String generateMac() { - return HomekitUtils.generateMac(); - } - - /** - * Generates a value to supply in {@link HomekitAuthInfo#getPin() HomekitAuthInfo.getPin()}. This - * is used as the Pin a user enters into their HomeKit device in order to confirm pairing. - * - * @return the generated Pin - */ - public static String generatePin() { - return HomekitUtils.generatePin(); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/HomekitStandaloneAccessoryServer.java b/src/main/java/io/github/hapjava/server/impl/HomekitStandaloneAccessoryServer.java deleted file mode 100644 index 4a5dbabee..000000000 --- a/src/main/java/io/github/hapjava/server/impl/HomekitStandaloneAccessoryServer.java +++ /dev/null @@ -1,70 +0,0 @@ -package io.github.hapjava.server.impl; - -import io.github.hapjava.accessories.HomekitAccessory; -import io.github.hapjava.server.HomekitAuthInfo; -import io.github.hapjava.server.HomekitWebHandler; -import java.io.IOException; -import java.net.InetAddress; -import java.net.UnknownHostException; -import java.util.concurrent.ExecutionException; -import javax.jmdns.JmDNS; - -/** - * A server for exposing standalone HomeKit accessory (as opposed to a Bridge accessory which - * contains multiple accessories). Each standalone accessory will have its own pairing information, - * port, and pin. Instantiate this class via {@link - * HomekitServer#createStandaloneAccessory(HomekitAuthInfo, HomekitAccessory)}. - * - * @author Andy Lintner - */ -public class HomekitStandaloneAccessoryServer { - - private final HomekitRoot root; - - HomekitStandaloneAccessoryServer( - HomekitAccessory accessory, - HomekitWebHandler webHandler, - InetAddress localhost, - HomekitAuthInfo authInfo) - throws UnknownHostException, IOException, ExecutionException, InterruptedException { - root = new HomekitRoot(accessory.getName().get(), webHandler, localhost, authInfo); - root.addAccessory(accessory); - } - - HomekitStandaloneAccessoryServer( - HomekitAccessory accessory, - HomekitWebHandler webHandler, - JmDNS jmdns, - HomekitAuthInfo authInfo) - throws UnknownHostException, IOException, ExecutionException, InterruptedException { - root = new HomekitRoot(accessory.getName().get(), webHandler, jmdns, authInfo); - root.addAccessory(accessory); - } - - HomekitStandaloneAccessoryServer( - HomekitAccessory accessory, - HomekitWebHandler webHandler, - InetAddress localhost, - HomekitAuthInfo authInfo, - int category) - throws UnknownHostException, IOException, ExecutionException, InterruptedException { - root = new HomekitRoot(accessory.getName().get(), category, webHandler, localhost, authInfo); - root.addAccessory(accessory); - } - - HomekitStandaloneAccessoryServer( - HomekitAccessory accessory, - HomekitWebHandler webHandler, - JmDNS jmdns, - HomekitAuthInfo authInfo, - int category) - throws UnknownHostException, IOException, ExecutionException, InterruptedException { - root = new HomekitRoot(accessory.getName().get(), category, webHandler, jmdns, authInfo); - root.addAccessory(accessory); - } - - /** Begins advertising and handling requests for this accessory. */ - public void start() { - root.start(); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/HomekitUtils.java b/src/main/java/io/github/hapjava/server/impl/HomekitUtils.java deleted file mode 100644 index 9b5b2b8ee..000000000 --- a/src/main/java/io/github/hapjava/server/impl/HomekitUtils.java +++ /dev/null @@ -1,75 +0,0 @@ -package io.github.hapjava.server.impl; - -import com.nimbusds.srp6.SRP6Routines; -import java.math.BigInteger; -import java.security.InvalidAlgorithmParameterException; -import java.security.SecureRandom; -import java.util.stream.Collectors; -import java.util.stream.Stream; -import net.i2p.crypto.eddsa.spec.EdDSANamedCurveTable; -import net.i2p.crypto.eddsa.spec.EdDSAParameterSpec; - -public class HomekitUtils { - - private static volatile SecureRandom secureRandom; - - public static BigInteger generateSalt() { - return new BigInteger(SRP6Routines.generateRandomSalt(16)); - } - - public static byte[] generateKey() throws InvalidAlgorithmParameterException { - EdDSAParameterSpec spec = EdDSANamedCurveTable.getByName("ed25519-sha-512"); - byte[] seed = new byte[spec.getCurve().getField().getb() / 8]; - getSecureRandom().nextBytes(seed); - return seed; - } - - public static String generateMac() { - int byte1 = - ((getSecureRandom().nextInt(255) + 1) | 2) & 0xFE; // Unicast locally administered MAC; - return Integer.toHexString(byte1) - + ":" - + Stream.generate(() -> getSecureRandom().nextInt(255) + 1) - .limit(5) - .map(i -> Integer.toHexString(i)) - .collect(Collectors.joining(":")); - } - - public static String generatePin() { - String pin = - String.format( - "%03d-%02d-%03d", - getSecureRandom().nextInt(1000), - getSecureRandom().nextInt(100), - getSecureRandom().nextInt(1000)); - - if (pin == "000-00-000" - || pin == "111-11-111" - || pin == "222-22-222" - || pin == "333-33-333" - || pin == "444-44-444" - || pin == "555-55-555" - || pin == "666-66-666" - || pin == "777-77-777" - || pin == "888-88-888" - || pin == "999-99-999" - || pin == "123-45-678" - || pin == "876-54-321") { - // disallowed Pin; just recurse and generate a new one - return generatePin(); - } - - return pin; - } - - private static SecureRandom getSecureRandom() { - if (secureRandom == null) { - synchronized (HomekitUtils.class) { - if (secureRandom == null) { - secureRandom = new SecureRandom(); - } - } - } - return secureRandom; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/connections/ConnectionImpl.java b/src/main/java/io/github/hapjava/server/impl/connections/ConnectionImpl.java deleted file mode 100644 index 759506722..000000000 --- a/src/main/java/io/github/hapjava/server/impl/connections/ConnectionImpl.java +++ /dev/null @@ -1,155 +0,0 @@ -package io.github.hapjava.server.impl.connections; - -import io.github.hapjava.server.HomekitAuthInfo; -import io.github.hapjava.server.impl.HomekitRegistry; -import io.github.hapjava.server.impl.crypto.ChachaDecoder; -import io.github.hapjava.server.impl.crypto.ChachaEncoder; -import io.github.hapjava.server.impl.http.HomekitClientConnection; -import io.github.hapjava.server.impl.http.HttpRequest; -import io.github.hapjava.server.impl.http.HttpResponse; -import io.github.hapjava.server.impl.jmdns.JmdnsHomekitAdvertiser; -import io.github.hapjava.server.impl.pairing.UpgradeResponse; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.nio.ByteBuffer; -import java.nio.ByteOrder; -import java.util.Collection; -import java.util.function.Consumer; -import org.bouncycastle.util.Pack; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -class ConnectionImpl implements HomekitClientConnection { - - private final HttpSession httpSession; - private LengthPrefixedByteArrayProcessor binaryProcessor; - private int inboundBinaryMessageCount = 0; - private int outboundBinaryMessageCount = 0; - private byte[] readKey; - private byte[] writeKey; - private String username; - private boolean isUpgraded = false; - private final Consumer outOfBandMessageCallback; - private final SubscriptionManager subscriptions; - - private static final Logger LOGGER = LoggerFactory.getLogger(HomekitClientConnection.class); - - public ConnectionImpl( - HomekitAuthInfo authInfo, - HomekitRegistry registry, - Consumer outOfBandMessageCallback, - SubscriptionManager subscriptions, - JmdnsHomekitAdvertiser advertiser) { - httpSession = new HttpSession(authInfo, registry, subscriptions, this, advertiser); - this.outOfBandMessageCallback = outOfBandMessageCallback; - this.subscriptions = subscriptions; - } - - @Override - public synchronized HttpResponse handleRequest(HttpRequest request) throws IOException { - return doHandleRequest(request); - } - - private HttpResponse doHandleRequest(HttpRequest request) throws IOException { - HttpResponse response = - isUpgraded - ? httpSession.handleAuthenticatedRequest(request) - : httpSession.handleRequest(request); - if (response instanceof UpgradeResponse) { - isUpgraded = true; - readKey = ((UpgradeResponse) response).getReadKey().array(); - writeKey = ((UpgradeResponse) response).getWriteKey().array(); - username = ((UpgradeResponse) response).getUsername(); - } - LOGGER.trace("{} {} {}", response.getStatusCode(), request.getMethod(), request.getUri()); - return response; - } - - @Override - public byte[] decryptRequest(byte[] ciphertext) { - if (!isUpgraded) { - throw new RuntimeException("Cannot handle binary before connection is upgraded"); - } - if (binaryProcessor == null) { - binaryProcessor = new LengthPrefixedByteArrayProcessor(); - } - Collection res = binaryProcessor.handle(ciphertext); - if (res.isEmpty()) { - return new byte[0]; - } else { - try (ByteArrayOutputStream decrypted = new ByteArrayOutputStream()) { - res.stream() - .map(msg -> decrypt(msg)) - .forEach( - bytes -> { - try { - decrypted.write(bytes); - } catch (Exception e) { - throw new RuntimeException(e); - } - }); - return decrypted.toByteArray(); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - - @Override - public byte[] encryptResponse(byte[] response) throws IOException { - int offset = 0; - try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { - while (offset < response.length) { - short length = (short) Math.min(response.length - offset, 0x400); - byte[] lengthBytes = - ByteBuffer.allocate(2).order(ByteOrder.LITTLE_ENDIAN).putShort(length).array(); - baos.write(lengthBytes); - - byte[] nonce = Pack.longToLittleEndian(outboundBinaryMessageCount++); - byte[] plaintext; - if (response.length == length) { - plaintext = response; - } else { - plaintext = new byte[length]; - System.arraycopy(response, offset, plaintext, 0, length); - } - offset += length; - baos.write(new ChachaEncoder(writeKey, nonce).encodeCiphertext(plaintext, lengthBytes)); - } - return baos.toByteArray(); - } - } - - private byte[] decrypt(byte[] msg) { - byte[] mac = new byte[16]; - byte[] ciphertext = new byte[msg.length - 16]; - System.arraycopy(msg, 0, ciphertext, 0, msg.length - 16); - System.arraycopy(msg, msg.length - 16, mac, 0, 16); - byte[] additionalData = - ByteBuffer.allocate(2) - .order(ByteOrder.LITTLE_ENDIAN) - .putShort((short) (msg.length - 16)) - .array(); - try { - byte[] nonce = Pack.longToLittleEndian(inboundBinaryMessageCount++); - return new ChachaDecoder(readKey, nonce).decodeCiphertext(mac, additionalData, ciphertext); - } catch (IOException e) { - throw new RuntimeException(e); - } - } - - @Override - public void close() { - subscriptions.removeConnection(this); - } - - @Override - public void outOfBand(HttpResponse message) { - outOfBandMessageCallback.accept(message); - } - - @Override - public String getUsername() { - return username; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/connections/HomekitClientConnectionFactoryImpl.java b/src/main/java/io/github/hapjava/server/impl/connections/HomekitClientConnectionFactoryImpl.java deleted file mode 100644 index 9c8ad9fc0..000000000 --- a/src/main/java/io/github/hapjava/server/impl/connections/HomekitClientConnectionFactoryImpl.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.server.impl.connections; - -import io.github.hapjava.server.HomekitAuthInfo; -import io.github.hapjava.server.impl.HomekitRegistry; -import io.github.hapjava.server.impl.http.HomekitClientConnection; -import io.github.hapjava.server.impl.http.HomekitClientConnectionFactory; -import io.github.hapjava.server.impl.http.HttpResponse; -import io.github.hapjava.server.impl.jmdns.JmdnsHomekitAdvertiser; -import java.util.function.Consumer; - -public class HomekitClientConnectionFactoryImpl implements HomekitClientConnectionFactory { - - private final HomekitAuthInfo authInfo; - private final HomekitRegistry registry; - private final SubscriptionManager subscriptions; - private final JmdnsHomekitAdvertiser advertiser; - - public HomekitClientConnectionFactoryImpl( - HomekitAuthInfo authInfo, - HomekitRegistry registry, - SubscriptionManager subscriptions, - JmdnsHomekitAdvertiser advertiser) { - this.registry = registry; - this.authInfo = authInfo; - this.subscriptions = subscriptions; - this.advertiser = advertiser; - } - - @Override - public HomekitClientConnection createConnection(Consumer outOfBandMessageCallback) { - return new ConnectionImpl( - authInfo, registry, outOfBandMessageCallback, subscriptions, advertiser); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/connections/HttpSession.java b/src/main/java/io/github/hapjava/server/impl/connections/HttpSession.java deleted file mode 100644 index f1c97c62c..000000000 --- a/src/main/java/io/github/hapjava/server/impl/connections/HttpSession.java +++ /dev/null @@ -1,175 +0,0 @@ -package io.github.hapjava.server.impl.connections; - -import io.github.hapjava.accessories.HomekitAccessory; -import io.github.hapjava.server.HomekitAuthInfo; -import io.github.hapjava.server.impl.HomekitRegistry; -import io.github.hapjava.server.impl.http.HomekitClientConnection; -import io.github.hapjava.server.impl.http.HttpRequest; -import io.github.hapjava.server.impl.http.HttpResponse; -import io.github.hapjava.server.impl.jmdns.JmdnsHomekitAdvertiser; -import io.github.hapjava.server.impl.json.AccessoryController; -import io.github.hapjava.server.impl.json.CharacteristicsController; -import io.github.hapjava.server.impl.pairing.PairSetupManager; -import io.github.hapjava.server.impl.pairing.PairVerifyManager; -import io.github.hapjava.server.impl.pairing.PairingsManager; -import io.github.hapjava.server.impl.responses.InternalServerErrorResponse; -import io.github.hapjava.server.impl.responses.NotFoundResponse; -import java.io.IOException; -import java.net.InetAddress; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -class HttpSession { - - private volatile PairSetupManager pairSetupManager; - private volatile PairVerifyManager pairVerifyManager; - private volatile AccessoryController accessoryController; - private volatile CharacteristicsController characteristicsController; - - private final HomekitAuthInfo authInfo; - private final HomekitRegistry registry; - private final SubscriptionManager subscriptions; - private final HomekitClientConnection connection; - private final JmdnsHomekitAdvertiser advertiser; - - private static final Logger logger = LoggerFactory.getLogger(HttpSession.class); - - public HttpSession( - HomekitAuthInfo authInfo, - HomekitRegistry registry, - SubscriptionManager subscriptions, - HomekitClientConnection connection, - JmdnsHomekitAdvertiser advertiser) { - this.authInfo = authInfo; - this.registry = registry; - this.subscriptions = subscriptions; - this.connection = connection; - this.advertiser = advertiser; - } - - public HttpResponse handleRequest(HttpRequest request) throws IOException { - switch (request.getUri()) { - case "/pair-setup": - return handlePairSetup(request); - - case "/pair-verify": - return handlePairVerify(request); - - default: - if (registry.isAllowUnauthenticatedRequests()) { - return handleAuthenticatedRequest(request); - } else { - logger.warn("Unrecognized request for " + request.getUri()); - return new NotFoundResponse(); - } - } - } - - public HttpResponse handleAuthenticatedRequest(HttpRequest request) throws IOException { - advertiser.setDiscoverable( - false); // bridge is already bound and should not be discoverable anymore - try { - switch (request.getUri()) { - case "/accessories": - return getAccessoryController().listing(); - - case "/characteristics": - switch (request.getMethod()) { - case PUT: - return getCharacteristicsController().put(request, connection); - - default: - logger.warn("Unrecognized method for " + request.getUri()); - return new NotFoundResponse(); - } - - case "/pairings": - return new PairingsManager(authInfo, advertiser).handle(request); - - default: - if (request.getUri().startsWith("/characteristics?")) { - return getCharacteristicsController().get(request); - } - logger.warn("Unrecognized request for " + request.getUri()); - return new NotFoundResponse(); - } - } catch (Exception e) { - logger.warn("Could not handle request", e); - return new InternalServerErrorResponse(e); - } - } - - private HttpResponse handlePairSetup(HttpRequest request) { - if (pairSetupManager == null) { - synchronized (HttpSession.class) { - if (pairSetupManager == null) { - pairSetupManager = new PairSetupManager(authInfo, registry); - } - } - } - try { - return pairSetupManager.handle(request); - } catch (Exception e) { - logger.warn("Exception encountered during pairing", e); - return new InternalServerErrorResponse(e); - } - } - - private HttpResponse handlePairVerify(HttpRequest request) { - if (pairVerifyManager == null) { - synchronized (HttpSession.class) { - if (pairVerifyManager == null) { - pairVerifyManager = new PairVerifyManager(authInfo, registry); - } - } - } - try { - return pairVerifyManager.handle(request); - } catch (Exception e) { - logger.warn("Exception encountered while verifying pairing", e); - return new InternalServerErrorResponse(e); - } - } - - private synchronized AccessoryController getAccessoryController() { - if (accessoryController == null) { - accessoryController = new AccessoryController(registry); - } - return accessoryController; - } - - private synchronized CharacteristicsController getCharacteristicsController() { - if (characteristicsController == null) { - characteristicsController = new CharacteristicsController(registry, subscriptions); - } - return characteristicsController; - } - - public static class SessionKey { - private final InetAddress address; - private final HomekitAccessory accessory; - - public SessionKey(InetAddress address, HomekitAccessory accessory) { - this.address = address; - this.accessory = accessory; - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof SessionKey) { - return address.equals(((SessionKey) obj).address) - && accessory.equals(((SessionKey) obj).accessory); - } else { - return false; - } - } - - @Override - public int hashCode() { - int hash = 1; - hash = hash * 31 + address.hashCode(); - hash = hash * 31 + accessory.hashCode(); - return hash; - } - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/connections/LengthPrefixedByteArrayProcessor.java b/src/main/java/io/github/hapjava/server/impl/connections/LengthPrefixedByteArrayProcessor.java deleted file mode 100644 index 34ec3a41c..000000000 --- a/src/main/java/io/github/hapjava/server/impl/connections/LengthPrefixedByteArrayProcessor.java +++ /dev/null @@ -1,89 +0,0 @@ -package io.github.hapjava.server.impl.connections; - -import java.io.ByteArrayOutputStream; -import java.util.Collection; -import java.util.LinkedList; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -class LengthPrefixedByteArrayProcessor { - - private final ByteArrayOutputStream buffer = new ByteArrayOutputStream(); - private Byte - firstLengthByteBuffer; // Only used if we've received a single byte at the start of a message - private int targetLength = 0; - - private static final Logger LOGGER = - LoggerFactory.getLogger(LengthPrefixedByteArrayProcessor.class); - - public synchronized Collection handle(byte[] data) { - Collection results = new LinkedList<>(); - int pos = 0; - LOGGER.trace( - "Received message of length {}. Existing buffer is {}", data.length, buffer.size()); - if (buffer.size() == 0 && firstLengthByteBuffer == null) { - while (data.length - pos > 18) { - int targetLength = (data[pos] & 0xFF) + (data[pos + 1] & 0xFF) * 256 + 16 + 2; - LOGGER.trace("Attempting to read message of length {}", targetLength); - if (data.length >= pos + targetLength) { - byte[] b = new byte[targetLength - 2]; - System.arraycopy(data, pos + 2, b, 0, targetLength - 2); - results.add(b); - LOGGER.trace("Read complete message"); - pos = pos + targetLength; - } else { - LOGGER.trace("Not enough data available"); - break; - } - } - } - if (data.length > pos) { - LOGGER.trace("Remaining data available"); - step(data, pos, results); - } - LOGGER.trace("Returning {} results", results.size()); - return results; - } - - private void step(byte[] data, int pos, Collection results) { - LOGGER.trace("Performing step operation on buffer of length {} with pos {}", data.length, pos); - if (targetLength == 0 && data.length == 1 + pos) { - firstLengthByteBuffer = data[pos]; - LOGGER.trace( - "Received a single byte message, storing byte {} for later", firstLengthByteBuffer); - return; - } - if (targetLength == 0) { - if (firstLengthByteBuffer != null) { - targetLength = (firstLengthByteBuffer & 0xFF) + (data[pos] & 0xFF) * 256 + 16; - firstLengthByteBuffer = null; - pos += 1; - LOGGER.trace( - "Received the second byte after storing the first byte. New length is {}", - targetLength); - } else { - targetLength = (data[pos] & 0xFF) + (data[pos + 1] & 0xFF) * 256 + 16; - pos += 2; - LOGGER.trace("targetLength is {}", targetLength); - } - } - int toWrite = targetLength - buffer.size(); - if (toWrite <= data.length - pos) { - // We have a complete message - LOGGER.trace("Received a complete message"); - buffer.write(data, pos, toWrite); - results.add(buffer.toByteArray()); - buffer.reset(); - targetLength = 0; - if (pos + toWrite < data.length) { - step(data, pos + toWrite, results); - } - } else { - LOGGER.trace( - "Storing {} bytes in buffer until we receive the complete {}", - data.length - pos, - targetLength); - buffer.write(data, pos, data.length - pos); - } - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/connections/PendingNotification.java b/src/main/java/io/github/hapjava/server/impl/connections/PendingNotification.java deleted file mode 100644 index ea9c69305..000000000 --- a/src/main/java/io/github/hapjava/server/impl/connections/PendingNotification.java +++ /dev/null @@ -1,15 +0,0 @@ -package io.github.hapjava.server.impl.connections; - -import io.github.hapjava.characteristics.EventableCharacteristic; - -public class PendingNotification { - public int aid; - public int iid; - public EventableCharacteristic characteristic; - - public PendingNotification(int aid, int iid, EventableCharacteristic characteristic) { - this.aid = aid; - this.iid = iid; - this.characteristic = characteristic; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/connections/SubscriptionManager.java b/src/main/java/io/github/hapjava/server/impl/connections/SubscriptionManager.java deleted file mode 100644 index 9399295fb..000000000 --- a/src/main/java/io/github/hapjava/server/impl/connections/SubscriptionManager.java +++ /dev/null @@ -1,257 +0,0 @@ -package io.github.hapjava.server.impl.connections; - -import io.github.hapjava.characteristics.Characteristic; -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.server.impl.HomekitRegistry; -import io.github.hapjava.server.impl.http.HomekitClientConnection; -import io.github.hapjava.server.impl.http.HttpResponse; -import io.github.hapjava.server.impl.json.EventController; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class SubscriptionManager { - - private static final Logger LOGGER = LoggerFactory.getLogger(SubscriptionManager.class); - - private static class ConnectionsWithIds { - Set connections; - int aid, iid; - - ConnectionsWithIds(int aid, int iid) { - this.aid = aid; - this.iid = iid; - this.connections = new HashSet<>(); - } - } - - private final Map subscriptions = new HashMap<>(); - private final Map> reverse = - new HashMap<>(); - private final Map> pendingNotifications = - new HashMap<>(); - private int nestedBatches = 0; - - public synchronized void addSubscription( - int aid, - int iid, - EventableCharacteristic characteristic, - HomekitClientConnection connection) { - synchronized (this) { - ConnectionsWithIds subscribers; - if (subscriptions.containsKey(characteristic)) { - subscribers = subscriptions.get(characteristic); - } else { - subscribers = new ConnectionsWithIds(aid, iid); - subscriptions.put(characteristic, subscribers); - subscribe(aid, iid, characteristic); - } - subscribers.connections.add(connection); - - if (!reverse.containsKey(connection)) { - reverse.put(connection, new HashSet<>()); - } - reverse.get(connection).add(characteristic); - LOGGER.trace( - "Added subscription to {}:{} ({}) for {}", - aid, - iid, - characteristic.getClass().getSimpleName(), - connection.hashCode()); - } - } - - public synchronized void removeSubscription( - EventableCharacteristic characteristic, HomekitClientConnection connection) { - ConnectionsWithIds subscribers = subscriptions.get(characteristic); - if (subscribers != null) { - subscribers.connections.remove(connection); - if (subscribers.connections.isEmpty()) { - LOGGER.trace("Unsubscribing from characteristic as all subscriptions are closed"); - characteristic.unsubscribe(); - subscriptions.remove(characteristic); - } - - // Remove pending notifications for this no-longer-subscribed characteristic - List connectionNotifications = pendingNotifications.get(connection); - if (connectionNotifications != null) { - connectionNotifications.removeIf(n -> n.aid == subscribers.aid && n.iid == subscribers.iid); - if (connectionNotifications.isEmpty()) pendingNotifications.remove(connection); - } - - LOGGER.trace( - "Removed subscription from {}:{} ({}) for {}", - subscribers.aid, - subscribers.iid, - characteristic.getClass().getSimpleName(), - connection.hashCode()); - } - - Set reverse = this.reverse.get(connection); - if (reverse != null) { - reverse.remove(characteristic); - if (reverse.isEmpty()) this.reverse.remove(connection); - } - } - - public synchronized void removeConnection(HomekitClientConnection connection) { - removeConnection(connection, reverse.remove(connection)); - } - - private void removeConnection( - HomekitClientConnection connection, Set characteristics) { - pendingNotifications.remove(connection); - if (characteristics != null) { - for (EventableCharacteristic characteristic : characteristics) { - removeSubscription(characteristic, connection); - } - } - LOGGER.trace("Removed connection {}", connection.hashCode()); - } - - public synchronized void batchUpdate() { - ++this.nestedBatches; - } - - public synchronized void completeUpdateBatch() { - if (--this.nestedBatches == 0) flushUpdateBatch(); - } - - private void flushUpdateBatch() { - if (pendingNotifications.isEmpty()) return; - - LOGGER.trace("Publishing batched changes"); - for (Map.Entry> entry : - pendingNotifications.entrySet()) { - try { - HttpResponse message = new EventController().getMessage(entry.getValue()); - entry.getKey().outOfBand(message); - } catch (Exception e) { - LOGGER.warn("Failed to create new event message", e); - } - } - pendingNotifications.clear(); - } - - public synchronized void publish(int accessoryId, int iid, EventableCharacteristic changed) { - final ConnectionsWithIds subscribers = subscriptions.get(changed); - if (subscribers == null || subscribers.connections.isEmpty()) { - LOGGER.trace("No subscribers to characteristic {} at accessory {} ", changed, accessoryId); - return; // no subscribers - } - if (nestedBatches != 0) { - LOGGER.trace("Batching change for accessory {} and characteristic {} " + accessoryId, iid); - PendingNotification notification = new PendingNotification(accessoryId, iid, changed); - for (HomekitClientConnection connection : subscribers.connections) { - if (!pendingNotifications.containsKey(connection)) { - pendingNotifications.put(connection, new ArrayList()); - } - pendingNotifications.get(connection).add(notification); - } - return; - } - - try { - HttpResponse message = new EventController().getMessage(accessoryId, iid, changed); - LOGGER.trace("Publishing change for " + accessoryId); - for (HomekitClientConnection connection : subscribers.connections) { - connection.outOfBand(message); - } - } catch (Exception e) { - LOGGER.warn("Failed to create new event message", e); - } - } - - /** - * The accessory registry has changed; go through all subscriptions and link to any new/changed - * characteristics - */ - public synchronized void resync(HomekitRegistry registry) { - LOGGER.trace("Resyncing subscriptions"); - flushUpdateBatch(); - - Map newSubscriptions = new HashMap<>(); - Iterator> i = - subscriptions.entrySet().iterator(); - while (i.hasNext()) { - Map.Entry entry = i.next(); - EventableCharacteristic oldCharacteristic = entry.getKey(); - ConnectionsWithIds subscribers = entry.getValue(); - Characteristic newCharacteristic = - registry.getCharacteristics(subscribers.aid).get(subscribers.iid); - if (newCharacteristic == null || newCharacteristic.getType() != oldCharacteristic.getType()) { - // characteristic is gone or has completely changed; drop all subscriptions for it - LOGGER.trace( - "{}:{} ({}) has gone missing; dropping subscriptions.", - subscribers.aid, - subscribers.iid, - oldCharacteristic.getClass().getSimpleName()); - i.remove(); - for (HomekitClientConnection conn : subscribers.connections) { - removeSubscription(oldCharacteristic, conn); - } - } else if (newCharacteristic != oldCharacteristic) { - EventableCharacteristic newEventableCharacteristic = - (EventableCharacteristic) newCharacteristic; - LOGGER.trace( - "{}:{} has been replaced by a compatible characteristic; re-connecting subscriptions", - subscribers.aid, - subscribers.iid); - // characteristic has been replaced by another instance of the same thing; - // re-connect subscriptions - i.remove(); - oldCharacteristic.unsubscribe(); - subscribe(subscribers.aid, subscribers.iid, newEventableCharacteristic); - // we can't replace the key, and we can't add to the map while we're iterating, - // so save it off to a temporary map that we'll add them all at the end - newSubscriptions.put(newEventableCharacteristic, subscribers); - - for (HomekitClientConnection conn : subscribers.connections) { - Set subscribedCharacteristics = reverse.get(conn); - subscribedCharacteristics.remove(oldCharacteristic); - subscribedCharacteristics.add(newEventableCharacteristic); - - // and also update references for any pending notifications, so they'll get the proper - // value - List connectionPendingNotifications = pendingNotifications.get(conn); - if (connectionPendingNotifications != null) { - for (PendingNotification notification : connectionPendingNotifications) { - if (notification.characteristic == oldCharacteristic) { - notification.characteristic = newEventableCharacteristic; - } - } - } - } - } - } - subscriptions.putAll(newSubscriptions); - } - - private void subscribe(int aid, int iid, EventableCharacteristic characteristic) { - characteristic.subscribe( - () -> { - publish(aid, iid, characteristic); - }); - } - - /** Remove all existing subscriptions */ - public synchronized void removeAll() { - LOGGER.trace("Removing {} reverse connections from subscription manager", reverse.size()); - Iterator>> i = - reverse.entrySet().iterator(); - while (i.hasNext()) { - Map.Entry> entry = i.next(); - HomekitClientConnection connection = entry.getKey(); - LOGGER.trace("Removing connection {}", connection.hashCode()); - i.remove(); - removeConnection(connection, entry.getValue()); - } - LOGGER.trace("Subscription sizes are {} and {}", reverse.size(), subscriptions.size()); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/crypto/ChachaDecoder.java b/src/main/java/io/github/hapjava/server/impl/crypto/ChachaDecoder.java deleted file mode 100755 index 014f4b500..000000000 --- a/src/main/java/io/github/hapjava/server/impl/crypto/ChachaDecoder.java +++ /dev/null @@ -1,98 +0,0 @@ -package io.github.hapjava.server.impl.crypto; - -import java.io.IOException; -import org.bouncycastle.crypto.InvalidCipherTextException; -import org.bouncycastle.crypto.modes.ChaCha20Poly1305; -import org.bouncycastle.crypto.params.AEADParameters; -import org.bouncycastle.crypto.params.KeyParameter; -import org.bouncycastle.tls.AlertDescription; -import org.bouncycastle.tls.TlsFatalAlert; - -public class ChachaDecoder { - - private final ChaCha20Poly1305 cipher; - private final byte[] key; - private final byte[] nonce; - - public ChachaDecoder(byte[] key, byte[] nonce) throws IOException { - this.key = key; - // ChaCha20-Poly1305 requires exactly 12 bytes (96 bits) for nonce - this.nonce = ensureNonceSize(nonce); - this.cipher = new ChaCha20Poly1305(); - } - - private byte[] ensureNonceSize(byte[] nonce) { - if (nonce == null) { - return new byte[12]; // Default to zero nonce if null - } - - // For HomeKit pairing messages, handle Apple's string-based nonces - if (nonce.length == 8) { - // Apple's HomeKit implementation uses a specific nonce format - // Based on RFC 7539 and Apple's implementation, the nonce should be: - // - 4 bytes constant (0x00000000) - // - 8 bytes nonce string - // This matches ChaCha20's 96-bit nonce requirement - byte[] adjustedNonce = new byte[12]; - // Put the 8-byte nonce at the END (bytes 4-11), not at the beginning - System.arraycopy(nonce, 0, adjustedNonce, 4, 8); - // First 4 bytes remain zero (counter initialization) - return adjustedNonce; - } - - if (nonce.length == 12) { - return nonce; // Already correct size - } - - // For other nonce lengths, pad or truncate to 12 bytes - byte[] adjustedNonce = new byte[12]; - if (nonce.length < 12) { - // Pad with zeros if too short - put nonce at beginning - System.arraycopy(nonce, 0, adjustedNonce, 0, nonce.length); - // Remaining bytes are already zero - } else { - // Truncate if too long - take first 12 bytes - System.arraycopy(nonce, 0, adjustedNonce, 0, 12); - } - - return adjustedNonce; - } - - public byte[] decodeCiphertext(byte[] receivedMAC, byte[] additionalData, byte[] ciphertext) - throws IOException { - - try { - byte[] ciphertextWithTag = new byte[ciphertext.length + receivedMAC.length]; - System.arraycopy(ciphertext, 0, ciphertextWithTag, 0, ciphertext.length); - System.arraycopy(receivedMAC, 0, ciphertextWithTag, ciphertext.length, receivedMAC.length); - - ChaCha20Poly1305 cipher1 = new ChaCha20Poly1305(); - AEADParameters params = new AEADParameters(new KeyParameter(key), 128, nonce, additionalData); - cipher1.init(false, params); - - byte[] output = new byte[cipher1.getOutputSize(ciphertextWithTag.length)]; - int len = cipher1.processBytes(ciphertextWithTag, 0, ciphertextWithTag.length, output, 0); - len += cipher1.doFinal(output, len); - - byte[] result = new byte[len]; - System.arraycopy(output, 0, result, 0, len); - - return result; - - } catch (InvalidCipherTextException e) { - throw new TlsFatalAlert(AlertDescription.bad_record_mac); - } - } - - private static String bytesToHex(byte[] bytes) { - StringBuilder result = new StringBuilder(); - for (byte b : bytes) { - result.append(String.format("%02x", b)); - } - return result.toString(); - } - - public byte[] decodeCiphertext(byte[] receivedMAC, byte[] ciphertext) throws IOException { - return decodeCiphertext(receivedMAC, null, ciphertext); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/crypto/ChachaEncoder.java b/src/main/java/io/github/hapjava/server/impl/crypto/ChachaEncoder.java deleted file mode 100755 index 889c9ca86..000000000 --- a/src/main/java/io/github/hapjava/server/impl/crypto/ChachaEncoder.java +++ /dev/null @@ -1,93 +0,0 @@ -package io.github.hapjava.server.impl.crypto; - -import java.io.IOException; -import org.bouncycastle.crypto.InvalidCipherTextException; -import org.bouncycastle.crypto.modes.ChaCha20Poly1305; -import org.bouncycastle.crypto.params.AEADParameters; -import org.bouncycastle.crypto.params.KeyParameter; - -public class ChachaEncoder { - - private final ChaCha20Poly1305 cipher; - private final byte[] key; - private final byte[] nonce; - - public ChachaEncoder(byte[] key, byte[] nonce) throws IOException { - this.key = key; - // ChaCha20-Poly1305 requires exactly 12 bytes (96 bits) for nonce - this.nonce = ensureNonceSize(nonce); - this.cipher = new ChaCha20Poly1305(); - } - - private byte[] ensureNonceSize(byte[] nonce) { - if (nonce == null) { - return new byte[12]; // Default to zero nonce if null - } - - // For HomeKit pairing messages, handle Apple's string-based nonces - if (nonce.length == 8) { - // Apple's HomeKit implementation uses a specific nonce format - // Based on RFC 7539 and Apple's implementation, the nonce should be: - // - 4 bytes constant (0x00000000) - // - 8 bytes nonce string - // This matches ChaCha20's 96-bit nonce requirement and ChachaDecoder format - byte[] adjustedNonce = new byte[12]; - // Put the 8-byte nonce at the END (bytes 4-11), not at the beginning - System.arraycopy(nonce, 0, adjustedNonce, 4, 8); - // First 4 bytes remain zero (counter initialization) - return adjustedNonce; - } - - if (nonce.length == 12) { - return nonce; // Already correct size - } - - byte[] adjustedNonce = new byte[12]; - if (nonce.length < 12) { - // Pad with zeros if too short - System.arraycopy(nonce, 0, adjustedNonce, 0, nonce.length); - } else { - // Truncate if too long - System.arraycopy(nonce, 0, adjustedNonce, 0, 12); - } - return adjustedNonce; - } - - private static String bytesToHex(byte[] bytes) { - StringBuilder result = new StringBuilder(); - for (byte b : bytes) { - result.append(String.format("%02x", b)); - } - return result.toString(); - } - - public byte[] encodeCiphertext(byte[] plaintext) throws IOException { - return encodeCiphertext(plaintext, null); - } - - public byte[] encodeCiphertext(byte[] plaintext, byte[] additionalData) throws IOException { - try { - // Use the nonce provided during construction - AEADParameters params = new AEADParameters(new KeyParameter(key), 128, nonce, additionalData); - cipher.init(true, params); - - byte[] output = new byte[cipher.getOutputSize(plaintext.length)]; - int len = cipher.processBytes(plaintext, 0, plaintext.length, output, 0); - len += cipher.doFinal(output, len); - - // Split the result into ciphertext and MAC - byte[] ciphertext = new byte[plaintext.length]; - byte[] mac = new byte[16]; - System.arraycopy(output, 0, ciphertext, 0, plaintext.length); - System.arraycopy(output, plaintext.length, mac, 0, 16); - - // Return combined ciphertext + MAC as expected by the original interface - byte[] ret = new byte[ciphertext.length + 16]; - System.arraycopy(ciphertext, 0, ret, 0, ciphertext.length); - System.arraycopy(mac, 0, ret, ciphertext.length, 16); - return ret; - } catch (InvalidCipherTextException e) { - throw new IOException("Encryption failed", e); - } - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/crypto/EdsaSigner.java b/src/main/java/io/github/hapjava/server/impl/crypto/EdsaSigner.java deleted file mode 100644 index a1985d186..000000000 --- a/src/main/java/io/github/hapjava/server/impl/crypto/EdsaSigner.java +++ /dev/null @@ -1,40 +0,0 @@ -package io.github.hapjava.server.impl.crypto; - -import java.security.InvalidKeyException; -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; -import java.security.Signature; -import java.security.SignatureException; -import net.i2p.crypto.eddsa.EdDSAEngine; -import net.i2p.crypto.eddsa.EdDSAPrivateKey; -import net.i2p.crypto.eddsa.EdDSAPublicKey; -import net.i2p.crypto.eddsa.spec.EdDSANamedCurveTable; -import net.i2p.crypto.eddsa.spec.EdDSAParameterSpec; -import net.i2p.crypto.eddsa.spec.EdDSAPrivateKeySpec; -import net.i2p.crypto.eddsa.spec.EdDSAPublicKeySpec; - -public class EdsaSigner { - - private final EdDSAPublicKey publicKey; - private final EdDSAPrivateKey privateKey; - - public EdsaSigner(byte[] privateKeyBytes) { - EdDSAParameterSpec spec = EdDSANamedCurveTable.getByName("ed25519-sha-512"); - EdDSAPrivateKeySpec privateKeySpec = new EdDSAPrivateKeySpec(privateKeyBytes, spec); - EdDSAPublicKeySpec pubKeySpec = new EdDSAPublicKeySpec(privateKeySpec.getA(), spec); - publicKey = new EdDSAPublicKey(pubKeySpec); - privateKey = new EdDSAPrivateKey(privateKeySpec); - } - - public byte[] getPublicKey() { - return publicKey.getAbyte(); - } - - public byte[] sign(byte[] material) - throws NoSuchAlgorithmException, InvalidKeyException, SignatureException { - Signature sgr = new EdDSAEngine(MessageDigest.getInstance("SHA-512")); - sgr.initSign(privateKey); - sgr.update(material); - return sgr.sign(); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/crypto/EdsaVerifier.java b/src/main/java/io/github/hapjava/server/impl/crypto/EdsaVerifier.java deleted file mode 100644 index e5ca8e90a..000000000 --- a/src/main/java/io/github/hapjava/server/impl/crypto/EdsaVerifier.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.github.hapjava.server.impl.crypto; - -import java.security.MessageDigest; -import java.security.PublicKey; -import java.security.Signature; -import net.i2p.crypto.eddsa.EdDSAEngine; -import net.i2p.crypto.eddsa.EdDSAPublicKey; -import net.i2p.crypto.eddsa.spec.EdDSANamedCurveTable; -import net.i2p.crypto.eddsa.spec.EdDSAParameterSpec; -import net.i2p.crypto.eddsa.spec.EdDSAPublicKeySpec; - -public class EdsaVerifier { - - private final PublicKey publicKey; - - public EdsaVerifier(byte[] publicKey) { - EdDSAParameterSpec spec = EdDSANamedCurveTable.getByName("ed25519-sha-512"); - EdDSAPublicKeySpec pubKey = new EdDSAPublicKeySpec(publicKey, spec); - this.publicKey = new EdDSAPublicKey(pubKey); - } - - public boolean verify(byte[] data, byte[] signature) throws Exception { - Signature sgr = new EdDSAEngine(MessageDigest.getInstance("SHA-512")); - sgr.initVerify(publicKey); - sgr.update(data); - - return sgr.verify(signature); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/crypto/HAPSetupCodeUtils.java b/src/main/java/io/github/hapjava/server/impl/crypto/HAPSetupCodeUtils.java deleted file mode 100644 index ecf4d61de..000000000 --- a/src/main/java/io/github/hapjava/server/impl/crypto/HAPSetupCodeUtils.java +++ /dev/null @@ -1,68 +0,0 @@ -package io.github.hapjava.server.impl.crypto; - -import java.util.Base64; -import org.bouncycastle.crypto.Digest; -import org.bouncycastle.crypto.digests.SHA512Digest; - -public class HAPSetupCodeUtils { - private static final String ALPHA_NUMERIC_STRING = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; - - public static String randomAlphaNumeric(int count) { - StringBuilder builder = new StringBuilder(); - while (count-- != 0) { - int character = (int) (Math.random() * ALPHA_NUMERIC_STRING.length()); - builder.append(ALPHA_NUMERIC_STRING.charAt(character)); - } - return builder.toString(); - } - - public static String generateSetupId() { - return randomAlphaNumeric(4); - } - - private static byte[] calculateHash(final String input, final Digest digest) { - byte[] inputAsBytes = input.getBytes(); - byte[] retValue = new byte[digest.getDigestSize()]; - digest.update(inputAsBytes, 0, inputAsBytes.length); - digest.doFinal(retValue, 0); - return retValue; - } - - /** - * generate SHA52 Hash for given string. The hash is used for mDNS advertisement. - * - * @param value value - * @return hash - */ - public static String generateSHA512Hash(final String value) { - final byte[] hash = calculateHash(value.toUpperCase(), new SHA512Digest()); - final byte[] hashTuncate = new byte[4]; - System.arraycopy(hash, 0, hashTuncate, 0, 4); - String hashStr = Base64.getEncoder().encodeToString(hashTuncate); - return hashStr; - } - - /** - * generate Setup URI which can be used fo QR Code generation. - * - * @param pin PIN number without "-" - * @param setupId alphanumeric string of the length 4 - * @param category accessory category - * @return setup UID - */ - public static String getSetupURI(final String pin, final String setupId, final int category) { - long code = - 0 << 43 // Version - | 0 << 39 // Reserved - | ((long) category) << 31 // Category - | 0 << 29 // BLE support - | 1 << 28 // IP support - | 0 << 27 // Paired / NFC - | Integer.valueOf(pin); // PIN - String payload = Long.toString(code, 36) + setupId; - while (payload.length() < 13) { - payload = '0' + payload; - } - return "X-HM://" + payload.toUpperCase(); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/crypto/PolyKeyCreator.java b/src/main/java/io/github/hapjava/server/impl/crypto/PolyKeyCreator.java deleted file mode 100644 index ed66342c8..000000000 --- a/src/main/java/io/github/hapjava/server/impl/crypto/PolyKeyCreator.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.server.impl.crypto; - -import org.bouncycastle.crypto.macs.Poly1305; -import org.bouncycastle.crypto.params.KeyParameter; -import org.bouncycastle.util.Pack; - -class PolyKeyCreator { - - public static byte[] create(KeyParameter macKey, byte[] additionalData, byte[] ciphertext) { - Poly1305 poly = new Poly1305(); - poly.init(macKey); - - if (additionalData != null) { - poly.update(additionalData, 0, additionalData.length); - if (additionalData.length % 16 != 0) { - int round = 16 - (additionalData.length % 16); - poly.update(new byte[round], 0, round); - } - } - - poly.update(ciphertext, 0, ciphertext.length); - if (ciphertext.length % 16 != 0) { - int round = 16 - (ciphertext.length % 16); - poly.update(new byte[round], 0, round); - } - - // additional data length - byte[] additionalDataLength; - if (additionalData != null) { - additionalDataLength = Pack.longToLittleEndian(additionalData.length); - } else { - additionalDataLength = new byte[8]; - } - poly.update(additionalDataLength, 0, 8); - byte[] ciphertextLength = Pack.longToLittleEndian(ciphertext.length); - poly.update(ciphertextLength, 0, 8); - - byte[] calculatedMAC = new byte[poly.getMacSize()]; - poly.doFinal(calculatedMAC, 0); - return calculatedMAC; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/HomekitClientConnection.java b/src/main/java/io/github/hapjava/server/impl/http/HomekitClientConnection.java deleted file mode 100644 index 2648808bb..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/HomekitClientConnection.java +++ /dev/null @@ -1,20 +0,0 @@ -package io.github.hapjava.server.impl.http; - -import java.io.IOException; - -public interface HomekitClientConnection { - - HttpResponse handleRequest(HttpRequest request) throws IOException; - - byte[] decryptRequest(byte[] ciphertext); - - byte[] encryptResponse(byte[] plaintext) throws IOException; - - void close(); - - void outOfBand(HttpResponse message); - - default String getUsername() { - return null; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/HomekitClientConnectionFactory.java b/src/main/java/io/github/hapjava/server/impl/http/HomekitClientConnectionFactory.java deleted file mode 100644 index 18c814306..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/HomekitClientConnectionFactory.java +++ /dev/null @@ -1,8 +0,0 @@ -package io.github.hapjava.server.impl.http; - -import java.util.function.Consumer; - -public interface HomekitClientConnectionFactory { - - HomekitClientConnection createConnection(Consumer outOfBandMessageCallback); -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/HttpMethod.java b/src/main/java/io/github/hapjava/server/impl/http/HttpMethod.java deleted file mode 100644 index f4844b667..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/HttpMethod.java +++ /dev/null @@ -1,7 +0,0 @@ -package io.github.hapjava.server.impl.http; - -public enum HttpMethod { - GET, - POST, - PUT -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/HttpRequest.java b/src/main/java/io/github/hapjava/server/impl/http/HttpRequest.java deleted file mode 100644 index 9921af341..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/HttpRequest.java +++ /dev/null @@ -1,10 +0,0 @@ -package io.github.hapjava.server.impl.http; - -public interface HttpRequest { - - String getUri(); - - byte[] getBody(); - - HttpMethod getMethod(); -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/HttpResponse.java b/src/main/java/io/github/hapjava/server/impl/http/HttpResponse.java deleted file mode 100644 index 4871dba99..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/HttpResponse.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.server.impl.http; - -import java.nio.ByteBuffer; -import java.util.Collections; -import java.util.Map; - -public interface HttpResponse { - - int getStatusCode(); - - default ByteBuffer getBody() { - return ByteBuffer.allocate(0); - } - - default HttpVersion getVersion() { - return HttpVersion.HTTP_1_1; - } - - default Map getHeaders() { - return Collections.emptyMap(); - } - - default boolean doUpgrade() { - return false; - } - - public enum HttpVersion { - HTTP_1_1, - EVENT_1_0 - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/impl/AccessoryHandler.java b/src/main/java/io/github/hapjava/server/impl/http/impl/AccessoryHandler.java deleted file mode 100644 index 6b840c713..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/impl/AccessoryHandler.java +++ /dev/null @@ -1,104 +0,0 @@ -package io.github.hapjava.server.impl.http.impl; - -import io.github.hapjava.server.impl.http.HomekitClientConnection; -import io.github.hapjava.server.impl.http.HomekitClientConnectionFactory; -import io.github.hapjava.server.impl.http.HttpResponse; -import io.netty.buffer.Unpooled; -import io.netty.channel.Channel; -import io.netty.channel.ChannelHandlerContext; -import io.netty.channel.ChannelPipeline; -import io.netty.channel.SimpleChannelInboundHandler; -import io.netty.handler.codec.http.*; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -class AccessoryHandler extends SimpleChannelInboundHandler { - - private static final Logger LOGGER = LoggerFactory.getLogger(AccessoryHandler.class); - - private HomekitClientConnection connection; - private final HomekitClientConnectionFactory homekitClientConnectionFactory; - - public AccessoryHandler(HomekitClientConnectionFactory homekitClientConnectionFactory) { - this.homekitClientConnectionFactory = homekitClientConnectionFactory; - } - - @Override - public void channelActive(ChannelHandlerContext ctx) throws Exception { - final Channel channel = ctx.pipeline().channel(); - this.connection = - homekitClientConnectionFactory.createConnection( - response -> { - if (!channel.isActive()) { - return; - } - channel.writeAndFlush(NettyResponseUtil.createResponse(response)); - }); - LOGGER.trace("New HomeKit connection from " + ctx.channel().remoteAddress().toString()); - super.channelActive(ctx); - } - - @Override - public void channelInactive(ChannelHandlerContext ctx) throws Exception { - LOGGER.trace("Terminated HomeKit connection from " + ctx.channel().remoteAddress().toString()); - super.channelInactive(ctx); - } - - @Override - public void channelRead0(ChannelHandlerContext ctx, FullHttpRequest req) throws Exception { - try { - HttpResponse response = connection.handleRequest(new FullRequestHttpRequestImpl(req)); - if (response.doUpgrade()) { - ChannelPipeline pipeline = ctx.channel().pipeline(); - pipeline.addBefore( - ServerInitializer.HTTP_HANDLER_NAME, "binary", new BinaryHandler(connection)); - } - sendResponse(response, ctx); - } catch (Exception e) { - LOGGER.warn("Error handling homekit http request", e); - sendResponse(HttpResponseStatus.INTERNAL_SERVER_ERROR, "Error: " + e.getMessage(), ctx); - } - } - - private void sendResponse( - HttpResponseStatus status, String responseBody, ChannelHandlerContext ctx) { - if (responseBody == null) { - responseBody = ""; - } - FullHttpResponse response = - new DefaultFullHttpResponse( - HttpVersion.HTTP_1_1, - status, - Unpooled.copiedBuffer(responseBody.getBytes(StandardCharsets.UTF_8))); - response.headers().set(HttpHeaderNames.CONTENT_TYPE, "text/plain"); - response.headers().set(HttpHeaderNames.CONTENT_LENGTH, response.content().readableBytes()); - response.headers().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.KEEP_ALIVE); - ctx.write(response); - ctx.flush(); - } - - private void sendResponse(HttpResponse homekitResponse, ChannelHandlerContext ctx) { - FullHttpResponse response = NettyResponseUtil.createResponse(homekitResponse); - ctx.write(response); - ctx.flush(); - } - - @Override - public void channelReadComplete(ChannelHandlerContext ctx) throws Exception { - ctx.flush(); - super.channelReadComplete(ctx); - } - - @Override - public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { - boolean errorLevel = !(cause instanceof IOException); - if (errorLevel) { - LOGGER.warn("Exception caught in web handler", cause); - } else { - LOGGER.debug("Exception caught in web handler", cause); - } - ctx.close(); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/impl/BinaryHandler.java b/src/main/java/io/github/hapjava/server/impl/http/impl/BinaryHandler.java deleted file mode 100644 index 4f4c80788..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/impl/BinaryHandler.java +++ /dev/null @@ -1,67 +0,0 @@ -package io.github.hapjava.server.impl.http.impl; - -import io.github.hapjava.server.impl.http.HomekitClientConnection; -import io.netty.buffer.ByteBuf; -import io.netty.buffer.Unpooled; -import io.netty.channel.ChannelHandlerContext; -import io.netty.handler.codec.ByteToMessageCodec; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.List; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class BinaryHandler extends ByteToMessageCodec { - - private static final Logger logger = LoggerFactory.getLogger(BinaryHandler.class); - - private final HomekitClientConnection connection; - private boolean started = false; - - public BinaryHandler(HomekitClientConnection connection) { - this.connection = connection; - } - - @Override - protected void encode(ChannelHandlerContext ctx, ByteBuf msg, ByteBuf out) throws Exception { - if (started) { - debugData("Sending data", msg, ctx); - byte[] b = new byte[msg.readableBytes()]; - msg.readBytes(b); - out.writeBytes(connection.encryptResponse(b)); - } else { - out.writeBytes(msg); - } - } - - @Override - protected void decode(ChannelHandlerContext ctx, ByteBuf in, List out) throws Exception { - byte[] b = new byte[in.readableBytes()]; - in.readBytes(b); - byte[] decrypted = connection.decryptRequest(b); - ByteBuf outBuf = Unpooled.copiedBuffer(decrypted); - debugData("Received data", outBuf, ctx); - out.add(outBuf); - started = true; - } - - @Override - public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { - boolean errorLevel = !(cause instanceof IOException); - if (errorLevel) { - logger.warn("Exception in binary handler", cause); - } else { - logger.debug("Exception in binary handler", cause); - } - super.exceptionCaught(ctx, cause); - } - - private void debugData(String msg, ByteBuf b, ChannelHandlerContext ctx) throws Exception { - if (logger.isDebugEnabled()) { - logger.debug( - String.format( - "%s [%s]:%n%s", - msg, ctx.channel().remoteAddress().toString(), b.toString(StandardCharsets.UTF_8))); - } - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/impl/DefaultHttpRequestImpl.java b/src/main/java/io/github/hapjava/server/impl/http/impl/DefaultHttpRequestImpl.java deleted file mode 100644 index a124705f1..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/impl/DefaultHttpRequestImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.github.hapjava.server.impl.http.impl; - -import io.github.hapjava.server.impl.http.HttpMethod; -import io.github.hapjava.server.impl.http.HttpRequest; - -class DefaultHttpRequestImpl implements HttpRequest { - - private final io.netty.handler.codec.http.HttpRequest request; - - public DefaultHttpRequestImpl(io.netty.handler.codec.http.HttpRequest request) { - this.request = request; - } - - @Override - public String getUri() { - return request.uri(); - } - - @Override - public byte[] getBody() { - return new byte[0]; - } - - @Override - public HttpMethod getMethod() { - io.netty.handler.codec.http.HttpMethod method = request.method(); - if (method.equals(io.netty.handler.codec.http.HttpMethod.GET)) { - return HttpMethod.GET; - } else if (method.equals(io.netty.handler.codec.http.HttpMethod.POST)) { - return HttpMethod.POST; - } else if (method.equals(io.netty.handler.codec.http.HttpMethod.PUT)) { - return HttpMethod.PUT; - } else { - throw new RuntimeException("Unrecognized method: " + method.toString()); - } - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/impl/FullRequestHttpRequestImpl.java b/src/main/java/io/github/hapjava/server/impl/http/impl/FullRequestHttpRequestImpl.java deleted file mode 100644 index 088ec9832..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/impl/FullRequestHttpRequestImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package io.github.hapjava.server.impl.http.impl; - -import io.netty.handler.codec.http.FullHttpRequest; - -class FullRequestHttpRequestImpl extends DefaultHttpRequestImpl { - - private final FullHttpRequest nettyRequest; - - public FullRequestHttpRequestImpl(FullHttpRequest nettyRequest) { - super(nettyRequest); - this.nettyRequest = nettyRequest; - } - - @Override - public byte[] getBody() { - byte[] ret = new byte[nettyRequest.content().readableBytes()]; - nettyRequest.content().readBytes(ret); - return ret; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/impl/HomekitHttpServer.java b/src/main/java/io/github/hapjava/server/impl/http/impl/HomekitHttpServer.java deleted file mode 100644 index 085d632cf..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/impl/HomekitHttpServer.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.server.impl.http.impl; - -import io.github.hapjava.server.HomekitWebHandler; -import io.github.hapjava.server.impl.http.HomekitClientConnectionFactory; -import java.net.InetAddress; -import java.util.concurrent.CompletableFuture; - -public class HomekitHttpServer implements HomekitWebHandler { - - private NettyHomekitHttpService service = null; - private final InetAddress localAddress; - private final int port; - private final int nThreads; - - @Override - public void stop() { - if (this.service != null) { - this.service.shutdown(); - } - } - - public HomekitHttpServer(InetAddress localAddress, int port, int nThreads) { - this.localAddress = localAddress; - this.port = port; - this.nThreads = nThreads; - } - - @Override - public CompletableFuture start(HomekitClientConnectionFactory clientConnectionFactory) { - if (service == null) { - this.service = NettyHomekitHttpService.create(localAddress, port, nThreads); - return this.service.create(clientConnectionFactory); - } else { - throw new RuntimeException("HomekitHttpServer can only be started once"); - } - } - - @Override - public void resetConnections() { - service.resetConnections(); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/impl/HttpResponseEncoderAggregate.java b/src/main/java/io/github/hapjava/server/impl/http/impl/HttpResponseEncoderAggregate.java deleted file mode 100644 index 96aee2fe7..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/impl/HttpResponseEncoderAggregate.java +++ /dev/null @@ -1,23 +0,0 @@ -package io.github.hapjava.server.impl.http.impl; - -import io.netty.buffer.ByteBuf; -import io.netty.channel.ChannelHandlerContext; -import io.netty.handler.codec.http.HttpResponseEncoder; -import java.util.Iterator; -import java.util.List; - -public class HttpResponseEncoderAggregate extends HttpResponseEncoder { - - @Override - protected void encode(ChannelHandlerContext ctx, Object msg, List out) throws Exception { - super.encode(ctx, msg, out); - if (out.size() > 0) { - Iterator i = out.iterator(); - ByteBuf b = (ByteBuf) i.next(); - while (i.hasNext()) { - b.writeBytes((ByteBuf) i.next()); - i.remove(); - } - } - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/impl/LoggingHandler.java b/src/main/java/io/github/hapjava/server/impl/http/impl/LoggingHandler.java deleted file mode 100644 index 5b271dc24..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/impl/LoggingHandler.java +++ /dev/null @@ -1,56 +0,0 @@ -package io.github.hapjava.server.impl.http.impl; - -import io.netty.buffer.ByteBuf; -import io.netty.channel.*; -import java.io.IOException; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class LoggingHandler extends ChannelDuplexHandler { - - private static final Logger logger = LoggerFactory.getLogger(LoggingHandler.class); - private static final char[] HEX_ARRAY = "0123456789ABCDEF".toCharArray(); - - @Override - public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { - if (logger.isTraceEnabled() && msg instanceof ByteBuf) { - logBytes("READ", (ByteBuf) msg, ctx); - } - super.channelRead(ctx, msg); - } - - @Override - public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) - throws Exception { - if (logger.isTraceEnabled() && msg instanceof ByteBuf) { - logBytes("WRITE", (ByteBuf) msg, ctx); - } - super.write(ctx, msg, promise); - } - - private void logBytes(String type, ByteBuf buf, ChannelHandlerContext ctx) throws IOException { - if (buf.readableBytes() > 0) { - byte[] bytes = new byte[buf.readableBytes()]; - buf.getBytes(0, bytes, 0, bytes.length); - logger.trace( - String.format( - "%s %s [%s]:%n%s%n", - type, buf, ctx.channel().remoteAddress().toString(), bytesToHex(bytes))); - } - } - - /* - This method is licensed under CC-BY-SA and published on Stackoverflow - https://stackoverflow.com/questions/9655181/how-to-convert-a-byte-array-to-a-hex-string-in-java - from the answer by Melquiades https://stackoverflow.com/users/2964945/melquiades - */ - private String bytesToHex(byte[] bytes) { - char[] hexChars = new char[bytes.length * 2]; - for (int j = 0; j < bytes.length; j++) { - int v = bytes[j] & 0xFF; - hexChars[j * 2] = HEX_ARRAY[v >>> 4]; - hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F]; - } - return new String(hexChars); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/impl/NettyHomekitHttpService.java b/src/main/java/io/github/hapjava/server/impl/http/impl/NettyHomekitHttpService.java deleted file mode 100644 index aad5d5a13..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/impl/NettyHomekitHttpService.java +++ /dev/null @@ -1,85 +0,0 @@ -package io.github.hapjava.server.impl.http.impl; - -import io.github.hapjava.server.impl.http.HomekitClientConnectionFactory; -import io.netty.bootstrap.ServerBootstrap; -import io.netty.channel.*; -import io.netty.channel.group.ChannelGroup; -import io.netty.channel.group.DefaultChannelGroup; -import io.netty.channel.nio.NioEventLoopGroup; -import io.netty.channel.socket.nio.NioServerSocketChannel; -import io.netty.handler.logging.LogLevel; -import io.netty.handler.logging.LoggingHandler; -import io.netty.util.concurrent.*; -import java.net.InetAddress; -import java.net.InetSocketAddress; -import java.net.SocketAddress; -import java.util.concurrent.CompletableFuture; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -class NettyHomekitHttpService { - - private final EventLoopGroup bossGroup; - private final EventLoopGroup workerGroup; - - private static final Logger logger = LoggerFactory.getLogger(NettyHomekitHttpService.class); - private final ChannelGroup allChannels = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE); - private final InetAddress localAddress; - private final int port; - private final int nThreads; - - public static NettyHomekitHttpService create(InetAddress localAddress, int port, int nThreads) { - return new NettyHomekitHttpService(localAddress, port, nThreads); - } - - private NettyHomekitHttpService(InetAddress localAddress, int port, int nThreads) { - bossGroup = new NioEventLoopGroup(); - workerGroup = new NioEventLoopGroup(); - this.localAddress = localAddress; - this.port = port; - this.nThreads = nThreads; - } - - public CompletableFuture create(HomekitClientConnectionFactory connectionFactory) { - final CompletableFuture portFuture = new CompletableFuture(); - ServerBootstrap b = new ServerBootstrap(); - b.group(bossGroup, workerGroup) - .channel(NioServerSocketChannel.class) - .handler(new LoggingHandler(LogLevel.INFO)) - .childHandler(new ServerInitializer(connectionFactory, allChannels, nThreads)) - .option(ChannelOption.SO_BACKLOG, 128) - .childOption(ChannelOption.SO_KEEPALIVE, true); - final ChannelFuture bindFuture = b.bind(localAddress, port); - bindFuture.addListener( - new GenericFutureListener>() { - - @Override - public void operationComplete(Future future) throws Exception { - try { - future.get(); - SocketAddress socketAddress = bindFuture.channel().localAddress(); - if (socketAddress instanceof InetSocketAddress) { - logger.trace("Bound homekit listener to " + socketAddress.toString()); - portFuture.complete(((InetSocketAddress) socketAddress).getPort()); - } else { - throw new RuntimeException( - "Unknown socket address type: " + socketAddress.getClass().getName()); - } - } catch (Exception e) { - portFuture.completeExceptionally(e); - } - } - }); - return portFuture; - } - - public void shutdown() { - workerGroup.shutdownGracefully(); - bossGroup.shutdownGracefully(); - } - - public void resetConnections() { - logger.trace("Resetting connections"); - allChannels.close(); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/impl/NettyResponseUtil.java b/src/main/java/io/github/hapjava/server/impl/http/impl/NettyResponseUtil.java deleted file mode 100644 index 9e7963fb3..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/impl/NettyResponseUtil.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.github.hapjava.server.impl.http.impl; - -import io.github.hapjava.server.impl.http.HttpResponse; -import io.netty.buffer.Unpooled; -import io.netty.handler.codec.http.DefaultFullHttpResponse; -import io.netty.handler.codec.http.FullHttpResponse; -import io.netty.handler.codec.http.HttpHeaderNames; -import io.netty.handler.codec.http.HttpHeaderValues; -import io.netty.handler.codec.http.HttpResponseStatus; -import io.netty.handler.codec.http.HttpVersion; -import java.util.Map.Entry; - -class NettyResponseUtil { - - private static final HttpVersion EVENT_VERSION = new HttpVersion("EVENT", 1, 0, true); - - public static FullHttpResponse createResponse(HttpResponse homekitResponse) { - - FullHttpResponse response = - new DefaultFullHttpResponse( - homekitResponse.getVersion() == HttpResponse.HttpVersion.EVENT_1_0 - ? EVENT_VERSION - : HttpVersion.HTTP_1_1, - HttpResponseStatus.valueOf(homekitResponse.getStatusCode()), - Unpooled.copiedBuffer(homekitResponse.getBody())); - for (Entry header : homekitResponse.getHeaders().entrySet()) { - response.headers().add(header.getKey(), header.getValue()); - } - response.headers().set(HttpHeaderNames.CONTENT_LENGTH, response.content().readableBytes()); - response.headers().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.KEEP_ALIVE); - return response; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/http/impl/ServerInitializer.java b/src/main/java/io/github/hapjava/server/impl/http/impl/ServerInitializer.java deleted file mode 100644 index 3c914ffe7..000000000 --- a/src/main/java/io/github/hapjava/server/impl/http/impl/ServerInitializer.java +++ /dev/null @@ -1,40 +0,0 @@ -package io.github.hapjava.server.impl.http.impl; - -import io.github.hapjava.server.impl.http.HomekitClientConnectionFactory; -import io.netty.channel.ChannelInitializer; -import io.netty.channel.ChannelPipeline; -import io.netty.channel.group.ChannelGroup; -import io.netty.channel.socket.SocketChannel; -import io.netty.handler.codec.http.HttpObjectAggregator; -import io.netty.handler.codec.http.HttpRequestDecoder; -import io.netty.util.concurrent.DefaultEventExecutorGroup; -import io.netty.util.concurrent.EventExecutorGroup; - -class ServerInitializer extends ChannelInitializer { - - private static final int MAX_POST = 1000000; - - public static final String HTTP_HANDLER_NAME = "http"; - - private final HomekitClientConnectionFactory homekit; - private final ChannelGroup allChannels; - private final EventExecutorGroup blockingExecutorGroup; - - public ServerInitializer( - HomekitClientConnectionFactory homekit, ChannelGroup allChannels, int nThreads) { - this.homekit = homekit; - this.allChannels = allChannels; - this.blockingExecutorGroup = new DefaultEventExecutorGroup(nThreads); - } - - @Override - protected void initChannel(SocketChannel ch) throws Exception { - ChannelPipeline pipeline = ch.pipeline(); - pipeline.addLast(new LoggingHandler()); - pipeline.addLast(HTTP_HANDLER_NAME, new HttpResponseEncoderAggregate()); - pipeline.addLast(new HttpRequestDecoder()); - pipeline.addLast(new HttpObjectAggregator(MAX_POST)); - pipeline.addLast(blockingExecutorGroup, new AccessoryHandler(homekit)); - allChannels.add(ch); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/jmdns/JmdnsHomekitAdvertiser.java b/src/main/java/io/github/hapjava/server/impl/jmdns/JmdnsHomekitAdvertiser.java deleted file mode 100644 index 1073f9b86..000000000 --- a/src/main/java/io/github/hapjava/server/impl/jmdns/JmdnsHomekitAdvertiser.java +++ /dev/null @@ -1,158 +0,0 @@ -package io.github.hapjava.server.impl.jmdns; - -import static io.github.hapjava.server.impl.crypto.HAPSetupCodeUtils.generateSHA512Hash; - -import java.io.IOException; -import java.net.InetAddress; -import java.net.UnknownHostException; -import java.util.HashMap; -import java.util.Map; -import javax.jmdns.JmDNS; -import javax.jmdns.ServiceInfo; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class JmdnsHomekitAdvertiser { - - private static final String SERVICE_TYPE = "_hap._tcp.local."; - - private final JmDNS jmdns; - private final boolean ownsJmdns; - private Thread shutdownHook; - private boolean discoverable = true; - private static final Logger logger = LoggerFactory.getLogger(JmdnsHomekitAdvertiser.class); - private boolean isAdvertising = false; - - private String label; - private String mac; - private String setupId; - private int port; - private int configurationIndex; - private ServiceInfo serviceInfo; - private int category; - - public JmdnsHomekitAdvertiser(JmDNS jmdns) { - this(jmdns, false); - } - - public JmdnsHomekitAdvertiser(InetAddress localAddress) throws UnknownHostException, IOException { - this(JmDNS.create(localAddress), true); - } - - JmdnsHomekitAdvertiser(JmDNS jmdns, boolean ownsJmdns) { - this.jmdns = jmdns; - this.ownsJmdns = ownsJmdns; - } - - public synchronized void advertise( - String label, int category, String mac, int port, int configurationIndex, String setupId) - throws Exception { - if (isAdvertising) { - throw new IllegalStateException("HomeKit advertiser is already running"); - } - this.label = label; - this.mac = mac; - this.port = port; - this.setupId = setupId; - this.category = category; - this.configurationIndex = configurationIndex; - - logger.trace("Advertising accessory " + label); - - registerService(); - - shutdownHook = - new Thread( - () -> { - logger.trace("Stopping advertising in response to shutdown."); - jmdns.unregisterAllServices(); - }); - Runtime.getRuntime().addShutdownHook(shutdownHook); - isAdvertising = true; - } - - public synchronized void stop() { - unregisterService(); - isAdvertising = false; - if (shutdownHook != null) { - try { - Runtime.getRuntime().removeShutdownHook(shutdownHook); - } catch (IllegalStateException e) { - // already shutting down - } - } - if (ownsJmdns) { - try { - jmdns.close(); - } catch (IOException e) { - logger.warn("Failed to close mDNS", e); - } - } - } - - public synchronized void setDiscoverable(boolean discoverable) throws IOException { - if (this.discoverable != discoverable) { - this.discoverable = discoverable; - if (isAdvertising) { - logger.trace("Re-creating service due to change in discoverability to " + discoverable); - unregisterService(); - registerService(); - } - } - } - - public synchronized void setMac(String mac) throws IOException { - if (this.mac != mac) { - this.mac = mac; - if (isAdvertising) { - logger.trace("Re-creating service due to change in mac to " + mac); - unregisterService(); - registerService(); - } - } - } - - public synchronized void setConfigurationIndex(int revision) throws IOException { - if (this.configurationIndex != revision) { - this.configurationIndex = revision; - if (isAdvertising) { - logger.trace("Re-creating service due to change in configuration index to " + revision); - unregisterService(); - registerService(); - } - } - } - - private void unregisterService() { - if (serviceInfo != null) { - jmdns.unregisterService(serviceInfo); - serviceInfo = null; - } - } - - private void registerService() throws IOException { - logger.info("Registering " + SERVICE_TYPE + " on port " + port); - if (this.serviceInfo != null) { - throw new AssertionError( - "Registering an already registered service without unregistering first is not allowed"); - } - serviceInfo = buildServiceInfo(); - jmdns.registerService(serviceInfo); - } - - private ServiceInfo buildServiceInfo() { - logger.trace("MAC:" + mac + " Setup Id:" + setupId); - Map props = new HashMap<>(); - props.put("sf", discoverable ? "1" : "0"); - props.put("id", mac); - props.put("md", label); - props.put("sh", generateSHA512Hash(setupId + mac)); - props.put("c#", Integer.toString(configurationIndex)); - props.put("s#", "1"); - props.put("ff", "0"); - props.put("ci", Integer.toString(category)); - props.put("pv", "1.1"); - - return ServiceInfo.create(SERVICE_TYPE, label, port, 1, 1, props); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/json/AccessoryController.java b/src/main/java/io/github/hapjava/server/impl/json/AccessoryController.java deleted file mode 100644 index fdd223ec3..000000000 --- a/src/main/java/io/github/hapjava/server/impl/json/AccessoryController.java +++ /dev/null @@ -1,114 +0,0 @@ -package io.github.hapjava.server.impl.json; - -import io.github.hapjava.accessories.HomekitAccessory; -import io.github.hapjava.characteristics.Characteristic; -import io.github.hapjava.server.impl.HomekitRegistry; -import io.github.hapjava.server.impl.http.HttpResponse; -import io.github.hapjava.services.Service; -import java.io.ByteArrayOutputStream; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.concurrent.CompletableFuture; -import java.util.stream.Collectors; -import javax.json.Json; -import javax.json.JsonArrayBuilder; -import javax.json.JsonObject; -import javax.json.JsonObjectBuilder; -import javax.json.JsonWriter; - -public class AccessoryController { - - private final HomekitRegistry registry; - - public AccessoryController(HomekitRegistry registry) { - this.registry = registry; - } - - public HttpResponse listing() throws Exception { - JsonArrayBuilder accessories = Json.createArrayBuilder(); - - Map>> accessoryServiceFutures = new HashMap<>(); - for (HomekitAccessory accessory : registry.getAccessories()) { - List> serviceFutures = new ArrayList<>(); - - Map servicesByInterfaceId = registry.getServices(accessory.getId()); - - Map iidLookup = new HashMap<>(); - iidLookup.putAll(swapKeyAndValue(servicesByInterfaceId)); - iidLookup.putAll(swapKeyAndValue(registry.getCharacteristics(accessory.getId()))); - - for (Service service : servicesByInterfaceId.values()) { - serviceFutures.add(toJson(service, iidLookup, accessory.getPrimaryService() == service)); - } - - accessoryServiceFutures.put(accessory.getId(), serviceFutures); - } - - Map serviceArrayBuilders = new HashMap<>(); - for (Entry>> entry : - accessoryServiceFutures.entrySet()) { - JsonArrayBuilder arr = Json.createArrayBuilder(); - for (CompletableFuture future : entry.getValue()) { - arr.add(future.join()); - } - serviceArrayBuilders.put(entry.getKey(), arr); - } - - for (HomekitAccessory accessory : registry.getAccessories()) { - accessories.add( - Json.createObjectBuilder() - .add("aid", accessory.getId()) - .add("services", serviceArrayBuilders.get(accessory.getId()))); - } - - try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); - JsonWriter jsonWriter = Json.createWriter(baos)) { - jsonWriter.write(Json.createObjectBuilder().add("accessories", accessories).build()); - return new HapJsonResponse(baos.toByteArray()); - } - } - - private CompletableFuture toJson( - Service service, Map iidLookup, boolean isPrimary) throws Exception { - String shortType = - service.getType().replaceAll("^0*([0-9a-fA-F]+)-0000-1000-8000-0026BB765291$", "$1"); - JsonObjectBuilder builder = - Json.createObjectBuilder().add("iid", iidLookup.get(service)).add("type", shortType); - List characteristics = service.getCharacteristics(); - Collection> characteristicFutures = - new ArrayList<>(characteristics.size()); - for (Characteristic characteristic : characteristics) { - Integer iid = iidLookup.get(characteristic); - characteristicFutures.add(characteristic.toJson(iid)); - } - - return CompletableFuture.allOf( - characteristicFutures.toArray(new CompletableFuture[characteristicFutures.size()])) - .thenApply( - v -> { - JsonArrayBuilder jsonCharacteristics = Json.createArrayBuilder(); - characteristicFutures.stream() - .map(future -> future.join()) - .forEach(c -> jsonCharacteristics.add(c)); - builder.add("characteristics", jsonCharacteristics); - - if (!service.getLinkedServices().isEmpty()) { - JsonArrayBuilder jsonLinkedServices = Json.createArrayBuilder(); - service.getLinkedServices().stream() - .map(iidLookup::get) - .forEach(jsonLinkedServices::add); - builder.add("linked", jsonLinkedServices); - } - builder.add("primary", isPrimary); - return builder.build(); - }); - } - - private Map swapKeyAndValue(Map map) { - return map.entrySet().stream().collect(Collectors.toMap(Entry::getValue, Entry::getKey)); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/json/CharacteristicsController.java b/src/main/java/io/github/hapjava/server/impl/json/CharacteristicsController.java deleted file mode 100644 index f5f8bb87c..000000000 --- a/src/main/java/io/github/hapjava/server/impl/json/CharacteristicsController.java +++ /dev/null @@ -1,111 +0,0 @@ -package io.github.hapjava.server.impl.json; - -import io.github.hapjava.characteristics.Characteristic; -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.server.impl.HomekitRegistry; -import io.github.hapjava.server.impl.connections.SubscriptionManager; -import io.github.hapjava.server.impl.http.HomekitClientConnection; -import io.github.hapjava.server.impl.http.HttpRequest; -import io.github.hapjava.server.impl.http.HttpResponse; -import io.github.hapjava.server.impl.responses.NotFoundResponse; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.util.Map; -import javax.json.*; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class CharacteristicsController { - - Logger logger = LoggerFactory.getLogger(CharacteristicsController.class); - - private final HomekitRegistry registry; - private final SubscriptionManager subscriptions; - - public CharacteristicsController(HomekitRegistry registry, SubscriptionManager subscriptions) { - this.registry = registry; - this.subscriptions = subscriptions; - } - - public HttpResponse get(HttpRequest request) throws Exception { - String uri = request.getUri(); - // Characteristics are requested with /characteristics?id=1.1,2.1,3.1 - String query = uri.substring("/characteristics?id=".length()); - String[] ids = query.split(","); - JsonArrayBuilder characteristics = Json.createArrayBuilder(); - for (String id : ids) { - String[] parts = id.split("\\."); - if (parts.length != 2) { - logger.warn("Unexpected characteristics request: " + uri); - return new NotFoundResponse(); - } - int aid = Integer.parseInt(parts[0]); - int iid = Integer.parseInt(parts[1]); - JsonObjectBuilder characteristic = Json.createObjectBuilder(); - Map characteristicMap = registry.getCharacteristics(aid); - if (!characteristicMap.isEmpty()) { - Characteristic targetCharacteristic = characteristicMap.get(iid); - if (targetCharacteristic != null) { - targetCharacteristic.supplyValue(characteristic); - - characteristics.add(characteristic.add("aid", aid).add("iid", iid).build()); - } else { - logger.warn( - "Accessory " + aid + " does not have characteristic " + iid + ". Request: " + uri); - } - } else { - logger.warn( - "Accessory " + aid + " has no characteristics or does not exist. Request: " + uri); - } - } - try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); - JsonWriter jsonWriter = Json.createWriter(baos)) { - jsonWriter.write( - Json.createObjectBuilder().add("characteristics", characteristics.build()).build()); - return new HapJsonResponse(baos.toByteArray()); - } - } - - public HttpResponse put(HttpRequest request, HomekitClientConnection connection) - throws Exception { - subscriptions.batchUpdate(); - try { - try (ByteArrayInputStream bais = new ByteArrayInputStream(request.getBody())) { - JsonArray jsonCharacteristics = - Json.createReader(bais).readObject().getJsonArray("characteristics"); - for (JsonValue value : jsonCharacteristics) { - JsonObject jsonCharacteristic = (JsonObject) value; - int aid = jsonCharacteristic.getInt("aid"); - int iid = jsonCharacteristic.getInt("iid"); - Map accessory = registry.getCharacteristics(aid); - if (accessory.isEmpty()) { - logger.warn("Accessory {} has no characteristics or does not exist.", aid); - return new HapJsonNoContentResponse(); - } - Characteristic characteristic = accessory.get(iid); - if (characteristic == null) { - logger.warn("Accessory {} does not have characteristic {}.", aid, iid); - return new HapJsonNoContentResponse(); - } - - if (jsonCharacteristic.containsKey("value")) { - characteristic.setValue(jsonCharacteristic.get("value"), connection.getUsername()); - } - if (jsonCharacteristic.containsKey("ev") - && characteristic instanceof EventableCharacteristic) { - if (jsonCharacteristic.getBoolean("ev")) { - subscriptions.addSubscription( - aid, iid, (EventableCharacteristic) characteristic, connection); - } else { - subscriptions.removeSubscription( - (EventableCharacteristic) characteristic, connection); - } - } - } - } - } finally { - subscriptions.completeUpdateBatch(); - } - return new HapJsonNoContentResponse(); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/json/EventController.java b/src/main/java/io/github/hapjava/server/impl/json/EventController.java deleted file mode 100644 index 0c7c2bc7c..000000000 --- a/src/main/java/io/github/hapjava/server/impl/json/EventController.java +++ /dev/null @@ -1,57 +0,0 @@ -package io.github.hapjava.server.impl.json; - -import io.github.hapjava.characteristics.EventableCharacteristic; -import io.github.hapjava.server.impl.connections.PendingNotification; -import io.github.hapjava.server.impl.http.HttpResponse; -import java.io.ByteArrayOutputStream; -import java.util.List; -import javax.json.Json; -import javax.json.JsonArrayBuilder; -import javax.json.JsonObject; -import javax.json.JsonObjectBuilder; -import javax.json.JsonWriter; - -public class EventController { - - public HttpResponse getMessage(int accessoryId, int iid, EventableCharacteristic changed) - throws Exception { - JsonArrayBuilder characteristics = Json.createArrayBuilder(); - - JsonObjectBuilder characteristicBuilder = Json.createObjectBuilder(); - characteristicBuilder.add("aid", accessoryId); - characteristicBuilder.add("iid", iid); - changed.supplyValue(characteristicBuilder); - characteristics.add(characteristicBuilder.build()); - - JsonObject data = Json.createObjectBuilder().add("characteristics", characteristics).build(); - - try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); - JsonWriter jsonWriter = Json.createWriter(baos)) { - jsonWriter.write(data); - byte[] dataBytes = baos.toByteArray(); - - return new EventResponse(dataBytes); - } - } - - public HttpResponse getMessage(List notifications) throws Exception { - JsonArrayBuilder characteristics = Json.createArrayBuilder(); - - for (PendingNotification notification : notifications) { - JsonObjectBuilder characteristicBuilder = Json.createObjectBuilder(); - characteristicBuilder.add("aid", notification.aid); - characteristicBuilder.add("iid", notification.iid); - notification.characteristic.supplyValue(characteristicBuilder); - characteristics.add(characteristicBuilder.build()); - } - - JsonObject data = Json.createObjectBuilder().add("characteristics", characteristics).build(); - try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); - JsonWriter jsonWriter = Json.createWriter(baos)) { - jsonWriter.write(data); - byte[] dataBytes = baos.toByteArray(); - - return new EventResponse(dataBytes); - } - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/json/EventResponse.java b/src/main/java/io/github/hapjava/server/impl/json/EventResponse.java deleted file mode 100644 index 113582c5b..000000000 --- a/src/main/java/io/github/hapjava/server/impl/json/EventResponse.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.github.hapjava.server.impl.json; - -public class EventResponse extends HapJsonResponse { - - public EventResponse(byte[] body) { - super(body); - } - - @Override - public HttpVersion getVersion() { - return HttpVersion.EVENT_1_0; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/json/HapJsonNoContentResponse.java b/src/main/java/io/github/hapjava/server/impl/json/HapJsonNoContentResponse.java deleted file mode 100644 index be01ebbe3..000000000 --- a/src/main/java/io/github/hapjava/server/impl/json/HapJsonNoContentResponse.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.github.hapjava.server.impl.json; - -class HapJsonNoContentResponse extends HapJsonResponse { - - public HapJsonNoContentResponse() { - super(new byte[0]); - } - - @Override - public int getStatusCode() { - return 204; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/json/HapJsonResponse.java b/src/main/java/io/github/hapjava/server/impl/json/HapJsonResponse.java deleted file mode 100644 index dbbe7cada..000000000 --- a/src/main/java/io/github/hapjava/server/impl/json/HapJsonResponse.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.server.impl.json; - -import io.github.hapjava.server.impl.responses.OkResponse; -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; - -class HapJsonResponse extends OkResponse { - - private static final Map headers = - Collections.unmodifiableMap( - new HashMap() { - private static final long serialVersionUID = 1L; - - { - put("Content-type", "application/hap+json"); - } - }); - - public HapJsonResponse(byte[] body) { - super(body); - } - - @Override - public Map getHeaders() { - return headers; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/ByteUtils.java b/src/main/java/io/github/hapjava/server/impl/pairing/ByteUtils.java deleted file mode 100644 index 6516e2e29..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/ByteUtils.java +++ /dev/null @@ -1,43 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.math.BigInteger; -import java.util.Arrays; - -class ByteUtils { - - public static byte[] joinBytes(byte[]... piece) { - int pos = 0; - int length = 0; - for (int i = 0; i < piece.length; i++) { - length += piece[i].length; - } - byte[] ret = new byte[length]; - for (int i = 0; i < piece.length; i++) { - System.arraycopy(piece[i], 0, ret, pos, piece[i].length); - pos += piece[i].length; - } - return ret; - } - - public static byte[] toByteArray(BigInteger i) { - byte[] array = i.toByteArray(); - if (array[0] == 0) { - array = Arrays.copyOfRange(array, 1, array.length); - } - return array; - } - - public static void copyStream(InputStream input, OutputStream output, int length) - throws IOException { - byte[] buffer = new byte[length]; - int remaining = length; - int bytesRead; - while ((bytesRead = input.read(buffer, 0, remaining)) != -1 && remaining > 0) { - output.write(buffer, 0, bytesRead); - remaining -= bytesRead; - } - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/ClientEvidenceRoutineImpl.java b/src/main/java/io/github/hapjava/server/impl/pairing/ClientEvidenceRoutineImpl.java deleted file mode 100644 index 16c514707..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/ClientEvidenceRoutineImpl.java +++ /dev/null @@ -1,61 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import com.nimbusds.srp6.*; -import java.math.BigInteger; -import java.nio.charset.StandardCharsets; -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; - -class ClientEvidenceRoutineImpl implements ClientEvidenceRoutine { - - public ClientEvidenceRoutineImpl() { - // TODO Auto-generated constructor stub - } - - /** - * Calculates M1 according to the following formula: - * - *

    M1 = H(H(N) xor H(g) || H(username) || s || A || B || H(S)) - */ - @Override - public BigInteger computeClientEvidence( - SRP6CryptoParams cryptoParams, SRP6ClientEvidenceContext ctx) { - - MessageDigest digest; - try { - digest = MessageDigest.getInstance(cryptoParams.H); - } catch (NoSuchAlgorithmException e) { - throw new RuntimeException("Could not locate requested algorithm", e); - } - digest.update(SrpHandler.bigIntegerToUnsignedByteArray(cryptoParams.N)); - byte[] hN = digest.digest(); - - digest.update(SrpHandler.bigIntegerToUnsignedByteArray(cryptoParams.g)); - byte[] hg = digest.digest(); - - byte[] hNhg = xor(hN, hg); - - digest.update(ctx.userID.getBytes(StandardCharsets.UTF_8)); - byte[] hu = digest.digest(); - - digest.update(SrpHandler.bigIntegerToUnsignedByteArray(ctx.S)); - byte[] hS = digest.digest(); - - digest.update(hNhg); - digest.update(hu); - digest.update(SrpHandler.bigIntegerToUnsignedByteArray(ctx.s)); - digest.update(SrpHandler.bigIntegerToUnsignedByteArray(ctx.A)); - digest.update(SrpHandler.bigIntegerToUnsignedByteArray(ctx.B)); - digest.update(hS); - BigInteger ret = new BigInteger(1, digest.digest()); - return ret; - } - - private static byte[] xor(byte[] b1, byte[] b2) { - byte[] result = new byte[b1.length]; - for (int i = 0; i < b1.length; i++) { - result[i] = (byte) (b1[i] ^ b2[i]); - } - return result; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/ErrorCode.java b/src/main/java/io/github/hapjava/server/impl/pairing/ErrorCode.java deleted file mode 100644 index 90112fc46..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/ErrorCode.java +++ /dev/null @@ -1,26 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -public enum ErrorCode { - OK(0), - UNKNOWN(1), - AUTHENTICATION(2), - BACKOFF(3), - MAX_PEERS(4), - MAX_TRIES(5), - UNAVAILABLE(6), - BUSY(7); - - private final short key; - - ErrorCode(short key) { - this.key = key; - } - - ErrorCode(int key) { - this.key = (short) key; - } - - public short getKey() { - return key; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/ExchangeHandler.java b/src/main/java/io/github/hapjava/server/impl/pairing/ExchangeHandler.java deleted file mode 100755 index 6bae3ab84..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/ExchangeHandler.java +++ /dev/null @@ -1,129 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import io.github.hapjava.server.HomekitAuthInfo; -import io.github.hapjava.server.impl.crypto.ChachaDecoder; -import io.github.hapjava.server.impl.crypto.ChachaEncoder; -import io.github.hapjava.server.impl.crypto.EdsaSigner; -import io.github.hapjava.server.impl.crypto.EdsaVerifier; -import io.github.hapjava.server.impl.http.HttpResponse; -import io.github.hapjava.server.impl.pairing.PairSetupRequest.ExchangeRequest; -import io.github.hapjava.server.impl.pairing.TypeLengthValueUtils.DecodeResult; -import io.github.hapjava.server.impl.pairing.TypeLengthValueUtils.Encoder; -import java.nio.charset.StandardCharsets; -import org.bouncycastle.crypto.digests.SHA512Digest; -import org.bouncycastle.crypto.generators.HKDFBytesGenerator; -import org.bouncycastle.crypto.params.HKDFParameters; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -class ExchangeHandler { - - private final byte[] k; - private final HomekitAuthInfo authInfo; - - private byte[] hkdf_enc_key; - - private static final Logger LOGGER = LoggerFactory.getLogger(ExchangeHandler.class); - - public ExchangeHandler(byte[] k, HomekitAuthInfo authInfo) { - this.k = k; - this.authInfo = authInfo; - } - - public HttpResponse handle(PairSetupRequest req) throws Exception { - HKDFBytesGenerator hkdf = new HKDFBytesGenerator(new SHA512Digest()); - hkdf.init( - new HKDFParameters( - k, - "Pair-Setup-Encrypt-Salt".getBytes(StandardCharsets.UTF_8), - "Pair-Setup-Encrypt-Info".getBytes(StandardCharsets.UTF_8))); - byte[] okm = hkdf_enc_key = new byte[32]; - hkdf.generateBytes(okm, 0, 32); - - return decrypt((ExchangeRequest) req, okm); - } - - private HttpResponse decrypt(ExchangeRequest req, byte[] key) throws Exception { - try { - ChachaDecoder chacha = new ChachaDecoder(key, "PS-Msg05".getBytes(StandardCharsets.UTF_8)); - byte[] plaintext = chacha.decodeCiphertext(req.getAuthTagData(), req.getMessageData()); - return processDecryptedData(plaintext); - } catch (Exception e) { - LOGGER.error("ExchangeHandler: M5 decryption failed: {}", e.getMessage()); - throw new RuntimeException("HomeKit M5 message decryption failed", e); - } - } - - private HttpResponse processDecryptedData(byte[] plaintext) throws Exception { - - DecodeResult d = TypeLengthValueUtils.decode(plaintext); - byte[] username = d.getBytes(MessageType.USERNAME); - byte[] ltpk = d.getBytes(MessageType.PUBLIC_KEY); - byte[] proof = d.getBytes(MessageType.SIGNATURE); - return createUser(username, ltpk, proof); - } - - private static String bytesToHex(byte[] bytes) { - StringBuilder result = new StringBuilder(); - for (byte b : bytes) { - result.append(String.format("%02x", b)); - } - return result.toString(); - } - - private HttpResponse createUser(byte[] username, byte[] ltpk, byte[] proof) throws Exception { - HKDFBytesGenerator hkdf = new HKDFBytesGenerator(new SHA512Digest()); - hkdf.init( - new HKDFParameters( - k, - "Pair-Setup-Controller-Sign-Salt".getBytes(StandardCharsets.UTF_8), - "Pair-Setup-Controller-Sign-Info".getBytes(StandardCharsets.UTF_8))); - byte[] okm = new byte[32]; - hkdf.generateBytes(okm, 0, 32); - - byte[] completeData = ByteUtils.joinBytes(okm, username, ltpk); - - if (!new EdsaVerifier(ltpk).verify(completeData, proof)) { - return new PairingResponse(6, ErrorCode.AUTHENTICATION); - } - String stringUsername = new String(username, StandardCharsets.UTF_8); - LOGGER.trace("Creating initial user {}", stringUsername); - authInfo.createUser(authInfo.getMac() + stringUsername, ltpk, true); - return createResponse(); - } - - private HttpResponse createResponse() throws Exception { - HKDFBytesGenerator hkdf = new HKDFBytesGenerator(new SHA512Digest()); - hkdf.init( - new HKDFParameters( - k, - "Pair-Setup-Accessory-Sign-Salt".getBytes(StandardCharsets.UTF_8), - "Pair-Setup-Accessory-Sign-Info".getBytes(StandardCharsets.UTF_8))); - byte[] okm = new byte[32]; - hkdf.generateBytes(okm, 0, 32); - - EdsaSigner signer = new EdsaSigner(authInfo.getPrivateKey()); - - byte[] material = - ByteUtils.joinBytes( - okm, authInfo.getMac().getBytes(StandardCharsets.UTF_8), signer.getPublicKey()); - - byte[] proof = signer.sign(material); - - Encoder encoder = TypeLengthValueUtils.getEncoder(); - encoder.add(MessageType.USERNAME, authInfo.getMac().getBytes(StandardCharsets.UTF_8)); - encoder.add(MessageType.PUBLIC_KEY, signer.getPublicKey()); - encoder.add(MessageType.SIGNATURE, proof); - byte[] plaintext = encoder.toByteArray(); - - ChachaEncoder chacha = - new ChachaEncoder(hkdf_enc_key, "PS-Msg06".getBytes(StandardCharsets.UTF_8)); - byte[] ciphertext = chacha.encodeCiphertext(plaintext); - - encoder = TypeLengthValueUtils.getEncoder(); - encoder.add(MessageType.STATE, (short) 6); - encoder.add(MessageType.ENCRYPTED_DATA, ciphertext); - - return new PairingResponse(encoder.toByteArray()); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/HomekitSRP6Routines.java b/src/main/java/io/github/hapjava/server/impl/pairing/HomekitSRP6Routines.java deleted file mode 100644 index 44417a91f..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/HomekitSRP6Routines.java +++ /dev/null @@ -1,58 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import java.math.BigInteger; -import java.security.SecureRandom; - -/** - * This class is modified from the nimbus SRP library to provide methods that are compatible with - * some pecularities of HomeKit. Namely, the need for a 3072 bit private value - * - * @author Vladimir Dzhuvinov - */ -public class HomekitSRP6Routines { - - public static BigInteger generatePrivateValue(BigInteger N, SecureRandom random) { - final int minBits = Math.min(3072, N.bitLength() / 2); - - BigInteger min = BigInteger.ONE.shiftLeft(minBits - 1); - BigInteger max = N.subtract(BigInteger.ONE); - - return createRandomBigIntegerInRange(min, max, random); - } - - /** - * Returns a random big integer in the specified range [min, max]. - * - * @param min The least value that may be generated. Must not be {@code null}. - * @param max The greatest value that may be generated. Must not be {@code null}. - * @param random Source of randomness. Must not be {@code null}. - * @return A random big integer in the range [min, max]. - */ - protected static BigInteger createRandomBigIntegerInRange( - final BigInteger min, final BigInteger max, final SecureRandom random) { - - final int cmp = min.compareTo(max); - - if (cmp >= 0) { - - if (cmp > 0) throw new IllegalArgumentException("'min' may not be greater than 'max'"); - - return min; - } - - if (min.bitLength() > max.bitLength() / 2) - return createRandomBigIntegerInRange(BigInteger.ZERO, max.subtract(min), random).add(min); - - final int MAX_ITERATIONS = 1000; - - for (int i = 0; i < MAX_ITERATIONS; ++i) { - - BigInteger x = new BigInteger(max.bitLength(), random); - - if (x.compareTo(min) >= 0 && x.compareTo(max) <= 0) return x; - } - - // fall back to a faster (restricted) method - return new BigInteger(max.subtract(min).bitLength() - 1, random).add(min); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/HomekitSRP6ServerSession.java b/src/main/java/io/github/hapjava/server/impl/pairing/HomekitSRP6ServerSession.java deleted file mode 100644 index 3841d9fb7..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/HomekitSRP6ServerSession.java +++ /dev/null @@ -1,296 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import com.nimbusds.srp6.SRP6ClientEvidenceContext; -import com.nimbusds.srp6.SRP6CryptoParams; -import com.nimbusds.srp6.SRP6Exception; -import com.nimbusds.srp6.SRP6Routines; -import com.nimbusds.srp6.SRP6ServerEvidenceContext; -import com.nimbusds.srp6.SRP6Session; -import com.nimbusds.srp6.URoutineContext; -import java.math.BigInteger; - -/** - * This is a slightly modified version of the SRP6ServerSession class included with nimbus. The only - * change made for homekit compatability is a change to the size of the b key. HomeKit pairing fails - * if b is not 3072 bytes. - * - *

    Stateful server-side Secure Remote Password (SRP-6a) authentication session. Handles the - * computing and storing of SRP-6a variables between the protocol steps as well as timeouts. - * - *

    Usage: - * - *

      - *
    • Create a new SRP-6a server session for each client authentication attempt. - *
    • If you wish to use custom routines for the server evidence message 'M1' and / or the client - * evidence message 'M2' specify them at this point. - *
    • Proceed to {@link #step1 step one} on receiving a valid user identity 'I' from the - * authenticating client. Respond with the server public value 'B' and password salt 's'. If - * the SRP-6a crypto parameters 'N', 'g' and 'H' were not agreed in advance between server and - * client append them to the response. - *
    • Proceed to {@link #step2 step two} on receiving the public client value 'A' and evidence - * message 'M1'. If the client credentials are valid signal success and return the server - * evidence message 'M2'. The established session key 'S' may be {@link #getSessionKey - * retrieved} to encrypt further communication with the client. Else signal an authentication - * failure to the client. - *
    - * - * @author Vladimir Dzhuvinov - */ -public class HomekitSRP6ServerSession extends SRP6Session { - - /** Enumerates the states of a server-side SRP-6a authentication session. */ - public static enum State { - - /** - * The session is initialised and ready to begin authentication, by proceeding to {@link - * #STEP_1}. - */ - INIT, - - /** - * The user identity 'I' is received from the client and the server has returned its public - * value 'B' based on the matching password verifier 'v'. The session is ready to proceed to - * {@link #STEP_2}. - */ - STEP_1, - - /** - * The client public key 'A' and evidence message 'M1' are received and the server has replied - * with its own evidence message 'M2'. The session is finished (authentication was successful or - * failed). - */ - STEP_2 - } - - /** Indicates a non-existing use identity and implies mock salt 's' and verifier 'v' values. */ - private boolean noSuchUserIdentity = false; - - /** The password verifier 'v'. */ - private BigInteger v = null; - - /** The server private value 'b'. */ - private BigInteger b = null; - - /** The current SRP-6a auth state. */ - private State state; - - /** - * Creates a new server-side SRP-6a authentication session and sets its state to {@link - * State#INIT}. - * - * @param config The SRP-6a crypto parameters configuration. Must not be {@code null}. - * @param timeout The SRP-6a authentication session timeout in seconds. If the authenticating - * counterparty (server or client) fails to respond within the specified time the session will - * be closed. If zero timeouts are disabled. - */ - public HomekitSRP6ServerSession(final SRP6CryptoParams config, final int timeout) { - - super(timeout); - - if (config == null) - throw new IllegalArgumentException("The SRP-6a crypto parameters must not be null"); - - this.config = config; - - digest = config.getMessageDigestInstance(); - - if (digest == null) - throw new IllegalArgumentException("Unsupported hash algorithm 'H': " + config.H); - - state = State.INIT; - - updateLastActivityTime(); - } - - /** - * Creates a new server-side SRP-6a authentication session and sets its state to {@link - * State#INIT}. Session timeouts are disabled. - * - * @param config The SRP-6a crypto parameters configuration. Must not be {@code null}. - */ - public HomekitSRP6ServerSession(final SRP6CryptoParams config) { - - this(config, 0); - } - - /** - * Increments this SRP-6a authentication session to {@link State#STEP_1}. - * - *

    Argument origin: - * - *

      - *
    • From client: user identity 'I'. - *
    • From server database: matching salt 's' and password verifier 'v' values. - *
    - * - * @param userID The identity 'I' of the authenticating user. Must not be {@code null} or empty. - * @param s The password salt 's'. Must not be {@code null}. - * @param v The password verifier 'v'. Must not be {@code null}. - * @return The server public value 'B'. - * @throws IllegalStateException If the mehod is invoked in a state other than {@link State#INIT}. - */ - public BigInteger step1(final String userID, final BigInteger s, final BigInteger v) { - - // Check arguments - - if (userID == null || userID.trim().isEmpty()) - throw new IllegalArgumentException("The user identity 'I' must not be null or empty"); - - this.userID = userID; - - if (s == null) throw new IllegalArgumentException("The salt 's' must not be null"); - - this.s = s; - - if (v == null) throw new IllegalArgumentException("The verifier 'v' must not be null"); - - this.v = v; - - // Check current state - if (state != State.INIT) - throw new IllegalStateException("State violation: Session must be in INIT state"); - - // Generate server private and public values - k = SRP6Routines.computeK(digest, config.N, config.g); - digest.reset(); - - b = HomekitSRP6Routines.generatePrivateValue(config.N, random); - digest.reset(); - - B = SRP6Routines.computePublicServerValue(config.N, config.g, k, v, b); - - state = State.STEP_1; - - updateLastActivityTime(); - - return B; - } - - /** - * Increments this SRP-6a authentication session to {@link State#STEP_1} indicating a non-existing - * user identity 'I' with mock (simulated) salt 's' and password verifier 'v' values. - * - *

    This method can be used to avoid informing the client at step one that the user identity is - * bad and throw instead a guaranteed general "bad credentials" SRP-6a exception at step two. - * - *

    Argument origin: - * - *

      - *
    • From client: user identity 'I'. - *
    • Simulated by server, preferably consistently for the specified identity 'I': salt 's' and - * password verifier 'v' values. - *
    - * - * @param userID The identity 'I' of the authenticating user. Must not be {@code null} or empty. - * @param s The password salt 's'. Must not be {@code null}. - * @param v The password verifier 'v'. Must not be {@code null}. - * @return The server public value 'B'. - * @throws IllegalStateException If the method is invoked in a state other than {@link - * State#INIT}. - */ - public BigInteger mockStep1(final String userID, final BigInteger s, final BigInteger v) { - - noSuchUserIdentity = true; - - return step1(userID, s, v); - } - - /** - * Increments this SRP-6a authentication session to {@link State#STEP_2}. - * - *

    Argument origin: - * - *

      - *
    • From client: public value 'A' and evidence message 'M1'. - *
    - * - * @param A The client public value. Must not be {@code null}. - * @param M1 The client evidence message. Must not be {@code null}. - * @return The server evidence message 'M2'. - * @throws SRP6Exception If the session has timed out, the client public value 'A' is invalid or - * the user credentials are invalid. - * @throws IllegalStateException If the method is invoked in a state other than {@link - * State#STEP_1}. - */ - public BigInteger step2(final BigInteger A, final BigInteger M1) throws SRP6Exception { - - // Check arguments - - if (A == null) - throw new IllegalArgumentException("The client public value 'A' must not be null"); - - this.A = A; - - if (M1 == null) - throw new IllegalArgumentException("The client evidence message 'M1' must not be null"); - - this.M1 = M1; - - // Check current state - if (state != State.STEP_1) - throw new IllegalStateException("State violation: Session must be in STEP_1 state"); - - // Check timeout - if (hasTimedOut()) throw new SRP6Exception("Session timeout", SRP6Exception.CauseType.TIMEOUT); - - // Check A validity - if (!SRP6Routines.isValidPublicValue(config.N, A)) - throw new SRP6Exception( - "Bad client public value 'A'", SRP6Exception.CauseType.BAD_PUBLIC_VALUE); - - // Check for previous mock step 1 - if (noSuchUserIdentity) - throw new SRP6Exception("Bad client credentials", SRP6Exception.CauseType.BAD_CREDENTIALS); - - if (hashedKeysRoutine != null) { - URoutineContext hashedKeysContext = new URoutineContext(A, B); - u = hashedKeysRoutine.computeU(config, hashedKeysContext); - } else { - u = SRP6Routines.computeU(digest, config.N, A, B); - digest.reset(); - } - - S = SRP6Routines.computeSessionKey(config.N, v, u, A, b); - - // Compute the own client evidence message 'M1' - BigInteger computedM1; - - if (clientEvidenceRoutine != null) { - - // With custom routine - SRP6ClientEvidenceContext ctx = new SRP6ClientEvidenceContext(userID, s, A, B, S); - computedM1 = clientEvidenceRoutine.computeClientEvidence(config, ctx); - } else { - // With default routine - computedM1 = SRP6Routines.computeClientEvidence(digest, A, B, S); - digest.reset(); - } - - if (!computedM1.equals(M1)) - throw new SRP6Exception("Bad client credentials", SRP6Exception.CauseType.BAD_CREDENTIALS); - - state = State.STEP_2; - - if (serverEvidenceRoutine != null) { - - // With custom routine - SRP6ServerEvidenceContext ctx = new SRP6ServerEvidenceContext(A, M1, S); - - M2 = serverEvidenceRoutine.computeServerEvidence(config, ctx); - } - - updateLastActivityTime(); - - return M2; - } - - /** - * Returns the current state of this SRP-6a authentication session. - * - * @return The current state. - */ - public State getState() { - - return state; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/MessageType.java b/src/main/java/io/github/hapjava/server/impl/pairing/MessageType.java deleted file mode 100644 index 84991d130..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/MessageType.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -public enum MessageType { - METHOD(0), - USERNAME(1), - SALT(2), - PUBLIC_KEY(3), - PROOF(4), - ENCRYPTED_DATA(5), - STATE(6), - ERROR(7), - SIGNATURE(0x0a), - PERMISSIONS(0x0b), - FRAGMENT_DATA(0x0c), - FRAGMENT_LAST(0x0d), - FLAGS(0x13), - SEPARATOR(0xff); - - private final short key; - - MessageType(short key) { - this.key = key; - } - - MessageType(int key) { - this.key = (short) key; - } - - public short getKey() { - return key; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/PairSetupManager.java b/src/main/java/io/github/hapjava/server/impl/pairing/PairSetupManager.java deleted file mode 100644 index 05b37b8ab..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/PairSetupManager.java +++ /dev/null @@ -1,66 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import io.github.hapjava.server.HomekitAuthInfo; -import io.github.hapjava.server.impl.HomekitRegistry; -import io.github.hapjava.server.impl.http.HttpRequest; -import io.github.hapjava.server.impl.http.HttpResponse; -import io.github.hapjava.server.impl.responses.NotFoundResponse; -import io.github.hapjava.server.impl.responses.UnauthorizedResponse; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class PairSetupManager { - - private static final Logger logger = LoggerFactory.getLogger(PairSetupManager.class); - - private final HomekitAuthInfo authInfo; - private final HomekitRegistry registry; - - private SrpHandler srpHandler; - - public PairSetupManager(HomekitAuthInfo authInfo, HomekitRegistry registry) { - this.authInfo = authInfo; - this.registry = registry; - } - - public HttpResponse handle(HttpRequest httpRequest) throws Exception { - PairSetupRequest req = PairSetupRequest.of(httpRequest.getBody()); - logger.trace("Handling pair-setup request {}", req); - - if (req.getState() == 1) { - logger.trace("Received SRP Start Request " + registry.getLabel()); - srpHandler = new SrpHandler(authInfo.getPin(), authInfo.getSalt()); - return srpHandler.handle(req); - } else if (req.getState() == 3) { - logger.trace("Receive SRP Verify Request for " + registry.getLabel()); - if (srpHandler == null) { - logger.warn("Received unexpected SRP Verify Request for " + registry.getLabel()); - return new UnauthorizedResponse(); - } else { - try { - return srpHandler.handle(req); - } catch (Exception e) { - srpHandler = null; // You don't get to try again - need a new key - logger.warn("Exception encountered while processing SRP Verify Request", e); - return new UnauthorizedResponse(); - } - } - } else if (req.getState() == 5) { - logger.trace("Received Exchange Request for " + registry.getLabel()); - if (srpHandler == null) { - logger.warn("Received unexpected Exchanged Request for " + registry.getLabel()); - return new UnauthorizedResponse(); - } else { - ExchangeHandler handler = new ExchangeHandler(srpHandler.getK(), authInfo); - try { - return handler.handle(req); - } catch (Exception e) { - logger.warn("Exception while finalizing pairing", e); - return new UnauthorizedResponse(); - } - } - } - - return new NotFoundResponse(); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/PairSetupRequest.java b/src/main/java/io/github/hapjava/server/impl/pairing/PairSetupRequest.java deleted file mode 100755 index 6fa099be4..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/PairSetupRequest.java +++ /dev/null @@ -1,139 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import io.github.hapjava.server.impl.pairing.TypeLengthValueUtils.DecodeResult; -import java.math.BigInteger; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -abstract class PairSetupRequest { - private static final Logger logger = LoggerFactory.getLogger(PairSetupRequest.class); - - public static PairSetupRequest of(byte[] content) throws Exception { - DecodeResult d = TypeLengthValueUtils.decode(content); - logger.trace("Decoded pair setup request: {}", d); - short stage = d.getByte(MessageType.STATE); - switch (stage) { - case 1: - return new SRPStartRequest(d); - - case 3: - return new SRPVerifyRequest(d); - - case 5: - return new ExchangeRequest(d); - - default: - throw new Exception("Unknown pair process stage: " + stage); - } - } - - // Raw integer. - // State of the pairing process. 1=M1, 2=M2, etc. - public abstract int getState(); - - public static class SRPStartRequest extends PairSetupRequest { - int flags; - - public SRPStartRequest(DecodeResult d) { - flags = 0; - if (d.hasMessage(MessageType.FLAGS)) { - flags = d.getInt(MessageType.FLAGS); - } - } - - @Override - public int getState() { - return 1; - } - - public String toString() { - return ""; - } - } - - public static class SRPVerifyRequest extends PairSetupRequest { - - private final BigInteger a; - private final BigInteger m1; - - public SRPVerifyRequest(DecodeResult d) { - a = d.getBigInt(MessageType.PUBLIC_KEY); - m1 = d.getBigInt(MessageType.PROOF); - } - - public BigInteger getA() { - return a; - } - - public BigInteger getM1() { - return m1; - } - - @Override - public int getState() { - return 3; - } - - public String toString() { - return ""; - } - } - - static class ExchangeRequest extends PairSetupRequest { - - private final byte[] messageData; - private final byte[] authTagData; - - public ExchangeRequest(DecodeResult d) { - // Get the complete encrypted data field - byte[] encryptedData = d.getBytes(MessageType.ENCRYPTED_DATA); - logger.debug("ExchangeRequest: Total encrypted data length: {}", encryptedData.length); - logger.debug("ExchangeRequest: Raw encrypted data: {}", bytesToHex(encryptedData)); - - // For HomeKit M5, the encrypted data contains ciphertext + 16-byte auth tag - // The auth tag is the LAST 16 bytes - if (encryptedData.length < 16) { - throw new RuntimeException( - "Encrypted data too short, expected at least 16 bytes for auth tag"); - } - - int ciphertextLength = encryptedData.length - 16; - messageData = new byte[ciphertextLength]; - authTagData = new byte[16]; - - // Copy ciphertext (everything except last 16 bytes) - System.arraycopy(encryptedData, 0, messageData, 0, ciphertextLength); - // Copy auth tag (last 16 bytes) - System.arraycopy(encryptedData, ciphertextLength, authTagData, 0, 16); - - logger.debug("ExchangeRequest: Parsed ciphertext length: {}", messageData.length); - logger.debug("ExchangeRequest: Parsed ciphertext: {}", bytesToHex(messageData)); - logger.debug("ExchangeRequest: Parsed auth tag: {}", bytesToHex(authTagData)); - } - - private static String bytesToHex(byte[] bytes) { - StringBuilder result = new StringBuilder(); - for (byte b : bytes) { - result.append(String.format("%02x", b)); - } - return result.toString(); - } - - public byte[] getMessageData() { - return messageData; - } - - public byte[] getAuthTagData() { - return authTagData; - } - - @Override - public int getState() { - return 5; - } - - public String toString() { - return ""; - } - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/PairVerifyManager.java b/src/main/java/io/github/hapjava/server/impl/pairing/PairVerifyManager.java deleted file mode 100644 index 4960c6f6a..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/PairVerifyManager.java +++ /dev/null @@ -1,152 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import djb.Curve25519; -import io.github.hapjava.server.HomekitAuthInfo; -import io.github.hapjava.server.impl.HomekitRegistry; -import io.github.hapjava.server.impl.crypto.ChachaDecoder; -import io.github.hapjava.server.impl.crypto.ChachaEncoder; -import io.github.hapjava.server.impl.crypto.EdsaSigner; -import io.github.hapjava.server.impl.crypto.EdsaVerifier; -import io.github.hapjava.server.impl.http.HttpRequest; -import io.github.hapjava.server.impl.http.HttpResponse; -import io.github.hapjava.server.impl.pairing.PairVerifyRequest.VerifyFinishRequest; -import io.github.hapjava.server.impl.pairing.PairVerifyRequest.VerifyStartRequest; -import io.github.hapjava.server.impl.pairing.TypeLengthValueUtils.DecodeResult; -import io.github.hapjava.server.impl.pairing.TypeLengthValueUtils.Encoder; -import io.github.hapjava.server.impl.responses.NotFoundResponse; -import java.nio.charset.StandardCharsets; -import java.security.SecureRandom; -import org.bouncycastle.crypto.digests.SHA512Digest; -import org.bouncycastle.crypto.generators.HKDFBytesGenerator; -import org.bouncycastle.crypto.params.HKDFParameters; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class PairVerifyManager { - - private static final Logger logger = LoggerFactory.getLogger(PairVerifyManager.class); - private static volatile SecureRandom secureRandom; - - private final HomekitAuthInfo authInfo; - private final HomekitRegistry registry; - - private byte[] hkdfKey; - private byte[] clientPublicKey; - private byte[] publicKey; - private byte[] sharedSecret; - - public PairVerifyManager(HomekitAuthInfo authInfo, HomekitRegistry registry) { - this.authInfo = authInfo; - this.registry = registry; - } - - public HttpResponse handle(HttpRequest rawRequest) throws Exception { - PairVerifyRequest request = PairVerifyRequest.of(rawRequest.getBody()); - switch (request.getState()) { - case 1: - return handleVerifyStartRequest((VerifyStartRequest) request); - - case 3: - return handleVerifyFinishRequest((VerifyFinishRequest) request); - - default: - return new NotFoundResponse(); - } - } - - private HttpResponse handleVerifyStartRequest(VerifyStartRequest request) throws Exception { - logger.trace("Starting pair verification for " + registry.getLabel()); - clientPublicKey = request.getClientPublicKey(); - publicKey = new byte[32]; - byte[] privateKey = new byte[32]; - getSecureRandom().nextBytes(privateKey); - Curve25519.keygen(publicKey, null, privateKey); - - sharedSecret = new byte[32]; - Curve25519.curve(sharedSecret, privateKey, clientPublicKey); - - byte[] material = - ByteUtils.joinBytes( - publicKey, authInfo.getMac().getBytes(StandardCharsets.UTF_8), clientPublicKey); - - byte[] proof = new EdsaSigner(authInfo.getPrivateKey()).sign(material); - - HKDFBytesGenerator hkdf = new HKDFBytesGenerator(new SHA512Digest()); - hkdf.init( - new HKDFParameters( - sharedSecret, - "Pair-Verify-Encrypt-Salt".getBytes(StandardCharsets.UTF_8), - "Pair-Verify-Encrypt-Info".getBytes(StandardCharsets.UTF_8))); - hkdfKey = new byte[32]; - hkdf.generateBytes(hkdfKey, 0, 32); - - Encoder encoder = TypeLengthValueUtils.getEncoder(); - encoder.add(MessageType.USERNAME, authInfo.getMac().getBytes(StandardCharsets.UTF_8)); - encoder.add(MessageType.SIGNATURE, proof); - byte[] plaintext = encoder.toByteArray(); - - ChachaEncoder chacha = new ChachaEncoder(hkdfKey, "PV-Msg02".getBytes(StandardCharsets.UTF_8)); - byte[] ciphertext = chacha.encodeCiphertext(plaintext); - - encoder = TypeLengthValueUtils.getEncoder(); - encoder.add(MessageType.STATE, (short) 2); - encoder.add(MessageType.ENCRYPTED_DATA, ciphertext); - encoder.add(MessageType.PUBLIC_KEY, publicKey); - return new PairingResponse(encoder.toByteArray()); - } - - private HttpResponse handleVerifyFinishRequest(VerifyFinishRequest request) throws Exception { - ChachaDecoder chacha = new ChachaDecoder(hkdfKey, "PV-Msg03".getBytes(StandardCharsets.UTF_8)); - byte[] plaintext = chacha.decodeCiphertext(request.getAuthTagData(), request.getMessageData()); - - DecodeResult d = TypeLengthValueUtils.decode(plaintext); - byte[] clientUsername = d.getBytes(MessageType.USERNAME); - byte[] clientSignature = d.getBytes(MessageType.SIGNATURE); - - byte[] material = ByteUtils.joinBytes(clientPublicKey, clientUsername, publicKey); - - String username = new String(clientUsername, StandardCharsets.UTF_8); - byte[] clientLtpk = authInfo.getUserPublicKey(authInfo.getMac() + username); - if (clientLtpk == null) { - logger.warn("Unknown user: {}", username); - return new PairingResponse(4, ErrorCode.AUTHENTICATION); - } - - Encoder encoder = TypeLengthValueUtils.getEncoder(); - if (new EdsaVerifier(clientLtpk).verify(material, clientSignature)) { - encoder.add(MessageType.STATE, (short) 4); - logger.trace("Completed pair verification for " + registry.getLabel()); - return new UpgradeResponse( - encoder.toByteArray(), - createKey("Control-Write-Encryption-Key"), - createKey("Control-Read-Encryption-Key"), - username); - } else { - logger.warn("Invalid signature. Could not pair " + registry.getLabel()); - return new PairingResponse(4, ErrorCode.AUTHENTICATION); - } - } - - private byte[] createKey(String info) { - HKDFBytesGenerator hkdf = new HKDFBytesGenerator(new SHA512Digest()); - hkdf.init( - new HKDFParameters( - sharedSecret, - "Control-Salt".getBytes(StandardCharsets.UTF_8), - info.getBytes(StandardCharsets.UTF_8))); - byte[] key = new byte[32]; - hkdf.generateBytes(key, 0, 32); - return key; - } - - private static SecureRandom getSecureRandom() { - if (secureRandom == null) { - synchronized (PairVerifyManager.class) { - if (secureRandom == null) { - secureRandom = new SecureRandom(); - } - } - } - return secureRandom; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/PairVerifyRequest.java b/src/main/java/io/github/hapjava/server/impl/pairing/PairVerifyRequest.java deleted file mode 100644 index 7cf31585b..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/PairVerifyRequest.java +++ /dev/null @@ -1,69 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import io.github.hapjava.server.impl.pairing.TypeLengthValueUtils.DecodeResult; - -abstract class PairVerifyRequest { - - static PairVerifyRequest of(byte[] content) throws Exception { - DecodeResult d = TypeLengthValueUtils.decode(content); - short stage = d.getByte(MessageType.STATE); - switch (stage) { - case 1: - return new VerifyStartRequest(d); - - case 3: - return new VerifyFinishRequest(d); - - default: - throw new Exception("Unknown pair process stage: " + stage); - } - } - - // Raw integer. - // State of the pairing process. 1=M1, 2=M2, etc. - abstract int getState(); - - static class VerifyStartRequest extends PairVerifyRequest { - - private final byte[] clientPublicKey; - - public VerifyStartRequest(DecodeResult d) { - clientPublicKey = d.getBytes(MessageType.PUBLIC_KEY); - } - - public byte[] getClientPublicKey() { - return clientPublicKey; - } - - @Override - int getState() { - return 1; - } - } - - static class VerifyFinishRequest extends PairVerifyRequest { - - private final byte[] messageData; - private final byte[] authTagData; - - public VerifyFinishRequest(DecodeResult d) { - messageData = new byte[d.getLength(MessageType.ENCRYPTED_DATA) - 16]; - authTagData = new byte[16]; - d.getBytes(MessageType.ENCRYPTED_DATA, messageData, 0); - d.getBytes(MessageType.ENCRYPTED_DATA, authTagData, messageData.length); - } - - public byte[] getMessageData() { - return messageData; - } - - public byte[] getAuthTagData() { - return authTagData; - } - - @Override - public int getState() { - return 3; - } - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/PairingMethod.java b/src/main/java/io/github/hapjava/server/impl/pairing/PairingMethod.java deleted file mode 100644 index 07decf02d..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/PairingMethod.java +++ /dev/null @@ -1,24 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -public enum PairingMethod { - PAIR_SETUP(0), - PAIR_SETUP_WITH_AUTH(1), - PAIR_VERIFY(2), - ADD_PAIRING(3), - REMOVE_PAIRING(4), - LIST_PAIRINGS(5); - - private final byte value; - - PairingMethod(byte value) { - this.value = value; - } - - PairingMethod(int value) { - this.value = (byte) value; - } - - public byte getValue() { - return value; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/PairingResponse.java b/src/main/java/io/github/hapjava/server/impl/pairing/PairingResponse.java deleted file mode 100644 index defc5798f..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/PairingResponse.java +++ /dev/null @@ -1,49 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import io.github.hapjava.server.impl.responses.OkResponse; -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; - -class PairingResponse extends OkResponse { - - private static final Map headers = - Collections.unmodifiableMap( - new HashMap() { - private static final long serialVersionUID = 1L; - - { - put("Content-type", "application/pairing+tlv8"); - } - }); - - public PairingResponse(byte[] body) { - super(body); - } - - public PairingResponse(int state) { - this(encodeSuccess(state)); - } - - public PairingResponse(int state, ErrorCode errorCode) { - this(encodeError(state, errorCode)); - } - - private static byte[] encodeSuccess(int state) { - TypeLengthValueUtils.Encoder encoder = TypeLengthValueUtils.getEncoder(); - encoder.add(MessageType.STATE, (byte) state); - return encoder.toByteArray(); - } - - private static byte[] encodeError(int state, ErrorCode errorCode) { - TypeLengthValueUtils.Encoder encoder = TypeLengthValueUtils.getEncoder(); - encoder.add(MessageType.STATE, (byte) state); - encoder.add(MessageType.ERROR, (byte) errorCode.getKey()); - return encoder.toByteArray(); - } - - @Override - public Map getHeaders() { - return headers; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/PairingsManager.java b/src/main/java/io/github/hapjava/server/impl/pairing/PairingsManager.java deleted file mode 100644 index 11eb4a709..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/PairingsManager.java +++ /dev/null @@ -1,77 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import io.github.hapjava.server.HomekitAuthInfo; -import io.github.hapjava.server.impl.http.HttpRequest; -import io.github.hapjava.server.impl.http.HttpResponse; -import io.github.hapjava.server.impl.jmdns.JmdnsHomekitAdvertiser; -import io.github.hapjava.server.impl.pairing.TypeLengthValueUtils.DecodeResult; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.Collection; -import java.util.Iterator; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class PairingsManager { - - private final HomekitAuthInfo authInfo; - private final JmdnsHomekitAdvertiser advertiser; - - private static final Logger LOGGER = LoggerFactory.getLogger(PairingsManager.class); - - public PairingsManager(HomekitAuthInfo authInfo, JmdnsHomekitAdvertiser advertiser) { - this.authInfo = authInfo; - this.advertiser = advertiser; - } - - public HttpResponse handle(HttpRequest request) throws IOException { - DecodeResult d = TypeLengthValueUtils.decode(request.getBody()); - - int method = d.getByte(MessageType.METHOD); - - if (method == PairingMethod.ADD_PAIRING.getValue()) { - byte[] username = d.getBytes(MessageType.USERNAME); - byte[] ltpk = d.getBytes(MessageType.PUBLIC_KEY); - byte permissions = d.getByte(MessageType.PERMISSIONS); - authInfo.createUser( - authInfo.getMac() + new String(username, StandardCharsets.UTF_8), ltpk, permissions == 1); - } else if (method == PairingMethod.REMOVE_PAIRING.getValue()) { - byte[] username = d.getBytes(MessageType.USERNAME); - authInfo.removeUser(authInfo.getMac() + new String(username, StandardCharsets.UTF_8)); - if (!authInfo.hasUser()) { - advertiser.setDiscoverable(true); - } - } else if (method == PairingMethod.LIST_PAIRINGS.getValue()) { - TypeLengthValueUtils.Encoder e = TypeLengthValueUtils.getEncoder(); - - Collection usernames = authInfo.listUsers(); - boolean first = true; - Iterator iterator = usernames.iterator(); - String mac = authInfo.getMac(); - - while (iterator.hasNext()) { - String username = iterator.next(); - if (first) { - e.add(MessageType.STATE, (byte) 2); - first = false; - } else { - e.add(MessageType.SEPARATOR); - } - byte[] publicKey = authInfo.getUserPublicKey(username); - boolean isAdmin = authInfo.userIsAdmin(username); - if (username.startsWith(mac)) { - username = username.substring(mac.length()); - } - e.add(MessageType.USERNAME, username); - e.add(MessageType.PUBLIC_KEY, publicKey); - e.add(MessageType.PERMISSIONS, (short) (isAdmin ? 1 : 0)); - } - - return new PairingResponse(e.toByteArray()); - } else { - throw new RuntimeException("Unrecognized method: " + method); - } - - return new PairingResponse(2); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/ServerEvidenceRoutineImpl.java b/src/main/java/io/github/hapjava/server/impl/pairing/ServerEvidenceRoutineImpl.java deleted file mode 100644 index 7cf7b3164..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/ServerEvidenceRoutineImpl.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import com.nimbusds.srp6.SRP6CryptoParams; -import com.nimbusds.srp6.SRP6ServerEvidenceContext; -import com.nimbusds.srp6.ServerEvidenceRoutine; -import java.math.BigInteger; -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; - -class ServerEvidenceRoutineImpl implements ServerEvidenceRoutine { - - @Override - public BigInteger computeServerEvidence( - SRP6CryptoParams cryptoParams, SRP6ServerEvidenceContext ctx) { - - MessageDigest digest; - try { - digest = MessageDigest.getInstance(cryptoParams.H); - } catch (NoSuchAlgorithmException e) { - throw new RuntimeException("Could not locate requested algorithm", e); - } - - byte[] hS = digest.digest(SrpHandler.bigIntegerToUnsignedByteArray(ctx.S)); - - digest.update(SrpHandler.bigIntegerToUnsignedByteArray(ctx.A)); - digest.update(SrpHandler.bigIntegerToUnsignedByteArray(ctx.M1)); - digest.update(hS); - - return new BigInteger(1, digest.digest()); - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/SrpHandler.java b/src/main/java/io/github/hapjava/server/impl/pairing/SrpHandler.java deleted file mode 100644 index 5c1c23353..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/SrpHandler.java +++ /dev/null @@ -1,97 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import com.nimbusds.srp6.*; -import io.github.hapjava.server.impl.http.HttpResponse; -import io.github.hapjava.server.impl.pairing.HomekitSRP6ServerSession.State; -import io.github.hapjava.server.impl.pairing.PairSetupRequest.SRPVerifyRequest; -import io.github.hapjava.server.impl.pairing.TypeLengthValueUtils.Encoder; -import io.github.hapjava.server.impl.responses.ConflictResponse; -import io.github.hapjava.server.impl.responses.NotFoundResponse; -import java.math.BigInteger; -import java.security.MessageDigest; -import java.util.Arrays; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -class SrpHandler { - - // Precomputed safe 3072 bit prime 'N'. Origin RFC 5054, appendix A. - private static final BigInteger N_3072 = - new BigInteger( - "5809605995369958062791915965639201402176612226902900533702900882779736177890990861472094774477339581147373410185646378328043729800750470098210924487866935059164371588168047540943981644516632755067501626434556398193186628990071248660819361205119793693985433297036118232914410171876807536457391277857011849897410207519105333355801121109356897459426271845471397952675959440793493071628394122780510124618488232602464649876850458861245784240929258426287699705312584509625419513463605155428017165714465363094021609290561084025893662561222573202082865797821865270991145082200656978177192827024538990239969175546190770645685893438011714430426409338676314743571154537142031573004276428701433036381801705308659830751190352946025482059931306571004727362479688415574702596946457770284148435989129632853918392117997472632693078113129886487399347796982772784615865232621289656944284216824611318709764535152507354116344703769998514148343807"); - private static final BigInteger G = BigInteger.valueOf(5); - private static final String IDENTIFIER = "Pair-Setup"; - - private static final Logger logger = LoggerFactory.getLogger(SrpHandler.class); - - private final BigInteger salt; - private final HomekitSRP6ServerSession session; - private final SRP6CryptoParams config; - private final String pin; - - public SrpHandler(String pin, BigInteger salt) { - config = new SRP6CryptoParams(N_3072, G, "SHA-512"); - session = new HomekitSRP6ServerSession(config); - session.setClientEvidenceRoutine(new ClientEvidenceRoutineImpl()); - session.setServerEvidenceRoutine(new ServerEvidenceRoutineImpl()); - this.pin = pin; - this.salt = salt; - } - - public HttpResponse handle(PairSetupRequest request) throws Exception { - switch (request.getState()) { - case 1: - return handleSrpStartRequest(); - - case 3: - return handleSrpVerifyRequest((SRPVerifyRequest) request); - - default: - return new NotFoundResponse(); - } - } - - private HttpResponse handleSrpStartRequest() throws Exception { - if (session.getState() != State.INIT) { - logger.warn("Session is not in state INIT when receiving step1"); - return new ConflictResponse(); - } - - SRP6VerifierGenerator verifierGenerator = new SRP6VerifierGenerator(config); - verifierGenerator.setXRoutine(new XRoutineWithUserIdentity()); - BigInteger verifier = verifierGenerator.generateVerifier(salt, IDENTIFIER, pin); - - Encoder encoder = TypeLengthValueUtils.getEncoder(); - encoder.add(MessageType.STATE, (short) 0x02); - encoder.add(MessageType.SALT, salt); - encoder.add(MessageType.PUBLIC_KEY, session.step1(IDENTIFIER, salt, verifier)); - return new PairingResponse(encoder.toByteArray()); - } - - private HttpResponse handleSrpVerifyRequest(SRPVerifyRequest request) throws Exception { - if (session.getState() != State.STEP_1) { - logger.warn("Session is not in state Stage 1 when receiving step2"); - return new ConflictResponse(); - } - BigInteger m2 = session.step2(request.getA(), request.getM1()); - Encoder encoder = TypeLengthValueUtils.getEncoder(); - encoder.add(MessageType.STATE, (short) 0x04); - encoder.add(MessageType.PROOF, m2); - return new PairingResponse(encoder.toByteArray()); - } - - public byte[] getK() { - MessageDigest digest = session.getCryptoParams().getMessageDigestInstance(); - BigInteger S = session.getSessionKey(false); - byte[] sBytes = bigIntegerToUnsignedByteArray(S); - return digest.digest(sBytes); - } - - public static byte[] bigIntegerToUnsignedByteArray(BigInteger i) { - byte[] array = i.toByteArray(); - if (array[0] == 0) { - array = Arrays.copyOfRange(array, 1, array.length); - } - return array; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/TypeLengthValueUtils.java b/src/main/java/io/github/hapjava/server/impl/pairing/TypeLengthValueUtils.java deleted file mode 100644 index cbd76f118..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/TypeLengthValueUtils.java +++ /dev/null @@ -1,120 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.math.BigInteger; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.util.HashMap; -import java.util.Map; - -public class TypeLengthValueUtils { - - private TypeLengthValueUtils() {} - - public static DecodeResult decode(byte[] content) throws IOException { - DecodeResult ret = new DecodeResult(); - ByteArrayInputStream bais = new ByteArrayInputStream(content); - while (bais.available() > 0) { - byte type = (byte) (bais.read() & 0xFF); - int length = bais.read(); - byte[] part = new byte[length]; - bais.read(part); - ret.add(type, part); - } - return ret; - } - - public static Encoder getEncoder() { - return new Encoder(); - } - - public static final class Encoder { - - private final ByteArrayOutputStream baos; - - private Encoder() { - baos = new ByteArrayOutputStream(); - } - - public void add(MessageType type) { - baos.write(type.getKey()); - baos.write(0); - } - - public void add(MessageType type, BigInteger i) throws IOException { - add(type, ByteUtils.toByteArray(i)); - } - - public void add(MessageType type, short b) { - baos.write(type.getKey()); - baos.write(1); - baos.write(b); - } - - public void add(MessageType type, byte[] bytes) throws IOException { - InputStream bais = new ByteArrayInputStream(bytes); - while (bais.available() > 0) { - int toWrite = bais.available(); - toWrite = toWrite > 255 ? 255 : toWrite; - baos.write(type.getKey()); - baos.write(toWrite); - ByteUtils.copyStream(bais, baos, toWrite); - } - } - - public void add(MessageType type, String string) throws IOException { - add(type, string.getBytes(StandardCharsets.UTF_8)); - } - - public byte[] toByteArray() { - return baos.toByteArray(); - } - } - - public static final class DecodeResult { - private final Map result = new HashMap<>(); - - private DecodeResult() {} - - public String toString() { - return result.toString(); - } - - public boolean hasMessage(MessageType type) { - return result.containsKey(type.getKey()); - } - - public byte getByte(MessageType type) { - return result.get(type.getKey())[0]; - } - - public int getInt(MessageType type) { - ByteBuffer wrapped = ByteBuffer.wrap(result.get(type.getKey())); - return wrapped.getInt(); - } - - public BigInteger getBigInt(MessageType type) { - return new BigInteger(1, result.get(type.getKey())); - } - - public byte[] getBytes(MessageType type) { - return result.get(type.getKey()); - } - - public void getBytes(MessageType type, byte[] dest, int srcOffset) { - byte[] b = result.get(type.getKey()); - System.arraycopy(b, srcOffset, dest, 0, Math.min(dest.length, b.length)); - } - - public int getLength(MessageType type) { - return result.get(type.getKey()).length; - } - - private void add(short type, byte[] bytes) { - result.merge(type, bytes, ByteUtils::joinBytes); - } - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/pairing/UpgradeResponse.java b/src/main/java/io/github/hapjava/server/impl/pairing/UpgradeResponse.java deleted file mode 100644 index 121fc7fd8..000000000 --- a/src/main/java/io/github/hapjava/server/impl/pairing/UpgradeResponse.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.github.hapjava.server.impl.pairing; - -import java.nio.ByteBuffer; - -public class UpgradeResponse extends PairingResponse { - - private final byte[] readKey; - private final byte[] writeKey; - private final String username; - - UpgradeResponse(byte[] body, byte[] readKey, byte[] writeKey, String username) { - super(body); - this.readKey = readKey; - this.writeKey = writeKey; - this.username = username; - } - - @Override - public boolean doUpgrade() { - return true; - } - - public ByteBuffer getReadKey() { - return ByteBuffer.wrap(readKey); - } - - public ByteBuffer getWriteKey() { - return ByteBuffer.wrap(writeKey); - } - - public String getUsername() { - return username; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/responses/ConflictResponse.java b/src/main/java/io/github/hapjava/server/impl/responses/ConflictResponse.java deleted file mode 100644 index 017fee857..000000000 --- a/src/main/java/io/github/hapjava/server/impl/responses/ConflictResponse.java +++ /dev/null @@ -1,11 +0,0 @@ -package io.github.hapjava.server.impl.responses; - -import io.github.hapjava.server.impl.http.HttpResponse; - -public class ConflictResponse implements HttpResponse { - - @Override - public int getStatusCode() { - return 409; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/responses/InternalServerErrorResponse.java b/src/main/java/io/github/hapjava/server/impl/responses/InternalServerErrorResponse.java deleted file mode 100644 index 6be78e75a..000000000 --- a/src/main/java/io/github/hapjava/server/impl/responses/InternalServerErrorResponse.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.github.hapjava.server.impl.responses; - -import io.github.hapjava.server.impl.http.HttpResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; - -public class InternalServerErrorResponse implements HttpResponse { - - private final Exception e; - - public InternalServerErrorResponse(Exception e) { - this.e = e; - } - - @Override - public int getStatusCode() { - return 500; - } - - @Override - public ByteBuffer getBody() { - return ByteBuffer.wrap(e.getClass().getName().getBytes(StandardCharsets.UTF_8)); - } - - public Exception getException() { - return e; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/responses/NotFoundResponse.java b/src/main/java/io/github/hapjava/server/impl/responses/NotFoundResponse.java deleted file mode 100644 index aca74ad9d..000000000 --- a/src/main/java/io/github/hapjava/server/impl/responses/NotFoundResponse.java +++ /dev/null @@ -1,11 +0,0 @@ -package io.github.hapjava.server.impl.responses; - -import io.github.hapjava.server.impl.http.HttpResponse; - -public class NotFoundResponse implements HttpResponse { - - @Override - public int getStatusCode() { - return 404; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/responses/OkResponse.java b/src/main/java/io/github/hapjava/server/impl/responses/OkResponse.java deleted file mode 100644 index b2e62fe76..000000000 --- a/src/main/java/io/github/hapjava/server/impl/responses/OkResponse.java +++ /dev/null @@ -1,23 +0,0 @@ -package io.github.hapjava.server.impl.responses; - -import io.github.hapjava.server.impl.http.HttpResponse; -import java.nio.ByteBuffer; - -public class OkResponse implements HttpResponse { - - private final ByteBuffer body; - - public OkResponse(byte[] body) { - this.body = ByteBuffer.wrap(body); - } - - @Override - public ByteBuffer getBody() { - return body; - } - - @Override - public int getStatusCode() { - return 200; - } -} diff --git a/src/main/java/io/github/hapjava/server/impl/responses/UnauthorizedResponse.java b/src/main/java/io/github/hapjava/server/impl/responses/UnauthorizedResponse.java deleted file mode 100644 index c40a03f08..000000000 --- a/src/main/java/io/github/hapjava/server/impl/responses/UnauthorizedResponse.java +++ /dev/null @@ -1,11 +0,0 @@ -package io.github.hapjava.server.impl.responses; - -import io.github.hapjava.server.impl.http.HttpResponse; - -public class UnauthorizedResponse implements HttpResponse { - - @Override - public int getStatusCode() { - return 401; - } -} diff --git a/src/main/java/io/github/hapjava/services/Service.java b/src/main/java/io/github/hapjava/services/Service.java deleted file mode 100644 index 303cc5463..000000000 --- a/src/main/java/io/github/hapjava/services/Service.java +++ /dev/null @@ -1,46 +0,0 @@ -package io.github.hapjava.services; - -import io.github.hapjava.characteristics.Characteristic; -import java.util.List; - -/** - * Interface for a Service offered by an accessory. - * - * @author Andy Lintner - */ -public interface Service { - - /** - * Characteristics are the variables offered for reading, updating, and eventing by the Service - * over the HomeKit protocol. - * - *

    It is important to maintain the order of this list and not change its contents between - * invocations, or a pairing error will result. - * - * @return the list of Characteristics. - */ - List getCharacteristics(); - - /** - * The type is a UUID that uniquely identifies the type of Service offered. Apple defines several - * types for standard Services, however UUIDs outside this range are allowed for custom Services. - * - * @return A string representation of the UUID, with hexadecimal digits in the format - * ########-####-####-####-############. - */ - String getType(); - - /** - * List of all the services to which the service links - * - * @return the list of linked services. - */ - List getLinkedServices(); - - /** - * Add linked services - * - * @param service linked service - */ - void addLinkedService(Service service); -} diff --git a/src/main/java/io/github/hapjava/services/impl/AbstractServiceImpl.java b/src/main/java/io/github/hapjava/services/impl/AbstractServiceImpl.java deleted file mode 100644 index 4dfd9f5f6..000000000 --- a/src/main/java/io/github/hapjava/services/impl/AbstractServiceImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.characteristics.Characteristic; -import io.github.hapjava.services.Service; -import java.util.Collections; -import java.util.LinkedList; -import java.util.List; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -abstract class AbstractServiceImpl implements Service { - private final String type; - private final List characteristics = new LinkedList<>(); - private final List linkedServices = new LinkedList<>(); - private static final Logger logger = LoggerFactory.getLogger(AbstractServiceImpl.class); - - /** @param type unique UUID of the service according to HAP specification. */ - public AbstractServiceImpl(String type) { - this.type = type; - } - - @Override - public List getCharacteristics() { - return Collections.unmodifiableList(characteristics); - } - - @Override - public String getType() { - return type; - } - - @Override - public List getLinkedServices() { - return Collections.unmodifiableList(linkedServices); - } - - public void addCharacteristic(Characteristic characteristic) { - this.characteristics.add(characteristic); - } - - @Override - public void addLinkedService(Service service) { - this.linkedServices.add(service); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/AccessoryInformationService.java b/src/main/java/io/github/hapjava/services/impl/AccessoryInformationService.java deleted file mode 100644 index 1fdb30d2a..000000000 --- a/src/main/java/io/github/hapjava/services/impl/AccessoryInformationService.java +++ /dev/null @@ -1,70 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.HomekitAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAccessoryFlags; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHardwareRevision; -import io.github.hapjava.characteristics.impl.accessoryinformation.AccessoryFlagsCharacteristic; -import io.github.hapjava.characteristics.impl.accessoryinformation.FirmwareRevisionCharacteristic; -import io.github.hapjava.characteristics.impl.accessoryinformation.HardwareRevisionCharacteristic; -import io.github.hapjava.characteristics.impl.accessoryinformation.IdentifyCharacteristic; -import io.github.hapjava.characteristics.impl.accessoryinformation.ManufacturerCharacteristic; -import io.github.hapjava.characteristics.impl.accessoryinformation.ModelCharacteristic; -import io.github.hapjava.characteristics.impl.accessoryinformation.SerialNumberCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; - -/** Accessory Information service. */ -public class AccessoryInformationService extends AbstractServiceImpl { - public static final String TYPE = "0000003E-0000-1000-8000-0026BB765291"; - - public AccessoryInformationService( - IdentifyCharacteristic identify, - ManufacturerCharacteristic manufacturer, - ModelCharacteristic model, - NameCharacteristic name, - SerialNumberCharacteristic serialNumber, - FirmwareRevisionCharacteristic firmwareRevision) { - super(TYPE); - addCharacteristic(identify); - addCharacteristic(manufacturer); - addCharacteristic(model); - addCharacteristic(name); - addCharacteristic(serialNumber); - addCharacteristic(firmwareRevision); - } - - public AccessoryInformationService(HomekitAccessory accessory) { - this( - new IdentifyCharacteristic( - value -> { - if (value) { - accessory.identify(); - } - }), - new ManufacturerCharacteristic(accessory::getManufacturer), - new ModelCharacteristic(accessory::getModel), - new NameCharacteristic(accessory::getName), - new SerialNumberCharacteristic(accessory::getSerialNumber), - new FirmwareRevisionCharacteristic(accessory::getFirmwareRevision)); - - if (accessory instanceof AccessoryWithHardwareRevision) { - addOptionalCharacteristic( - new HardwareRevisionCharacteristic( - ((AccessoryWithHardwareRevision) accessory)::getHardwareRevision)); - } - if (accessory instanceof AccessoryWithAccessoryFlags) { - addOptionalCharacteristic( - new AccessoryFlagsCharacteristic( - ((AccessoryWithAccessoryFlags) accessory)::getAccessoryFlags, - ((AccessoryWithAccessoryFlags) accessory)::subscribeAccessoryFlags, - ((AccessoryWithAccessoryFlags) accessory)::unsubscribeAccessoryFlags)); - } - } - - public void addOptionalCharacteristic(HardwareRevisionCharacteristic hardwareRevision) { - addCharacteristic(hardwareRevision); - } - - public void addOptionalCharacteristic(AccessoryFlagsCharacteristic accessoryFlagsCharacteristic) { - addCharacteristic(accessoryFlagsCharacteristic); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/AirPurifierService.java b/src/main/java/io/github/hapjava/services/impl/AirPurifierService.java deleted file mode 100644 index 4918eab81..000000000 --- a/src/main/java/io/github/hapjava/services/impl/AirPurifierService.java +++ /dev/null @@ -1,90 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.AirPurifierAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPhysicalControlsLock; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationSpeed; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSwingMode; -import io.github.hapjava.characteristics.impl.airpurifier.CurrentAirPurifierCharacteristic; -import io.github.hapjava.characteristics.impl.airpurifier.TargetAirPurifierStateCharacteristic; -import io.github.hapjava.characteristics.impl.common.ActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.ActiveEnum; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsCharacteristic; -import io.github.hapjava.characteristics.impl.fan.RotationSpeedCharacteristic; -import io.github.hapjava.characteristics.impl.fan.SwingModeCharacteristic; - -/** This service describes an air purifier. */ -public class AirPurifierService extends AbstractServiceImpl { - - public AirPurifierService( - ActiveCharacteristic active, - CurrentAirPurifierCharacteristic currentState, - TargetAirPurifierStateCharacteristic targetState) { - super("000000BB-0000-1000-8000-0026BB765291"); - addCharacteristic(active); - addCharacteristic(currentState); - addCharacteristic(targetState); - } - - public AirPurifierService(AirPurifierAccessory accessory) { - this( - new ActiveCharacteristic( - () -> accessory.isActive().thenApply(s -> s ? ActiveEnum.ACTIVE : ActiveEnum.INACTIVE), - (v) -> accessory.setActive(v == ActiveEnum.ACTIVE), - accessory::subscribeActive, - accessory::unsubscribeActive), - new CurrentAirPurifierCharacteristic( - accessory::getCurrentState, - accessory::subscribeCurrentState, - accessory::unsubscribeCurrentState), - new TargetAirPurifierStateCharacteristic( - accessory::getTargetState, - accessory::setTargetState, - accessory::subscribeCurrentState, - accessory::unsubscribeCurrentState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithSwingMode) { - addOptionalCharacteristic( - new SwingModeCharacteristic( - ((AccessoryWithSwingMode) accessory)::getSwingMode, - ((AccessoryWithSwingMode) accessory)::setSwingMode, - ((AccessoryWithSwingMode) accessory)::subscribeSwingMode, - ((AccessoryWithSwingMode) accessory)::unsubscribeSwingMode)); - } - if (accessory instanceof AccessoryWithRotationSpeed) { - addOptionalCharacteristic( - new RotationSpeedCharacteristic( - ((AccessoryWithRotationSpeed) accessory)::getRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::setRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::subscribeRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::unsubscribeRotationSpeed)); - } - if (accessory instanceof AccessoryWithPhysicalControlsLock) { - addOptionalCharacteristic( - new LockPhysicalControlsCharacteristic( - ((AccessoryWithPhysicalControlsLock) accessory)::getLockControls, - ((AccessoryWithPhysicalControlsLock) accessory)::setLockControls, - ((AccessoryWithPhysicalControlsLock) accessory)::subscribeLockControls, - ((AccessoryWithPhysicalControlsLock) accessory)::unsubscribeLockControls)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(SwingModeCharacteristic mode) { - addCharacteristic(mode); - } - - public void addOptionalCharacteristic(RotationSpeedCharacteristic speed) { - addCharacteristic(speed); - } - - public void addOptionalCharacteristic(LockPhysicalControlsCharacteristic lock) { - addCharacteristic(lock); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/AirQualityService.java b/src/main/java/io/github/hapjava/services/impl/AirQualityService.java deleted file mode 100644 index 4aa74c88f..000000000 --- a/src/main/java/io/github/hapjava/services/impl/AirQualityService.java +++ /dev/null @@ -1,178 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.AirQualityAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithNitrogenDioxideDensity; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithOzoneDensity; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM10Density; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPM25Density; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSulphurDioxideDensity; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVOCDensity; -import io.github.hapjava.characteristics.impl.airquality.AirQualityCharacteristic; -import io.github.hapjava.characteristics.impl.airquality.NitrogenDioxideDensityCharacteristic; -import io.github.hapjava.characteristics.impl.airquality.OzoneDensityCharacteristic; -import io.github.hapjava.characteristics.impl.airquality.PM10DensityCharacteristic; -import io.github.hapjava.characteristics.impl.airquality.PM25DensityCharacteristic; -import io.github.hapjava.characteristics.impl.airquality.SulphurDioxideDensityCharacteristic; -import io.github.hapjava.characteristics.impl.airquality.VOCDensityCharacteristic; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic; - -/** This service describes air quality sensor. */ -public class AirQualityService extends AbstractServiceImpl { - - public AirQualityService(AirQualityCharacteristic airQuality) { - super("0000008D-0000-1000-8000-0026BB765291"); - addCharacteristic(airQuality); - } - - public AirQualityService(AirQualityAccessory accessory) { - this( - new AirQualityCharacteristic( - accessory::getAirQuality, - accessory::subscribeAirQuality, - accessory::unsubscribeAirQuality)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - - if (accessory instanceof AccessoryWithOzoneDensity) { - addOptionalCharacteristic( - new OzoneDensityCharacteristic( - ((AccessoryWithOzoneDensity) accessory)::getOzoneDensity, - ((AccessoryWithOzoneDensity) accessory)::subscribeOzoneDensity, - ((AccessoryWithOzoneDensity) accessory)::unsubscribeOzoneDensity)); - } - if (accessory instanceof AccessoryWithNitrogenDioxideDensity) { - addOptionalCharacteristic( - new NitrogenDioxideDensityCharacteristic( - ((AccessoryWithNitrogenDioxideDensity) accessory).getMinNitrogenDioxideDensity(), - ((AccessoryWithNitrogenDioxideDensity) accessory).getMaxNitrogenDioxideDensity(), - ((AccessoryWithNitrogenDioxideDensity) accessory).getMinStepNitrogenDioxideDensity(), - ((AccessoryWithNitrogenDioxideDensity) accessory)::getNitrogenDioxideDensity, - ((AccessoryWithNitrogenDioxideDensity) accessory)::subscribeNitrogenDioxideDensity, - ((AccessoryWithNitrogenDioxideDensity) accessory) - ::unsubscribeNitrogenDioxideDensity)); - } - - if (accessory instanceof AccessoryWithSulphurDioxideDensity) { - addOptionalCharacteristic( - new SulphurDioxideDensityCharacteristic( - ((AccessoryWithSulphurDioxideDensity) accessory).getMinSulphurDioxideDensity(), - ((AccessoryWithSulphurDioxideDensity) accessory).getMaxSulphurDioxideDensity(), - ((AccessoryWithSulphurDioxideDensity) accessory).getMinStepSulphurDioxideDensity(), - ((AccessoryWithSulphurDioxideDensity) accessory)::getSulphurDioxideDensity, - ((AccessoryWithSulphurDioxideDensity) accessory)::subscribeSulphurDioxideDensity, - ((AccessoryWithSulphurDioxideDensity) accessory)::unsubscribeSulphurDioxideDensity)); - } - if (accessory instanceof AccessoryWithPM25Density) { - addOptionalCharacteristic( - new PM25DensityCharacteristic( - ((AccessoryWithPM25Density) accessory).getMinPM25Density(), - ((AccessoryWithPM25Density) accessory).getMaxPM25Density(), - ((AccessoryWithPM25Density) accessory).getMinStepPM25Density(), - ((AccessoryWithPM25Density) accessory)::getPM25Density, - ((AccessoryWithPM25Density) accessory)::subscribePM25Density, - ((AccessoryWithPM25Density) accessory)::unsubscribePM25Density)); - } - if (accessory instanceof AccessoryWithPM10Density) { - addOptionalCharacteristic( - new PM10DensityCharacteristic( - ((AccessoryWithPM10Density) accessory).getMinPM10Density(), - ((AccessoryWithPM10Density) accessory).getMaxPM10Density(), - ((AccessoryWithPM10Density) accessory).getMinStepPM10Density(), - ((AccessoryWithPM10Density) accessory)::getPM10Density, - ((AccessoryWithPM10Density) accessory)::subscribePM10Density, - ((AccessoryWithPM10Density) accessory)::unsubscribePM10Density)); - } - if (accessory instanceof AccessoryWithVOCDensity) { - addOptionalCharacteristic( - new VOCDensityCharacteristic( - ((AccessoryWithVOCDensity) accessory).getMinVOCDensity(), - ((AccessoryWithVOCDensity) accessory).getMaxVOCDensity(), - ((AccessoryWithVOCDensity) accessory).getMinStepVOCDensity(), - ((AccessoryWithVOCDensity) accessory)::getVOCDensity, - ((AccessoryWithVOCDensity) accessory)::subscribeVOCDensity, - ((AccessoryWithVOCDensity) accessory)::unsubscribeVOCDensity)); - } - if (accessory instanceof AccessoryWithStatusActive) { - addOptionalCharacteristic( - new StatusActiveCharacteristic( - ((AccessoryWithStatusActive) accessory)::getStatusActive, - ((AccessoryWithStatusActive) accessory)::subscribeStatusActive, - ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithStatusTampered) { - addOptionalCharacteristic( - new StatusTamperedCharacteristic( - ((AccessoryWithStatusTampered) accessory)::getStatusTampered, - ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered, - ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered)); - } - if (accessory instanceof AccessoryWithStatusLowBattery) { - addOptionalCharacteristic( - new StatusLowBatteryCharacteristic( - ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(OzoneDensityCharacteristic ozoneDensity) { - addCharacteristic(ozoneDensity); - } - - public void addOptionalCharacteristic(NitrogenDioxideDensityCharacteristic nitrogenDensity) { - addCharacteristic(nitrogenDensity); - } - - public void addOptionalCharacteristic(SulphurDioxideDensityCharacteristic sulphuhrDensity) { - addCharacteristic(sulphuhrDensity); - } - - public void addOptionalCharacteristic(PM25DensityCharacteristic pm25Density) { - addCharacteristic(pm25Density); - } - - public void addOptionalCharacteristic(PM10DensityCharacteristic pm10Density) { - addCharacteristic(pm10Density); - } - - public void addOptionalCharacteristic(VOCDensityCharacteristic vocDensity) { - addCharacteristic(vocDensity); - } - - public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) { - addCharacteristic(statusActive); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } - - public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) { - addCharacteristic(statusTampered); - } - - public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) { - addCharacteristic(statusLowBattery); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/BasicFanService.java b/src/main/java/io/github/hapjava/services/impl/BasicFanService.java deleted file mode 100644 index 9a033dd0c..000000000 --- a/src/main/java/io/github/hapjava/services/impl/BasicFanService.java +++ /dev/null @@ -1,65 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.BasicFanAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationDirection; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationSpeed; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.OnCharacteristic; -import io.github.hapjava.characteristics.impl.fan.RotationDirectionCharacteristic; -import io.github.hapjava.characteristics.impl.fan.RotationSpeedCharacteristic; - -/** - * This service describes a fan. - * - *

    In the R1 release of the HAP specification, this is simply described as Fan. It is no longer - * present in the R2 release. - */ -public class BasicFanService extends AbstractServiceImpl { - - public BasicFanService(OnCharacteristic on) { - super("00000040-0000-1000-8000-0026BB765291"); - addCharacteristic(on); - } - - public BasicFanService(BasicFanAccessory accessory) { - this( - new OnCharacteristic( - () -> accessory.isOn(), - (v) -> accessory.setOn(v), - accessory::subscribeOn, - accessory::unsubscribeOn)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - - if (accessory instanceof AccessoryWithRotationDirection) { - addOptionalCharacteristic( - new RotationDirectionCharacteristic( - ((AccessoryWithRotationDirection) accessory)::getRotationDirection, - ((AccessoryWithRotationDirection) accessory)::setRotationDirection, - ((AccessoryWithRotationDirection) accessory)::subscribeRotationDirection, - ((AccessoryWithRotationDirection) accessory)::unsubscribeRotationDirection)); - } - if (accessory instanceof AccessoryWithRotationSpeed) { - addOptionalCharacteristic( - new RotationSpeedCharacteristic( - ((AccessoryWithRotationSpeed) accessory)::getRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::setRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::subscribeRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::unsubscribeRotationSpeed)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(RotationDirectionCharacteristic direction) { - addCharacteristic(direction); - } - - public void addOptionalCharacteristic(RotationSpeedCharacteristic speed) { - addCharacteristic(speed); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/BatteryService.java b/src/main/java/io/github/hapjava/services/impl/BatteryService.java deleted file mode 100644 index 46259a6e8..000000000 --- a/src/main/java/io/github/hapjava/services/impl/BatteryService.java +++ /dev/null @@ -1,45 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.BatteryAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.characteristics.impl.battery.BatteryLevelCharacteristic; -import io.github.hapjava.characteristics.impl.battery.ChargingStateCharacteristic; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; - -/** This service describes a battery service. */ -public class BatteryService extends AbstractServiceImpl { - - public BatteryService( - BatteryLevelCharacteristic batteryLevelCharacteristic, - ChargingStateCharacteristic chargingStateCharacteristic, - StatusLowBatteryCharacteristic statusLowBatteryCharacteristic) { - super("00000096-0000-1000-8000-0026BB765291"); - addCharacteristic(batteryLevelCharacteristic); - addCharacteristic(chargingStateCharacteristic); - addCharacteristic(statusLowBatteryCharacteristic); - } - - public BatteryService(BatteryAccessory accessory) { - this( - new BatteryLevelCharacteristic( - accessory::getBatteryLevel, - accessory::subscribeBatteryLevel, - accessory::unsubscribeBatteryLevel), - new ChargingStateCharacteristic( - accessory::getChargingState, - accessory::subscribeBatteryChargingState, - accessory::unsubscribeBatteryChargingState), - new StatusLowBatteryCharacteristic( - accessory::getLowBatteryState, - accessory::subscribeLowBatteryState, - accessory::unsubscribeLowBatteryState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/CarbonDioxideSensorService.java b/src/main/java/io/github/hapjava/services/impl/CarbonDioxideSensorService.java deleted file mode 100644 index b61e91b91..000000000 --- a/src/main/java/io/github/hapjava/services/impl/CarbonDioxideSensorService.java +++ /dev/null @@ -1,114 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.CarbonDioxideSensorAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonDioxideLevel; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic; -import io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideDetectedCharacteristic; -import io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxideLevelCharacteristic; -import io.github.hapjava.characteristics.impl.carbondioxidesensor.CarbonDioxidePeakLevelCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic; - -/** This service describes a carbon dioxide sensor. */ -public class CarbonDioxideSensorService extends AbstractServiceImpl { - - public CarbonDioxideSensorService(CarbonDioxideDetectedCharacteristic carbonDioxideDetected) { - super("00000097-0000-1000-8000-0026BB765291"); - addCharacteristic(carbonDioxideDetected); - } - - public CarbonDioxideSensorService(CarbonDioxideSensorAccessory accessory) { - this( - new CarbonDioxideDetectedCharacteristic( - accessory::getCarbonDioxideDetectedState, - accessory::subscribeCarbonDioxideDetectedState, - accessory::unsubscribeCarbonDioxideDetectedState)); - - if (accessory instanceof AccessoryWithCarbonDioxideLevel) { - addOptionalCharacteristic( - new CarbonDioxideLevelCharacteristic( - ((AccessoryWithCarbonDioxideLevel) accessory).getMinCarbonDioxideLevel(), - ((AccessoryWithCarbonDioxideLevel) accessory).getMaxCarbonDioxideLevel(), - ((AccessoryWithCarbonDioxideLevel) accessory).getMinStepCarbonDioxideLevel(), - ((AccessoryWithCarbonDioxideLevel) accessory)::getCarbonDioxideLevel, - ((AccessoryWithCarbonDioxideLevel) accessory)::subscribeCarbonDioxideLevel, - ((AccessoryWithCarbonDioxideLevel) accessory)::unsubscribeCarbonDioxideLevel)); - addOptionalCharacteristic( - new CarbonDioxidePeakLevelCharacteristic( - ((AccessoryWithCarbonDioxideLevel) accessory).getMinCarbonDioxidePeakLevel(), - ((AccessoryWithCarbonDioxideLevel) accessory).getMaxCarbonDioxidePeakLevel(), - ((AccessoryWithCarbonDioxideLevel) accessory).getMinStepCarbonDioxidePeakLevel(), - ((AccessoryWithCarbonDioxideLevel) accessory)::getCarbonDioxidePeakLevel, - ((AccessoryWithCarbonDioxideLevel) accessory)::subscribeCarbonDioxidePeakLevel, - ((AccessoryWithCarbonDioxideLevel) accessory)::unsubscribeCarbonDioxidePeakLevel)); - } - - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusActive) { - addOptionalCharacteristic( - new StatusActiveCharacteristic( - ((AccessoryWithStatusActive) accessory)::getStatusActive, - ((AccessoryWithStatusActive) accessory)::subscribeStatusActive, - ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithStatusTampered) { - addOptionalCharacteristic( - new StatusTamperedCharacteristic( - ((AccessoryWithStatusTampered) accessory)::getStatusTampered, - ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered, - ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered)); - } - if (accessory instanceof AccessoryWithStatusLowBattery) { - addOptionalCharacteristic( - new StatusLowBatteryCharacteristic( - ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) { - addCharacteristic(statusActive); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } - - public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) { - addCharacteristic(statusTampered); - } - - public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) { - addCharacteristic(statusLowBattery); - } - - public void addOptionalCharacteristic(CarbonDioxideLevelCharacteristic carbonDioxideLevel) { - addCharacteristic(carbonDioxideLevel); - } - - public void addOptionalCharacteristic( - CarbonDioxidePeakLevelCharacteristic carbonDioxidePeakLevel) { - addCharacteristic(carbonDioxidePeakLevel); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/CarbonMonoxideSensorService.java b/src/main/java/io/github/hapjava/services/impl/CarbonMonoxideSensorService.java deleted file mode 100644 index 11b66c5c4..000000000 --- a/src/main/java/io/github/hapjava/services/impl/CarbonMonoxideSensorService.java +++ /dev/null @@ -1,108 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.CarbonMonoxideSensorAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCarbonMonoxideLevel; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic; -import io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideDetectedCharacteristic; -import io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxideLevelCharacteristic; -import io.github.hapjava.characteristics.impl.carbonmonoxidesensor.CarbonMonoxidePeakLevelCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic; - -/** This service describes a carbon monoxide sensor. */ -public class CarbonMonoxideSensorService extends AbstractServiceImpl { - - public CarbonMonoxideSensorService(CarbonMonoxideDetectedCharacteristic carbonMonoxideDetected) { - super("0000007F-0000-1000-8000-0026BB765291"); - addCharacteristic(carbonMonoxideDetected); - } - - public CarbonMonoxideSensorService(CarbonMonoxideSensorAccessory accessory) { - this( - new CarbonMonoxideDetectedCharacteristic( - accessory::getCarbonMonoxideDetectedState, - accessory::subscribeCarbonMonoxideDetectedState, - accessory::unsubscribeCarbonMonoxideDetectedState)); - - if (accessory instanceof AccessoryWithCarbonMonoxideLevel) { - addOptionalCharacteristic( - new CarbonMonoxideLevelCharacteristic( - ((AccessoryWithCarbonMonoxideLevel) accessory)::getCarbonMonoxideLevel, - ((AccessoryWithCarbonMonoxideLevel) accessory)::subscribeCarbonMonoxideLevel, - ((AccessoryWithCarbonMonoxideLevel) accessory)::unsubscribeCarbonMonoxideLevel)); - addOptionalCharacteristic( - new CarbonMonoxidePeakLevelCharacteristic( - ((AccessoryWithCarbonMonoxideLevel) accessory)::getCarbonMonoxidePeakLevel, - ((AccessoryWithCarbonMonoxideLevel) accessory)::subscribeCarbonMonoxidePeakLevel, - ((AccessoryWithCarbonMonoxideLevel) accessory)::unsubscribeCarbonMonoxidePeakLevel)); - } - - if (accessory instanceof AccessoryWithStatusActive) { - addOptionalCharacteristic( - new StatusActiveCharacteristic( - ((AccessoryWithStatusActive) accessory)::getStatusActive, - ((AccessoryWithStatusActive) accessory)::subscribeStatusActive, - ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive)); - } - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithStatusTampered) { - addOptionalCharacteristic( - new StatusTamperedCharacteristic( - ((AccessoryWithStatusTampered) accessory)::getStatusTampered, - ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered, - ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered)); - } - if (accessory instanceof AccessoryWithStatusLowBattery) { - addOptionalCharacteristic( - new StatusLowBatteryCharacteristic( - ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) { - addCharacteristic(statusActive); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } - - public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) { - addCharacteristic(statusTampered); - } - - public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) { - addCharacteristic(statusLowBattery); - } - - public void addOptionalCharacteristic(CarbonMonoxideLevelCharacteristic carbonMonoxideLevel) { - addCharacteristic(carbonMonoxideLevel); - } - - public void addOptionalCharacteristic( - CarbonMonoxidePeakLevelCharacteristic carbonMonoxidePeakLevel) { - addCharacteristic(carbonMonoxidePeakLevel); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/ContactSensorService.java b/src/main/java/io/github/hapjava/services/impl/ContactSensorService.java deleted file mode 100644 index 675553697..000000000 --- a/src/main/java/io/github/hapjava/services/impl/ContactSensorService.java +++ /dev/null @@ -1,83 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.ContactSensorAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic; -import io.github.hapjava.characteristics.impl.contactsensor.ContactSensorStateCharacteristic; - -/** This service describes a Contact Sensor. */ -public class ContactSensorService extends AbstractServiceImpl { - - public ContactSensorService(ContactSensorStateCharacteristic contactSensorState) { - super("00000080-0000-1000-8000-0026BB765291"); - addCharacteristic(contactSensorState); - } - - public ContactSensorService(ContactSensorAccessory accessory) { - this( - new ContactSensorStateCharacteristic( - accessory::getCurrentState, - accessory::subscribeContactState, - accessory::unsubscribeContactState)); - - if (accessory instanceof AccessoryWithStatusActive) { - addOptionalCharacteristic( - new StatusActiveCharacteristic( - ((AccessoryWithStatusActive) accessory)::getStatusActive, - ((AccessoryWithStatusActive) accessory)::subscribeStatusActive, - ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive)); - } - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithStatusTampered) { - addOptionalCharacteristic( - new StatusTamperedCharacteristic( - ((AccessoryWithStatusTampered) accessory)::getStatusTampered, - ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered, - ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered)); - } - if (accessory instanceof AccessoryWithStatusLowBattery) { - addOptionalCharacteristic( - new StatusLowBatteryCharacteristic( - ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) { - addCharacteristic(statusActive); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } - - public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) { - addCharacteristic(statusTampered); - } - - public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) { - addCharacteristic(statusLowBattery); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/DoorService.java b/src/main/java/io/github/hapjava/services/impl/DoorService.java deleted file mode 100644 index 51f956f5f..000000000 --- a/src/main/java/io/github/hapjava/services/impl/DoorService.java +++ /dev/null @@ -1,84 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.DoorAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHoldPosition; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithMute; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithObstructionDetection; -import io.github.hapjava.characteristics.impl.audio.MuteCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.ObstructionDetectedCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.CurrentPositionCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.HoldPositionCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.PositionStateCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.TargetPositionCharacteristic; - -/** This service describes a motorized door. */ -public class DoorService extends AbstractServiceImpl { - - public DoorService( - CurrentPositionCharacteristic currentPositionCharacteristic, - TargetPositionCharacteristic targetPositionCharacteristic, - PositionStateCharacteristic positionStateCharacteristic) { - super("00000081-0000-1000-8000-0026BB765291"); - addCharacteristic(currentPositionCharacteristic); - addCharacteristic(targetPositionCharacteristic); - addCharacteristic(positionStateCharacteristic); - } - - public DoorService(DoorAccessory accessory) { - this( - new CurrentPositionCharacteristic( - accessory::getCurrentPosition, - accessory::subscribeCurrentPosition, - accessory::unsubscribeCurrentPosition), - new TargetPositionCharacteristic( - accessory::getTargetPosition, - accessory::setTargetPosition, - accessory::subscribeTargetPosition, - accessory::unsubscribeTargetPosition), - new PositionStateCharacteristic( - accessory::getPositionState, - accessory::subscribePositionState, - accessory::unsubscribePositionState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithHoldPosition) { - addOptionalCharacteristic( - new HoldPositionCharacteristic(((AccessoryWithHoldPosition) accessory)::setHoldPosition)); - } - if (accessory instanceof AccessoryWithObstructionDetection) { - addOptionalCharacteristic( - new ObstructionDetectedCharacteristic( - ((AccessoryWithObstructionDetection) accessory)::getObstructionDetected, - ((AccessoryWithObstructionDetection) accessory)::subscribeObstructionDetected, - ((AccessoryWithObstructionDetection) accessory)::unsubscribeObstructionDetected)); - } - if (accessory instanceof AccessoryWithMute) { - addOptionalCharacteristic( - new MuteCharacteristic( - ((AccessoryWithMute) accessory)::isMuted, - ((AccessoryWithMute) accessory)::setMute, - ((AccessoryWithMute) accessory)::subscribeMuteState, - ((AccessoryWithMute) accessory)::unsubscribeMuteState)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(HoldPositionCharacteristic holdPositionCharacteristic) { - addCharacteristic(holdPositionCharacteristic); - } - - public void addOptionalCharacteristic( - ObstructionDetectedCharacteristic obstructionDetectedCharacteristic) { - addCharacteristic(obstructionDetectedCharacteristic); - } - - public void addOptionalCharacteristic(MuteCharacteristic muteCharacteristic) { - addCharacteristic(muteCharacteristic); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/DoorbellService.java b/src/main/java/io/github/hapjava/services/impl/DoorbellService.java deleted file mode 100644 index 06ee325d4..000000000 --- a/src/main/java/io/github/hapjava/services/impl/DoorbellService.java +++ /dev/null @@ -1,72 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.DoorbellAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithBrightness; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithMute; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolume; -import io.github.hapjava.characteristics.impl.audio.MuteCharacteristic; -import io.github.hapjava.characteristics.impl.audio.VolumeCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEventCharacteristic; -import io.github.hapjava.characteristics.impl.lightbulb.BrightnessCharacteristic; - -/** The Doorbell service describes a doorbell. */ -public class DoorbellService extends AbstractServiceImpl { - - public DoorbellService(ProgrammableSwitchEventCharacteristic switchEvent) { - super("00000121-0000-1000-8000-0026BB765291"); - addCharacteristic(switchEvent); - } - - public DoorbellService(DoorbellAccessory accessory) { - this( - new ProgrammableSwitchEventCharacteristic( - accessory::getSwitchEvent, - accessory::subscribeSwitchEvent, - accessory::unsubscribeSwitchEvent)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithBrightness) { - addOptionalCharacteristic( - new BrightnessCharacteristic( - ((AccessoryWithBrightness) accessory)::getBrightness, - ((AccessoryWithBrightness) accessory)::setBrightness, - ((AccessoryWithBrightness) accessory)::subscribeBrightness, - ((AccessoryWithBrightness) accessory)::unsubscribeBrightness)); - } - if (accessory instanceof AccessoryWithVolume) { - addOptionalCharacteristic( - new VolumeCharacteristic( - ((AccessoryWithVolume) accessory)::getVolume, - ((AccessoryWithVolume) accessory)::setVolume, - ((AccessoryWithVolume) accessory)::subscribeVolume, - ((AccessoryWithVolume) accessory)::unsubscribeVolume)); - } - if (accessory instanceof AccessoryWithMute) { - addOptionalCharacteristic( - new MuteCharacteristic( - ((AccessoryWithMute) accessory)::isMuted, - ((AccessoryWithMute) accessory)::setMute, - ((AccessoryWithMute) accessory)::subscribeMuteState, - ((AccessoryWithMute) accessory)::unsubscribeMuteState)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(BrightnessCharacteristic brightness) { - addCharacteristic(brightness); - } - - public void addOptionalCharacteristic(VolumeCharacteristic volume) { - addCharacteristic(volume); - } - - public void addOptionalCharacteristic(MuteCharacteristic mute) { - addCharacteristic(mute); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/FanService.java b/src/main/java/io/github/hapjava/services/impl/FanService.java deleted file mode 100644 index a8f3a7103..000000000 --- a/src/main/java/io/github/hapjava/services/impl/FanService.java +++ /dev/null @@ -1,118 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.FanAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFanState; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPhysicalControlsLock; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationDirection; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationSpeed; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSwingMode; -import io.github.hapjava.characteristics.impl.common.ActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.ActiveEnum; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.fan.CurrentFanStateCharacteristic; -import io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsCharacteristic; -import io.github.hapjava.characteristics.impl.fan.RotationDirectionCharacteristic; -import io.github.hapjava.characteristics.impl.fan.RotationSpeedCharacteristic; -import io.github.hapjava.characteristics.impl.fan.SwingModeCharacteristic; -import io.github.hapjava.characteristics.impl.fan.TargetFanStateCharacteristic; - -/** - * This service describes a fan. - * - *

    In the R1 release of the HAP specification, this is described as Fan v2. In the R1 release of - * the HAP specification, this is simply described as Fan. - */ -public class FanService extends AbstractServiceImpl { - - public FanService(ActiveCharacteristic active) { - super("000000B7-0000-1000-8000-0026BB765291"); - addCharacteristic(active); - } - - public FanService(FanAccessory accessory) { - this( - new ActiveCharacteristic( - () -> accessory.isActive().thenApply(s -> s ? ActiveEnum.ACTIVE : ActiveEnum.INACTIVE), - (v) -> accessory.setActive(v == ActiveEnum.ACTIVE), - accessory::subscribeActive, - accessory::unsubscribeActive)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - - if (accessory instanceof AccessoryWithFanState) { - addOptionalCharacteristic( - new CurrentFanStateCharacteristic( - ((AccessoryWithFanState) accessory)::getCurrentFanState, - ((AccessoryWithFanState) accessory)::subscribeCurrentFanState, - ((AccessoryWithFanState) accessory)::unsubscribeCurrentFanState)); - addOptionalCharacteristic( - new TargetFanStateCharacteristic( - ((AccessoryWithFanState) accessory)::getTargetFanState, - ((AccessoryWithFanState) accessory)::setTargetFanState, - ((AccessoryWithFanState) accessory)::subscribeTargetFanState, - ((AccessoryWithFanState) accessory)::unsubscribeTargetFanState)); - } - if (accessory instanceof AccessoryWithRotationDirection) { - addOptionalCharacteristic( - new RotationDirectionCharacteristic( - ((AccessoryWithRotationDirection) accessory)::getRotationDirection, - ((AccessoryWithRotationDirection) accessory)::setRotationDirection, - ((AccessoryWithRotationDirection) accessory)::subscribeRotationDirection, - ((AccessoryWithRotationDirection) accessory)::unsubscribeRotationDirection)); - } - if (accessory instanceof AccessoryWithRotationSpeed) { - addOptionalCharacteristic( - new RotationSpeedCharacteristic( - ((AccessoryWithRotationSpeed) accessory)::getRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::setRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::subscribeRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::unsubscribeRotationSpeed)); - } - if (accessory instanceof AccessoryWithSwingMode) { - addOptionalCharacteristic( - new SwingModeCharacteristic( - ((AccessoryWithSwingMode) accessory)::getSwingMode, - ((AccessoryWithSwingMode) accessory)::setSwingMode, - ((AccessoryWithSwingMode) accessory)::subscribeSwingMode, - ((AccessoryWithSwingMode) accessory)::unsubscribeSwingMode)); - } - if (accessory instanceof AccessoryWithPhysicalControlsLock) { - addOptionalCharacteristic( - new LockPhysicalControlsCharacteristic( - ((AccessoryWithPhysicalControlsLock) accessory)::getLockControls, - ((AccessoryWithPhysicalControlsLock) accessory)::setLockControls, - ((AccessoryWithPhysicalControlsLock) accessory)::subscribeLockControls, - ((AccessoryWithPhysicalControlsLock) accessory)::unsubscribeLockControls)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(CurrentFanStateCharacteristic state) { - addCharacteristic(state); - } - - public void addOptionalCharacteristic(TargetFanStateCharacteristic state) { - addCharacteristic(state); - } - - public void addOptionalCharacteristic(RotationDirectionCharacteristic direction) { - addCharacteristic(direction); - } - - public void addOptionalCharacteristic(RotationSpeedCharacteristic speed) { - addCharacteristic(speed); - } - - public void addOptionalCharacteristic(SwingModeCharacteristic mode) { - addCharacteristic(mode); - } - - public void addOptionalCharacteristic(LockPhysicalControlsCharacteristic lock) { - addCharacteristic(lock); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/FaucetService.java b/src/main/java/io/github/hapjava/services/impl/FaucetService.java deleted file mode 100644 index 1028fa9b1..000000000 --- a/src/main/java/io/github/hapjava/services/impl/FaucetService.java +++ /dev/null @@ -1,50 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.FaucetAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.characteristics.impl.common.ActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.ActiveEnum; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; - -/** - * This service describes accessories like faucets or shower heads and must only be included when an - * accessory has either a linked {@link HeaterCoolerService}, single linked {@link ValveService} or - * multiple linked {@link ValveService} (with/without {@link HeaterCoolerService} to describe water - * outlets. This service serves as a top level service for such accessories. - */ -public class FaucetService extends AbstractServiceImpl { - - public FaucetService(ActiveCharacteristic active) { - super("000000D7-0000-1000-8000-0026BB765291"); - addCharacteristic(active); - } - - public FaucetService(FaucetAccessory accessory) { - this( - new ActiveCharacteristic( - () -> accessory.isActive().thenApply(s -> s ? ActiveEnum.ACTIVE : ActiveEnum.INACTIVE), - (v) -> accessory.setActive(v == ActiveEnum.ACTIVE), - accessory::subscribeActive, - accessory::unsubscribeActive)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/FilterMaintenanceService.java b/src/main/java/io/github/hapjava/services/impl/FilterMaintenanceService.java deleted file mode 100644 index 10788cdea..000000000 --- a/src/main/java/io/github/hapjava/services/impl/FilterMaintenanceService.java +++ /dev/null @@ -1,57 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.FilterMaintenanceAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithFilterLifeLevel; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithResetFilterIndication; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.filtermaintenance.FilterChangeIndicationCharacteristic; -import io.github.hapjava.characteristics.impl.filtermaintenance.FilterLifeLevelCharacteristic; -import io.github.hapjava.characteristics.impl.filtermaintenance.ResetFilterIndicationCharacteristic; - -/** This service describes a filter maintenance. */ -public class FilterMaintenanceService extends AbstractServiceImpl { - - public FilterMaintenanceService(FilterChangeIndicationCharacteristic filerChange) { - super("000000BA-0000-1000-8000-0026BB765291"); - addCharacteristic(filerChange); - } - - public FilterMaintenanceService(FilterMaintenanceAccessory accessory) { - this( - new FilterChangeIndicationCharacteristic( - accessory::getFilterChangeIndication, - accessory::subscribeFilterChangeIndication, - accessory::unsubscribeFilterChangeIndication)); - - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - - if (accessory instanceof AccessoryWithFilterLifeLevel) { - addOptionalCharacteristic( - new FilterLifeLevelCharacteristic( - ((AccessoryWithFilterLifeLevel) accessory)::getFilterLifeLevel, - ((AccessoryWithFilterLifeLevel) accessory)::subscribeFilterLifeLevel, - ((AccessoryWithFilterLifeLevel) accessory)::unsubscribeFilterLifeLevel)); - } - - if (accessory instanceof AccessoryWithResetFilterIndication) { - addOptionalCharacteristic( - new ResetFilterIndicationCharacteristic( - ((AccessoryWithResetFilterIndication) accessory)::resetFilterIndication)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(FilterLifeLevelCharacteristic filterLifeLevel) { - addCharacteristic(filterLifeLevel); - } - - public void addOptionalCharacteristic(ResetFilterIndicationCharacteristic resetFilterIndication) { - addCharacteristic(resetFilterIndication); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/GarageDoorOpenerService.java b/src/main/java/io/github/hapjava/services/impl/GarageDoorOpenerService.java deleted file mode 100644 index b90a7e5ee..000000000 --- a/src/main/java/io/github/hapjava/services/impl/GarageDoorOpenerService.java +++ /dev/null @@ -1,73 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.GarageDoorOpenerAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockCurrentState; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithLockTargetState; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.ObstructionDetectedCharacteristic; -import io.github.hapjava.characteristics.impl.garagedoor.CurrentDoorStateCharacteristic; -import io.github.hapjava.characteristics.impl.garagedoor.TargetDoorStateCharacteristic; -import io.github.hapjava.characteristics.impl.lock.LockCurrentStateCharacteristic; -import io.github.hapjava.characteristics.impl.lock.LockTargetStateCharacteristic; - -/** This service describes a garage door opener that controls a single door. */ -public class GarageDoorOpenerService extends AbstractServiceImpl { - - public GarageDoorOpenerService( - CurrentDoorStateCharacteristic currentState, - TargetDoorStateCharacteristic targetState, - ObstructionDetectedCharacteristic obstruction) { - super("00000041-0000-1000-8000-0026BB765291"); - addCharacteristic(currentState); - addCharacteristic(targetState); - addCharacteristic(obstruction); - } - - public GarageDoorOpenerService(GarageDoorOpenerAccessory accessory) { - this( - new CurrentDoorStateCharacteristic( - accessory::getCurrentDoorState, - accessory::subscribeCurrentDoorState, - accessory::unsubscribeCurrentDoorState), - new TargetDoorStateCharacteristic( - accessory::getTargetDoorState, - accessory::setTargetDoorState, - accessory::subscribeTargetDoorState, - accessory::unsubscribeTargetDoorState), - new ObstructionDetectedCharacteristic( - accessory::getObstructionDetected, - accessory::subscribeObstructionDetected, - accessory::unsubscribeObstructionDetected)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithLockCurrentState) { - addOptionalCharacteristic( - new LockCurrentStateCharacteristic( - ((AccessoryWithLockCurrentState) accessory)::getLockCurrentState, - ((AccessoryWithLockCurrentState) accessory)::subscribeLockCurrentState, - ((AccessoryWithLockCurrentState) accessory)::unsubscribeLockCurrentState)); - } - if (accessory instanceof AccessoryWithLockTargetState) { - addOptionalCharacteristic( - new LockTargetStateCharacteristic( - ((AccessoryWithLockTargetState) accessory)::getLockTargetState, - ((AccessoryWithLockTargetState) accessory)::setLockTargetState, - ((AccessoryWithLockTargetState) accessory)::subscribeLockTargetState, - ((AccessoryWithLockTargetState) accessory)::unsubscribeLockTargetState)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(LockCurrentStateCharacteristic lockState) { - addCharacteristic(lockState); - } - - public void addOptionalCharacteristic(LockTargetStateCharacteristic lockState) { - addCharacteristic(lockState); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/HAPProtocolInformationService.java b/src/main/java/io/github/hapjava/services/impl/HAPProtocolInformationService.java deleted file mode 100644 index bc49852f5..000000000 --- a/src/main/java/io/github/hapjava/services/impl/HAPProtocolInformationService.java +++ /dev/null @@ -1,12 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.characteristics.impl.common.VersionCharacteristic; - -/** This service HAP version. */ -public class HAPProtocolInformationService extends AbstractServiceImpl { - - public HAPProtocolInformationService(VersionCharacteristic versionCharacteristic) { - super("000000A2-0000-1000-8000-0026BB765291"); - addCharacteristic(versionCharacteristic); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/HeaterCoolerService.java b/src/main/java/io/github/hapjava/services/impl/HeaterCoolerService.java deleted file mode 100644 index 5204ae006..000000000 --- a/src/main/java/io/github/hapjava/services/impl/HeaterCoolerService.java +++ /dev/null @@ -1,162 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.HeaterCoolerAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCoolingThresholdTemperature; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHeatingThresholdTemperature; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPhysicalControlsLock; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationSpeed; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSwingMode; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTemperatureDisplayUnits; -import io.github.hapjava.characteristics.impl.common.ActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.ActiveEnum; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsCharacteristic; -import io.github.hapjava.characteristics.impl.fan.RotationSpeedCharacteristic; -import io.github.hapjava.characteristics.impl.fan.SwingModeCharacteristic; -import io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateCharacteristic; -import io.github.hapjava.characteristics.impl.heatercooler.TargetHeaterCoolerStateCharacteristic; -import io.github.hapjava.characteristics.impl.thermostat.CoolingThresholdTemperatureCharacteristic; -import io.github.hapjava.characteristics.impl.thermostat.CurrentTemperatureCharacteristic; -import io.github.hapjava.characteristics.impl.thermostat.HeatingThresholdTemperatureCharacteristic; -import io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitCharacteristic; - -/** This service can be used to describe a heater and/or a cooler */ -public class HeaterCoolerService extends AbstractServiceImpl { - - public HeaterCoolerService( - ActiveCharacteristic activeCharacteristic, - CurrentTemperatureCharacteristic currentTemperatureCharacteristic, - CurrentHeaterCoolerStateCharacteristic currentHeaterCoolerStateCharacteristic, - TargetHeaterCoolerStateCharacteristic targetHeaterCoolerStateCharacteristic) { - super("000000BC-0000-1000-8000-0026BB765291"); - addCharacteristic(activeCharacteristic); - addCharacteristic(currentTemperatureCharacteristic); - addCharacteristic(currentHeaterCoolerStateCharacteristic); - addCharacteristic(targetHeaterCoolerStateCharacteristic); - } - - public HeaterCoolerService(HeaterCoolerAccessory accessory) { - this( - new ActiveCharacteristic( - () -> accessory.isActive().thenApply(s -> s ? ActiveEnum.ACTIVE : ActiveEnum.INACTIVE), - (v) -> accessory.setActive(v == ActiveEnum.ACTIVE), - accessory::subscribeActive, - accessory::unsubscribeActive), - new CurrentTemperatureCharacteristic( - accessory::getCurrentTemperature, - accessory::subscribeCurrentTemperature, - accessory::unsubscribeCurrentTemperature), - new CurrentHeaterCoolerStateCharacteristic( - accessory.getCurrentHeaterCoolerStateValidValues(), - accessory::getCurrentHeaterCoolerState, - accessory::subscribeCurrentHeaterCoolerState, - accessory::unsubscribeCurrentHeaterCoolerState), - new TargetHeaterCoolerStateCharacteristic( - accessory.getTargetHeaterCoolerStateValidValues(), - accessory::getTargetHeaterCoolerState, - accessory::setTargetHeaterCoolerState, - accessory::subscribeTargetHeaterCoolerState, - accessory::unsubscribeTargetHeaterCoolerState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithRotationSpeed) { - addOptionalCharacteristic( - new RotationSpeedCharacteristic( - ((AccessoryWithRotationSpeed) accessory)::getRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::setRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::subscribeRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::unsubscribeRotationSpeed)); - } - if (accessory instanceof AccessoryWithSwingMode) { - addOptionalCharacteristic( - new SwingModeCharacteristic( - ((AccessoryWithSwingMode) accessory)::getSwingMode, - ((AccessoryWithSwingMode) accessory)::setSwingMode, - ((AccessoryWithSwingMode) accessory)::subscribeSwingMode, - ((AccessoryWithSwingMode) accessory)::unsubscribeSwingMode)); - } - if (accessory instanceof AccessoryWithPhysicalControlsLock) { - addOptionalCharacteristic( - new LockPhysicalControlsCharacteristic( - ((AccessoryWithPhysicalControlsLock) accessory)::getLockControls, - ((AccessoryWithPhysicalControlsLock) accessory)::setLockControls, - ((AccessoryWithPhysicalControlsLock) accessory)::subscribeLockControls, - ((AccessoryWithPhysicalControlsLock) accessory)::unsubscribeLockControls)); - } - if (accessory instanceof AccessoryWithCoolingThresholdTemperature) { - addOptionalCharacteristic( - new CoolingThresholdTemperatureCharacteristic( - ((AccessoryWithCoolingThresholdTemperature) accessory) - .getMinCoolingThresholdTemperature(), - ((AccessoryWithCoolingThresholdTemperature) accessory) - .getMaxCoolingThresholdTemperature(), - ((AccessoryWithCoolingThresholdTemperature) accessory) - .getStepCoolingThresholdTemperature(), - ((AccessoryWithCoolingThresholdTemperature) accessory) - ::getCoolingThresholdTemperature, - ((AccessoryWithCoolingThresholdTemperature) accessory) - ::setCoolingThresholdTemperature, - ((AccessoryWithCoolingThresholdTemperature) accessory) - ::subscribeCoolingThresholdTemperature, - ((AccessoryWithCoolingThresholdTemperature) accessory) - ::unsubscribeCoolingThresholdTemperature)); - } - if (accessory instanceof AccessoryWithHeatingThresholdTemperature) { - addOptionalCharacteristic( - new HeatingThresholdTemperatureCharacteristic( - ((AccessoryWithHeatingThresholdTemperature) accessory) - .getMinHeatingThresholdTemperature(), - ((AccessoryWithHeatingThresholdTemperature) accessory) - .getMaxHeatingThresholdTemperature(), - ((AccessoryWithHeatingThresholdTemperature) accessory) - .getStepHeatingThresholdTemperature(), - ((AccessoryWithHeatingThresholdTemperature) accessory) - ::getHeatingThresholdTemperature, - ((AccessoryWithHeatingThresholdTemperature) accessory) - ::setHeatingThresholdTemperature, - ((AccessoryWithHeatingThresholdTemperature) accessory) - ::subscribeHeatingThresholdTemperature, - ((AccessoryWithHeatingThresholdTemperature) accessory) - ::unsubscribeHeatingThresholdTemperature)); - } - if (accessory instanceof AccessoryWithTemperatureDisplayUnits) { - addOptionalCharacteristic( - new TemperatureDisplayUnitCharacteristic( - ((AccessoryWithTemperatureDisplayUnits) accessory)::getTemperatureDisplayUnits, - ((AccessoryWithTemperatureDisplayUnits) accessory)::setTemperatureDisplayUnits, - ((AccessoryWithTemperatureDisplayUnits) accessory)::subscribeTemperatureDisplayUnits, - ((AccessoryWithTemperatureDisplayUnits) accessory) - ::unsubscribeTemperatureDisplayUnits)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(RotationSpeedCharacteristic speed) { - addCharacteristic(speed); - } - - public void addOptionalCharacteristic(SwingModeCharacteristic mode) { - addCharacteristic(mode); - } - - public void addOptionalCharacteristic(LockPhysicalControlsCharacteristic lock) { - addCharacteristic(lock); - } - - public void addOptionalCharacteristic(CoolingThresholdTemperatureCharacteristic threshold) { - addCharacteristic(threshold); - } - - public void addOptionalCharacteristic(HeatingThresholdTemperatureCharacteristic threshold) { - addCharacteristic(threshold); - } - - public void addOptionalCharacteristic(TemperatureDisplayUnitCharacteristic displayUnits) { - addCharacteristic(displayUnits); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/HumidifierDehumidifierService.java b/src/main/java/io/github/hapjava/services/impl/HumidifierDehumidifierService.java deleted file mode 100644 index afd1dfdb2..000000000 --- a/src/main/java/io/github/hapjava/services/impl/HumidifierDehumidifierService.java +++ /dev/null @@ -1,143 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.HumidifierDehumidifierAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityDehumidifierThreshold; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHumidityHumidifierThreshold; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPhysicalControlsLock; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRotationSpeed; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSwingMode; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithWaterLevel; -import io.github.hapjava.characteristics.impl.common.ActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.ActiveEnum; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.WaterLavelCharacteristic; -import io.github.hapjava.characteristics.impl.fan.LockPhysicalControlsCharacteristic; -import io.github.hapjava.characteristics.impl.fan.RotationSpeedCharacteristic; -import io.github.hapjava.characteristics.impl.fan.SwingModeCharacteristic; -import io.github.hapjava.characteristics.impl.humidifier.CurrentHumidifierDehumidifierStateCharacteristic; -import io.github.hapjava.characteristics.impl.humidifier.HumidityDehumidifierThresholdCharacteristic; -import io.github.hapjava.characteristics.impl.humidifier.HumidityHumidifierThresholdCharacteristic; -import io.github.hapjava.characteristics.impl.humidifier.TargetHumidifierDehumidifierStateCharacteristic; -import io.github.hapjava.characteristics.impl.humiditysensor.CurrentRelativeHumidityCharacteristic; - -/** This service can be used to describe an air humidifier or/and an air dehumidifier. */ -public class HumidifierDehumidifierService extends AbstractServiceImpl { - - public HumidifierDehumidifierService( - ActiveCharacteristic activeCharacteristic, - CurrentRelativeHumidityCharacteristic currentRelativeHumidityCharacteristic, - CurrentHumidifierDehumidifierStateCharacteristic - currentHumidifierDehumidifierStateCharacteristic, - TargetHumidifierDehumidifierStateCharacteristic - targetHumidifierDehumidifierStateCharacteristic) { - super("000000BD-0000-1000-8000-0026BB765291"); - addCharacteristic(activeCharacteristic); - addCharacteristic(currentRelativeHumidityCharacteristic); - addCharacteristic(currentHumidifierDehumidifierStateCharacteristic); - addCharacteristic(targetHumidifierDehumidifierStateCharacteristic); - } - - public HumidifierDehumidifierService(HumidifierDehumidifierAccessory accessory) { - this( - new ActiveCharacteristic( - () -> accessory.isActive().thenApply(s -> s ? ActiveEnum.ACTIVE : ActiveEnum.INACTIVE), - (v) -> accessory.setActive(v == ActiveEnum.ACTIVE), - accessory::subscribeActive, - accessory::unsubscribeActive), - new CurrentRelativeHumidityCharacteristic( - accessory::getCurrentHumidity, - accessory::subscribeCurrentHumidity, - accessory::unsubscribeCurrentHumidity), - new CurrentHumidifierDehumidifierStateCharacteristic( - accessory::getCurrentHumidifierDehumidifierState, - accessory::subscribeCurrentHumidifierDehumidifierState, - accessory::unsubscribeCurrentHumidifierDehumidifierState), - new TargetHumidifierDehumidifierStateCharacteristic( - accessory.getTargetHumidifierDehumidifierStateValidValues(), - accessory::getTargetHumidifierDehumidifierState, - accessory::setTargetHumidifierDehumidifierState, - accessory::subscribeTargetHumidifierDehumidifierState, - accessory::unsubscribeTargetHumidifierDehumidifierState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithRotationSpeed) { - addOptionalCharacteristic( - new RotationSpeedCharacteristic( - ((AccessoryWithRotationSpeed) accessory)::getRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::setRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::subscribeRotationSpeed, - ((AccessoryWithRotationSpeed) accessory)::unsubscribeRotationSpeed)); - } - if (accessory instanceof AccessoryWithSwingMode) { - addOptionalCharacteristic( - new SwingModeCharacteristic( - ((AccessoryWithSwingMode) accessory)::getSwingMode, - ((AccessoryWithSwingMode) accessory)::setSwingMode, - ((AccessoryWithSwingMode) accessory)::subscribeSwingMode, - ((AccessoryWithSwingMode) accessory)::unsubscribeSwingMode)); - } - if (accessory instanceof AccessoryWithPhysicalControlsLock) { - addOptionalCharacteristic( - new LockPhysicalControlsCharacteristic( - ((AccessoryWithPhysicalControlsLock) accessory)::getLockControls, - ((AccessoryWithPhysicalControlsLock) accessory)::setLockControls, - ((AccessoryWithPhysicalControlsLock) accessory)::subscribeLockControls, - ((AccessoryWithPhysicalControlsLock) accessory)::unsubscribeLockControls)); - } - if (accessory instanceof AccessoryWithHumidityDehumidifierThreshold) { - addOptionalCharacteristic( - new HumidityDehumidifierThresholdCharacteristic( - ((AccessoryWithHumidityDehumidifierThreshold) accessory)::getHumidityThreshold, - ((AccessoryWithHumidityDehumidifierThreshold) accessory)::setHumidityThreshold, - ((AccessoryWithHumidityDehumidifierThreshold) accessory)::subscribeHumidityThreshold, - ((AccessoryWithHumidityDehumidifierThreshold) accessory) - ::unsubscribeHumidityThreshold)); - } - if (accessory instanceof AccessoryWithHumidityHumidifierThreshold) { - addOptionalCharacteristic( - new HumidityHumidifierThresholdCharacteristic( - ((AccessoryWithHumidityHumidifierThreshold) accessory)::getHumidityThreshold, - ((AccessoryWithHumidityHumidifierThreshold) accessory)::setHumidityThreshold, - ((AccessoryWithHumidityHumidifierThreshold) accessory)::subscribeHumidityThreshold, - ((AccessoryWithHumidityHumidifierThreshold) accessory) - ::unsubscribeHumidityThreshold)); - } - if (accessory instanceof AccessoryWithWaterLevel) { - addOptionalCharacteristic( - new WaterLavelCharacteristic( - ((AccessoryWithWaterLevel) accessory)::getWaterLevel, - ((AccessoryWithWaterLevel) accessory)::subscribeWaterLevel, - ((AccessoryWithWaterLevel) accessory)::unsubscribeWaterLevel)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(RotationSpeedCharacteristic speed) { - addCharacteristic(speed); - } - - public void addOptionalCharacteristic(SwingModeCharacteristic mode) { - addCharacteristic(mode); - } - - public void addOptionalCharacteristic(LockPhysicalControlsCharacteristic lock) { - addCharacteristic(lock); - } - - public void addOptionalCharacteristic(HumidityDehumidifierThresholdCharacteristic threshold) { - addCharacteristic(threshold); - } - - public void addOptionalCharacteristic(HumidityHumidifierThresholdCharacteristic threshold) { - addCharacteristic(threshold); - } - - public void addOptionalCharacteristic(WaterLavelCharacteristic level) { - addCharacteristic(level); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/HumiditySensorService.java b/src/main/java/io/github/hapjava/services/impl/HumiditySensorService.java deleted file mode 100644 index 4153510a3..000000000 --- a/src/main/java/io/github/hapjava/services/impl/HumiditySensorService.java +++ /dev/null @@ -1,84 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.HumiditySensorAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic; -import io.github.hapjava.characteristics.impl.humiditysensor.CurrentRelativeHumidityCharacteristic; - -/** This service describes a humidity sensor. */ -public class HumiditySensorService extends AbstractServiceImpl { - - public HumiditySensorService( - CurrentRelativeHumidityCharacteristic currentRelativeHumidityCharacteristic) { - super("00000082-0000-1000-8000-0026BB765291"); - addCharacteristic(currentRelativeHumidityCharacteristic); - } - - public HumiditySensorService(HumiditySensorAccessory accessory) { - this( - new CurrentRelativeHumidityCharacteristic( - accessory::getCurrentRelativeHumidity, - accessory::subscribeCurrentRelativeHumidity, - accessory::unsubscribeCurrentRelativeHumidity)); - - if (accessory instanceof AccessoryWithStatusActive) { - addOptionalCharacteristic( - new StatusActiveCharacteristic( - ((AccessoryWithStatusActive) accessory)::getStatusActive, - ((AccessoryWithStatusActive) accessory)::subscribeStatusActive, - ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive)); - } - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithStatusTampered) { - addOptionalCharacteristic( - new StatusTamperedCharacteristic( - ((AccessoryWithStatusTampered) accessory)::getStatusTampered, - ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered, - ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered)); - } - if (accessory instanceof AccessoryWithStatusLowBattery) { - addOptionalCharacteristic( - new StatusLowBatteryCharacteristic( - ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) { - addCharacteristic(statusActive); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } - - public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) { - addCharacteristic(statusTampered); - } - - public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) { - addCharacteristic(statusLowBattery); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/InputSourceService.java b/src/main/java/io/github/hapjava/services/impl/InputSourceService.java deleted file mode 100644 index 4af2736a2..000000000 --- a/src/main/java/io/github/hapjava/services/impl/InputSourceService.java +++ /dev/null @@ -1,91 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.InputSourceAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIdentifier; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithInputDeviceType; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVisibilityState; -import io.github.hapjava.characteristics.impl.common.ConfiguredNameCharacteristic; -import io.github.hapjava.characteristics.impl.common.IdentifierCharacteristic; -import io.github.hapjava.characteristics.impl.common.IsConfiguredCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.inputsource.CurrentVisibilityStateCharacteristic; -import io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeCharacteristic; -import io.github.hapjava.characteristics.impl.inputsource.InputSourceTypeCharacteristic; -import io.github.hapjava.characteristics.impl.inputsource.TargetVisibilityStateCharacteristic; - -/** This service describes a input source. */ -public class InputSourceService extends AbstractServiceImpl { - - public InputSourceService( - ConfiguredNameCharacteristic configuredNameCharacteristic, - InputSourceTypeCharacteristic inputSourceTypeCharacteristic, - IsConfiguredCharacteristic isConfiguredCharacteristic, - CurrentVisibilityStateCharacteristic currentVisibilityStateCharacteristic) { - super("000000D9-0000-1000-8000-0026BB765291"); - addCharacteristic(configuredNameCharacteristic); - addCharacteristic(inputSourceTypeCharacteristic); - addCharacteristic(isConfiguredCharacteristic); - addCharacteristic(currentVisibilityStateCharacteristic); - } - - public InputSourceService(InputSourceAccessory accessory) { - this( - new ConfiguredNameCharacteristic( - accessory::getConfiguredName, - accessory::setConfiguredName, - accessory::subscribeConfiguredName, - accessory::unsubscribeConfiguredName), - new InputSourceTypeCharacteristic( - accessory::getInputSourceType, - accessory::subscribeInputSourceType, - accessory::unsubscribeInputSourceType), - new IsConfiguredCharacteristic( - accessory::isConfigured, - accessory::setIsConfigured, - accessory::subscribeIsConfigured, - accessory::unsubscribeIsConfigured), - new CurrentVisibilityStateCharacteristic( - accessory::getCurrentVisibilityState, - accessory::subscribeCurrentVisibilityState, - accessory::unsubscribeCurrentVisibilityState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithIdentifier) { - addOptionalCharacteristic( - new IdentifierCharacteristic(((AccessoryWithIdentifier) accessory)::getIdentifier)); - } - if (accessory instanceof AccessoryWithInputDeviceType) { - addOptionalCharacteristic( - new InputDeviceTypeCharacteristic( - ((AccessoryWithInputDeviceType) accessory)::getInputDeviceType, - ((AccessoryWithInputDeviceType) accessory)::subscribeInputDeviceType, - ((AccessoryWithInputDeviceType) accessory)::unsubscribeInputDeviceType)); - } - if (accessory instanceof AccessoryWithTargetVisibilityState) { - addOptionalCharacteristic( - new TargetVisibilityStateCharacteristic( - ((AccessoryWithTargetVisibilityState) accessory)::getTargetVisibilityState, - ((AccessoryWithTargetVisibilityState) accessory)::setTargetVisibilityState, - ((AccessoryWithTargetVisibilityState) accessory)::subscribeTargetVisibilityState, - ((AccessoryWithTargetVisibilityState) accessory)::unsubscribeTargetVisibilityState)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(IdentifierCharacteristic identifier) { - addCharacteristic(identifier); - } - - public void addOptionalCharacteristic(InputDeviceTypeCharacteristic inputDeviceType) { - addCharacteristic(inputDeviceType); - } - - public void addOptionalCharacteristic(TargetVisibilityStateCharacteristic targetVisibilityState) { - addCharacteristic(targetVisibilityState); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/IrrigationSystemService.java b/src/main/java/io/github/hapjava/services/impl/IrrigationSystemService.java deleted file mode 100644 index 3501ba723..000000000 --- a/src/main/java/io/github/hapjava/services/impl/IrrigationSystemService.java +++ /dev/null @@ -1,71 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.IrrigationSystemAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRemainingDuration; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.characteristics.impl.common.ActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.InUseCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.ProgramModeCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.valve.RemainingDurationCharacteristic; - -/** An irrigation system service */ -public class IrrigationSystemService extends AbstractServiceImpl { - - public IrrigationSystemService( - ActiveCharacteristic activeCharacteristic, - InUseCharacteristic inUseCharacteristic, - ProgramModeCharacteristic programModeCharacteristic) { - super("000000CF-0000-1000-8000-0026BB765291"); - addCharacteristic(activeCharacteristic); - addCharacteristic(inUseCharacteristic); - addCharacteristic(programModeCharacteristic); - } - - public IrrigationSystemService(IrrigationSystemAccessory accessory) { - this( - new ActiveCharacteristic( - accessory::getActive, - accessory::setActive, - accessory::subscribeActive, - accessory::unsubscribeActive), - new InUseCharacteristic( - accessory::getInUse, accessory::subscribeInUse, accessory::unsubscribeInUse), - new ProgramModeCharacteristic( - accessory::getProgramMode, - accessory::subscribeProgramMode, - accessory::unsubscribeProgramMode)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithRemainingDuration) { - addOptionalCharacteristic( - new RemainingDurationCharacteristic( - ((AccessoryWithRemainingDuration) accessory)::getRemainingDuration, - ((AccessoryWithRemainingDuration) accessory)::subscribeRemainingDuration, - ((AccessoryWithRemainingDuration) accessory)::unsubscribeRemainingDuration)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFaultCharacteristic) { - addCharacteristic(statusFaultCharacteristic); - } - - public void addOptionalCharacteristic( - RemainingDurationCharacteristic remainingDurationCharacteristic) { - addCharacteristic(remainingDurationCharacteristic); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/LeakSensorService.java b/src/main/java/io/github/hapjava/services/impl/LeakSensorService.java deleted file mode 100644 index b8470371a..000000000 --- a/src/main/java/io/github/hapjava/services/impl/LeakSensorService.java +++ /dev/null @@ -1,83 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.LeakSensorAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic; -import io.github.hapjava.characteristics.impl.leaksensor.LeakDetectedStateCharacteristic; - -/** This service describes a leak sensor. */ -public class LeakSensorService extends AbstractServiceImpl { - - public LeakSensorService(LeakDetectedStateCharacteristic leakDetectedState) { - super("00000083-0000-1000-8000-0026BB765291"); - addCharacteristic(leakDetectedState); - } - - public LeakSensorService(LeakSensorAccessory accessory) { - this( - new LeakDetectedStateCharacteristic( - accessory::getLeakDetected, - accessory::subscribeLeakDetected, - accessory::unsubscribeLeakDetected)); - - if (accessory instanceof AccessoryWithStatusActive) { - addOptionalCharacteristic( - new StatusActiveCharacteristic( - ((AccessoryWithStatusActive) accessory)::getStatusActive, - ((AccessoryWithStatusActive) accessory)::subscribeStatusActive, - ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive)); - } - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithStatusTampered) { - addOptionalCharacteristic( - new StatusTamperedCharacteristic( - ((AccessoryWithStatusTampered) accessory)::getStatusTampered, - ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered, - ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered)); - } - if (accessory instanceof AccessoryWithStatusLowBattery) { - addOptionalCharacteristic( - new StatusLowBatteryCharacteristic( - ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) { - addCharacteristic(statusActive); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } - - public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) { - addCharacteristic(statusTampered); - } - - public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) { - addCharacteristic(statusLowBattery); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/LightSensorService.java b/src/main/java/io/github/hapjava/services/impl/LightSensorService.java deleted file mode 100644 index 6aef8cd34..000000000 --- a/src/main/java/io/github/hapjava/services/impl/LightSensorService.java +++ /dev/null @@ -1,86 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.LightSensorAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic; -import io.github.hapjava.characteristics.impl.lightsensor.CurrentAmbientLightLevelCharacteristic; - -/** This service describes a light sensor. */ -public class LightSensorService extends AbstractServiceImpl { - - public LightSensorService(CurrentAmbientLightLevelCharacteristic lightLevel) { - super("00000084-0000-1000-8000-0026BB765291"); - addCharacteristic(lightLevel); - } - - public LightSensorService(LightSensorAccessory accessory) { - this( - new CurrentAmbientLightLevelCharacteristic( - accessory.getMinCurrentAmbientLightLevel(), - accessory.getMaxCurrentAmbientLightLevel(), - accessory.getMinStepCurrentAmbientLightLevel(), - accessory::getCurrentAmbientLightLevel, - accessory::subscribeCurrentAmbientLightLevel, - accessory::unsubscribeCurrentAmbientLightLevel)); - - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusActive) { - addOptionalCharacteristic( - new StatusActiveCharacteristic( - ((AccessoryWithStatusActive) accessory)::getStatusActive, - ((AccessoryWithStatusActive) accessory)::subscribeStatusActive, - ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithStatusTampered) { - addOptionalCharacteristic( - new StatusTamperedCharacteristic( - ((AccessoryWithStatusTampered) accessory)::getStatusTampered, - ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered, - ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered)); - } - if (accessory instanceof AccessoryWithStatusLowBattery) { - addOptionalCharacteristic( - new StatusLowBatteryCharacteristic( - ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) { - addCharacteristic(statusActive); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } - - public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) { - addCharacteristic(statusTampered); - } - - public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) { - addCharacteristic(statusLowBattery); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/LightbulbService.java b/src/main/java/io/github/hapjava/services/impl/LightbulbService.java deleted file mode 100644 index b37ca4d2c..000000000 --- a/src/main/java/io/github/hapjava/services/impl/LightbulbService.java +++ /dev/null @@ -1,86 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.LightbulbAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithBrightness; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColor; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithColorTemperature; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.OnCharacteristic; -import io.github.hapjava.characteristics.impl.lightbulb.BrightnessCharacteristic; -import io.github.hapjava.characteristics.impl.lightbulb.ColorTemperatureCharacteristic; -import io.github.hapjava.characteristics.impl.lightbulb.HueCharacteristic; -import io.github.hapjava.characteristics.impl.lightbulb.SaturationCharacteristic; - -/** This service describes a light bulb. */ -public class LightbulbService extends AbstractServiceImpl { - - public LightbulbService(OnCharacteristic onState) { - super("00000043-0000-1000-8000-0026BB765291"); - addCharacteristic(onState); - } - - public LightbulbService(LightbulbAccessory accessory) { - this( - new OnCharacteristic( - accessory::getLightbulbPowerState, - accessory::setLightbulbPowerState, - accessory::subscribeLightbulbPowerState, - accessory::unsubscribeLightbulbPowerState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithColor) { - addOptionalCharacteristic( - new HueCharacteristic( - ((AccessoryWithColor) accessory)::getHue, - ((AccessoryWithColor) accessory)::setHue, - ((AccessoryWithColor) accessory)::subscribeHue, - ((AccessoryWithColor) accessory)::unsubscribeHue)); - addOptionalCharacteristic( - new SaturationCharacteristic( - ((AccessoryWithColor) accessory)::getSaturation, - ((AccessoryWithColor) accessory)::setSaturation, - ((AccessoryWithColor) accessory)::subscribeSaturation, - ((AccessoryWithColor) accessory)::unsubscribeSaturation)); - } - if (accessory instanceof AccessoryWithBrightness) { - addOptionalCharacteristic( - new BrightnessCharacteristic( - ((AccessoryWithBrightness) accessory)::getBrightness, - ((AccessoryWithBrightness) accessory)::setBrightness, - ((AccessoryWithBrightness) accessory)::subscribeBrightness, - ((AccessoryWithBrightness) accessory)::unsubscribeBrightness)); - } - if (accessory instanceof AccessoryWithColorTemperature) { - addOptionalCharacteristic( - new ColorTemperatureCharacteristic( - ((AccessoryWithColorTemperature) accessory).getMinColorTemperature(), - ((AccessoryWithColorTemperature) accessory).getMaxColorTemperature(), - ((AccessoryWithColorTemperature) accessory)::getColorTemperature, - ((AccessoryWithColorTemperature) accessory)::setColorTemperature, - ((AccessoryWithColorTemperature) accessory)::subscribeColorTemperature, - ((AccessoryWithColorTemperature) accessory)::unsubscribeColorTemperature)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(HueCharacteristic hue) { - addCharacteristic(hue); - } - - public void addOptionalCharacteristic(BrightnessCharacteristic brightness) { - addCharacteristic(brightness); - } - - public void addOptionalCharacteristic(SaturationCharacteristic saturation) { - addCharacteristic(saturation); - } - - public void addOptionalCharacteristic(ColorTemperatureCharacteristic color) { - addCharacteristic(color); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/LockMechanismService.java b/src/main/java/io/github/hapjava/services/impl/LockMechanismService.java deleted file mode 100644 index de59ca516..000000000 --- a/src/main/java/io/github/hapjava/services/impl/LockMechanismService.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.LockMechanismAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.lock.LockCurrentStateCharacteristic; -import io.github.hapjava.characteristics.impl.lock.LockTargetStateCharacteristic; - -/** The Lock Mechanism Service describes the physical lock mechanism on a device. */ -public class LockMechanismService extends AbstractServiceImpl { - - public LockMechanismService( - LockCurrentStateCharacteristic lockCurrentState, - LockTargetStateCharacteristic lockTargetState) { - super("00000045-0000-1000-8000-0026BB765291"); - addCharacteristic(lockCurrentState); - addCharacteristic(lockTargetState); - } - - public LockMechanismService(LockMechanismAccessory accessory) { - this( - new LockCurrentStateCharacteristic( - accessory::getLockCurrentState, - accessory::subscribeLockCurrentState, - accessory::unsubscribeLockCurrentState), - new LockTargetStateCharacteristic( - accessory::getLockTargetState, - accessory::setLockTargetState, - accessory::subscribeLockTargetState, - accessory::unsubscribeLockTargetState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/MicrophoneService.java b/src/main/java/io/github/hapjava/services/impl/MicrophoneService.java deleted file mode 100644 index 3f72bd4f7..000000000 --- a/src/main/java/io/github/hapjava/services/impl/MicrophoneService.java +++ /dev/null @@ -1,48 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.MicrophoneAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolume; -import io.github.hapjava.characteristics.impl.audio.MuteCharacteristic; -import io.github.hapjava.characteristics.impl.audio.VolumeCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; - -/** - * A Microphone service is used to control the sourcing of the input audio – primarily through a - * microphone. - */ -public class MicrophoneService extends AbstractServiceImpl { - - public MicrophoneService(MuteCharacteristic muteCharacteristic) { - super("00000112-0000-1000-8000-0026BB765291"); - addCharacteristic(muteCharacteristic); - } - - public MicrophoneService(MicrophoneAccessory accessory) { - this( - new MuteCharacteristic( - accessory::isMuted, - accessory::setMute, - accessory::subscribeMuteState, - accessory::unsubscribeMuteState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithVolume) { - addOptionalCharacteristic( - new VolumeCharacteristic( - ((AccessoryWithVolume) accessory)::getVolume, - ((AccessoryWithVolume) accessory)::setVolume, - ((AccessoryWithVolume) accessory)::subscribeVolume, - ((AccessoryWithVolume) accessory)::unsubscribeVolume)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(VolumeCharacteristic volume) { - addCharacteristic(volume); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/MotionSensorService.java b/src/main/java/io/github/hapjava/services/impl/MotionSensorService.java deleted file mode 100644 index 388448b35..000000000 --- a/src/main/java/io/github/hapjava/services/impl/MotionSensorService.java +++ /dev/null @@ -1,82 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.MotionSensorAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic; -import io.github.hapjava.characteristics.impl.motionsensor.MotionDetectedCharacteristic; - -/** This service describes a motion sensor. */ -public class MotionSensorService extends AbstractServiceImpl { - - public MotionSensorService(MotionDetectedCharacteristic motionDetectedCharacteristic) { - super("00000085-0000-1000-8000-0026BB765291"); - addCharacteristic(motionDetectedCharacteristic); - } - - public MotionSensorService(MotionSensorAccessory accessory) { - this( - new MotionDetectedCharacteristic( - accessory::getMotionDetected, - accessory::subscribeMotionDetected, - accessory::unsubscribeMotionDetected)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusActive) { - addOptionalCharacteristic( - new StatusActiveCharacteristic( - ((AccessoryWithStatusActive) accessory)::getStatusActive, - ((AccessoryWithStatusActive) accessory)::subscribeStatusActive, - ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithStatusTampered) { - addOptionalCharacteristic( - new StatusTamperedCharacteristic( - ((AccessoryWithStatusTampered) accessory)::getStatusTampered, - ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered, - ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered)); - } - if (accessory instanceof AccessoryWithStatusLowBattery) { - addOptionalCharacteristic( - new StatusLowBatteryCharacteristic( - ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) { - addCharacteristic(statusActive); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } - - public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) { - addCharacteristic(statusTampered); - } - - public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) { - addCharacteristic(statusLowBattery); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/OccupancySensorService.java b/src/main/java/io/github/hapjava/services/impl/OccupancySensorService.java deleted file mode 100644 index 12771e60e..000000000 --- a/src/main/java/io/github/hapjava/services/impl/OccupancySensorService.java +++ /dev/null @@ -1,82 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.OccupancySensorAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic; -import io.github.hapjava.characteristics.impl.occupancysensor.OccupancyDetectedCharacteristic; - -/** This service describes an occupancy sensor. */ -public class OccupancySensorService extends AbstractServiceImpl { - - public OccupancySensorService(OccupancyDetectedCharacteristic occupancyDetectedCharacteristic) { - super("00000086-0000-1000-8000-0026BB765291"); - addCharacteristic(occupancyDetectedCharacteristic); - } - - public OccupancySensorService(OccupancySensorAccessory accessory) { - this( - new OccupancyDetectedCharacteristic( - accessory::getOccupancyDetected, - accessory::subscribeOccupancyDetected, - accessory::unsubscribeOccupancyDetected)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusActive) { - addOptionalCharacteristic( - new StatusActiveCharacteristic( - ((AccessoryWithStatusActive) accessory)::getStatusActive, - ((AccessoryWithStatusActive) accessory)::subscribeStatusActive, - ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithStatusTampered) { - addOptionalCharacteristic( - new StatusTamperedCharacteristic( - ((AccessoryWithStatusTampered) accessory)::getStatusTampered, - ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered, - ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered)); - } - if (accessory instanceof AccessoryWithStatusLowBattery) { - addOptionalCharacteristic( - new StatusLowBatteryCharacteristic( - ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) { - addCharacteristic(statusActive); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } - - public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) { - addCharacteristic(statusTampered); - } - - public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) { - addCharacteristic(statusLowBattery); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/OutletService.java b/src/main/java/io/github/hapjava/services/impl/OutletService.java deleted file mode 100644 index 780024f1f..000000000 --- a/src/main/java/io/github/hapjava/services/impl/OutletService.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.OutletAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.OnCharacteristic; -import io.github.hapjava.characteristics.impl.outlet.OutletInUseCharacteristic; - -/** This service describes a power outlet. */ -public class OutletService extends AbstractServiceImpl { - - public OutletService(OnCharacteristic onState, OutletInUseCharacteristic outletInUse) { - super("00000047-0000-1000-8000-0026BB765291"); - addCharacteristic(onState); - addCharacteristic(outletInUse); - } - - public OutletService(OutletAccessory accessory) { - this( - new OnCharacteristic( - accessory::getPowerState, - accessory::setPowerState, - accessory::subscribePowerState, - accessory::unsubscribePowerState), - new OutletInUseCharacteristic( - accessory::getOutletInUse, - accessory::subscribeOutletInUse, - accessory::unsubscribeOutletInUse)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/SecuritySystemService.java b/src/main/java/io/github/hapjava/services/impl/SecuritySystemService.java deleted file mode 100644 index f2bc8d02e..000000000 --- a/src/main/java/io/github/hapjava/services/impl/SecuritySystemService.java +++ /dev/null @@ -1,80 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.SecuritySystemAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSecurityAlarmType; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic; -import io.github.hapjava.characteristics.impl.securitysystem.CurrentSecuritySystemStateCharacteristic; -import io.github.hapjava.characteristics.impl.securitysystem.SecuritySystemAlarmTypeCharacteristic; -import io.github.hapjava.characteristics.impl.securitysystem.TargetSecuritySystemStateCharacteristic; - -/** This service describes a security system service. */ -public class SecuritySystemService extends AbstractServiceImpl { - - public SecuritySystemService( - CurrentSecuritySystemStateCharacteristic currentState, - TargetSecuritySystemStateCharacteristic targetState) { - super("0000007E-0000-1000-8000-0026BB765291"); - addCharacteristic(currentState); - addCharacteristic(targetState); - } - - public SecuritySystemService(SecuritySystemAccessory accessory) { - this( - new CurrentSecuritySystemStateCharacteristic( - accessory.getCurrentSecuritySystemStateValidValues(), - accessory::getCurrentSecuritySystemState, - accessory::subscribeCurrentSecuritySystemState, - accessory::unsubscribeCurrentSecuritySystemState), - new TargetSecuritySystemStateCharacteristic( - accessory.getTargetSecuritySystemStateValidValues(), - accessory::getTargetSecuritySystemState, - accessory::setTargetSecuritySystemState, - accessory::subscribeTargetSecuritySystemState, - accessory::unsubscribeTargetSecuritySystemState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithStatusTampered) { - addOptionalCharacteristic( - new StatusTamperedCharacteristic( - ((AccessoryWithStatusTampered) accessory)::getStatusTampered, - ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered, - ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered)); - } - if (accessory instanceof AccessoryWithSecurityAlarmType) { - addOptionalCharacteristic( - new SecuritySystemAlarmTypeCharacteristic( - ((AccessoryWithSecurityAlarmType) accessory)::getSecurityAlarmType, - ((AccessoryWithSecurityAlarmType) accessory)::subscribeSecurityAlarmType, - ((AccessoryWithSecurityAlarmType) accessory)::unsubscribeSecurityAlarmType)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(SecuritySystemAlarmTypeCharacteristic alarmType) { - addCharacteristic(alarmType); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } - - public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) { - addCharacteristic(statusTampered); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/ServiceLabelService.java b/src/main/java/io/github/hapjava/services/impl/ServiceLabelService.java deleted file mode 100644 index bee40f094..000000000 --- a/src/main/java/io/github/hapjava/services/impl/ServiceLabelService.java +++ /dev/null @@ -1,13 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.characteristics.impl.common.ServiceLabelNamespaceCharacteristic; - -/** This service describes label scheme. */ -public class ServiceLabelService extends AbstractServiceImpl { - - public ServiceLabelService( - ServiceLabelNamespaceCharacteristic serviceLabelNamespaceCharacteristic) { - super("000000CC-0000-1000-8000-0026BB765291"); - addCharacteristic(serviceLabelNamespaceCharacteristic); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/SlatService.java b/src/main/java/io/github/hapjava/services/impl/SlatService.java deleted file mode 100644 index 5993983fa..000000000 --- a/src/main/java/io/github/hapjava/services/impl/SlatService.java +++ /dev/null @@ -1,77 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.SlatAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentTilting; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithSwingMode; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetTilting; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.fan.SwingModeCharacteristic; -import io.github.hapjava.characteristics.impl.slat.CurrentSlatStateCharacteristic; -import io.github.hapjava.characteristics.impl.slat.CurrentTiltAngleCharacteristic; -import io.github.hapjava.characteristics.impl.slat.SlatTypeCharacteristic; -import io.github.hapjava.characteristics.impl.slat.TargetTiltAngleCharacteristic; - -/** This service describes a slat */ -public class SlatService extends AbstractServiceImpl { - - public SlatService( - CurrentSlatStateCharacteristic state, SlatTypeCharacteristic slatTypeCharacteristic) { - super("000000B9-0000-1000-8000-0026BB765291"); - addCharacteristic(state); - addCharacteristic(slatTypeCharacteristic); - } - - public SlatService(SlatAccessory accessory) { - this( - new CurrentSlatStateCharacteristic( - accessory::getSlatState, - accessory::subscribeSlatState, - accessory::unsubscribeSlatState), - new SlatTypeCharacteristic(accessory::getSlatType)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithSwingMode) { - addOptionalCharacteristic( - new SwingModeCharacteristic( - ((AccessoryWithSwingMode) accessory)::getSwingMode, - ((AccessoryWithSwingMode) accessory)::setSwingMode, - ((AccessoryWithSwingMode) accessory)::subscribeSwingMode, - ((AccessoryWithSwingMode) accessory)::unsubscribeSwingMode)); - } - if (accessory instanceof AccessoryWithCurrentTilting) { - addOptionalCharacteristic( - new CurrentTiltAngleCharacteristic( - ((AccessoryWithCurrentTilting) accessory)::getCurrentTiltAngle, - ((AccessoryWithCurrentTilting) accessory)::subscribeCurrentTiltAngle, - ((AccessoryWithCurrentTilting) accessory)::unsubscribeCurrentTiltAngle)); - } - if (accessory instanceof AccessoryWithTargetTilting) { - addOptionalCharacteristic( - new TargetTiltAngleCharacteristic( - ((AccessoryWithTargetTilting) accessory)::getTargetTiltAngle, - ((AccessoryWithTargetTilting) accessory)::setTargetTiltAngle, - ((AccessoryWithTargetTilting) accessory)::subscribeTargetTiltAngle, - ((AccessoryWithTargetTilting) accessory)::unsubscribeTargetTiltAngle)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(SwingModeCharacteristic mode) { - addCharacteristic(mode); - } - - public void addOptionalCharacteristic( - TargetTiltAngleCharacteristic targetTiltAngleCharacteristic) { - addCharacteristic(targetTiltAngleCharacteristic); - } - - public void addOptionalCharacteristic( - CurrentTiltAngleCharacteristic currentTiltAngleCharacteristic) { - addCharacteristic(currentTiltAngleCharacteristic); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/SmartSpeakerService.java b/src/main/java/io/github/hapjava/services/impl/SmartSpeakerService.java deleted file mode 100644 index e5f57eff4..000000000 --- a/src/main/java/io/github/hapjava/services/impl/SmartSpeakerService.java +++ /dev/null @@ -1,95 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.SmartSpeakerAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithAirPlayEnable; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithConfiguredName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithMute; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolume; -import io.github.hapjava.characteristics.impl.audio.MuteCharacteristic; -import io.github.hapjava.characteristics.impl.audio.VolumeCharacteristic; -import io.github.hapjava.characteristics.impl.common.AirPlayEnableCharacteristic; -import io.github.hapjava.characteristics.impl.common.ConfiguredNameCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.television.CurrentMediaStateCharacteristic; -import io.github.hapjava.characteristics.impl.television.TargetMediaStateCharacteristic; - -/** A smart speaker service can be used to control the audio output settings on a speaker device. */ -public class SmartSpeakerService extends AbstractServiceImpl { - - public SmartSpeakerService( - CurrentMediaStateCharacteristic currentMediaStateCharacteristic, - TargetMediaStateCharacteristic targetMediaStateCharacteristic) { - super("00000228-0000-1000-8000-0026BB765291"); - addCharacteristic(currentMediaStateCharacteristic); - addCharacteristic(targetMediaStateCharacteristic); - } - - public SmartSpeakerService(SmartSpeakerAccessory accessory) { - this( - new CurrentMediaStateCharacteristic( - accessory::getCurrentMediaState, - accessory::subscribeCurrentMediaState, - accessory::unsubscribeCurrentMediaState), - new TargetMediaStateCharacteristic( - accessory::getTargetMediaState, - accessory::setTargetMediaState, - accessory::subscribeTargetMediaState, - accessory::unsubscribeTargetMediaState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithVolume) { - addOptionalCharacteristic( - new VolumeCharacteristic( - ((AccessoryWithVolume) accessory)::getVolume, - ((AccessoryWithVolume) accessory)::setVolume, - ((AccessoryWithVolume) accessory)::subscribeVolume, - ((AccessoryWithVolume) accessory)::unsubscribeVolume)); - } - if (accessory instanceof AccessoryWithConfiguredName) { - addOptionalCharacteristic( - new ConfiguredNameCharacteristic( - ((AccessoryWithConfiguredName) accessory)::getConfiguredName, - ((AccessoryWithConfiguredName) accessory)::setConfiguredName, - ((AccessoryWithConfiguredName) accessory)::subscribeConfiguredName, - ((AccessoryWithConfiguredName) accessory)::unsubscribeConfiguredName)); - } - if (accessory instanceof AccessoryWithMute) { - addOptionalCharacteristic( - new MuteCharacteristic( - ((AccessoryWithMute) accessory)::isMuted, - ((AccessoryWithMute) accessory)::setMute, - ((AccessoryWithMute) accessory)::subscribeMuteState, - ((AccessoryWithMute) accessory)::unsubscribeMuteState)); - } - if (accessory instanceof AccessoryWithAirPlayEnable) { - addOptionalCharacteristic( - new AirPlayEnableCharacteristic( - ((AccessoryWithAirPlayEnable) accessory)::getAirPlayEnable, - ((AccessoryWithAirPlayEnable) accessory)::setAirPlayEnable, - ((AccessoryWithAirPlayEnable) accessory)::subscribeAirPlayEnable, - ((AccessoryWithAirPlayEnable) accessory)::unsubscribeAirPlayEnable)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(VolumeCharacteristic volume) { - addCharacteristic(volume); - } - - public void addOptionalCharacteristic(ConfiguredNameCharacteristic configuredNameCharacteristic) { - addCharacteristic(configuredNameCharacteristic); - } - - public void addOptionalCharacteristic(MuteCharacteristic muteCharacteristic) { - addCharacteristic(muteCharacteristic); - } - - public void addOptionalCharacteristic(AirPlayEnableCharacteristic airPlayEnableCharacteristic) { - addCharacteristic(airPlayEnableCharacteristic); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/SmokeSensorService.java b/src/main/java/io/github/hapjava/services/impl/SmokeSensorService.java deleted file mode 100644 index b6bf2f8d6..000000000 --- a/src/main/java/io/github/hapjava/services/impl/SmokeSensorService.java +++ /dev/null @@ -1,82 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.SmokeSensorAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic; -import io.github.hapjava.characteristics.impl.smokesensor.SmokeDetectedCharacteristic; - -/** This service describes a Smoke detector Sensor. */ -public class SmokeSensorService extends AbstractServiceImpl { - - public SmokeSensorService(SmokeDetectedCharacteristic smokeDetectedCharacteristic) { - super("00000087-0000-1000-8000-0026BB765291"); - addCharacteristic(smokeDetectedCharacteristic); - } - - public SmokeSensorService(SmokeSensorAccessory accessory) { - this( - new SmokeDetectedCharacteristic( - accessory::getSmokeDetectedState, - accessory::subscribeSmokeDetectedState, - accessory::unsubscribeSmokeDetectedState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusActive) { - addOptionalCharacteristic( - new StatusActiveCharacteristic( - ((AccessoryWithStatusActive) accessory)::getStatusActive, - ((AccessoryWithStatusActive) accessory)::subscribeStatusActive, - ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithStatusTampered) { - addOptionalCharacteristic( - new StatusTamperedCharacteristic( - ((AccessoryWithStatusTampered) accessory)::getStatusTampered, - ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered, - ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered)); - } - if (accessory instanceof AccessoryWithStatusLowBattery) { - addOptionalCharacteristic( - new StatusLowBatteryCharacteristic( - ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) { - addCharacteristic(statusActive); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } - - public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) { - addCharacteristic(statusTampered); - } - - public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) { - addCharacteristic(statusLowBattery); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/SpeakerService.java b/src/main/java/io/github/hapjava/services/impl/SpeakerService.java deleted file mode 100644 index 8619d5a50..000000000 --- a/src/main/java/io/github/hapjava/services/impl/SpeakerService.java +++ /dev/null @@ -1,45 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.SpeakerAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolume; -import io.github.hapjava.characteristics.impl.audio.MuteCharacteristic; -import io.github.hapjava.characteristics.impl.audio.VolumeCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; - -/** A Speaker service can be used to control the audio output settings on a speaker device. */ -public class SpeakerService extends AbstractServiceImpl { - - public SpeakerService(MuteCharacteristic muteCharacteristic) { - super("00000113-0000-1000-8000-0026BB765291"); - addCharacteristic(muteCharacteristic); - } - - public SpeakerService(SpeakerAccessory accessory) { - this( - new MuteCharacteristic( - accessory::isMuted, - accessory::setMute, - accessory::subscribeMuteState, - accessory::unsubscribeMuteState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithVolume) { - addOptionalCharacteristic( - new VolumeCharacteristic( - ((AccessoryWithVolume) accessory)::getVolume, - ((AccessoryWithVolume) accessory)::setVolume, - ((AccessoryWithVolume) accessory)::subscribeVolume, - ((AccessoryWithVolume) accessory)::unsubscribeVolume)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(VolumeCharacteristic volume) { - addCharacteristic(volume); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/StatelessProgrammableSwitchService.java b/src/main/java/io/github/hapjava/services/impl/StatelessProgrammableSwitchService.java deleted file mode 100644 index bded30f47..000000000 --- a/src/main/java/io/github/hapjava/services/impl/StatelessProgrammableSwitchService.java +++ /dev/null @@ -1,42 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.StatelessProgrammableSwitchAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithServiceLabelIndex; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEventCharacteristic; -import io.github.hapjava.characteristics.impl.common.ServiceLabelIndexCharacteristic; - -/** This service describes a stateless programmable switch. */ -public class StatelessProgrammableSwitchService extends AbstractServiceImpl { - - public StatelessProgrammableSwitchService(ProgrammableSwitchEventCharacteristic switchEvent) { - super("00000089-0000-1000-8000-0026BB765291"); - addCharacteristic(switchEvent); - } - - public StatelessProgrammableSwitchService(StatelessProgrammableSwitchAccessory accessory) { - this( - new ProgrammableSwitchEventCharacteristic( - accessory::getSwitchEvent, - accessory::subscribeSwitchEvent, - accessory::unsubscribeSwitchEvent)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithServiceLabelIndex) { - addOptionalCharacteristic( - new ServiceLabelIndexCharacteristic( - ((AccessoryWithServiceLabelIndex) accessory)::getServiceLabelIndex)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic( - ServiceLabelIndexCharacteristic serviceLabelIndexCharacteristic) { - addCharacteristic(serviceLabelIndexCharacteristic); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/SwitchService.java b/src/main/java/io/github/hapjava/services/impl/SwitchService.java deleted file mode 100644 index 65a8f2124..000000000 --- a/src/main/java/io/github/hapjava/services/impl/SwitchService.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.SwitchAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.OnCharacteristic; - -/** This service describes a binary switch. */ -public class SwitchService extends AbstractServiceImpl { - - public SwitchService(OnCharacteristic onState) { - super("00000049-0000-1000-8000-0026BB765291"); - addCharacteristic(onState); - } - - public SwitchService(SwitchAccessory accessory) { - this( - new OnCharacteristic( - accessory::getSwitchState, - accessory::setSwitchState, - accessory::subscribeSwitchState, - accessory::unsubscribeSwitchState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/TelevisionService.java b/src/main/java/io/github/hapjava/services/impl/TelevisionService.java deleted file mode 100644 index 8846cffe1..000000000 --- a/src/main/java/io/github/hapjava/services/impl/TelevisionService.java +++ /dev/null @@ -1,139 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.TelevisionAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithBrightness; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithClosedCaptions; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentMediaState; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPictureMode; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithPowerMode; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetMediaState; -import io.github.hapjava.characteristics.impl.common.ActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.ActiveEnum; -import io.github.hapjava.characteristics.impl.common.ActiveIdentifierCharacteristic; -import io.github.hapjava.characteristics.impl.common.ConfiguredNameCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.lightbulb.BrightnessCharacteristic; -import io.github.hapjava.characteristics.impl.television.ClosedCaptionsCharacteristic; -import io.github.hapjava.characteristics.impl.television.CurrentMediaStateCharacteristic; -import io.github.hapjava.characteristics.impl.television.PictureModeCharacteristic; -import io.github.hapjava.characteristics.impl.television.PowerModeCharacteristic; -import io.github.hapjava.characteristics.impl.television.RemoteKeyCharacteristic; -import io.github.hapjava.characteristics.impl.television.SleepDiscoveryModeCharacteristic; -import io.github.hapjava.characteristics.impl.television.TargetMediaStateCharacteristic; - -/** This service describes a television. */ -public class TelevisionService extends AbstractServiceImpl { - - public TelevisionService( - ActiveCharacteristic activeCharacteristic, - ActiveIdentifierCharacteristic activeIdentifierCharacteristic, - ConfiguredNameCharacteristic configuredNameCharacteristic, - RemoteKeyCharacteristic remoteKeyCharacteristic, - SleepDiscoveryModeCharacteristic sleepDiscoveryModeCharacteristic) { - super("000000D8-0000-1000-8000-0026BB765291"); - addCharacteristic(activeCharacteristic); - addCharacteristic(activeIdentifierCharacteristic); - addCharacteristic(configuredNameCharacteristic); - addCharacteristic(remoteKeyCharacteristic); - addCharacteristic(sleepDiscoveryModeCharacteristic); - } - - public TelevisionService(TelevisionAccessory accessory) { - this( - new ActiveCharacteristic( - () -> accessory.isActive().thenApply(s -> s ? ActiveEnum.ACTIVE : ActiveEnum.INACTIVE), - (v) -> accessory.setActive(v == ActiveEnum.ACTIVE), - accessory::subscribeActive, - accessory::unsubscribeActive), - new ActiveIdentifierCharacteristic( - accessory::getActiveIdentifier, - accessory::setActiveIdentifier, - accessory::subscribeActiveIdentifier, - accessory::unsubscribeActiveIdentifier), - new ConfiguredNameCharacteristic( - accessory::getConfiguredName, - accessory::setConfiguredName, - accessory::subscribeConfiguredName, - accessory::unsubscribeConfiguredName), - new RemoteKeyCharacteristic(accessory::setRemoteKey), - new SleepDiscoveryModeCharacteristic( - accessory::getSleepDiscoveryMode, - accessory::subscribeSleepDiscoveryMode, - accessory::unsubscribeSleepDiscoveryMode)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithBrightness) { - addOptionalCharacteristic( - new BrightnessCharacteristic( - ((AccessoryWithBrightness) accessory)::getBrightness, - ((AccessoryWithBrightness) accessory)::setBrightness, - ((AccessoryWithBrightness) accessory)::subscribeBrightness, - ((AccessoryWithBrightness) accessory)::unsubscribeBrightness)); - } - if (accessory instanceof AccessoryWithPowerMode) { - addOptionalCharacteristic( - new PowerModeCharacteristic(((AccessoryWithPowerMode) accessory)::setPowerMode)); - } - if (accessory instanceof AccessoryWithClosedCaptions) { - addOptionalCharacteristic( - new ClosedCaptionsCharacteristic( - ((AccessoryWithClosedCaptions) accessory)::getClosedCaptions, - ((AccessoryWithClosedCaptions) accessory)::setClosedCaptions, - ((AccessoryWithClosedCaptions) accessory)::subscribeClosedCaptions, - ((AccessoryWithClosedCaptions) accessory)::unsubscribeClosedCaptions)); - } - if (accessory instanceof AccessoryWithCurrentMediaState) { - addOptionalCharacteristic( - new CurrentMediaStateCharacteristic( - ((AccessoryWithCurrentMediaState) accessory)::getCurrentMediaState, - ((AccessoryWithCurrentMediaState) accessory)::subscribeCurrentMediaState, - ((AccessoryWithCurrentMediaState) accessory)::unsubscribeCurrentMediaState)); - } - if (accessory instanceof AccessoryWithTargetMediaState) { - addOptionalCharacteristic( - new TargetMediaStateCharacteristic( - ((AccessoryWithTargetMediaState) accessory)::getTargetMediaState, - ((AccessoryWithTargetMediaState) accessory)::setTargetMediaState, - ((AccessoryWithTargetMediaState) accessory)::subscribeTargetMediaState, - ((AccessoryWithTargetMediaState) accessory)::unsubscribeTargetMediaState)); - } - if (accessory instanceof AccessoryWithPictureMode) { - addOptionalCharacteristic( - new PictureModeCharacteristic( - ((AccessoryWithPictureMode) accessory)::getPictureMode, - ((AccessoryWithPictureMode) accessory)::setPictureMode, - ((AccessoryWithPictureMode) accessory)::subscribePictureMode, - ((AccessoryWithPictureMode) accessory)::unsubscribePictureMode)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(PowerModeCharacteristic powerMode) { - addCharacteristic(powerMode); - } - - public void addOptionalCharacteristic(ClosedCaptionsCharacteristic closedCaptions) { - addCharacteristic(closedCaptions); - } - - public void addOptionalCharacteristic(CurrentMediaStateCharacteristic currentMediaState) { - addCharacteristic(currentMediaState); - } - - public void addOptionalCharacteristic(TargetMediaStateCharacteristic targetMediaState) { - addCharacteristic(targetMediaState); - } - - public void addOptionalCharacteristic(PictureModeCharacteristic pictureMode) { - addCharacteristic(pictureMode); - } - - public void addOptionalCharacteristic(BrightnessCharacteristic brightness) { - addCharacteristic(brightness); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/TelevisionSpeakerService.java b/src/main/java/io/github/hapjava/services/impl/TelevisionSpeakerService.java deleted file mode 100644 index b53fb81bd..000000000 --- a/src/main/java/io/github/hapjava/services/impl/TelevisionSpeakerService.java +++ /dev/null @@ -1,75 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.TelevisionSpeakerAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithActive; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolume; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolumeControlType; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithVolumeSelector; -import io.github.hapjava.characteristics.impl.audio.MuteCharacteristic; -import io.github.hapjava.characteristics.impl.audio.VolumeCharacteristic; -import io.github.hapjava.characteristics.impl.common.ActiveCharacteristic; -import io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeCharacteristic; -import io.github.hapjava.characteristics.impl.televisionspeaker.VolumeSelectorCharacteristic; - -/** This service describes a television. */ -public class TelevisionSpeakerService extends AbstractServiceImpl { - - public TelevisionSpeakerService(MuteCharacteristic muteCharacteristic) { - super("00000113-0000-1000-8000-0026BB765291"); - addCharacteristic(muteCharacteristic); - } - - public TelevisionSpeakerService(TelevisionSpeakerAccessory accessory) { - this( - new MuteCharacteristic( - accessory::isMuted, - accessory::setMute, - accessory::subscribeMuteState, - accessory::unsubscribeMuteState)); - if (accessory instanceof AccessoryWithActive) { - addOptionalCharacteristic( - new ActiveCharacteristic( - ((AccessoryWithActive) accessory)::getActive, - ((AccessoryWithActive) accessory)::setActive, - ((AccessoryWithActive) accessory)::subscribeActive, - ((AccessoryWithActive) accessory)::unsubscribeActive)); - } - if (accessory instanceof AccessoryWithVolume) { - addOptionalCharacteristic( - new VolumeCharacteristic( - ((AccessoryWithVolume) accessory)::getVolume, - ((AccessoryWithVolume) accessory)::setVolume, - ((AccessoryWithVolume) accessory)::subscribeVolume, - ((AccessoryWithVolume) accessory)::unsubscribeVolume)); - } - if (accessory instanceof AccessoryWithVolumeSelector) { - addOptionalCharacteristic( - new VolumeSelectorCharacteristic( - ((AccessoryWithVolumeSelector) accessory)::setVolumeSelector)); - } - if (accessory instanceof AccessoryWithVolumeControlType) { - addOptionalCharacteristic( - new VolumeControlTypeCharacteristic( - ((AccessoryWithVolumeControlType) accessory)::getVolumeControlType, - ((AccessoryWithVolumeControlType) accessory)::subscribeVolumeControlType, - ((AccessoryWithVolumeControlType) accessory)::unsubscribeVolumeControlType)); - ; - } - } - - public void addOptionalCharacteristic(ActiveCharacteristic activeCharacteristic) { - addCharacteristic(activeCharacteristic); - } - - public void addOptionalCharacteristic(VolumeCharacteristic volume) { - addCharacteristic(volume); - } - - public void addOptionalCharacteristic(VolumeSelectorCharacteristic volumeSelector) { - addCharacteristic(volumeSelector); - } - - public void addOptionalCharacteristic(VolumeControlTypeCharacteristic volumeControlType) { - addCharacteristic(volumeControlType); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/TemperatureSensorService.java b/src/main/java/io/github/hapjava/services/impl/TemperatureSensorService.java deleted file mode 100644 index bef9fff60..000000000 --- a/src/main/java/io/github/hapjava/services/impl/TemperatureSensorService.java +++ /dev/null @@ -1,86 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.TemperatureSensorAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusActive; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusLowBattery; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered; -import io.github.hapjava.characteristics.impl.battery.StatusLowBatteryCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusTamperedCharacteristic; -import io.github.hapjava.characteristics.impl.thermostat.CurrentTemperatureCharacteristic; - -/** This service describes a Temperature Sensor. */ -public class TemperatureSensorService extends AbstractServiceImpl { - - public TemperatureSensorService( - CurrentTemperatureCharacteristic currentTemperatureCharacteristic) { - super("0000008A-0000-1000-8000-0026BB765291"); - addCharacteristic(currentTemperatureCharacteristic); - } - - public TemperatureSensorService(TemperatureSensorAccessory accessory) { - this( - new CurrentTemperatureCharacteristic( - accessory.getMinCurrentTemperature(), - accessory.getMaxCurrentTemperature(), - accessory.getMinStepCurrentTemperature(), - accessory::getCurrentTemperature, - accessory::subscribeCurrentTemperature, - accessory::unsubscribeCurrentTemperature)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusActive) { - addOptionalCharacteristic( - new StatusActiveCharacteristic( - ((AccessoryWithStatusActive) accessory)::getStatusActive, - ((AccessoryWithStatusActive) accessory)::subscribeStatusActive, - ((AccessoryWithStatusActive) accessory)::unsubscribeStatusActive)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithStatusTampered) { - addOptionalCharacteristic( - new StatusTamperedCharacteristic( - ((AccessoryWithStatusTampered) accessory)::getStatusTampered, - ((AccessoryWithStatusTampered) accessory)::subscribeStatusTampered, - ((AccessoryWithStatusTampered) accessory)::unsubscribeStatusTampered)); - } - if (accessory instanceof AccessoryWithStatusLowBattery) { - addOptionalCharacteristic( - new StatusLowBatteryCharacteristic( - ((AccessoryWithStatusLowBattery) accessory)::getStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::subscribeStatusLowBattery, - ((AccessoryWithStatusLowBattery) accessory)::unsubscribeStatusLowBattery)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusActiveCharacteristic statusActive) { - addCharacteristic(statusActive); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFault) { - addCharacteristic(statusFault); - } - - public void addOptionalCharacteristic(StatusTamperedCharacteristic statusTampered) { - addCharacteristic(statusTampered); - } - - public void addOptionalCharacteristic(StatusLowBatteryCharacteristic statusLowBattery) { - addCharacteristic(statusLowBattery); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/ThermostatService.java b/src/main/java/io/github/hapjava/services/impl/ThermostatService.java deleted file mode 100644 index c775a41d5..000000000 --- a/src/main/java/io/github/hapjava/services/impl/ThermostatService.java +++ /dev/null @@ -1,147 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.ThermostatAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCoolingThresholdTemperature; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentRelativeHumidity; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHeatingThresholdTemperature; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetRelativeHumidity; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.humiditysensor.CurrentRelativeHumidityCharacteristic; -import io.github.hapjava.characteristics.impl.humiditysensor.TargetRelativeHumidityCharacteristic; -import io.github.hapjava.characteristics.impl.thermostat.CoolingThresholdTemperatureCharacteristic; -import io.github.hapjava.characteristics.impl.thermostat.CurrentHeatingCoolingStateCharacteristic; -import io.github.hapjava.characteristics.impl.thermostat.CurrentTemperatureCharacteristic; -import io.github.hapjava.characteristics.impl.thermostat.HeatingThresholdTemperatureCharacteristic; -import io.github.hapjava.characteristics.impl.thermostat.TargetHeatingCoolingStateCharacteristic; -import io.github.hapjava.characteristics.impl.thermostat.TargetTemperatureCharacteristic; -import io.github.hapjava.characteristics.impl.thermostat.TemperatureDisplayUnitCharacteristic; - -/** This service describes a thermostat. */ -public class ThermostatService extends AbstractServiceImpl { - - public ThermostatService( - CurrentHeatingCoolingStateCharacteristic currentHeatingCoolingStateCharacteristic, - TargetHeatingCoolingStateCharacteristic targetHeatingCoolingStateCharacteristic, - CurrentTemperatureCharacteristic currentTemperatureCharacteristic, - TargetTemperatureCharacteristic targetTemperatureCharacteristic, - TemperatureDisplayUnitCharacteristic temperatureUnitsCharacteristic) { - super("0000004A-0000-1000-8000-0026BB765291"); - addCharacteristic(currentHeatingCoolingStateCharacteristic); - addCharacteristic(targetHeatingCoolingStateCharacteristic); - addCharacteristic(currentTemperatureCharacteristic); - addCharacteristic(targetTemperatureCharacteristic); - addCharacteristic(temperatureUnitsCharacteristic); - } - - public ThermostatService(ThermostatAccessory accessory) { - this( - new CurrentHeatingCoolingStateCharacteristic( - accessory.getCurrentHeatingCoolingStateValidValues(), - accessory::getCurrentState, - accessory::subscribeCurrentState, - accessory::unsubscribeCurrentState), - new TargetHeatingCoolingStateCharacteristic( - accessory.getTargetHeatingCoolingStateValidValues(), - accessory::getTargetState, - accessory::setTargetState, - accessory::subscribeTargetState, - accessory::unsubscribeTargetState), - new CurrentTemperatureCharacteristic( - accessory.getMinCurrentTemperature(), - accessory.getMaxCurrentTemperature(), - accessory.getMinStepCurrentTemperature(), - accessory::getCurrentTemperature, - accessory::subscribeCurrentTemperature, - accessory::unsubscribeCurrentTemperature), - new TargetTemperatureCharacteristic( - accessory.getMinTargetTemperature(), - accessory.getMaxTargetTemperature(), - accessory.getMinStepTargetTemperature(), - accessory::getTargetTemperature, - accessory::setTargetTemperature, - accessory::subscribeTargetTemperature, - accessory::unsubscribeTargetTemperature), - new TemperatureDisplayUnitCharacteristic( - accessory::getTemperatureDisplayUnit, - accessory::setTemperatureDisplayUnit, - accessory::subscribeTemperatureDisplayUnit, - accessory::unsubscribeTemperatureDisplayUnit)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithCoolingThresholdTemperature) { - addOptionalCharacteristic( - new CoolingThresholdTemperatureCharacteristic( - ((AccessoryWithCoolingThresholdTemperature) accessory) - .getMinCoolingThresholdTemperature(), - ((AccessoryWithCoolingThresholdTemperature) accessory) - .getMaxCoolingThresholdTemperature(), - ((AccessoryWithCoolingThresholdTemperature) accessory) - .getStepCoolingThresholdTemperature(), - ((AccessoryWithCoolingThresholdTemperature) accessory) - ::getCoolingThresholdTemperature, - ((AccessoryWithCoolingThresholdTemperature) accessory) - ::setCoolingThresholdTemperature, - ((AccessoryWithCoolingThresholdTemperature) accessory) - ::subscribeCoolingThresholdTemperature, - ((AccessoryWithCoolingThresholdTemperature) accessory) - ::unsubscribeCoolingThresholdTemperature)); - } - if (accessory instanceof AccessoryWithHeatingThresholdTemperature) { - addOptionalCharacteristic( - new HeatingThresholdTemperatureCharacteristic( - ((AccessoryWithHeatingThresholdTemperature) accessory) - .getMinHeatingThresholdTemperature(), - ((AccessoryWithHeatingThresholdTemperature) accessory) - .getMaxHeatingThresholdTemperature(), - ((AccessoryWithHeatingThresholdTemperature) accessory) - .getStepHeatingThresholdTemperature(), - ((AccessoryWithHeatingThresholdTemperature) accessory) - ::getHeatingThresholdTemperature, - ((AccessoryWithHeatingThresholdTemperature) accessory) - ::setHeatingThresholdTemperature, - ((AccessoryWithHeatingThresholdTemperature) accessory) - ::subscribeHeatingThresholdTemperature, - ((AccessoryWithHeatingThresholdTemperature) accessory) - ::unsubscribeHeatingThresholdTemperature)); - } - if (accessory instanceof AccessoryWithCurrentRelativeHumidity) { - addOptionalCharacteristic( - new CurrentRelativeHumidityCharacteristic( - ((AccessoryWithCurrentRelativeHumidity) accessory)::getCurrentRelativeHumidity, - ((AccessoryWithCurrentRelativeHumidity) accessory)::subscribeCurrentRelativeHumidity, - ((AccessoryWithCurrentRelativeHumidity) accessory) - ::unsubscribeCurrentRelativeHumidity)); - } - if (accessory instanceof AccessoryWithTargetRelativeHumidity) { - addOptionalCharacteristic( - new TargetRelativeHumidityCharacteristic( - ((AccessoryWithTargetRelativeHumidity) accessory)::getTargetRelativeHumidity, - ((AccessoryWithTargetRelativeHumidity) accessory)::setTargetRelativeHumidity, - ((AccessoryWithTargetRelativeHumidity) accessory)::subscribeTargetRelativeHumidity, - ((AccessoryWithTargetRelativeHumidity) accessory) - ::unsubscribeTargetRelativeHumidity)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(CoolingThresholdTemperatureCharacteristic threshold) { - addCharacteristic(threshold); - } - - public void addOptionalCharacteristic(HeatingThresholdTemperatureCharacteristic threshold) { - addCharacteristic(threshold); - } - - public void addOptionalCharacteristic(CurrentRelativeHumidityCharacteristic humidity) { - addCharacteristic(humidity); - } - - public void addOptionalCharacteristic(TargetRelativeHumidityCharacteristic humidity) { - addCharacteristic(humidity); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/ValveService.java b/src/main/java/io/github/hapjava/services/impl/ValveService.java deleted file mode 100644 index 519502a3c..000000000 --- a/src/main/java/io/github/hapjava/services/impl/ValveService.java +++ /dev/null @@ -1,117 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.ValveAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithDuration; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithIsConfigured; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithRemainingDuration; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithServiceLabelIndex; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusFault; -import io.github.hapjava.characteristics.impl.common.ActiveCharacteristic; -import io.github.hapjava.characteristics.impl.common.InUseCharacteristic; -import io.github.hapjava.characteristics.impl.common.IsConfiguredCharacteristic; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.ServiceLabelIndexCharacteristic; -import io.github.hapjava.characteristics.impl.common.StatusFaultCharacteristic; -import io.github.hapjava.characteristics.impl.valve.RemainingDurationCharacteristic; -import io.github.hapjava.characteristics.impl.valve.SetDurationCharacteristic; -import io.github.hapjava.characteristics.impl.valve.ValveTypeCharacteristic; - -/** This service describes accessories valves. */ -public class ValveService extends AbstractServiceImpl { - - public ValveService( - ActiveCharacteristic activeCharacteristic, - InUseCharacteristic inUseCharacteristic, - ValveTypeCharacteristic valveTypeCharacteristic) { - super("000000D0-0000-1000-8000-0026BB765291"); - addCharacteristic(activeCharacteristic); - addCharacteristic(inUseCharacteristic); - addCharacteristic(valveTypeCharacteristic); - } - - public ValveService(ValveAccessory accessory) { - this( - new ActiveCharacteristic( - accessory::getValveActive, - accessory::setValveActive, - accessory::subscribeValveActive, - accessory::unsubscribeValveActive), - new InUseCharacteristic( - accessory::getValveInUse, - accessory::subscribeValveInUse, - accessory::unsubscribeValveInUse), - new ValveTypeCharacteristic( - accessory::getValveType, - accessory::subscribeValveType, - accessory::unsubscribeValveType)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithStatusFault) { - addOptionalCharacteristic( - new StatusFaultCharacteristic( - ((AccessoryWithStatusFault) accessory)::getStatusFault, - ((AccessoryWithStatusFault) accessory)::subscribeStatusFault, - ((AccessoryWithStatusFault) accessory)::unsubscribeStatusFault)); - } - if (accessory instanceof AccessoryWithDuration) { - addOptionalCharacteristic( - new SetDurationCharacteristic( - ((AccessoryWithDuration) accessory).getMinDuration(), - ((AccessoryWithDuration) accessory).getMaxDuration(), - ((AccessoryWithDuration) accessory)::getSetDuration, - ((AccessoryWithDuration) accessory)::setSetDuration, - ((AccessoryWithDuration) accessory)::subscribeSetDuration, - ((AccessoryWithDuration) accessory)::unsubscribeSetDuration)); - } - if (accessory instanceof AccessoryWithRemainingDuration) { - addOptionalCharacteristic( - new RemainingDurationCharacteristic( - ((AccessoryWithRemainingDuration) accessory).getMinRemainingDuration(), - ((AccessoryWithRemainingDuration) accessory).getMaxRemainingDuration(), - ((AccessoryWithRemainingDuration) accessory)::getRemainingDuration, - ((AccessoryWithRemainingDuration) accessory)::subscribeRemainingDuration, - ((AccessoryWithRemainingDuration) accessory)::unsubscribeRemainingDuration)); - } - if (accessory instanceof AccessoryWithIsConfigured) { - addOptionalCharacteristic( - new IsConfiguredCharacteristic( - ((AccessoryWithIsConfigured) accessory)::getIsConfigured, - ((AccessoryWithIsConfigured) accessory)::setIsConfigured, - ((AccessoryWithIsConfigured) accessory)::subscribeIsConfigured, - ((AccessoryWithIsConfigured) accessory)::unsubscribeIsConfigured)); - } - if (accessory instanceof AccessoryWithServiceLabelIndex) { - addOptionalCharacteristic( - new ServiceLabelIndexCharacteristic( - ((AccessoryWithServiceLabelIndex) accessory)::getServiceLabelIndex)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(StatusFaultCharacteristic statusFaultCharacteristic) { - addCharacteristic(statusFaultCharacteristic); - } - - public void addOptionalCharacteristic(SetDurationCharacteristic setDurationCharacteristic) { - addCharacteristic(setDurationCharacteristic); - } - - public void addOptionalCharacteristic( - RemainingDurationCharacteristic remainingDurationCharacteristic) { - addCharacteristic(remainingDurationCharacteristic); - } - - public void addOptionalCharacteristic(IsConfiguredCharacteristic isConfiguredCharacteristic) { - addCharacteristic(isConfiguredCharacteristic); - } - - public void addOptionalCharacteristic( - ServiceLabelIndexCharacteristic serviceLabelIndexCharacteristic) { - addCharacteristic(serviceLabelIndexCharacteristic); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/WindowCoveringService.java b/src/main/java/io/github/hapjava/services/impl/WindowCoveringService.java deleted file mode 100644 index fe483e4c0..000000000 --- a/src/main/java/io/github/hapjava/services/impl/WindowCoveringService.java +++ /dev/null @@ -1,135 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.WindowCoveringAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentHorizontalTilting; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithCurrentVerticalTilting; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHoldPosition; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithObstructionDetection; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetHorizontalTilting; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithTargetVerticalTilting; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.ObstructionDetectedCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.CurrentHorizontalTiltAngleCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.CurrentPositionCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.CurrentVerticalTiltAngleCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.HoldPositionCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.PositionStateCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.TargetHorizontalTiltAngleCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.TargetPositionCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.TargetVerticalTiltAngleCharacteristic; - -/** This service describes motorized window coverings or shades */ -public class WindowCoveringService extends AbstractServiceImpl { - - public WindowCoveringService( - TargetPositionCharacteristic targetPositionCharacteristic, - CurrentPositionCharacteristic currentPositionCharacteristic, - PositionStateCharacteristic positionStateCharacteristic) { - super("0000008C-0000-1000-8000-0026BB765291"); - addCharacteristic(targetPositionCharacteristic); - addCharacteristic(currentPositionCharacteristic); - addCharacteristic(positionStateCharacteristic); - } - - public WindowCoveringService(WindowCoveringAccessory accessory) { - this( - new TargetPositionCharacteristic( - accessory::getTargetPosition, - accessory::setTargetPosition, - accessory::subscribeTargetPosition, - accessory::unsubscribeTargetPosition), - new CurrentPositionCharacteristic( - accessory::getCurrentPosition, - accessory::subscribeCurrentPosition, - accessory::unsubscribeCurrentPosition), - new PositionStateCharacteristic( - accessory::getPositionState, - accessory::subscribePositionState, - accessory::unsubscribePositionState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithHoldPosition) { - addOptionalCharacteristic( - new HoldPositionCharacteristic(((AccessoryWithHoldPosition) accessory)::setHoldPosition)); - } - - if (accessory instanceof AccessoryWithObstructionDetection) { - addOptionalCharacteristic( - new ObstructionDetectedCharacteristic( - ((AccessoryWithObstructionDetection) accessory)::getObstructionDetected, - ((AccessoryWithObstructionDetection) accessory)::subscribeObstructionDetected, - ((AccessoryWithObstructionDetection) accessory)::unsubscribeObstructionDetected)); - } - if (accessory instanceof AccessoryWithCurrentHorizontalTilting) { - addOptionalCharacteristic( - new CurrentHorizontalTiltAngleCharacteristic( - ((AccessoryWithCurrentHorizontalTilting) accessory)::getCurrentHorizontalTiltAngle, - ((AccessoryWithCurrentHorizontalTilting) accessory) - ::subscribeCurrentHorizontalTiltAngle, - ((AccessoryWithCurrentHorizontalTilting) accessory) - ::unsubscribeCurrentHorizontalTiltAngle)); - } - if (accessory instanceof AccessoryWithTargetHorizontalTilting) { - addOptionalCharacteristic( - new TargetHorizontalTiltAngleCharacteristic( - ((AccessoryWithTargetHorizontalTilting) accessory)::getTargetHorizontalTiltAngle, - ((AccessoryWithTargetHorizontalTilting) accessory)::setTargetHorizontalTiltAngle, - ((AccessoryWithTargetHorizontalTilting) accessory) - ::subscribeTargetHorizontalTiltAngle, - ((AccessoryWithTargetHorizontalTilting) accessory) - ::unsubscribeTargetHorizontalTiltAngle)); - } - if (accessory instanceof AccessoryWithCurrentVerticalTilting) { - addOptionalCharacteristic( - new CurrentVerticalTiltAngleCharacteristic( - ((AccessoryWithCurrentVerticalTilting) accessory)::getCurrentVerticalTiltAngle, - ((AccessoryWithCurrentVerticalTilting) accessory)::subscribeCurrentVerticalTiltAngle, - ((AccessoryWithCurrentVerticalTilting) accessory) - ::unsubscribeCurrentVerticalTiltAngle)); - } - if (accessory instanceof AccessoryWithTargetVerticalTilting) { - addOptionalCharacteristic( - new TargetVerticalTiltAngleCharacteristic( - ((AccessoryWithTargetVerticalTilting) accessory)::getTargetVerticalTiltAngle, - ((AccessoryWithTargetVerticalTilting) accessory)::setTargetVerticalTiltAngle, - ((AccessoryWithTargetVerticalTilting) accessory)::subscribeTargetVerticalTiltAngle, - ((AccessoryWithTargetVerticalTilting) accessory) - ::unsubscribeTargetVerticalTiltAngle)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(HoldPositionCharacteristic holdPositionCharacteristic) { - addCharacteristic(holdPositionCharacteristic); - } - - public void addOptionalCharacteristic( - ObstructionDetectedCharacteristic obstructionDetectedCharacteristic) { - addCharacteristic(obstructionDetectedCharacteristic); - } - - public void addOptionalCharacteristic( - CurrentHorizontalTiltAngleCharacteristic currentHorizontalTiltAngleCharacteristic) { - addCharacteristic(currentHorizontalTiltAngleCharacteristic); - } - - public void addOptionalCharacteristic( - TargetHorizontalTiltAngleCharacteristic targetHorizontalTiltAngleCharacteristic) { - addCharacteristic(targetHorizontalTiltAngleCharacteristic); - } - - public void addOptionalCharacteristic( - CurrentVerticalTiltAngleCharacteristic currentVerticalTiltAngleCharacteristic) { - addCharacteristic(currentVerticalTiltAngleCharacteristic); - } - - public void addOptionalCharacteristic( - TargetVerticalTiltAngleCharacteristic targetVerticalTiltAngleCharacteristic) { - addCharacteristic(targetVerticalTiltAngleCharacteristic); - } -} diff --git a/src/main/java/io/github/hapjava/services/impl/WindowService.java b/src/main/java/io/github/hapjava/services/impl/WindowService.java deleted file mode 100644 index e7f2e775d..000000000 --- a/src/main/java/io/github/hapjava/services/impl/WindowService.java +++ /dev/null @@ -1,71 +0,0 @@ -package io.github.hapjava.services.impl; - -import io.github.hapjava.accessories.WindowAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithHoldPosition; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithName; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithObstructionDetection; -import io.github.hapjava.characteristics.impl.common.NameCharacteristic; -import io.github.hapjava.characteristics.impl.common.ObstructionDetectedCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.CurrentPositionCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.HoldPositionCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.PositionStateCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.TargetPositionCharacteristic; - -/** This service describes a motorized window. */ -public class WindowService extends AbstractServiceImpl { - - public WindowService( - CurrentPositionCharacteristic currentPositionCharacteristic, - TargetPositionCharacteristic targetPositionCharacteristic, - PositionStateCharacteristic positionStateCharacteristic) { - super("0000008B-0000-1000-8000-0026BB765291"); - addCharacteristic(currentPositionCharacteristic); - addCharacteristic(targetPositionCharacteristic); - addCharacteristic(positionStateCharacteristic); - } - - public WindowService(WindowAccessory accessory) { - this( - new CurrentPositionCharacteristic( - accessory::getCurrentPosition, - accessory::subscribeCurrentPosition, - accessory::unsubscribeCurrentPosition), - new TargetPositionCharacteristic( - accessory::getTargetPosition, - accessory::setTargetPosition, - accessory::subscribeTargetPosition, - accessory::unsubscribeTargetPosition), - new PositionStateCharacteristic( - accessory::getPositionState, - accessory::subscribePositionState, - accessory::unsubscribePositionState)); - if (accessory instanceof AccessoryWithName) { - addOptionalCharacteristic(new NameCharacteristic(((AccessoryWithName) accessory)::getName)); - } - if (accessory instanceof AccessoryWithHoldPosition) { - addOptionalCharacteristic( - new HoldPositionCharacteristic(((AccessoryWithHoldPosition) accessory)::setHoldPosition)); - } - - if (accessory instanceof AccessoryWithObstructionDetection) { - addOptionalCharacteristic( - new ObstructionDetectedCharacteristic( - ((AccessoryWithObstructionDetection) accessory)::getObstructionDetected, - ((AccessoryWithObstructionDetection) accessory)::subscribeObstructionDetected, - ((AccessoryWithObstructionDetection) accessory)::unsubscribeObstructionDetected)); - } - } - - public void addOptionalCharacteristic(NameCharacteristic name) { - addCharacteristic(name); - } - - public void addOptionalCharacteristic(HoldPositionCharacteristic holdPositionCharacteristic) { - addCharacteristic(holdPositionCharacteristic); - } - - public void addOptionalCharacteristic( - ObstructionDetectedCharacteristic obstructionDetectedCharacteristic) { - addCharacteristic(obstructionDetectedCharacteristic); - } -} diff --git a/src/test/java/io/github/hapjava/characteristics/impl/CustomTiltAngleRangeTest.java b/src/test/java/io/github/hapjava/characteristics/impl/CustomTiltAngleRangeTest.java deleted file mode 100644 index d3cd51756..000000000 --- a/src/test/java/io/github/hapjava/characteristics/impl/CustomTiltAngleRangeTest.java +++ /dev/null @@ -1,78 +0,0 @@ -package io.github.hapjava.characteristics.impl; - -import static org.assertj.core.api.Assertions.assertThat; - -import io.github.hapjava.characteristics.Characteristic; -import io.github.hapjava.characteristics.impl.windowcovering.CurrentHorizontalTiltAngleCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.CurrentVerticalTiltAngleCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.TargetHorizontalTiltAngleCharacteristic; -import io.github.hapjava.characteristics.impl.windowcovering.TargetVerticalTiltAngleCharacteristic; -import java.util.Arrays; -import java.util.concurrent.CompletableFuture; -import javax.json.JsonObject; -import org.junit.Test; - -/** Custom tilt angle ranges, see https://github.com/hap-java/HAP-Java/issues/162 */ -public class CustomTiltAngleRangeTest { - - @Test - public void defaultConstructorsKeepTheirSerializedOutput() { - // Serialized output captured before custom ranges were added. - for (Case c : - Arrays.asList( - Case.of( - new CurrentHorizontalTiltAngleCharacteristic( - () -> CompletableFuture.completedFuture(50), cb -> {}, () -> {}), - "{\"iid\":7,\"type\":\"6C\",\"perms\":[\"pr\",\"ev\"],\"format\":\"int\",\"value\":50,\"minValue\":-90,\"maxValue\":90,\"minStep\":1,\"unit\":\"arcdegrees\"}"), - Case.of( - new TargetHorizontalTiltAngleCharacteristic( - () -> CompletableFuture.completedFuture(50), v -> {}, cb -> {}, () -> {}), - "{\"iid\":7,\"type\":\"7B\",\"perms\":[\"pr\",\"pw\",\"ev\"],\"format\":\"int\",\"value\":50,\"minValue\":-90,\"maxValue\":90,\"minStep\":1,\"unit\":\"arcdegrees\"}"), - Case.of( - new CurrentVerticalTiltAngleCharacteristic( - () -> CompletableFuture.completedFuture(50), cb -> {}, () -> {}), - "{\"iid\":7,\"type\":\"6E\",\"perms\":[\"pr\",\"ev\"],\"format\":\"int\",\"value\":50,\"minValue\":-90,\"maxValue\":90,\"minStep\":1,\"unit\":\"arcdegrees\"}"), - Case.of( - new TargetVerticalTiltAngleCharacteristic( - () -> CompletableFuture.completedFuture(50), v -> {}, cb -> {}, () -> {}), - "{\"iid\":7,\"type\":\"7D\",\"perms\":[\"pr\",\"pw\",\"ev\"],\"format\":\"int\",\"value\":50,\"minValue\":-90,\"maxValue\":90,\"minStep\":1,\"unit\":\"arcdegrees\"}"))) { - assertThat(c.characteristic.toJson(7).join().toString()) - .as(c.characteristic.getClass().getSimpleName()) - .isEqualTo(c.expected); - } - } - - @Test - public void customRangeIsAdvertised() { - for (Characteristic c : - Arrays.asList( - new CurrentHorizontalTiltAngleCharacteristic( - 0, 90, () -> CompletableFuture.completedFuture(50), cb -> {}, () -> {}), - new TargetHorizontalTiltAngleCharacteristic( - 0, 90, () -> CompletableFuture.completedFuture(50), v -> {}, cb -> {}, () -> {}), - new CurrentVerticalTiltAngleCharacteristic( - 0, 90, () -> CompletableFuture.completedFuture(50), cb -> {}, () -> {}), - new TargetVerticalTiltAngleCharacteristic( - 0, 90, () -> CompletableFuture.completedFuture(50), v -> {}, cb -> {}, () -> {}))) { - JsonObject json = c.toJson(7).join(); - String name = c.getClass().getSimpleName(); - assertThat(json.getInt("minValue")).as(name).isEqualTo(0); - assertThat(json.getInt("maxValue")).as(name).isEqualTo(90); - assertThat(json.getInt("minStep")).as(name).isEqualTo(1); - } - } - - private static class Case { - final Characteristic characteristic; - final String expected; - - private Case(Characteristic characteristic, String expected) { - this.characteristic = characteristic; - this.expected = expected; - } - - static Case of(Characteristic characteristic, String expected) { - return new Case(characteristic, expected); - } - } -} diff --git a/src/test/java/io/github/hapjava/characteristics/impl/valve/DurationCharacteristicFormatTest.java b/src/test/java/io/github/hapjava/characteristics/impl/valve/DurationCharacteristicFormatTest.java deleted file mode 100644 index 2e12b2daa..000000000 --- a/src/test/java/io/github/hapjava/characteristics/impl/valve/DurationCharacteristicFormatTest.java +++ /dev/null @@ -1,56 +0,0 @@ -package io.github.hapjava.characteristics.impl.valve; - -import static org.assertj.core.api.Assertions.assertThat; - -import io.github.hapjava.characteristics.impl.windowcovering.CurrentPositionCharacteristic; -import java.util.concurrent.CompletableFuture; -import javax.json.JsonObject; -import org.junit.Test; - -/** Regression tests for https://github.com/hap-java/HAP-Java/issues/202 */ -public class DurationCharacteristicFormatTest { - - @Test - public void setDurationAdvertisesUint32() { - SetDurationCharacteristic characteristic = - new SetDurationCharacteristic( - () -> CompletableFuture.completedFuture(300), value -> {}, callback -> {}, () -> {}); - - JsonObject json = characteristic.toJson(12).join(); - - assertThat(json.getString("type")).isEqualTo("D3"); - assertThat(json.getString("format")).isEqualTo("uint32"); - assertThat(json.getInt("value")).isEqualTo(300); - assertThat(json.getInt("minValue")).isEqualTo(0); - assertThat(json.getInt("maxValue")).isEqualTo(3600); - assertThat(json.getInt("minStep")).isEqualTo(1); - assertThat(json.getString("unit")).isEqualTo("s"); - } - - @Test - public void remainingDurationAdvertisesUint32() { - RemainingDurationCharacteristic characteristic = - new RemainingDurationCharacteristic( - () -> CompletableFuture.completedFuture(180), callback -> {}, () -> {}); - - JsonObject json = characteristic.toJson(13).join(); - - assertThat(json.getString("type")).isEqualTo("D4"); - assertThat(json.getString("format")).isEqualTo("uint32"); - assertThat(json.getInt("value")).isEqualTo(180); - assertThat(json.getInt("minValue")).isEqualTo(0); - assertThat(json.getInt("maxValue")).isEqualTo(3600); - assertThat(json.getString("unit")).isEqualTo("s"); - } - - @Test - public void otherIntegerCharacteristicsKeepIntFormat() { - CurrentPositionCharacteristic characteristic = - new CurrentPositionCharacteristic( - () -> CompletableFuture.completedFuture(50), callback -> {}, () -> {}); - - JsonObject json = characteristic.toJson(14).join(); - - assertThat(json.getString("format")).isEqualTo("int"); - } -} diff --git a/src/test/java/io/github/hapjava/server/impl/HomekitRootTest.java b/src/test/java/io/github/hapjava/server/impl/HomekitRootTest.java deleted file mode 100644 index 81d2666e5..000000000 --- a/src/test/java/io/github/hapjava/server/impl/HomekitRootTest.java +++ /dev/null @@ -1,113 +0,0 @@ -package io.github.hapjava.server.impl; - -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.eq; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.never; -import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.when; - -import io.github.hapjava.accessories.HomekitAccessory; -import io.github.hapjava.server.HomekitAccessoryCategories; -import io.github.hapjava.server.HomekitAuthInfo; -import io.github.hapjava.server.HomekitWebHandler; -import io.github.hapjava.server.impl.http.HomekitClientConnectionFactory; -import io.github.hapjava.server.impl.jmdns.JmdnsHomekitAdvertiser; -import java.util.concurrent.CompletableFuture; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -public class HomekitRootTest { - - private HomekitAccessory accessory; - private HomekitRoot root; - private HomekitWebHandler webHandler; - private JmdnsHomekitAdvertiser advertiser; - private HomekitAuthInfo authInfo; - - private static final int PORT = 12345; - private static final String SETUPID = "Gx12"; - - private static final String LABEL = "Test Label"; - - @Before - public void setup() throws Exception { - accessory = mock(HomekitAccessory.class); - when(accessory.getId()).thenReturn(2); - webHandler = mock(HomekitWebHandler.class); - when(webHandler.start(any())).thenReturn(CompletableFuture.completedFuture(PORT)); - advertiser = mock(JmdnsHomekitAdvertiser.class); - authInfo = mock(HomekitAuthInfo.class); - root = - new HomekitRoot(LABEL, HomekitAccessoryCategories.OTHER, webHandler, authInfo, advertiser); - } - - @Test - public void verifyRegistryAdded() throws Exception { - root.addAccessory(accessory); - Assert.assertTrue( - "Registry does not contain accessory", - root.getRegistry().getAccessories().contains(accessory)); - } - - @Test - public void verifyRegistryRemoved() throws Exception { - root.addAccessory(accessory); - root.removeAccessory(accessory); - Assert.assertFalse( - "Registry still contains accessory", - root.getRegistry().getAccessories().contains(accessory)); - } - - @Test - public void testWebHandlerStarts() throws Exception { - root.start(); - verify(webHandler).start(any(HomekitClientConnectionFactory.class)); - } - - @Test - public void testWebHandlerStops() throws Exception { - root.start(); - root.stop(); - verify(webHandler).stop(); - } - - @Test - public void testAdvertiserStarts() throws Exception { - final String mac = "00:00:00:00:00:00"; - when(authInfo.getMac()).thenReturn(mac); - when(authInfo.getSetupId()).thenReturn(SETUPID); - - root.start(); - verify(advertiser).advertise(eq(LABEL), eq(1), eq(mac), eq(PORT), eq(1), eq(SETUPID)); - } - - @Test - public void testAdvertiserStops() throws Exception { - root.start(); - root.stop(); - verify(advertiser).stop(); - } - - @Test - public void testAddAccessoryDoesntResetWeb() { - root.start(); - root.addAccessory(accessory); - verify(webHandler, never()).resetConnections(); - } - - @Test - public void testRemoveAccessoryDoesntResetWeb() { - root.addAccessory(accessory); - root.start(); - root.removeAccessory(accessory); - verify(webHandler, never()).resetConnections(); - } - - @Test(expected = IndexOutOfBoundsException.class) - public void testAddIndexOneAccessory() throws Exception { - when(accessory.getId()).thenReturn(1); - root.addAccessory(accessory); - } -} diff --git a/src/test/java/io/github/hapjava/server/impl/connections/LengthPrefixedByteArrayProcessorTest.java b/src/test/java/io/github/hapjava/server/impl/connections/LengthPrefixedByteArrayProcessorTest.java deleted file mode 100644 index 9e839848d..000000000 --- a/src/test/java/io/github/hapjava/server/impl/connections/LengthPrefixedByteArrayProcessorTest.java +++ /dev/null @@ -1,125 +0,0 @@ -package io.github.hapjava.server.impl.connections; - -import static org.assertj.core.api.Assertions.assertThat; - -import java.io.ByteArrayOutputStream; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.List; -import org.junit.Test; - -public class LengthPrefixedByteArrayProcessorTest { - - private static final int TAG_LENGTH = 16; - - /** - * Builds a frame as it arrives on the wire: 2-byte little-endian payload length, payload, 16-byte - * tag. The payload and tag bytes start at 0x80 so that they never look like a short length. - */ - private static byte[] frame(int payloadLength, int seed) { - byte[] frame = new byte[2 + payloadLength + TAG_LENGTH]; - frame[0] = (byte) (payloadLength & 0xFF); - frame[1] = (byte) ((payloadLength >> 8) & 0xFF); - for (int i = 2; i < frame.length; i++) { - frame[i] = (byte) (0x80 + seed + i); - } - return frame; - } - - /** What the processor is expected to emit for a frame: payload + tag, without the length. */ - private static byte[] body(byte[] frame) { - return Arrays.copyOfRange(frame, 2, frame.length); - } - - private static byte[] concat(byte[]... parts) { - ByteArrayOutputStream out = new ByteArrayOutputStream(); - for (byte[] part : parts) { - out.write(part, 0, part.length); - } - return out.toByteArray(); - } - - private static List feed(LengthPrefixedByteArrayProcessor processor, byte[]... reads) { - List results = new ArrayList<>(); - for (byte[] read : reads) { - results.addAll(processor.handle(read)); - } - return results; - } - - private static List sizes(Collection results) { - List sizes = new ArrayList<>(); - for (byte[] result : results) { - sizes.add(result.length); - } - return sizes; - } - - private static void assertBodies(List results, byte[]... frames) { - List expectedSizes = new ArrayList<>(); - for (byte[] frame : frames) { - expectedSizes.add(frame.length - 2); - } - assertThat(sizes(results)).isEqualTo(expectedSizes); - for (int i = 0; i < frames.length; i++) { - assertThat(results.get(i)).as("frame %d", i).isEqualTo(body(frames[i])); - } - } - - @Test - public void singleFrameInOneRead() { - byte[] a = frame(100, 1); - assertBodies(feed(new LengthPrefixedByteArrayProcessor(), a), a); - } - - @Test - public void threeFramesInOneRead() { - byte[] a = frame(1024, 1); - byte[] b = frame(1024, 2); - byte[] c = frame(200, 3); - assertBodies(feed(new LengthPrefixedByteArrayProcessor(), concat(a, b, c)), a, b, c); - } - - @Test - public void frameSplitAcrossTwoReads() { - byte[] a = frame(1024, 1); - int[] offsets = {1, 2, 3, 10, 18, 19, 20, 500, a.length - 1}; - for (int offset : offsets) { - byte[] first = Arrays.copyOfRange(a, 0, offset); - byte[] second = Arrays.copyOfRange(a, offset, a.length); - List results = feed(new LengthPrefixedByteArrayProcessor(), first, second); - assertThat(sizes(results)).as("split at %d", offset).containsExactly(a.length - 2); - assertThat(results.get(0)).as("split at %d", offset).isEqualTo(body(a)); - } - } - - @Test - public void frameSplitWithNextFrameInSecondRead() { - byte[] a = frame(1024, 1); - byte[] b = frame(200, 2); - byte[] first = Arrays.copyOfRange(a, 0, 500); - byte[] second = concat(Arrays.copyOfRange(a, 500, a.length), b); - assertBodies(feed(new LengthPrefixedByteArrayProcessor(), first, second), a, b); - } - - @Test - public void shortFrameFollowedByLongerFrameInOneRead() { - byte[] a = frame(5, 1); - byte[] b = frame(100, 2); - List results = feed(new LengthPrefixedByteArrayProcessor(), concat(a, b)); - assertThat(sizes(results)).containsExactly(21, 116); - assertBodies(results, a, b); - } - - @Test - public void singleLengthByteThenRestThenAnotherFrame() { - byte[] a = frame(5, 1); - byte[] b = frame(40, 2); - byte[] first = Arrays.copyOfRange(a, 0, 1); - byte[] second = concat(Arrays.copyOfRange(a, 1, a.length), b); - List results = feed(new LengthPrefixedByteArrayProcessor(), first, second); - assertThat(sizes(results)).containsExactly(21, 56); - assertBodies(results, a, b); - } -} diff --git a/src/test/java/io/github/hapjava/server/impl/jmdns/JmdnsHomekitAdvertiserTest.java b/src/test/java/io/github/hapjava/server/impl/jmdns/JmdnsHomekitAdvertiserTest.java deleted file mode 100644 index 731be498f..000000000 --- a/src/test/java/io/github/hapjava/server/impl/jmdns/JmdnsHomekitAdvertiserTest.java +++ /dev/null @@ -1,91 +0,0 @@ -package io.github.hapjava.server.impl.jmdns; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.assertThatThrownBy; -import static org.mockito.ArgumentMatchers.any; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.never; -import static org.mockito.Mockito.verify; - -import java.io.IOException; -import java.net.UnknownHostException; -import javax.jmdns.JmDNS; -import javax.jmdns.ServiceInfo; -import org.junit.Before; -import org.junit.Test; -import org.mockito.ArgumentCaptor; - -public class JmdnsHomekitAdvertiserTest { - - JmdnsHomekitAdvertiser subject; - JmDNS jmdns; - - @Before - public void setup() throws UnknownHostException, IOException { - jmdns = mock(JmDNS.class); - subject = new JmdnsHomekitAdvertiser(jmdns); - } - - @Test - public void testAdvertiseTwiceFails() throws Exception { - advertise(); - assertThatThrownBy(() -> advertise()).isNotNull(); - } - - /* - * Verify that the unregister call is for the initial registered service - * when changing discoverability causes advertising to be toggled. - */ - @Test - public void testSetDiscoverableAfterAdvertise() throws Exception { - subject.setDiscoverable(false); - advertise(); - subject.setDiscoverable(true); - assertThat(getArgumentFromUnregister().getPropertyString("sf")).isEqualTo("0"); - } - - /* - * Verify that the unregister call is for the initial registered service - * when changing the config index causes advertising to be toggled. - */ - @Test - public void testSetConfigurationIndex() throws Exception { - subject.setConfigurationIndex(1); - advertise(); - subject.setConfigurationIndex(2); - assertThat(getArgumentFromUnregister().getPropertyString("c#")).isEqualTo("1"); - } - - @Test - public void testStopClosesOwnedJmdns() throws Exception { - subject = new JmdnsHomekitAdvertiser(jmdns, true); - advertise(); - subject.stop(); - verify(jmdns).close(); - } - - @Test - public void testStopDoesNotCloseSuppliedJmdns() throws Exception { - advertise(); - subject.stop(); - verify(jmdns, never()).close(); - } - - @Test - public void testSetDiscoverableAfterStopDoesNotRegister() throws Exception { - advertise(); - subject.stop(); - subject.setDiscoverable(false); - verify(jmdns).registerService(any(ServiceInfo.class)); - } - - private ServiceInfo getArgumentFromUnregister() { - ArgumentCaptor serviceInfoCaptor = ArgumentCaptor.forClass(ServiceInfo.class); - verify(jmdns).unregisterService(serviceInfoCaptor.capture()); - return serviceInfoCaptor.getValue(); - } - - private void advertise() throws Exception { - subject.advertise("test", 1, "00:00:00:00:00:00", 1234, 1, "1"); - } -} diff --git a/src/test/java/io/github/hapjava/services/impl/DoorbellServiceTest.java b/src/test/java/io/github/hapjava/services/impl/DoorbellServiceTest.java deleted file mode 100644 index feb67b94c..000000000 --- a/src/test/java/io/github/hapjava/services/impl/DoorbellServiceTest.java +++ /dev/null @@ -1,51 +0,0 @@ -package io.github.hapjava.services.impl; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.when; -import static org.mockito.Mockito.withSettings; - -import io.github.hapjava.accessories.DoorbellAccessory; -import io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithMute; -import io.github.hapjava.characteristics.Characteristic; -import io.github.hapjava.characteristics.impl.audio.MuteCharacteristic; -import io.github.hapjava.characteristics.impl.common.ProgrammableSwitchEventCharacteristic; -import java.util.concurrent.CompletableFuture; -import javax.json.JsonObject; -import javax.json.JsonValue; -import org.junit.Test; - -public class DoorbellServiceTest { - - @Test - public void doorbellWithoutOptionalsOnlyHasSwitchEvent() { - DoorbellService service = new DoorbellService(mock(DoorbellAccessory.class)); - - assertThat(service.getType()).isEqualTo("00000121-0000-1000-8000-0026BB765291"); - assertThat(service.getCharacteristics()) - .hasExactlyElementsOfTypes(ProgrammableSwitchEventCharacteristic.class); - } - - @Test - public void doorbellWithMuteHasMuteCharacteristic() throws Exception { - DoorbellAccessory accessory = - mock(DoorbellAccessory.class, withSettings().extraInterfaces(AccessoryWithMute.class)); - when(((AccessoryWithMute) accessory).isMuted()) - .thenReturn(CompletableFuture.completedFuture(true)); - - DoorbellService service = new DoorbellService(accessory); - - assertThat(service.getCharacteristics()) - .hasExactlyElementsOfTypes( - ProgrammableSwitchEventCharacteristic.class, MuteCharacteristic.class); - - Characteristic mute = service.getCharacteristics().get(1); - JsonObject json = mute.toJson(2).join(); - assertThat(json.getString("type")).isEqualTo("11A"); - assertThat(json.getBoolean("value")).isTrue(); - - mute.setValue(JsonValue.FALSE); - verify((AccessoryWithMute) accessory).setMute(false); - } -} diff --git a/summary.html b/summary.html new file mode 100644 index 000000000..0c063745d --- /dev/null +++ b/summary.html @@ -0,0 +1,115 @@ + + + + + + hap-java – Project Summary + + + + + + +

    + + +
    +
    +
    +

    Project Summary

    +
    +

    Project Information

    + + + + + + + + + + + + +
    FieldValue
    Namehap-java
    DescriptionHomekit Accessory Protocol for Java
    Homepagehttps://github.com/hap-java/HAP-Java
    +
    +

    Project Organization

    +

    This project does not belong to an organization.

    +
    +

    Build Information

    + + + + + + + + + + + + + + + + + + +
    FieldValue
    GroupIdio.github.hap-java
    ArtifactIdhap
    Version2.0.10-SNAPSHOT
    Typejar
    Java Version1.8
    +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/team.html b/team.html new file mode 100644 index 000000000..74d32235a --- /dev/null +++ b/team.html @@ -0,0 +1,105 @@ + + + + + + hap-java – Project Team + + + + + + + + + +
    +
    +
    +

    Project Team

    +

    A successful project requires many people to play many roles. Some members write code or documentation, while others are valuable as testers, submitting patches and suggestions.

    +

    The project team is comprised of Members and Contributors. Members have direct access to the source of a project and actively evolve the code-base. Contributors improve the project through submission of patches and suggestions to the Members. The number of Contributors to the project is unbounded. Get involved today. All contributions to the project are greatly appreciated.

    +
    +

    Members

    +

    The following is a list of developers with commit privileges that have directly contributed to the project in one way or another.

    + + + + + + + + + + + + + + + + + + + + +
    ImageNameEmailURL
    Andy Lintnerdev@beowulfe.comhttps://github.com/beowulfe
    Cody Cutrercody@cutrer.ushttps://github.com/ccutrer
    Tim Harpertimcharper@gmail.comhttps://github.com/timcharper
    +
    +

    Contributors

    +

    There are no contributors listed for this project. Please check back again later.

    +
    +
    +
    +
    +
    + + + \ No newline at end of file