-
Notifications
You must be signed in to change notification settings - Fork 24
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 <>
- Loading branch information
Jan N. Klug
committed
Nov 3, 2023
1 parent
3816ab9
commit f4f6683
Showing
9 changed files
with
167 additions
and
8 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
30 changes: 30 additions & 0 deletions
30
...in/java/org/smarthomej/binding/amazonechocontrol/internal/dto/response/EligibilityTO.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,30 @@ | ||
/** | ||
* 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.response; | ||
|
||
import org.eclipse.jdt.annotation.NonNull; | ||
|
||
/** | ||
* The {@link EligibilityTO} encapsulates the eligibility section of a media session | ||
* | ||
* @author Jan N. Klug - Initial contribution | ||
*/ | ||
public class EligibilityTO { | ||
public boolean isEligible; | ||
public String reasonCode; | ||
|
||
@Override | ||
public @NonNull String toString() { | ||
return "EligibilityTO{isEligible=" + isEligible + ", reasonCode='" + reasonCode + "'}"; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...va/org/smarthomej/binding/amazonechocontrol/internal/dto/response/ListMediaSessionTO.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.response; | ||
|
||
import java.util.List; | ||
|
||
import org.eclipse.jdt.annotation.NonNull; | ||
|
||
/** | ||
* The {@link ListMediaSessionTO} encapsulates the response to /api/np/list-media.sessions | ||
* | ||
* @author Jan N. Klug - Initial contribution | ||
*/ | ||
public class ListMediaSessionTO { | ||
public List<MediaSessionTO> mediaSessionList = List.of(); | ||
|
||
@Override | ||
public @NonNull String toString() { | ||
return "ListMediaSessionTO{mediaSessionList=" + mediaSessionList + "}"; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...rg/smarthomej/binding/amazonechocontrol/internal/dto/response/MediaSessionEndpointTO.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.response; | ||
|
||
import org.eclipse.jdt.annotation.NonNull; | ||
import org.smarthomej.binding.amazonechocontrol.internal.dto.DeviceIdTO; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* The {@link MediaSessionEndpointTO} encapsulates a single endpoint information for a media session | ||
* | ||
* @author Jan N. Klug - Initial contribution | ||
*/ | ||
public class MediaSessionEndpointTO { | ||
@SerializedName("__type") | ||
public String type; | ||
public String encryptedFriendlyName; | ||
public DeviceIdTO id; | ||
|
||
@Override | ||
public @NonNull String toString() { | ||
return "MediaSessionEndpointTO{type='" + type + "', encryptedFriendlyName='" + encryptedFriendlyName + "', id=" | ||
+ id + "}"; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...n/java/org/smarthomej/binding/amazonechocontrol/internal/dto/response/MediaSessionTO.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,35 @@ | ||
/** | ||
* 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.response; | ||
|
||
import java.util.List; | ||
|
||
import org.eclipse.jdt.annotation.NonNull; | ||
import org.smarthomej.binding.amazonechocontrol.internal.dto.PlayerStateInfoTO; | ||
|
||
/** | ||
* The {@link MediaSessionTO} encapsulates a single media session | ||
* | ||
* @author Jan N. Klug - Initial contribution | ||
*/ | ||
public class MediaSessionTO { | ||
public EligibilityTO castEligibility; | ||
public List<MediaSessionEndpointTO> endpointList = List.of(); | ||
public PlayerStateInfoTO nowPlayingData; | ||
|
||
@Override | ||
public @NonNull String toString() { | ||
return "MediaSessionTO{castEligibility=" + castEligibility + ", endpointList=" + endpointList | ||
+ ", 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