Skip to content

Commit c3747f3

Browse files
authored
Create Newsresponse model
1 parent 82526df commit c3747f3

File tree

1 file changed

+20
-0
lines changed
  • app/src/main/java/com/training/coroutinepackdemo/data/models

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.training.coroutinepackdemo.data.models
2+
3+
import com.google.gson.annotations.Expose
4+
import com.google.gson.annotations.SerializedName
5+
6+
7+
data class NewsResponse(
8+
9+
@SerializedName("articles")
10+
@Expose
11+
val newsList: List<News>,
12+
13+
@SerializedName("status")
14+
@Expose
15+
val status: String,
16+
17+
@SerializedName("totalResults")
18+
@Expose
19+
val totalResults: Int
20+
)

0 commit comments

Comments
 (0)