aeruhxi
01/17/2018, 4:34 PMwouterdoeland
01/17/2018, 4:35 PMavolkmann
01/17/2018, 4:35 PMavolkmann
01/17/2018, 4:35 PMwouterdoeland
01/17/2018, 4:35 PMwouterdoeland
01/17/2018, 4:36 PMaeruhxi
01/17/2018, 4:36 PMExpose
and
install(ContentNegotiation) {
gson {
setDateFormat(DateFormat.LONG)
excludeFieldsWithoutExposeAnnotation()
}
}
It didn't workaeruhxi
01/17/2018, 4:40 PMaeruhxi
01/17/2018, 4:41 PMavolkmann
01/17/2018, 4:44 PMavolkmann
01/17/2018, 4:44 PMavolkmann
01/17/2018, 4:45 PMavolkmann
01/17/2018, 4:45 PMdata class Test(@Expose val id: String, val excluded: Int = 5)
aeruhxi
01/17/2018, 5:32 PMcall.respond(Test("asd"))
?aeruhxi
01/17/2018, 5:33 PMaeruhxi
01/17/2018, 5:33 PMdata class User(
val id: Long,
val realId: Long,
@Expose val firstName: String,
@Expose val lastName: String,
@Expose val profilePictureLink: String,
@Expose val status: Int,
@Expose val suspended: Boolean,
@Expose val username: String
)
I have something like thisavolkmann
01/17/2018, 6:19 PMavolkmann
01/17/2018, 6:19 PMcall.respond(Test)
avolkmann
01/17/2018, 6:20 PMaeruhxi
01/18/2018, 2:51 AMout
and build
directory and ran it again and now it's working. Sorry for all the confusion and fuss. Thanks for trying to help.