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 BrandDataResponse( | |
@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 = "brands") | |
val brands: List<Brand> | |
) |
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 Brand( | |
@field:Json(name = "brand") | |
val name: String, | |
@field:Json(name = "brand_slug") | |
val slug: String, | |
@field:Json(name = "count_devices") | |
val countDevices: Int, | |
var phonesList: List<Phone>? | |
) |
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": 20, | |
"last_page": 5, | |
"phones": [ | |
{ | |
"phone_name": "Watch SE", | |
"phone_name_slug": "watch-se", |
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 PhoneResponse( | |
@Json(name = "status") | |
val status: Boolean, | |
@Json(name = "data") | |
val data: PhoneDataResponse | |
) |
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> | |
) |
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
{ | |
"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 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
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 PhoneSpecs( | |
@field:Json(name = "title") | |
val title: String, | |
@field:Json(name = "specs") | |
val specs: List<PhoneSubSpecs> | |
) |