app / de.uniks.codliners.stock_simulator.database / StockbrotDao

StockbrotDao

interface StockbrotDao

Dao that manages StockbrotQuotes in the database

Author
Lucas Held

Functions

deleteStockbrotQuoteById

Deletes a StockbrotQuote with the matching id from the database.

abstract fun deleteStockbrotQuoteById(id: String): Unit

deleteStockbrotQuotes

Deletes all StockbrotQuotes from the database.

abstract fun deleteStockbrotQuotes(): Unit

getStockbrotQuoteById

Returns the StockbrotQuote with the matching id.

abstract fun getStockbrotQuoteById(id: String): StockbrotQuote?

getStockbrotQuotes

Returns a List of all StockbrotQuote, wrapped in LiveData.

abstract fun getStockbrotQuotes(): LiveData<List<StockbrotQuote>>

getStockbrotQuoteWithId

Returns the StockbrotQuote with the matching id, wrapped in LiveData.

abstract fun getStockbrotQuoteWithId(id: String): LiveData<StockbrotQuote>

insertStockbrotQuote

Inserts a StockbrotQuote into the database.

abstract fun insertStockbrotQuote(stockbrotQuote: StockbrotQuote): Unit