-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from Aleixo-Dev/improvement/change-ui-style
[improvement] improvement ui style
- Loading branch information
Showing
56 changed files
with
662 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
app/src/main/java/br/com/nicolas/consultacd/data/respository/QueryDataSource.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package br.com.nicolas.consultacd.data.respository | ||
|
||
import br.com.nicolas.consultacd.domain.DirectModel | ||
import br.com.nicolas.consultacd.models.CepRemote | ||
import br.com.nicolas.consultacd.models.DirectRemote | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
interface QueryDataSource { | ||
|
||
suspend fun getCep(cepCode : String): Flow<CepRemote> | ||
suspend fun getDirect(dddCode : String) : Flow<DirectRemote> | ||
suspend fun getDirect(dddCode : String) : Flow<DirectModel> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
app/src/main/java/br/com/nicolas/consultacd/domain/DirectModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package br.com.nicolas.consultacd.domain | ||
|
||
data class DirectModel( | ||
val cities : List<String>? = null, | ||
val state : String? = null | ||
) |
8 changes: 6 additions & 2 deletions
8
app/src/main/java/br/com/nicolas/consultacd/models/DirectRemote.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
package br.com.nicolas.consultacd.models | ||
|
||
|
||
import br.com.nicolas.consultacd.domain.DirectModel | ||
import com.google.gson.annotations.SerializedName | ||
|
||
data class DirectRemote( | ||
@SerializedName("cities") | ||
val cities: List<String>, | ||
@SerializedName("state") | ||
val state: String | ||
) | ||
) | ||
|
||
fun DirectRemote.toDirectModel() = DirectModel( | ||
cities, state | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.