ivano
@Parcelize class RemoteDeclarationRepository : DeclarationRepositoryInterface { private val declareService: ProActiveDeclareApi get() = Api() override fun getDeclarations(periodId: Int, offset: Int, limit: Int): Single<DeclarationsResponse> { return declareService.getDeclarations(periodId, offset, limit) } override fun getDeclarationPeriod(id: Int): Single<DeclarationPeriod> { return declareService.getPeriod(id).map { it.data } } //and so on 50 times almost
Ash
declareService
declareService.getthis()
declareService.getThat()
with
getThis()
getThat
arekolek
class RemoteDeclarationRepository : DeclarationRepositoryInterface, ProActiveDeclareApi by Api() { override fun getDeclarations(periodId: Int, offset: Int, limit: Int): Single<DeclarationsResponse> { return getDeclarations(periodId, offset, limit) } override fun getDeclarationPeriod(id: Int): Single<DeclarationPeriod> { return getPeriod(id).map { it.data } }
ProActiveDeclareApi
RemoteDeclarationRepository
A modern programming language that makes developers happier.