@@ -0,0 +1,1603 @@
+package es.craftsmanship.toledo.katangapp.interactors;%0A%0Aimport java.io.IOException;%0A%0Aimport es.craftsmanship.toledo.katangapp.models.QueryResult;%0Aimport es.craftsmanship.toledo.katangapp.services.StopsService;%0Aimport es.craftsmanship.toledo.katangapp.utils.AndroidBus;%0Aimport retrofit2.Response;%0Aimport retrofit2.Retrofit;%0Aimport retrofit2.converter.jackson.JacksonConverterFactory;%0A%0A/**%0A * @author Javier Gamarra%0A */%0Apublic class StopsInteractor implements Runnable %7B%0A%0A    private static final String BACKEND_ENDPOINT = %22https://secret-depths-4660.herokuapp.com%22;%0A    private final String radio;%0A    private final Double latitude;%0A    private final Double longitude;%0A%0A    public StopsInteractor(String radio, Double latitude, Double longitude) %7B%0A        this.radio = radio;%0A        this.latitude = latitude;%0A        this.longitude = longitude;%0A    %7D%0A%0A    @Override%0A    public void run() %7B%0A        try %7B%0A            Retrofit retrofit = new Retrofit.Builder()%0A                    .baseUrl(BACKEND_ENDPOINT)%0A                    .addConverterFactory(JacksonConverterFactory.create())%0A                    .build();%0A%0A            StopsService service = retrofit.create(StopsService.class);%0A%0A            Response%3CQueryResult%3E response = service.listStops(latitude, longitude, radio).execute();%0A%0A            if (response.isSuccess()) %7B%0A                AndroidBus.getInstance().post(response.body());%0A            %7D else %7B%0A                AndroidBus.getInstance().post(new Error(response.message()));%0A            %7D%0A%0A        %7D catch (IOException e) %7B%0A            AndroidBus.getInstance().post(e);%0A        %7D%0A    %7D%0A%7D

extract business logic to StopsInteractor