Back to project page protohipster.
The source code is released under:
Apache License
If you think the Android project protohipster listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.flipper83.protohipster.feed.view.viewmodel.mapper; // w w w .j a v a2 s . co m import com.flipper83.protohipster.feed.domain.boundaries.HipsterBoundary; import com.flipper83.protohipster.feed.view.viewmodel.HipsterViewModel; import javax.inject.Inject; /** * */ public class HipsterViewMapperManual implements HipsterViewMapper { @Inject public HipsterViewMapperManual(){ } @Override public HipsterViewModel mapper(HipsterBoundary hipsterBoundary) { HipsterViewModel viewModel = new HipsterViewModel(); viewModel.setName(hipsterBoundary.getName()); viewModel.setUrlAvatar(hipsterBoundary.getAvatar()); viewModel.setRating(hipsterBoundary.getRating()); viewModel.setUserId(hipsterBoundary.getUserId()); return viewModel; } }