The gender parameter is an enum which corresponds to:
0 = Male, 1 = Female, 2 = NonBinary, 3 = Unspecified.

enum class Gender(val textValue: String, val indexValue: Int) {
    MALE("Male", 0),
    FEMALE("Female", 1),
    NON_BINARY("Other", 2),
    UNSPECIFIED("Unspecified", 3)
}