package Ġcom . nan am are . mac . sample . data . market Ċ Ċ import Ġcom . nan am are . mac . sample . api . up bit . Market Model Ċ import Ġjavax . inject . Inject Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Singleton Ċ class ĠMarket Repository Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġmarket Remote DataSource : ĠMarket Remote DataSource Ċ ) Ġ: ĠMarket Source Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Market List ( success : Ġ( List < Market Model >) Ġ-> ĠUnit , Ġfailed : Ġ() Ġ-> ĠUnit ) Ġ{ ĊĠĠĠĠĠĠĠ Ġmarket Remote DataSource . get Market List ( success , Ġfailed ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġclose () Ġ{ ĊĠĠĠĠĠĠĠ Ġmarket Remote DataSource . close () ĊĠĠĠ Ġ} ĊĊ Ċ }