@@ -0,0 +1,859 @@
+package com.vishnus1224.teamworkapidemo.usecase;%0A%0Aimport com.vishnus1224.rxjavateamworkclient.model.LatestActivityResponse;%0Aimport com.vishnus1224.teamworkapidemo.di.scope.PerFragment;%0Aimport com.vishnus1224.teamworkapidemo.repository.BaseRepository;%0Aimport com.vishnus1224.teamworkapidemo.repository.LatestActivityRepository;%0A%0Aimport javax.inject.Inject;%0Aimport javax.inject.Named;%0A%0Aimport rx.Observable;%0A%0A/**%0A * Get the latest activity from the cloud.%0A * Created by vishnu on 24/08/16.%0A */%0Apublic class GetLatestActivityCloudUseCase extends UseCase %7B%0A%0A    private BaseRepository repository;%0A%0A    @Inject%0A    public GetLatestActivityCloudUseCase(@Named(%22activityRepo%22) BaseRepository repository)%7B%0A%0A        this.repository = repository;%0A%0A    %7D%0A%0A    @Override%0A    Observable buildUseCase() %7B%0A%0A        return Observable.just(repository.getAllItems());%0A%0A    %7D%0A%7D%0A

use case for getting all activity from cloud