package Ġorg . ire ader . core _ ui . preferences Ċ Ċ import Ġorg . ire ader . common _ models . entities . Category Ċ import Ġorg . ire ader . common _ models . library . Library Filter Ċ import Ġorg . ire ader . common _ models . library . Library Sort Ċ import Ġorg . ire ader . common _ models . library . deserialize Ċ import Ġorg . ire ader . common _ models . library . deserialize List Ċ import Ġorg . ire ader . common _ models . library . serialize Ċ import Ġorg . ire ader . core _ api . prefs . Preference Ċ import Ġorg . ire ader . core _ api . prefs . Preference Store Ċ Ċ class ĠLibrary Preferences ( private Ġval Ġpreference Store : ĠPreference Store ) Ġ{ ĊĊĠĠĠ Ġfun Ġsorting (): ĠPreference < Library Sort > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getObject ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġkey Ġ= Ġ" sorting ", ĊĠĠĠĠĠĠĠĠĠĠĠ ĠdefaultValue Ġ= ĠLibrary Sort . default , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġserializer Ġ= Ġ{ Ġit . serialize () Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġde serializer Ġ= Ġ{ ĠLibrary Sort . deserialize ( it ) Ġ} ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġfilters ( include All : ĠBoolean Ġ= Ġfalse ): ĠPreference < List < Library Filter >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getObject ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġkey Ġ= Ġ" filters ", ĊĠĠĠĠĠĠĠĠĠĠĠ ĠdefaultValue Ġ= ĠLibrary Filter . getDefault ( include All ), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġserializer Ġ= Ġ{ Ġit . serialize () Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġde serializer Ġ= Ġ{ ĠLibrary Filter . deserialize List ( it , Ġinclude All ) Ġ} ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġlast Used Category (): ĠPreference < Long > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getLong (" last _ used _ category ", ĠCategory . ALL _ ID ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġdefault Category (): ĠPreference < Long > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getLong (" default _ category ", ĠCategory . UN CATEG ORIZ ED _ ID ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcategory Flags (): ĠPreference < Long > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getLong (" category _ flags ", Ġ 0 L ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġper Category Settings (): ĠPreference < Boolean > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getBoolean (" per _ category _ settings ", Ġfalse ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġgo To Last Chapter Bad ges (): ĠPreference < Boolean > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getBoolean (" last _ chapter _ badges ", Ġtrue ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġdownload Bad ges (): ĠPreference < Boolean > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getBoolean (" download _ badges ", Ġtrue ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġunread Bad ges (): ĠPreference < Boolean > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getBoolean (" unread _ badges ", Ġtrue ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġshow Category Tabs (): ĠPreference < Boolean > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getBoolean (" category _ tabs ", Ġtrue ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġshow All Category (): ĠPreference < Boolean > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getBoolean (" show _ all _ category ", Ġtrue ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġshow Count In Category (): ĠPreference < Boolean > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getBoolean (" show _ count _ in _ category ", Ġtrue ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcolumns In Por trait (): ĠPreference < Int > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getInt (" columns _ portrait ", Ġ 0 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcolumns In Land scape (): ĠPreference < Int > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġpreference Store . getInt (" columns _ land scape ", Ġ 0 ) ĊĠĠĠ Ġ} Ċ Ċ } Ċ