package com.srgtrujillo.quotes.quote.presenter;

import com.srgtrujillo.quotes.base.MVP;
import com.srgtrujillo.quotes.quote.view.QuoteListView;

public class QuoteListPresenter implements MVP.Presenter<QuoteListView> {


    @Override
    public void init() {

    }

    @Override
    public void setView(QuoteListView view) {

    }

    @Override
    public void onDestroy() {

    }
}

@@ -122,144 +122,679 @@
 ote.
-view.QuoteListView;%0A%0Apublic class QuoteListPresenter implements MVP.Presenter%3CQuoteListView%3E %7B%0A%0A%0A    @Override%0A    public void init() %7B%0A
+domain.interactor.GetQuotesUseCase;%0Aimport com.srgtrujillo.quotes.quote.domain.model.Quote;%0Aimport com.srgtrujillo.quotes.quote.view.QuoteListView;%0A%0Aimport java.net.UnknownHostException;%0Aimport java.util.List;%0A%0Aimport rx.Subscription;%0Aimport rx.functions.Action1;%0A%0Apublic class QuoteListPresenter implements MVP.Presenter%3CQuoteListView%3E %7B%0A%0A    private GetQuotesUseCase useCase;%0A    private QuoteListView view;%0A%0A    private Subscription quotesSubscription;%0A%0A    public QuoteListPresenter(GetQuotesUseCase useCase) %7B%0A        this.useCase = useCase;%0A    %7D%0A%0A    @Override%0A    public void init() %7B%0A        view.initUi();%0A        view.showProgressBar();%0A        askForQuotes();
 %0A   
@@ -853,24 +853,49 @@
 iew view) %7B%0A
+        this.view = view;
 %0A    %7D%0A%0A    
@@ -934,16 +934,839 @@
 roy() %7B%0A
+        quotesSubscription.unsubscribe();%0A    %7D%0A%0A    private void askForQuotes() %7B%0A        quotesSubscription = useCase.execute().subscribe(new Action1%3CList%3CQuote%3E%3E() %7B%0A            @Override%0A            public void call(List%3CQuote%3E quotes) %7B%0A                onQuotesReceived(quotes);%0A            %7D%0A        %7D, new Action1%3CThrowable%3E() %7B%0A            @Override%0A            public void call(Throwable throwable) %7B%0A                onError(throwable);%0A            %7D%0A        %7D);%0A    %7D%0A%0A    private void onQuotesReceived(List%3CQuote%3E quotes) %7B%0A        view.show(quotes);%0A        view.hideProgressBar();%0A    %7D%0A%0A    private void onError(Throwable error) %7B%0A        if (error instanceof UnknownHostException) %7B%0A            view.showNetworkError();%0A        %7D else %7B%0A            view.showError();%0A        %7D%0A        view.hideProgressBar();
 %0A    %7D%0A%7D

Add implementation of QuoteListPresenter