Presence? get presence => presenceIndex == null ? null : Presence.values[presenceIndex!];
set presence(Presence? pres) { presenceIndex = pres?.index; }