/* Ċ Ġ* ĠCopyright Ġ 2 0 1 9 Ġvm ad al in . com Ċ Ġ* Ċ Ġ* Ġ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 . vm ad al in . dynamic features . characters list . ui . detail . di Ċ Ċ import Ġandroidx . annotation . Visible ForTesting Ċ import Ġandroidx . annotation . Visible ForTesting . PRIVATE Ċ import Ġcom . vm ad al in . commons . ui . extensions . viewModel Ċ import Ġcom . vm ad al in . commons . views . ProgressBar Dialog Ċ import Ġcom . vm ad al in . core . database . character favorite . Character Favorite Repository Ċ import Ġcom . vm ad al in . core . di . scopes . Feature Scope Ċ import Ġcom . vm ad al in . core . network . re posit i ories . Mar vel Repository Ċ import Ġcom . vm ad al in . dynamic features . characters list . ui . detail . Character Detail Fragment Ċ import Ġcom . vm ad al in . dynamic features . characters list . ui . detail . Character Detail ViewModel Ċ import Ġcom . vm ad al in . dynamic features . characters list . ui . detail . model . Character Detail Mapper Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ Ċ /** Ċ Ġ* ĠClass Ġthat Ġcontribut es Ġto Ġthe Ġobject Ġgraph Ġ[ Character Detail Component ]. Ċ Ġ* Ċ Ġ* Ġ@ see ĠModule Ċ Ġ*/ Ċ @ Module Ċ class ĠCharacter Detail Module ( ĊĠĠĠ Ġ@ Visible ForTesting ( otherwise Ġ= ĠPRIVATE ) ĊĠĠĠ Ġval Ġfragment : ĠCharacter Detail Fragment Ċ ) Ġ{ ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠCreate Ġa Ġprovider Ġmethod Ġbinding Ġfor Ġ[ Character Detail ViewModel ]. ĊĠĠĠĠ Ġ* ĊĠĠĠĠ Ġ* Ġ@ param Ġmar vel Repository ĊĠĠĠĠ Ġ* Ġ@ param Ġcharacter Favorite Repository Ġhandler Ġcharacter Ġfavorite Ġrepository ĊĠĠĠĠ Ġ* Ġ@ param Ġcharacter Detail Mapper Ġmapper Ġto Ġparse Ġview Ġmodel ĊĠĠĠĠ Ġ* ĊĠĠĠĠ Ġ* Ġ@ return Ġinstance Ġof Ġview Ġmodel . ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġ@ Feature Scope ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Character Detail ViewModel ( ĊĠĠĠĠĠĠĠ Ġmar vel Repository : ĠMar vel Repository , ĊĠĠĠĠĠĠĠ Ġcharacter Favorite Repository : ĠCharacter Favorite Repository , ĊĠĠĠĠĠĠĠ Ġcharacter Detail Mapper : ĠCharacter Detail Mapper ĊĠĠĠ Ġ) Ġ= Ġfragment . viewModel Ġ{ ĊĠĠĠĠĠĠĠ ĠCharacter Detail ViewModel ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmar vel Repository Ġ= Ġmar vel Repository , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcharacter Favorite Repository Ġ= Ġcharacter Favorite Repository , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcharacter Detail Mapper Ġ= Ġcharacter Detail Mapper ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠCreate Ġa Ġprovider Ġmethod Ġbinding Ġfor Ġ[ Character Detail Mapper ]. ĊĠĠĠĠ Ġ* ĊĠĠĠĠ Ġ* Ġ@ return Ġinstance Ġof Ġmapper . ĊĠĠĠĠ Ġ* Ġ@ see ĠProvides ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġ@ Feature Scope ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Character Detail Mapper () Ġ= ĠCharacter Detail Mapper () ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠCreate Ġa Ġprovider Ġmethod Ġbinding Ġfor Ġ[ ProgressBar Dialog ]. ĊĠĠĠĠ Ġ* ĊĠĠĠĠ Ġ* Ġ@ return Ġinstance Ġof Ġdialog . ĊĠĠĠĠ Ġ* Ġ@ see ĠProvides ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġ@ Feature Scope ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides ProgressBar Dialog () Ġ= ĠProgress Bar Dialog ( fragment . require Context ()) Ċ } Ċ