package Ġcom . str v . d un dee . base Ċ Ċ import Ġcom . str v . d un dee . model . entity . Bitcoin Source Ċ import Ġcom . str v . d un dee . model . entity . Coin Ċ import Ġcom . str v . d un dee . model . entity . Currency Ċ import Ġcom . str v . d un dee . model . entity . Exchange Rates Ċ import Ġcom . str v . d un dee . model . entity . Ticker Ċ import Ġcom . str v . d un dee . model . entity . Wallet Overview Ċ import Ġjava . util . Date Ċ Ċ object ĠTest Entity Provider Ġ{ ĊĊ ĉ fun Ġget Exchange Rates Entity (): ĠExchange Rates Ġ{ Ċĉ ĉ val Ġrates Ġ= Ġhash Map Of < String , ĠDouble >() Ċĉ ĉ rates [ Currency . USD ] Ġ= Ġ 1 . 0 Ċĉ ĉ rates [ Currency . CZ K ] Ġ= Ġ 2 0 . 5 Ċĉ ĉ rates [ Currency . EUR ] Ġ= Ġ 0 . 8 Ċĉ ĉ return ĠExchange Rates ( Currency . USD , ĠDate (), Ġrates ) Ċ ĉ } ĊĊ ĉ fun Ġget Ticker Entity (): ĠT icker Ġ{ Ċĉ ĉ return ĠT icker ( Bitcoin Source . BIT FIN EX , ĠCurrency . USD , ĠCoin . BTC , Ġ 5 0 0 0 . 5 , Ġ 5 5 0 0 . 9 , Ġ 4 3 0 0 . 3 , ĠDate (). time ) Ċ ĉ } ĊĊ ĉ fun Ġget Wallet Overview Entity (): ĠWallet Overview Ġ{ Ċĉ ĉ val Ġb ought Prices Ġ= Ġmutable ListOf < Pair < String , ĠDouble >>() Ċĉ ĉ b ought Prices . add ( Pair ( Currency . CZ K , Ġ 5 0 0 0 0 . 5 )) Ċĉ ĉ b ought Prices . add ( Pair ( Currency . USD , Ġ 3 0 0 . 2 )) Ċĉ ĉ b ought Prices . add ( Pair ( Currency . EUR , Ġ 4 0 0 . 8 )) Ċĉ ĉ return ĠWallet Overview ( Coin . BTC , Ġ 1 0 . 5 , ĠDate (), Ġb ought Prices ) Ċ ĉ } Ċ Ċ }