// Token: 0x06001CB0 RID: 7344 RVA: 0x00072CF0 File Offset: 0x00070EF0
 private static PhoneNumberAttributedValue[] GetPhoneNumberAttribValue(Microsoft.Exchange.Services.Core.Types.PhoneNumber value)
 {
     if (value != null)
     {
         return(new PhoneNumberAttributedValue[]
         {
             new PhoneNumberAttributedValue(value, new string[]
             {
                 "0"
             })
         });
     }
     return(null);
 }
        // Token: 0x06001CAD RID: 7341 RVA: 0x00072ACC File Offset: 0x00070CCC
        private static Persona GetPersonaFromUser(ADRecipient recipient)
        {
            Persona persona = new Persona();

            persona.PersonaId   = new ItemId(IdConverter.ADObjectIdToEwsId(recipient.Id), null);
            persona.DisplayName = recipient.DisplayName;
            EmailAddressWrapper emailAddressWrapper = new EmailAddressWrapper();

            emailAddressWrapper.EmailAddress = recipient.PrimarySmtpAddress.ToString();
            emailAddressWrapper.Name         = recipient.PrimarySmtpAddress.ToString();
            persona.EmailAddress             = emailAddressWrapper;
            persona.EmailAddresses           = new EmailAddressWrapper[]
            {
                emailAddressWrapper
            };
            persona.Attributions = new Attribution[]
            {
                new Attribution("0", new ItemId(), WellKnownNetworkNames.GAL)
                {
                    IsWritable     = false,
                    IsQuickContact = false,
                    IsHidden       = false,
                    FolderId       = null
                }
            };
            IADOrgPerson iadorgPerson = recipient as IADOrgPerson;

            if (iadorgPerson != null)
            {
                persona.GivenName   = iadorgPerson.FirstName;
                persona.CompanyName = iadorgPerson.Company;
                persona.Surname     = iadorgPerson.LastName;
                persona.Title       = iadorgPerson.Title;
                Microsoft.Exchange.Services.Core.Types.PhoneNumber phoneNumber = new Microsoft.Exchange.Services.Core.Types.PhoneNumber();
                phoneNumber.Number           = iadorgPerson.Phone;
                phoneNumber.Type             = PersonPhoneNumberType.Business;
                persona.PhoneNumber          = phoneNumber;
                persona.DisplayNames         = FindPeopleSpeechRecognitionResultHandler.GetStringAttribValue(persona.DisplayName);
                persona.GivenNames           = FindPeopleSpeechRecognitionResultHandler.GetStringAttribValue(persona.GivenName);
                persona.Surnames             = FindPeopleSpeechRecognitionResultHandler.GetStringAttribValue(persona.Surname);
                persona.CompanyNames         = FindPeopleSpeechRecognitionResultHandler.GetStringAttribValue(persona.CompanyName);
                persona.Titles               = FindPeopleSpeechRecognitionResultHandler.GetStringAttribValue(persona.Title);
                persona.OfficeLocations      = FindPeopleSpeechRecognitionResultHandler.GetStringAttribValue(iadorgPerson.Office);
                persona.Emails1              = FindPeopleSpeechRecognitionResultHandler.GetEmailAddressAttribValue(emailAddressWrapper);
                persona.BusinessPhoneNumbers = FindPeopleSpeechRecognitionResultHandler.GetPhoneNumberAttribValue(phoneNumber);
            }
            return(persona);
        }