app / de.uniks.codliners.stock_simulator / android.content.Context

Extensions for android.content.Context

ensureAccountPresence

Resets (/creates) the account if no balance is retrieved from the AccountRepository.

fun Context.ensureAccountPresence(): Unit

ensureAchievementPresence

Ensures that Achievements are initialised.

fun Context.ensureAchievementPresence(): Unit

ensureSymbolsPresence

Ensures that Symbols are present.

fun Context.ensureSymbolsPresence(): Unit

resetAccount

Resets account information.

fun Context.resetAccount(): Unit

resetAchievements

Resets all achievements in the database.

fun Context.resetAchievements(): Unit

resetHistory

Deletes all transactions from the database.

fun Context.resetHistory(): Unit

resetNews

Deletes all news from the database.

fun Context.resetNews(): Unit

resetQuotes

Deletes all quotes from the database.

fun Context.resetQuotes(): Unit

resetStockbrot

Deletes all stockbrotQuotes from the database and cancel all stockbrot workers.

fun Context.resetStockbrot(): Unit