package co.jagu.presentation.ui.person.detail;

import javax.inject.Inject;

import co.jagu.domain.interactor.person.GetPersonDetail;
import co.jagu.presentation.model.PersonModel;
import co.jagu.presentation.ui.base.BaseView;
import co.jagu.presentation.ui.base.BaseViewModel;


public class PersonDetailViewModel extends BaseViewModel<PersonDetailView>{

    /*--
    Dependency
    --*/
    private GetPersonDetail mGetPersonDetail;

    /*--
    Constructor
    --*/
    @Inject
    public PersonDetailViewModel(GetPersonDetail getPersonDetail) {
        this.mGetPersonDetail = getPersonDetail;
    }

    /*--
    Setter
    -- */
    public void setPersonId(long personId) {
        mGetPersonDetail.buildUseCaseObservable(GetPersonDetail.Params.forPerson(personId));
    }

    @Override
    public void attachView(PersonDetailView view) {
        super.attachView(view);
    }
}

@@ -131,101 +131,8 @@
 il;%0A
-import co.jagu.presentation.model.PersonModel;%0Aimport co.jagu.presentation.ui.base.BaseView;%0A
 impo
@@ -254,16 +254,17 @@
 ailView%3E
+ 
 %7B%0A%0A    /

fix checkstyle and pmd