I am using Person Data type to hold the contacts/providers of the user. As we had city, country & Zip as mandatory fields, I was giving " " (string with one empty space) in it and it was working fine in the previous version of HV SDK. Now from new SDK in June 09, it is not allowing to add " " (string with space character) to the fields of address data type. Previously, it was allowing that. So now my below code fails. Any workaround for this? Also, from https://account.healthvault-ppe.com web portal, I am not able to view the previously added Contacts, which as " " character in thier streer, city and country.
// Address of Contact
Address cAddress = new Address();
cAddress.Description = addressTypeContact;
cAddress.IsPrimary =
true;
cAddress.Street.Add(contact.Address);
// City.
if (!string.IsNullOrEmpty(contact.City))
{ cAddress.City = contact.City; }
else { cAddress.City = stringWithSpace; }
// Country/
if (!string.IsNullOrEmpty(contact.Country))
{ cAddress.Country = contact.Country; }
else { cAddress.Country = stringWithSpace; }
// State
if (!string.IsNullOrEmpty(contact.State))
{ cAddress.State = contact.State; }
else { cAddress.State = stringWithSpace; }
// Postal code
if (!string.IsNullOrEmpty(contact.Zipcode))
{ cAddress.PostalCode = contact.Zipcode; }
else { cAddress.PostalCode = stringWithSpace; }