IUpstreamDao

interface IUpstreamDao

Functions

Link copied to clipboard
abstract fun getById(sessionId: String): UpstreamSessionEntity?
Link copied to clipboard
abstract fun getByToken(token: String, videoId: String?): List<UpstreamSessionEntity>
Link copied to clipboard
abstract fun getByVideoId(videoId: String): UpstreamSessionEntity?
Link copied to clipboard
abstract fun getLastPartId(sessionId: String): Int?
Link copied to clipboard
abstract fun getParts(sessionId: String): List<Part>
Link copied to clipboard
abstract fun hasParts(sessionId: String): Boolean
Link copied to clipboard
abstract fun insert(sessionId: String)
Link copied to clipboard
abstract fun insertPart(sessionId: String, part: Part)

Insert a part of the session If the part is the last part, the last part id have to be insert.

Link copied to clipboard
abstract fun insertToken(sessionId: String, token: String)
Link copied to clipboard
abstract fun insertVideoId(sessionId: String, videoId: String)
Link copied to clipboard
abstract fun remove(sessionId: String)
Link copied to clipboard
abstract fun removePart(sessionId: String, partIndex: Int)

Properties

Link copied to clipboard
abstract val allSessions: List<UpstreamSessionEntity>

Inheritors

Link copied to clipboard