Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
refactor(access): renamed AccessLocalDataStorage and AccessRemoteData…
Browse files Browse the repository at this point in the history
…Storage into AccessLocalDataSource and AccessRemoteDataSource
  • Loading branch information
AndreaBrighi committed May 10, 2023
1 parent b29a430 commit 2ec19fa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.intelligentbackpack.accessdomain.entities.User
/**
* AccessLocalDataStorage is the interface for access to the local data storage.
*/
interface AccessLocalDataStorage {
interface AccessLocalDataSource {

/**
* Checks if the user is saved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.intelligentbackpack.accessdomain.entities.User
* AccessLocalDataStorageImpl is the implementation of AccessLocalDataStorage.
* @param storage is the storage of the user data [UserStorage].
*/
class AccessLocalDataStorageImpl(private val storage: UserStorage) : AccessLocalDataStorage {
class AccessLocalDataSourceImpl(private val storage: UserStorage) : AccessLocalDataSource {

override fun isUserSaved(): Boolean {
return storage.isUserSaved()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.intelligentbackpack.accessdomain.entities.User
/**
* AccessRemoteDataStorage is the interface for access to the remote data storage.
*/
interface AccessRemoteDataStorage {
interface AccessRemoteDataSource {

/**
* Creates a user.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.json.JSONObject
* AccessRemoteDataStorageImpl is the implementation of AccessRemoteDataStorage.
* @param baseUrl is the base url of the remote data storage.
*/
class AccessRemoteDataStorageImpl(baseUrl: String) : AccessRemoteDataStorage {
class AccessRemoteDataSourceImpl(baseUrl: String) : AccessRemoteDataSource {

private val accessApi = RetrofitHelper.getInstance(baseUrl).create(AccessApi::class.java)

Expand Down

0 comments on commit 2ec19fa

Please sign in to comment.