-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jan N. Klug <github@klug.nrw>
- Loading branch information
Showing
14 changed files
with
327 additions
and
149 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
31 changes: 31 additions & 0 deletions
31
...va/org/smarthomej/binding/amazonechocontrol/internal/dto/PlayerStateMediaReferenceTO.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) 2021-2023 Contributors to the SmartHome/J project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* 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.smarthomej.binding.amazonechocontrol.internal.dto; | ||
|
||
import org.eclipse.jdt.annotation.NonNull; | ||
|
||
/** | ||
* The {@link PlayerStateMediaReferenceTO} encapsulates the media reference / queue information of a Player info state | ||
* | ||
* @author Jan N. Klug - Initial contribution | ||
*/ | ||
public class PlayerStateMediaReferenceTO { | ||
public String namespace; | ||
public String name; | ||
public String value; | ||
|
||
@Override | ||
public @NonNull String toString() { | ||
return "MediaReferenceTO{namespace='" + namespace + "', name='" + name + "', value='" + value + "'}"; | ||
} | ||
} |
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
36 changes: 36 additions & 0 deletions
36
...mej/binding/amazonechocontrol/internal/dto/push/NotifyNowPlayingUpdatedOuterUpdateTO.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,36 @@ | ||
/** | ||
* Copyright (c) 2021-2023 Contributors to the SmartHome/J project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* 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.smarthomej.binding.amazonechocontrol.internal.dto.push; | ||
|
||
import org.eclipse.jdt.annotation.NonNull; | ||
|
||
/** | ||
* The {@link NotifyNowPlayingUpdatedOuterUpdateTO} encapsulates the outer update section of NotifyNowPlayingUpdated | ||
* messages | ||
* | ||
* @author Jan N. Klug - Initial contribution | ||
*/ | ||
public class NotifyNowPlayingUpdatedOuterUpdateTO { | ||
|
||
public String taskSessionId; | ||
|
||
public NotifyNowPlayingUpdatedUpdateTO update; | ||
|
||
public String type; | ||
|
||
@Override | ||
public @NonNull String toString() { | ||
return "NotifyNowPlayingUpdatedOuterUpdateTO{taskSessionId='" + taskSessionId + "', update=" + update | ||
+ ", type='" + type + "'}"; | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...org/smarthomej/binding/amazonechocontrol/internal/dto/push/NotifyNowPlayingUpdatedTO.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,39 @@ | ||
/** | ||
* Copyright (c) 2021-2023 Contributors to the SmartHome/J project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* 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.smarthomej.binding.amazonechocontrol.internal.dto.push; | ||
|
||
import org.eclipse.jdt.annotation.NonNull; | ||
|
||
/** | ||
* The {@link NotifyNowPlayingUpdatedTO} encapsulates NotifyNowPlayingUpdated messages | ||
* | ||
* @author Jan N. Klug - Initial contribution | ||
*/ | ||
public class NotifyNowPlayingUpdatedTO { | ||
|
||
public String customerId; | ||
|
||
public String name; | ||
|
||
public String messageId; | ||
|
||
public NotifyNowPlayingUpdatedOuterUpdateTO update; | ||
|
||
public boolean fallbackAllowed; | ||
|
||
@Override | ||
public @NonNull String toString() { | ||
return "NotifyNowPlayingUpdatedTO{customerId='" + customerId + "', name='" + name + "'" + ", messageId='" | ||
+ messageId + "', update=" + update + ", fallbackAllowed=" + fallbackAllowed + "}"; | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...arthomej/binding/amazonechocontrol/internal/dto/push/NotifyNowPlayingUpdatedUpdateTO.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,39 @@ | ||
/** | ||
* Copyright (c) 2021-2023 Contributors to the SmartHome/J project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* 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.smarthomej.binding.amazonechocontrol.internal.dto.push; | ||
|
||
import org.eclipse.jdt.annotation.NonNull; | ||
import org.smarthomej.binding.amazonechocontrol.internal.dto.PlayerStateInfoTO; | ||
|
||
/** | ||
* The {@link NotifyNowPlayingUpdatedUpdateTO} encapsulates the inner update section of NotifyNowPlayingUpdated messages | ||
* | ||
* @author Jan N. Klug - Initial contribution | ||
*/ | ||
public class NotifyNowPlayingUpdatedUpdateTO { | ||
public boolean playbackError; | ||
|
||
public String errorMessage; | ||
|
||
public String cause; | ||
|
||
public String type; | ||
|
||
public PlayerStateInfoTO nowPlayingData; | ||
|
||
@Override | ||
public @NonNull String toString() { | ||
return "NotifyNowPlayingUpdatedUpdateTO{playbackError=" + playbackError + ", errorMessage='" + errorMessage | ||
+ "', cause='" + cause + "', type='" + type + "', nowPlayingData=" + nowPlayingData + "}"; | ||
} | ||
} |
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
Oops, something went wrong.