This repository has been archived by the owner on May 7, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Notification API support (#5465)
* Add Notification API support Signed-off-by: Ivaylo Ivanov <ivivanov.bg@gmail.com>
- Loading branch information
1 parent
f402f60
commit 399d380
Showing
14 changed files
with
200 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...c/main/java/org/eclipse/smarthome/binding/bosesoundtouch/BoseSoundTouchConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* Copyright (c) 2014,2018 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.eclipse.smarthome.binding.bosesoundtouch; | ||
|
||
import org.eclipse.smarthome.core.thing.Thing; | ||
|
||
/** | ||
* Configuration class for soundtouch | ||
* | ||
* @author Ivaylo Ivanov - Initial contribution | ||
*/ | ||
public class BoseSoundTouchConfiguration { | ||
|
||
// Device configuration parameters; | ||
public static final String HOST = "host"; | ||
public static final String MAC_ADDRESS = Thing.PROPERTY_MAC_ADDRESS; | ||
public static final String APP_KEY = "appKey"; | ||
|
||
public String host; | ||
public String macAddress; | ||
public String appKey; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...thome/binding/bosesoundtouch/internal/BoseSoundTouchNotificationChannelConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* Copyright (c) 2014,2018 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.eclipse.smarthome.binding.bosesoundtouch.internal; | ||
|
||
/** | ||
* Configuration class for soundtouch notification channel | ||
* | ||
* @author Ivaylo Ivanov - Initial contribution | ||
*/ | ||
public class BoseSoundTouchNotificationChannelConfiguration { | ||
|
||
public static final String NOTIFICATION_VOLUME = "notificationVolume"; | ||
public static final String NOTIFICATION_SERVICE = "notificationService"; | ||
public static final String NOTIFICATION_REASON = "notificationReason"; | ||
public static final String NOTIFICATION_MESSAGE = "notificationMessage"; | ||
|
||
public Integer notificationVolume; | ||
public String notificationService; | ||
public String notificationReason; | ||
public String notificationMessage; | ||
} |
Oops, something went wrong.