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
data class PhoneSearchDataResponse( | |
@field:Json(name = "page") | |
val page: Int, | |
@field:Json(name = "limit") | |
val limit: Int, | |
@field:Json(name = "last_page") | |
val lastPage: Int, | |
@field:Json(name = "phones") | |
val phones: List<PhoneSearch> | |
) |
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
data class PhoneSearchResponse( | |
@Json(name = "status") | |
val status: Boolean, | |
@Json(name = "data") | |
val data: PhoneSearchDataResponse | |
) |
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
{ | |
"status": true, | |
"data": { | |
"page": 1, | |
"limit": 10, | |
"last_page": 4, | |
"phones": [ | |
{ | |
"phone_name": "Galaxy Note9", | |
"phone_name_slug": "galaxy-note9", |
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
data class PhoneSubSpecs( | |
@field:Json(name = "key") | |
val subTitle: String, | |
@field:Json(name = "val") | |
val subSpecs: List<String> | |
) |
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
data class PhoneSpecs( | |
@field:Json(name = "title") | |
val title: String, | |
@field:Json(name = "specs") | |
val specs: List<PhoneSubSpecs> | |
) |
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
data class PhoneSpecsDataResponse( | |
@field:Json(name = "brand") | |
val brandName: String, | |
@field:Json(name = "phone_name") | |
val name: String, | |
@field:Json(name = "phone_name_slug") | |
val slug: String, | |
@field:Json(name = "phone_img_url") | |
val image: String, | |
@field:Json(name = "specifications") |
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
data class PhoneSpecsResponse( | |
@Json(name = "status") | |
val status: Boolean, | |
@Json(name = "data") | |
val data: PhoneSpecsDataResponse | |
) |
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
{ | |
"status": true, | |
"data": { | |
"brand": "Apple", | |
"phone_name": "iPhone SE (2020)", | |
"phone_name_slug": "iphone-se-2020", | |
"phone_img_url": "https://fdn2.gsmarena.com/vv/bigpic/apple-iphone-se-2020.jpg", | |
"specifications": [ | |
{ | |
"title": "Launch", |
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
data class Phone( | |
@field:Json(name = "phone_name") | |
val name: String, | |
@field:Json(name = "phone_name_slug") | |
val slug: String, | |
@field:Json(name = "brand") | |
val brandName: String, | |
@field:Json(name = "phone_img_url") | |
val image: String | |
) |
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
data class PhoneDataResponse( | |
@field:Json(name = "page") | |
val page: Int, | |
@field:Json(name = "limit") | |
val limit: Int, | |
@field:Json(name = "last_page") | |
val lastPage: Int, | |
@field:Json(name = "phones") | |
val phones: List<Phone> | |
) |