]> git.basschouten.com Git - openhab-addons.git/blob
96f9e65af71141212ce06337684a68be75586ecb
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.freebox.internal.api.model;
14
15 /**
16  * The {@link FreeboxAirMediaReceiver} is the Java class used to map the "AirMediaReceiver"
17  * structure used by the available AirMedia receivers API
18  * https://dev.freebox.fr/sdk/os/airmedia/#
19  *
20  * @author Laurent Garnier - Initial contribution
21  */
22 public class FreeboxAirMediaReceiver {
23     private String name;
24     private boolean passwordProtected;
25     private FreeboxAirMediaReceiverCapabilities capabilities;
26
27     public String getName() {
28         return name;
29     }
30
31     public boolean isPasswordProtected() {
32         return passwordProtected;
33     }
34
35     public FreeboxAirMediaReceiverCapabilities getCapabilities() {
36         return capabilities;
37     }
38
39     public boolean isPhotoCapable() {
40         return capabilities.isPhotoCapable();
41     }
42
43     public boolean isScreenCapable() {
44         return capabilities.isScreenCapable();
45     }
46
47     public boolean isVideoCapable() {
48         return capabilities.isVideoCapable();
49     }
50
51     public boolean isAudioCapable() {
52         return capabilities.isAudioCapable();
53     }
54 }