App

data class App(val id: String)

A class that represents an application and its associated channel and downloaded snapshots.

Constructors

Link copied to clipboard
fun App(id: String)

Functions

Link copied to clipboard
fun addChannel(channel: Channel)

Adds a channel to the app.

Link copied to clipboard

Retrieve the linked Channel object.

Link copied to clipboard
fun getCurrentSnapshot(channelId: String): String?

Get the current snapshot at the head of the channel ID provided.

Link copied to clipboard
fun removeSnapshot(snapshotId: String)

Remove a snapshot from the App.

Properties

Link copied to clipboard

A list of associated channels linked to the app

Link copied to clipboard
val id: String

the ID of the application

Link copied to clipboard

The timestamp the app was last synced

Link copied to clipboard

A list of snapshots linked to the app