RunClientScript

constructor(id: Int, types: CharArray, values: List<Any>)

A primary constructor that allows ones to pass in the types from the server, in case one wishes to provide accurate types. The client however only cares whether the type is a string, or isn't a string, and the exact type values get discarded.


constructor(id: Int, values: List<Any>)

A secondary constructor that allows one to only pass in the values and infer the types from the values. All values must be integer or string types, both of which can be mixed too. As client discards the actual types, there's no value in providing the exact type values to the client, and we can simply infer this the same way client reverses it.