Skip to content

Commit 7e006bb

Browse files
#22 - networking treatment using flow or Coroutines with Result
1 parent 1f6f190 commit 7e006bb

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

buildSrc/src/main/java/Config.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ object Config {
99
const val packageName = "com.codandotv.streamplayerapp."
1010

1111
object BuildField {
12-
13-
const val host_debug = "\"https://demo5700495.mockable.io/\""
14-
const val host_release = "\"https://demo5700495.mockable.io/\""
12+
const val host_debug = "\"https://api.themoviedb.org/\""
13+
const val host_release = "\"https://api.themoviedb.org/\""
1514
}
1615
}

core-networking/src/main/java/com/codandotv/streamplayerapp/core_networking/di/NetworkModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ object NetworkModule {
5959

6060
single {
6161
provideOkhttp(
62-
// get(QualifierAuthInterceptor),
62+
get(QualifierAuthInterceptor),
6363
get(QualifierLoggerInterceptor),
6464
)
6565
}

feature-list-streams/src/main/java/com/codandotv/streamplayerapp/feature_list_streams/data/ListStreamService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import com.codandotv.streamplayerapp.feature_list_streams.data.model.ListStreamR
55
import retrofit2.http.GET
66

77
interface ListStreamService {
8-
@GET("codandotv")
8+
@GET("3/movie/76341")
99
suspend fun getMovies() : NetworkResponse<ListStreamResponse>
1010
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.codandotv.streamplayerapp.feature_list_streams.data.model
22

33
data class ListStreamResponse(
4-
val name : String,
5-
val description : String
4+
val title : String,
5+
val overview : String
66
)

feature-list-streams/src/main/java/com/codandotv/streamplayerapp/feature_list_streams/domain/ListStreamMapper.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import com.codandotv.streamplayerapp.feature_list_streams.domain.model.ListStrea
55

66
fun ListStreamResponse.toListStream() : ListStream =
77
ListStream(
8-
name = this.name,
9-
description = this.description
8+
name = this.title,
9+
description = this.overview
1010
)

0 commit comments

Comments
 (0)