package Ġcom . b ach h uber design . deck builder gw ent . features . deck select Ċ Ċ import Ġcom . b ach h uber design . deck builder gw ent . features . card viewer . Card Repository Ċ import Ġcom . b ach h uber design . deck builder gw ent . features . deck build . Deck Repository Ċ import Ġcom . b ach h uber design . deck builder gw ent . features . shared . base . Base Presenter Ċ import Ġcom . b ach h uber design . deck builder gw ent . inject . annotation . Pers isted Scope Ċ import Ġjavax . inject . Inject Ċ Ċ /** Ċ Ġ* Ġ@ author ĠEric ĠB ach h uber Ċ Ġ* Ġ@ version Ġ 1 . 0 . 0 Ċ Ġ* Ġ@ since Ġ 1 . 0 . 0 Ċ Ġ*/ Ċ @ Pers isted Scope Ċ class ĠDeck Select Presenter Ċ @ Inject Ġconstructor ( private Ġval Ġdeck Repository : ĠDeck Repository , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġprivate Ġval Ġcard Repository : ĠCard Repository ) Ġ: ĠBase Presenter < Deck Select M vp Contract >() Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġ@ Jvm Static Ġval ĠTAG : ĠString Ġ= ĠDeck Select Presenter :: class . java . name ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġload Deck List () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġde cks Ġ= Ġdeck Repository . getAll User Created De cks () ĊĊĠĠĠĠĠĠĠ Ġde cks . forEach Ġ{ Ġdeck Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdeck . leader Ġ= Ġcard Repository . get Card ById ( deck . leader Id ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġif Ġ( de cks . isNotEmpty ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġget View OrThrow (). on De cks Loaded ( de cks ) ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġget View OrThrow (). on No De cks Available () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ Ċ }