1

I have this Response Object from API

data class ReqSpaceAvailability @Inject constructor(var stationFrom: String? = null,
                                                    var stationTo: String? = null,
                                                    var detailNumPlaces: String? = "1",
                                                    var detailTypePlaces: String? = "0",
                                                    var direction: ArrayList<ObjDirection>? = null)

But it's not compiling saying

"error: Types may only contain one @Inject constructor."

MJakhongir
  • 2,101
  • 2
  • 16
  • 27

0 Answers0