File tree 2 files changed +7
-1
lines changed
src/main/java/io/github/hapjava/services
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -36,4 +36,10 @@ public interface Service {
36
36
* @return the list of linked services.
37
37
*/
38
38
List <Service > getLinkedServices ();
39
+
40
+ /**
41
+ * Add linked services
42
+ * @param service linked service
43
+ */
44
+ void addLinkedService (Service service );
39
45
}
Original file line number Diff line number Diff line change 9
9
import org .slf4j .LoggerFactory ;
10
10
11
11
abstract class AbstractServiceImpl implements Service {
12
- private final Logger logger = LoggerFactory .getLogger (this .getClass ());
13
12
private final String type ;
14
13
private final List <Characteristic > characteristics = new LinkedList <>();
15
14
private final List <Service > linkedServices = new LinkedList <>();
@@ -38,6 +37,7 @@ public void addCharacteristic(Characteristic characteristic) {
38
37
this .characteristics .add (characteristic );
39
38
}
40
39
40
+ @ Override
41
41
public void addLinkedService (Service service ) {
42
42
this .linkedServices .add (service );
43
43
}
You can’t perform that action at this time.
0 commit comments