Repository
A Repository Interface defines methods for accessing and managing data in a standardized way, abstracting underlying data storage mechanisms.
Repository Interface
interface Repository {
fun getPlatform(): Platform
}
Get Platform object
fun getPlatform(): Platform
An interface to get the Platform
object.
Platform object
data class Platform(
val name: String
)
Platform
object only have a name
.
Last modified: 06 March 2024