Can't use Generic Class on getObjectSingle
indraAsLesmana opened this issue · comments
indraAsLesmana commented
AMIT SHEKHAR commented
I think the current version of library does not support this.
AMIT SHEKHAR commented
I will check if it is possible or not.
indraAsLesmana commented
thanks, waiting if it possible.
I very want that response put in the same object wrapper
`class Wrapper {
@expose
@SerializedName("message")
var message: String = ""
@expose
@SerializedName("meta")
lateinit var meta: Meta
@expose
@SerializedName("result")
var data: T? = null
class Meta {
@Expose
@SerializedName("total")
var total: Int = 0
@Expose
@SerializedName("offset")
var offset: Int = 0
@Expose
@SerializedName("limit")
var limit: Int = 0
}
}`
indraAsLesmana commented
(solved) with this.
Wrapper<SignInResponse>().javaClass
thanks.