forked from hap-java/HAP-Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathService.java
More file actions
32 lines (28 loc) · 983 Bytes
/
Copy pathService.java
File metadata and controls
32 lines (28 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package io.github.hapjava;
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.
*
* <p>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<Characteristic> 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();
}