Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- class CCExchanges : HashMap<String, CCTradePairs>() {
- @PrimaryKey
- var id: Int = 0
- fun getExchangeList(): ArrayList<String> {
- return ArrayList(keys)
- }
- fun getTradePairs(exchange: String): CCTradePairs {
- return get(exchange) ?: CCTradePairs()
- }
- override fun toString(): String {
- return "CCExchanges(id=$id) ${super.toString()}"
- }
- }
- @Insert(onConflict = OnConflictStrategy.REPLACE)
- fun insert(ccExchanges: CCExchanges)
Add Comment
Please, Sign In to add comment