janishar / android-mvp-architecture

This repository contains a detailed sample app that implements MVP architecture using Dagger2, GreenDao, RxJava2, FastAndroidNetworking and PlaceholderView

Home Page:https://janisharali.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't use Generic Class on getObjectSingle

indraAsLesmana opened this issue · comments

I think the current version of library does not support this.

I will check if it is possible or not.

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
}

}`

(solved) with this.
Wrapper<SignInResponse>().javaClass

thanks.