Skip to content

Commit

Permalink
[#20] Remove unnecessary blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
luongvo committed Mar 8, 2023
1 parent c9705db commit 8ab4b50
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import java.text.SimpleDateFormat
import java.util.*

interface DateFormatter {

fun format(date: Date, dateFormat: String): String
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import io.realm.kotlin.ext.query
import vn.luongvo.kmm.survey.data.local.model.SurveyRealmObject

interface SurveyLocalDataSource {

fun saveSurveys(surveys: List<SurveyRealmObject>)

fun getSurveys(): List<SurveyRealmObject>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ private const val ACCESS_TOKEN_KEY = "accessToken"
private const val REFRESH_TOKEN_KEY = "refreshToken"

interface TokenLocalDataSource {

fun saveToken(token: Token)

fun clear()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.data.remote.model.request.*
import vn.luongvo.kmm.survey.data.remote.model.response.TokenResponse

interface AuthRemoteDataSource {

suspend fun logIn(body: LoginRequestBody): TokenResponse

suspend fun refreshToken(body: RefreshTokenRequestBody): TokenResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.data.remote.model.request.SurveySubmissionRequestBo
import vn.luongvo.kmm.survey.data.remote.model.response.SurveyResponse

interface SurveyRemoteDataSource {

suspend fun getSurveys(pageNumber: Int, pageSize: Int): List<SurveyResponse>

suspend fun getSurveyDetail(id: String): SurveyResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import vn.luongvo.kmm.survey.data.remote.ApiClient
import vn.luongvo.kmm.survey.data.remote.model.response.UserResponse

interface UserRemoteDataSource {

suspend fun getUserProfile(): UserResponse

fun clearClientTokenConfig()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import kotlinx.coroutines.flow.Flow
import vn.luongvo.kmm.survey.domain.model.Token

interface AuthRepository {

fun logIn(email: String, password: String): Flow<Token>

fun refreshToken(refreshToken: String): Flow<Token>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.model.Survey
import vn.luongvo.kmm.survey.domain.model.SurveySubmission

interface SurveyRepository {

fun getSurveys(pageNumber: Int, pageSize: Int, isRefresh: Boolean): Flow<List<Survey>>

fun getCachedSurveys(): Flow<List<Survey>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import kotlinx.coroutines.flow.Flow
import vn.luongvo.kmm.survey.domain.model.User

interface UserRepository {

fun getUserProfile(): Flow<User>

fun clearClientTokenConfig()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.model.Survey
import vn.luongvo.kmm.survey.domain.repository.SurveyRepository

interface GetCachedSurveysUseCase {

operator fun invoke(): Flow<List<Survey>>
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.model.Survey
import vn.luongvo.kmm.survey.domain.repository.SurveyRepository

interface GetSurveyDetailUseCase {

operator fun invoke(id: String): Flow<Survey>
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.model.Survey
import vn.luongvo.kmm.survey.domain.repository.SurveyRepository

interface GetSurveysUseCase {

operator fun invoke(pageNumber: Int, pageSize: Int, isRefresh: Boolean): Flow<List<Survey>>
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.model.User
import vn.luongvo.kmm.survey.domain.repository.UserRepository

interface GetUserProfileUseCase {

operator fun invoke(): Flow<User>
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import kotlinx.coroutines.flow.Flow
import vn.luongvo.kmm.survey.domain.repository.AuthRepository

interface IsLoggedInUseCase {

operator fun invoke(): Flow<Boolean>
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import vn.luongvo.kmm.survey.domain.model.Token
import vn.luongvo.kmm.survey.domain.repository.AuthRepository

interface LogInUseCase {

operator fun invoke(email: String, password: String): Flow<Token>
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.repository.AuthRepository
import vn.luongvo.kmm.survey.domain.repository.UserRepository

interface LogOutUseCase {

operator fun invoke(): Flow<Unit>
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import vn.luongvo.kmm.survey.domain.model.Token
import vn.luongvo.kmm.survey.domain.repository.AuthRepository

interface RefreshTokenUseCase {

operator fun invoke(refreshToken: String): Flow<Token>
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import vn.luongvo.kmm.survey.domain.model.SurveySubmission
import vn.luongvo.kmm.survey.domain.repository.SurveyRepository

interface SubmitSurveyUseCase {

operator fun invoke(submission: SurveySubmission): Flow<Unit>
}

Expand Down

0 comments on commit 8ab4b50

Please sign in to comment.