Esempio n. 1
0
        public Internal.UserItem ToUserItem()
        {
            var item = new Internal.UserItem();

            item.Address1    = this.Address1;
            item.Address2    = this.Address2;
            item.City        = this.City;
            item.Country     = this.Country;
            item.Email       = this.Email;
            item.Fax         = this.Fax;
            item.FirstName   = this.FirstName;
            item.LastName    = this.LastName;
            item.CompanyName = this.CompanyName;
            item.MobilePhone = this.MobilePhone;
            item.Phone       = this.Phone;
            item.State       = this.State;
            item.Title       = this.Title;
            item.Zip         = this.Zip;

            return(item);
        }
Esempio n. 2
0
        public User(Internal.UserItem item)
        {
            this.Address1       = item.Address1;
            this.Address2       = item.Address2;
            this.City           = item.City;
            this.Country        = item.Country;
            this.Email          = item.Email;
            this.EmailValidated = item.EmailValidated;
            this.Fax            = item.Fax;
            this.FirstName      = item.FirstName;
            this.LastName       = item.LastName;
            this.CompanyName    = item.CompanyName;
            this.MobilePhone    = item.MobilePhone;
            this.Phone          = item.Phone;
            this.State          = item.State;
            this.Title          = item.Title;
            this.Zip            = item.Zip;

            try { this.TimeZone = (WF.SDK.Common.TimeZoneName)Enum.Parse(typeof(WF.SDK.Common.TimeZoneName), item.TimeZone); }
            catch { this.TimeZone = WF.SDK.Common.TimeZoneName.Eastern; }
        }