Coverage Summary for Class: NestedDeviceStub (com.ghost.serialization.integration.model)
| Class |
Class, %
|
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| NestedDeviceStub |
100%
(1/1)
|
100%
(1/1)
|
|
100%
(2/2)
|
100%
(7/7)
|
package com.ghost.serialization.integration.model
import com.ghost.serialization.annotations.GhostName
import com.ghost.serialization.annotations.GhostSerialization
/**
* Minimal sealed hierarchy mirroring SmartThings ViperPage wire shape:
* nested `devices` array before custom `pageType` discriminator.
*/
@GhostSerialization(discriminator = "pageType")
sealed class PageWithNestedDevices {
@GhostSerialization
data class LoggedIn(
val devices: List<NestedDeviceStub> = emptyList(),
val name: String = "",
) : PageWithNestedDevices()
}
@GhostSerialization
data class NestedDeviceStub(
val id: String,
)