private PersonState createPersonState(PresenceManager.PersonState personState) { if (personState == null) return null; return new PersonState() { name = personState.name, lastSeen = personState.lastSeen, lastLeft = personState.lastLeft, IsPresent = personState.IsPresent() }; }