@@ -0,0 +1,1433 @@
+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.BusStopsService;%0Aimport es.craftsmanship.toledo.katangapp.utils.AndroidBus;%0Aimport retrofit2.Response;%0Aimport retrofit2.Retrofit;%0Aimport retrofit2.converter.jackson.JacksonConverterFactory;%0A%0A/**%0A * @author Manuel de la Pe%C3%B1a%0A */%0Apublic class FavoritesInteractor implements Runnable %7B%0A%0A    private static final String BACKEND_ENDPOINT = %22https://secret-depths-4660.herokuapp.com%22;%0A    private final String busStopId;%0A%0A    public FavoritesInteractor(String busStopId) %7B%0A        this.busStopId = busStopId;%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            BusStopsService service = retrofit.create(BusStopsService.class);%0A%0A            Response%3CQueryResult%3E response = service.favorites(busStopId).execute();%0A%0A            Object event = new Error(response.message());%0A%0A            if (response.isSuccessful()) %7B%0A                event = response.body();%0A            %7D%0A%0A            AndroidBus.getInstance().post(event);%0A        %7D%0A        catch (IOException e) %7B%0A            AndroidBus.getInstance().post(e);%0A        %7D%0A    %7D%0A%0A%7D

Define an interactor to invoke the http service