package taiwan.no1.app.data.mapper;

import javax.inject.Singleton;

/**
 * Created by weian on 2017/1/21.
 */

@Singleton
public class TVEpisodesMapper implements <> {
}

@@ -41,30 +41,443 @@
 ort 
-javax.inject.Singleton
+android.support.annotation.NonNull;%0A%0Aimport com.innahema.collections.query.queriables.Queryable;%0A%0Aimport java.util.List;%0A%0Aimport javax.inject.Inject;%0Aimport javax.inject.Singleton;%0A%0Aimport taiwan.no1.app.data.entities.TVEpisodesEntity;%0Aimport taiwan.no1.app.domain.mapper.IBeanMapper;%0Aimport taiwan.no1.app.mvp.models.MovieDetailModel;%0Aimport taiwan.no1.app.mvp.models.MovieVideosModel;%0Aimport taiwan.no1.app.mvp.models.TVEpisodesModel
 ;%0A%0A/
@@ -559,16 +559,17 @@
 sMapper 
+ 
 implemen
@@ -575,11 +575,1018 @@
 nts 
-%3C%3E %7B
+IBeanMapper%3CTVEpisodesModel, TVEpisodesEntity%3E %7B%0A    @Inject MovieVideosMapper tvVideosMapper;%0A%0A    @Inject%0A    public TVEpisodesMapper() %7B%0A    %7D%0A%0A    @NonNull%0A    @Override%0A    public TVEpisodesEntity transformFrom(@NonNull TVEpisodesModel model) %7B%0A        return null;%0A    %7D%0A%0A    @NonNull%0A    @Override%0A    public TVEpisodesModel transformTo(@NonNull TVEpisodesEntity entity) %7B%0A        List%3CMovieVideosModel%3E tvMovieVideosModel = Queryable.from(entity.getVideos().getResults())%0A                .map(this.tvVideosMapper::transformTo)%0A                .toList();%0A%0A        return new TVEpisodesModel(entity.getAir_date(),%0A                entity.getEpisode_number(),%0A                entity.getName(),%0A                entity.getOverview(),%0A                entity.getId(),%0A                entity.getProduction_code(),%0A                entity.getSeason_number(),%0A                entity.getStill_path(),%0A                entity.getVote_count(),%0A                new MovieDetailModel.VideosBean(tvMovieVideosModel));%0A    %7D
 %0A%7D%0A

implement TV Episodes mapper, but still have an issue.