/// <summary> /// sets a instant messenger address if it's not null /// </summary> /// <param name="exchangeContact"> /// The exchange contact. /// </param> /// <param name="address"> /// The im address type to be set. /// </param> /// <param name="value"> /// The value (the im address). /// </param> private static void SetImAddress(this Contact exchangeContact, ImAddressKey address, string value) { if (!string.IsNullOrEmpty(value)) { exchangeContact.ImAddresses[address] = value; } }
private static void SyncIM(ImAddressKey imAddressKey, IdentificacionTipo identificacionTipo, Contact contact, Persona persona, IObjectSpace objectSpace) { if (contact.ImAddresses.Contains(imAddressKey)) { var im = contact.ImAddresses[imAddressKey]; SyncIdentificacion(persona, identificacionTipo, objectSpace, im, imAddressKey.ToString( )); } }