@@ -0,0 +1,2509 @@
+/*%0A * Copyright (c) 2015 Ushahidi Inc%0A *%0A * This program is free software: you can redistribute it and/or modify it under%0A *  the terms of the GNU Affero General Public License as published by the Free%0A *  Software Foundation, either version 3 of the License, or (at your option)%0A *  any later version.%0A *%0A *  This program is distributed in the hope that it will be useful, but WITHOUT%0A *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS%0A *  FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.%0A *%0A *  You should have received a copy of the GNU Affero General Public License%0A *  along with this program in the file LICENSE-AGPL. If not, see%0A *  https://www.gnu.org/licenses/agpl-3.0.html%0A */%0A%0Apackage com.ushahidi.android.data.repository.datasource;%0A%0Aimport com.ushahidi.android.data.entity.mapper.UserAccountEntityDataMapper;%0Aimport com.ushahidi.android.data.repository.datasource.useraccount.UserAccountDataSource;%0Aimport com.ushahidi.android.data.repository.datasource.useraccount.UserAccountDataSourceFactory;%0Aimport com.ushahidi.android.domain.entity.Tag;%0Aimport com.ushahidi.android.domain.entity.UserAccount;%0Aimport com.ushahidi.android.domain.repository.UserAccountRepository;%0A%0Aimport android.support.annotation.NonNull;%0A%0Aimport rx.Observable;%0A%0A/**%0A * @author Ushahidi Team %3Cteam@ushahidi.com%3E%0A */%0Apublic class UserAccountDataRepository implements UserAccountRepository %7B%0A%0A    private final UserAccountDataSourceFactory mUserAccountDataSourceFactory;%0A%0A    private final UserAccountEntityDataMapper mUserAccountEntityDataMapper;%0A%0A    public UserAccountDataRepository(%0A            @NonNull UserAccountDataSourceFactory userAccountDataSourceFactory, @NonNull%0A    UserAccountEntityDataMapper userAccountEntityDataMapper) %7B%0A        mUserAccountDataSourceFactory = userAccountDataSourceFactory;%0A        mUserAccountEntityDataMapper = userAccountEntityDataMapper;%0A    %7D%0A%0A    @Override%0A    public Observable login(UserAccount userAccount) %7B%0A        final UserAccountDataSource userAccountDataSource = mUserAccountDataSourceFactory%0A                .createApiDataSource();%0A        return userAccountDataSource%0A                .loginUserAccountEntity(mUserAccountEntityDataMapper.map(userAccount));%0A    %7D%0A%0A    @Override%0A    public Observable%3CLong%3E putUserAccount(Tag entity) %7B%0A        // Do nothing%0A        return null;%0A    %7D%0A%0A    @Override%0A    public Observable%3CLong%3E deleteUserAccount(Long id) %7B%0A        // Do nothing%0A        return null;%0A    %7D%0A%7D%0A

Implement data repository for user account