Skip to content

Commit 367fe2a

Browse files
committed
Added back deprecated constructor.
1 parent 2233dbe commit 367fe2a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/java/com/beowulfe/hap/impl/services/AbstractServiceImpl.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ abstract class AbstractServiceImpl implements Service {
1616
private final String type;
1717
private final List<Characteristic> characteristics = new LinkedList<>();
1818

19+
/**
20+
* This constructor has been deprecated and replaced with
21+
* {@link #AbstractServiceImpl(String, HomekitAccessory, String)}. Usages of
22+
* this constructor will need to manually configure {@link Name} characteristic
23+
* and {@link BatteryLevelCharacteristic} if needed.
24+
*
25+
* @param type unique UUID of the service. This information can be obtained from HomeKit Accessory Simulator.
26+
*/
27+
@Deprecated
28+
public AbstractServiceImpl(String type) {
29+
this(type, null, null);
30+
}
31+
1932
/**
2033
* <p>Creates a new instance of this class with the specified UUID and {@link HomekitAccessory}.
2134
* Download and install <i>HomeKit Accessory Simulator</i> to discover the corresponding UUID for

0 commit comments

Comments
 (0)