We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82526df commit c3747f3Copy full SHA for c3747f3
app/src/main/java/com/training/coroutinepackdemo/data/models/NewsResponse.kt
@@ -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
15
+ val status: String,
16
17
+ @SerializedName("totalResults")
18
19
+ val totalResults: Int
20
+)
0 commit comments