Skip to content

Instantly share code, notes, and snippets.

View vovaksenov99's full-sized avatar

Aksenov Vladimir vovaksenov99

View GitHub Profile
@Dao
abstract class CurrencyDao {
@Query("SELECT * FROM Currencies")
abstract fun getCurrency(): List<CurrencyEntity>
@Insert(onConflict = OnConflictStrategy.REPLACE)
abstract fun insertCurrency(rate: CurrencyEntity)
/**
* Created by Aks on 02.04.2017.
*
* Local database API
*
* @param context parent context
*/
public class LocalDatabaseAPI(private val context: Context) {