Subject: Problems to read information of vcard
Hi.
I noticed that these definitive fields (below) are not correctly showing the data of vcard that it was generated by the Pandion/Exodus.
-------- Start Code ----------
if (iq.Type == IqType.result)
{
Vcard vcard = iq.Vcard;
if (vcard != null)
{
txtMailPes.Text = vcard.GetPreferedEmailAddress().UserId.ToString();
txtCelPes.Text = vcard.GetTelephoneNumber(TelephoneType.CELL, TelephoneLocation.HOME).Number.ToString();
txtFaxPes.Text = vcard.GetTelephoneNumber(TelephoneType.FAX, TelephoneLocation.HOME).Number.ToString();
txtPaisPes.Text = vcard.GetAddress(AddressLocation.HOME).Country.ToString();
txtMailEmp.Text = vcard.GetEmailAddress(EmailType.WORK).ToString();
txtCelEmp.Text = vcard.GetTelephoneNumber(TelephoneType.CELL, TelephoneLocation.WORK).Number.ToString();
txtFaxEmp.Text = vcard.GetTelephoneNumber(TelephoneType.FAX, TelephoneLocation.WORK).Number.ToString();
txtPaisEmp.Text = vcard.GetAddress(AddressLocation.WORK).Country.ToString();
}
}
---------- End Code -------------
I noticed that these definitive fields (below) are not correctly showing the data of vcard that it was generated by the Pandion/Exodus.
-------- Start Code ----------
if (iq.Type == IqType.result)
{
Vcard vcard = iq.Vcard;
if (vcard != null)
{
txtMailPes.Text = vcard.GetPreferedEmailAddress().UserId.ToString();
txtCelPes.Text = vcard.GetTelephoneNumber(TelephoneType.CELL, TelephoneLocation.HOME).Number.ToString();
txtFaxPes.Text = vcard.GetTelephoneNumber(TelephoneType.FAX, TelephoneLocation.HOME).Number.ToString();
txtPaisPes.Text = vcard.GetAddress(AddressLocation.HOME).Country.ToString();
txtMailEmp.Text = vcard.GetEmailAddress(EmailType.WORK).ToString();
txtCelEmp.Text = vcard.GetTelephoneNumber(TelephoneType.CELL, TelephoneLocation.WORK).Number.ToString();
txtFaxEmp.Text = vcard.GetTelephoneNumber(TelephoneType.FAX, TelephoneLocation.WORK).Number.ToString();
txtPaisEmp.Text = vcard.GetAddress(AddressLocation.WORK).Country.ToString();
}
}
---------- End Code -------------
acdelemos
Show profile
Link to this post