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
46 lines (40 loc) · 1.24 KB
/
Copy pathService.java
File metadata and controls
46 lines (40 loc) · 1.24 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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.
*
* <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();
/**
* List of all the services to which the service links
*
* @return the list of linked services.
*/
List<Service> getLinkedServices();
/**
* Add linked services
*
* @param service linked service
*/
void addLinkedService(Service service);
}