User Account
The User Account Interface contains methods and properties which represent User Account data including profile data.
Example Code
public void API_LoadUserProfileData()
{
int errCode = manager.LoadUserProfile();
IUserAccount useraccount = manager.UserAccount;
String username = useraccount.Name;
String country = useraccount.Country;
String city = useraccount.City;
String zipcode = useraccount.ZipCode;
String street = useraccount.Street;
String businessEMail = useraccount.BusinessEMail;
String businessEMail2 = useraccount.BusinessEMail2;
String privateEMail = useraccount.PrivateEMail;
String businessPhone = useraccount.BusinessPhone;
String mobilePhone = useraccount.MobilePhone;
}
UNDER CONSTRUCTION
Change and save adjusted profile data.
public void API_ChangeUserProfileData()
{
errorcode = manager.LoadUserProfile();
IUserAccount useraccount = manager.UserAccount;
useraccount.Name = "Bruno Hunkeler";
manager.SaveUserProfile();
manager.LoadUserProfile();
Assert.AreEqual(useraccount.Name, "Bruno Hunkeler", "Invalid full name");
useraccount.Name = Configuration.fullname;
manager.SaveUserProfile();
manager.LoadUserProfile();
Assert.AreEqual(useraccount.Name, Configuration.fullname, "Invalid full name");
manager.Close();
}
UNDER CONSTRUCTION