Coverage Summary for Class: ProductsDestinations (com.imecatro.demosales.navigation.products)
| Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| ProductsDestinations |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/2)
|
| ProductsDestinations$Add |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/19)
|
| ProductsDestinations$CatalogMaker |
0%
(0/2)
|
0%
(0/2)
|
0%
(0/2)
|
0%
(0/46)
|
| ProductsDestinations$CatalogMaker$Companion |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/2)
|
| ProductsDestinations$Categories |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/19)
|
| ProductsDestinations$Details |
0%
(0/2)
|
0%
(0/10)
|
0%
(0/2)
|
0%
(0/97)
|
| ProductsDestinations$Details$Companion |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/2)
|
| ProductsDestinations$DetailsOf |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/18)
|
| ProductsDestinations$Edit |
0%
(0/2)
|
0%
(0/2)
|
0%
(0/2)
|
0%
(0/28)
|
| ProductsDestinations$Edit$Companion |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/2)
|
| ProductsDestinations$List |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/19)
|
| ProductsDestinations$ListAndDetails |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/19)
|
| Total |
0%
(0/15)
|
0%
(0/14)
|
0%
(0/15)
|
0%
(0/273)
|
package com.imecatro.demosales.navigation.products
import androidx.annotation.Keep
import kotlinx.serialization.Contextual
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Navigation destinations for the Products feature.
*
* This class uses Type-Safe Navigation with `Serializable` objects.
*/
sealed class ProductsDestinations {
/** Destination for the product list screen. */
@Serializable
object List
/** Destination for the add product screen. */
@Serializable
object Add
/**
* Destination for the edit product screen.
* @property id The ID of the product to edit.
*/
@Serializable
data class Edit(val id: Long)
/**
* Destination for the product details screen.
* @property id The ID of the product.
* @property mode The details mode (e.g., Stock, Details).
*/
@Serializable
data class Details(val id: Long, val mode : DetailsOf = DetailsOf.Details )
/**
* Destination for the catalog maker screen.
* @property ids Collection of product IDs to include in the catalog.
*/
@Serializable
data class CatalogMaker (val ids : Collection<Long>)
/** Destination for the adaptive list-detail layout. */
@Serializable
data object ListAndDetails
/** Destination for the categories screen. */
@Serializable
data object Categories
/** Enum representing the details view mode. */
@Keep
enum class DetailsOf{
Stock, Details
}
}