Skip to content

Commit 15c8474

Browse files
authored
Update response type for APi Helper
1 parent bcc51ba commit 15c8474

File tree

1 file changed

+3
-2
lines changed
  • app/src/main/java/com/training/coroutinepackdemo/data/api

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package com.training.coroutinepackdemo.data.api
22

33
import com.training.coroutinepackdemo.data.local.entity.NewsEntity
4+
import com.training.coroutinepackdemo.data.models.NewsResponse
45

56
interface ApiHelper{
67

7-
suspend fun getNews(pageId:String):List<NewsEntity>
8+
suspend fun getNews(pageId:String): NewsResponse
89

910
suspend fun getMoreNews():List<NewsEntity>
10-
}
11+
}

0 commit comments

Comments
 (0)