karelpeeters
09/29/2018, 4:43 PMdata class MessageIndex(val phoneType: String)
use the first solution. If it has a slow constructor that makes eg. network calls, reads disk, ... consider using the second. (With "balancing act" I mean that it's not clear which one is faster and that it may depend on the situation)