Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (21 sloc) 807 Bytes
package com.kotlinexample.api
data class ProductInfoModel(val id: Long,
val img: String,
val text: String,
val title: String)
object ProductSingleton {
var id: Long = 0
var img: String = ""
var text: String = ""
var title: String = ""
}
data class ProductReviewModel(val id: Long,
val product: Long,
val created_by: CreatedByModel,
val rate: Int,
val text: String)
data class CreatedByModel(val id: Long,
val username: String)
data class PostReviewModel(val rate: Int,
val text: String)
data class PostReviewResponseModel(val review_id: Long)