/* Ċ Ġ* ĠCopyright Ġ( c ) Ġ 2 0 1 7 . ĠH Ã© ctor Ġde ĠIs id ro Ġ- Ġh rules 6 8 7 2 Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġcom . hr ules . crypto profit . data . preferences Ċ Ċ import Ġandroid . content . SharedPreferences Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . CACHE _ BIT CO IN Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . CACHE _ ET HERE UM Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . CRYPTO _ CUR RE NCY Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . CRYPTO _ PRICE _ DATE Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . CRYPTO _ PRICE _ DATE _ USE _ TO DAY Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . CUR RE NCY _ CONVER TER Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . CUR RE NCY _ TO _ CONVERT Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . DEFAULT . Companion . DEFAULT _ CACHE Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . DEFAULT . Companion . DEFAULT _ CRYPTO _ CUR RE NCY Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . DEFAULT . Companion . DEFAULT _ CRYPTO _ PRICE _ DATE Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . DEFAULT . Companion . DEFAULT _ CRYPTO _ PRICE _ DATE _ USE _ TO DAY Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . DEFAULT . Companion . DEFAULT _ CUR RE NCY _ CONVER TER Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . DEFAULT . Companion . DEFAULT _ CUR RE NCY _ TO _ CONVERT Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . DEFAULT . Companion . DEFAULT _ MEMORY Ċ import Ġcom . hr ules . crypto profit . data . preferences . base . Preferences . Companion . MEMORY Ċ Ċ class ĠAndroid Preferences ( private Ġval Ġpreferences : ĠSharedPreferences ) Ġ: ĠPreferences Ġ{ ĊĠ Ġoverride Ġvar Ġcrypto Price Date : ĠLong ĊĠĠĠ Ġget () Ġ= Ġpreferences . getLong ( CRYPTO _ PRICE _ DATE , ĊĠĠĠĠĠĠĠ ĠDEFAULT _ CRYPTO _ PRICE _ DATE ) ĊĠĠĠ Ġset ( value ) Ġ= Ġpreferences . edit (). put Long ( CRYPTO _ PRICE _ DATE , Ġvalue ). apply () ĊĊĠ Ġoverride Ġvar Ġcrypto Price Date Use Today : ĠBoolean ĊĠĠĠ Ġget () Ġ= Ġpreferences . getBoolean ( CRYPTO _ PRICE _ DATE _ USE _ TO DAY , ĊĠĠĠĠĠĠĠ ĠDEFAULT _ CRYPTO _ PRICE _ DATE _ USE _ TO DAY ) ĊĠĠĠ Ġset ( value ) Ġ= Ġpreferences . edit (). put Boolean ( CRYPTO _ PRICE _ DATE _ USE _ TO DAY , Ġvalue ). apply () ĊĊĠ Ġoverride Ġvar Ġcurrency Converter : ĠBoolean ĊĠĠĠ Ġget () Ġ= Ġpreferences . getBoolean ( CUR RE NCY _ CONVER TER , ĊĠĠĠĠĠĠĠ ĠDEFAULT _ CUR RE NCY _ CONVER TER ) ĊĠĠĠ Ġset ( value ) Ġ= Ġpreferences . edit (). put Boolean ( CUR RE NCY _ CONVER TER , Ġvalue ). apply () ĊĊĠ Ġoverride Ġvar Ġcrypto Currency : ĠString ĊĠĠĠ Ġget () Ġ= Ġpreferences . getString ( CRYPTO _ CUR RE NCY , ĠDEFAULT _ CRYPTO _ CUR RE NCY ) ĊĠĠĠ Ġset ( value ) Ġ= Ġpreferences . edit (). putString ( CRYPTO _ CUR RE NCY , Ġvalue ). apply () ĊĊĠ Ġoverride Ġvar Ġcurrency To Convert : ĠString ĊĠĠĠ Ġget () Ġ= Ġpreferences . getString ( CUR RE NCY _ TO _ CONVERT , ĊĠĠĠĠĠĠĠ ĠDEFAULT _ CUR RE NCY _ TO _ CONVERT ) ĊĠĠĠ Ġset ( value ) Ġ= Ġpreferences . edit (). putString ( CUR RE NCY _ TO _ CONVERT , Ġvalue ). apply () ĊĊĠ Ġoverride Ġvar Ġmemory : ĠString ĊĠĠĠ Ġget () Ġ= Ġpreferences . getString ( MEMORY , ĊĠĠĠĠĠĠĠ ĠDEFAULT _ MEMORY ) ĊĠĠĠ Ġset ( value ) Ġ= Ġpreferences . edit (). putString ( MEMORY , Ġvalue ). apply () ĊĊĠ Ġoverride Ġvar Ġcache Bitcoin : ĠString ĊĠĠĠ Ġget () Ġ= Ġpreferences . getString ( CACHE _ BIT CO IN , ĊĠĠĠĠĠĠĠ ĠDEFAULT _ CACHE ) ĊĠĠĠ Ġset ( value ) Ġ= Ġpreferences . edit (). putString ( CACHE _ BIT CO IN , Ġvalue ). apply () ĊĊĠ Ġoverride Ġvar Ġcache E thereum : ĠString ĊĠĠĠ Ġget () Ġ= Ġpreferences . getString ( CACHE _ ET HERE UM , ĊĠĠĠĠĠĠĠ ĠDEFAULT _ CACHE ) ĊĠĠĠ Ġset ( value ) Ġ= Ġpreferences . edit (). putString ( CACHE _ ET HERE UM , Ġvalue ). apply () Ċ } Ċ