Sybit-Education / airtable.java

Java API for Airtable (http://www.airtable.com)
MIT License
48 stars 25 forks source link

Support for abstract class inheritance #42

Open hackinteach opened 4 years ago

hackinteach commented 4 years ago

Currently the SDK doesn't support for Abstract field inheritance. UserInfo is defined as follow: (written in Kotlin)

abstract class UserInfo(
        @SerializedName("First Name")
        @NotBlank
        open var firstName: String? = null,

        @SerializedName("Last Name")
        @NotBlank
        open var lastName: String? = null ) {}

and I have Student class which inherit from UserInfo as follow

class Student constructor() : UserInfo() {

    @SerializedName("Student CMKL ID")
    var studentId: String? = null
// ... more fields
)

but when I do select() the firstName and lastName aren't mapped out.