-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
357 additions
and
174 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
30 changes: 30 additions & 0 deletions
30
pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/qos/models/QoSDevice.kt
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) SRG SSR. All rights reserved. | ||
* License information is available from the LICENSE file. | ||
*/ | ||
package ch.srgssr.pillarbox.player.qos.models | ||
|
||
/** | ||
* Information about the device. | ||
* | ||
* @property id The unique identifier of the device. | ||
* @property model The model of the device. | ||
* @property type The type of device. | ||
*/ | ||
data class QoSDevice( | ||
val id: String, | ||
val model: String, | ||
val type: DeviceType, | ||
) { | ||
/** | ||
* The type of device. | ||
*/ | ||
enum class DeviceType { | ||
CAR, | ||
DESKTOP, | ||
PHONE, | ||
TABLET, | ||
TV, | ||
UNKNOWN, | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/qos/models/QoSMedia.kt
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,20 @@ | ||
/* | ||
* Copyright (c) SRG SSR. All rights reserved. | ||
* License information is available from the LICENSE file. | ||
*/ | ||
package ch.srgssr.pillarbox.player.qos.models | ||
|
||
/** | ||
* Information about the media being played. | ||
* | ||
* @property assetUrl The URL of the asset. | ||
* @property id The id of the media. | ||
* @property metadataUrl The URL of the metadata. | ||
* @property origin The origin of the media. | ||
*/ | ||
data class QoSMedia( | ||
val assetUrl: String, | ||
val id: String, | ||
val metadataUrl: String, | ||
val origin: String, | ||
) |
16 changes: 16 additions & 0 deletions
16
pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/qos/models/QoSOS.kt
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,16 @@ | ||
/* | ||
* Copyright (c) SRG SSR. All rights reserved. | ||
* License information is available from the LICENSE file. | ||
*/ | ||
package ch.srgssr.pillarbox.player.qos.models | ||
|
||
/** | ||
* Information about the operating system. | ||
* | ||
* @property name The name of the operating system. | ||
* @property version The version of the operating system. | ||
*/ | ||
data class QoSOS( | ||
val name: String, | ||
val version: String, | ||
) |
18 changes: 18 additions & 0 deletions
18
pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/qos/models/QoSPlayer.kt
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,18 @@ | ||
/* | ||
* Copyright (c) SRG SSR. All rights reserved. | ||
* License information is available from the LICENSE file. | ||
*/ | ||
package ch.srgssr.pillarbox.player.qos.models | ||
|
||
/** | ||
* Information about the player. | ||
* | ||
* @property name The name of the player. | ||
* @property platform The platform of the player. | ||
* @property version The version of the player. | ||
*/ | ||
data class QoSPlayer( | ||
val name: String, | ||
val platform: String, | ||
val version: String, | ||
) |
16 changes: 16 additions & 0 deletions
16
pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/qos/models/QoSScreen.kt
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,16 @@ | ||
/* | ||
* Copyright (c) SRG SSR. All rights reserved. | ||
* License information is available from the LICENSE file. | ||
*/ | ||
package ch.srgssr.pillarbox.player.qos.models | ||
|
||
/** | ||
* Information about the device screen. | ||
* | ||
* @property height The height of the screen, in pixels. | ||
* @property width The width of the screen, in pixels. | ||
*/ | ||
data class QoSScreen( | ||
val height: Int, | ||
val width: Int, | ||
) |
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.