/// <summary>
 /// Function to updates the selected person.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="personData">The person data.</param>
 /// <param name="personTypeList">The person type list.</param>
 /// <param name="personsPartyManager">The persons party manager.</param>
 /// <param name="eventType">Type of the event.</param>
 private static void UpdateSelectedPerson(NotificationEvent message, Person personData, List<PersonType> personTypeList, PersonsPartyManager personsPartyManager, NotificationEventType eventType)
 {
     if (personTypeList.FirstOrDefault() == PersonType.Guest && personsPartyManager.CurrentParty.IsPartyCreated)
     {
         var guest = personsPartyManager.CurrentParty.Guests.FirstOrDefault(g => g.GuestId.Equals(message.PersonId, StringComparison.OrdinalIgnoreCase));
         MapGuestData(guest, personData.Guests.FirstOrDefault(), eventType);
         RetrieveGuestPhoto(guest);
     }
     else if (personTypeList.FirstOrDefault() == PersonType.Crewmember && personsPartyManager.CurrentParty.IsPartyCreated)
     {
         var crewMember = personsPartyManager.CurrentParty.Crew.FirstOrDefault(c => c.CrewmemberId.Equals(message.PersonId, StringComparison.OrdinalIgnoreCase));
         MapCrewMemberData(crewMember, personData, eventType);
         RetrieveCrewmemberPhoto(crewMember);
     }
     else if (personTypeList.FirstOrDefault() == PersonType.Visitor && personsPartyManager.CurrentParty.IsPartyCreated)
     {
         var visitor = personsPartyManager.CurrentParty.Visitors.FirstOrDefault(v => v.VisitorId.Equals(message.PersonId, StringComparison.OrdinalIgnoreCase));
         MapVisitorData(visitor, personData, eventType);
         RetrieveVisitorPhoto(visitor);
     }
 }
 /// <summary>
 /// Initializes a new instance of the PersonsPartyService class.
 /// </summary>
 /// <param name="personsPartyManager">Instance of PersonsPartyManager</param>
 public PersonsPartyService(PersonsPartyManager personsPartyManager)
 {
     this.personsPartyManager = personsPartyManager;
 }