package Ġru . android p ir aters . ai weather . presentation Ċ Ċ import Ġru . android p ir aters . ai weather . domain . Request Weather Ċ import Ġru . android p ir aters . ai weather . presentation . model . Weather Info Display Item Ċ import Ġru . android p ir ates . ai weather . injection . scope . Config Persistent Ċ import Ġru . android p ir ates . ai weather . presentation . mvp . Base Presenter Ċ import Ġjavax . inject . Inject Ċ Ċ @ Config Persistent Ċ class ĠWeather Presenter Ġ@ Inject Ġconstructor ( ĊĠĠĠĠĠĠĠ Ġprivate Ġvar Ġweather Display able Mapper : ĠWeather Info Display Item . Mapper To Weather Info Display Item , ĊĠĠĠĠĠĠĠ Ġprivate Ġvar Ġrequest Weather : ĠRequest Weather Ċ ) Ġ: ĠBase Presenter < Weather Contract . View >(), ĠWeather Contract . Presenter Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Weather Info ( location : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġrequest Weather . get Single ( location ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. process Loading () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe ({ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġdata Ġ= Ġweather Display able Mapper . apply ( it ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġget View (). on Weather Data Loaded ( data ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ}, Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġget View (). show Error ( it ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ}) ĊĠĠĠ Ġ} Ċ Ċ }