package Ġnet . rom . exchange . presentation . mapper . rom Ċ Ċ import Ġnet . rom . exchange . domain . model . rom . Item Exchange Ċ import Ġnet . rom . exchange . presentation . mapper . Mapper Ċ import Ġnet . rom . exchange . presentation . model . rom . Item Exchange View Ċ import Ġjavax . inject . Inject Ċ Ċ open Ġclass ĠItem Exchange Mapper Ġ@ Inject Ġconstructor ( val Ġsea View Mapper : ĠSe a View Mapper , Ġval Ġglobal View Mapper : ĠGlobal View Mapper ) Ġ: ĠMapper < Item Exchange View , ĠItem Exchange > Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġmap To View ( type : ĠItem Exchange ): ĠItem Exchange View Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠItem Exchange View ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġimage Ġ= Ġtype . image , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġname Ġ= Ġtype . name , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġsea Ġ= Ġsea View Mapper . map To View ( type . sea ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġglobal Ġ= Ġglobal View Mapper . map To View ( type . global ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtype Ġ= Ġtype . type , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġglobal Sea Diff Ġ= Ġtype . global Sea Diff ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ }