}                                             //end AccountPhysicalLocation()

        public AccountPhysicalLocation(net.autotask.webservices.AccountPhysicalLocation entity) : base(entity)
        {
            Name = entity.Name.ToString();

            AccountID                       = entity.AccountID == null ? default : int.Parse(entity.AccountID.ToString());
                                   Address1 = entity.Address1.ToString();
                                   Address2 = entity.Address2.ToString();
                                   City     = entity.City.ToString();

                                   Active = entity.Active == null ? default : bool.Parse(entity.Active.ToString());
                                            AlternatePhone2   = entity.AlternatePhone2.ToString();
                                            AlternatePhone1   = entity.AlternatePhone1.ToString();
                                            State             = entity.State.ToString();
                                            PostalCode        = entity.PostalCode.ToString();
                                            RoundtripDistance = entity.RoundtripDistance == null
                ? default
                : decimal.Parse(entity.RoundtripDistance.ToString());

                                            Primary             = entity.Primary == null ? default : bool.Parse(entity.Primary.ToString());
                                                            Fax = entity.Fax.ToString();

                                                            CountryID = entity.CountryID == null ? default : int.Parse(entity.CountryID.ToString());
                                                                        Description = entity.Description.ToString();
                                                                        Phone       = entity.Phone.ToString();
                                                                        id          = entity.id;
        } //end AccountPhysicalLocation(net.autotask.webservices.AccountPhysicalLocation entity)
        }                                             //end AccountPhysicalLocation()

        public AccountPhysicalLocation(net.autotask.webservices.AccountPhysicalLocation entity) : base(entity)
        {
            this.AccountID         = int.Parse(entity.AccountID.ToString());
            this.Active            = entity.Active == null ? default(bool?) : bool.Parse(entity.Active.ToString());
            this.Address1          = entity.Address1 == null ? default(string) : entity.Address1.ToString();
            this.Address2          = entity.Address2 == null ? default(string) : entity.Address2.ToString();
            this.AlternatePhone1   = entity.AlternatePhone1 == null ? default(string) : entity.AlternatePhone1.ToString();
            this.AlternatePhone2   = entity.AlternatePhone2 == null ? default(string) : entity.AlternatePhone2.ToString();
            this.City              = entity.City == null ? default(string) : entity.City.ToString();
            this.CountryID         = entity.CountryID == null ? default(int?) : int.Parse(entity.CountryID.ToString());
            this.Description       = entity.Description == null ? default(string) : entity.Description.ToString();
            this.Fax               = entity.Fax == null ? default(string) : entity.Address2.ToString();
            this.Name              = entity.Name == null ? default(string) : entity.Name.ToString();
            this.Phone             = entity.Phone == null ? default(string) : entity.Phone.ToString();
            this.PostalCode        = entity.PostalCode == null ? default(string) : entity.PostalCode.ToString();
            this.Primary           = entity.Primary == null ? default(bool?) : bool.Parse(entity.Primary.ToString());
            this.RoundtripDistance = decimal.Parse(entity.RoundtripDistance.ToString());
            this.State             = entity.State == null ? default(string) : entity.State.ToString();
        } //end AccountPhysicalLocation(net.autotask.webservices.AccountPhysicalLocation entity)
Exemple #3
0
        }                                             //end AccountPhysicalLocation()

        public AccountPhysicalLocation(net.autotask.webservices.AccountPhysicalLocation entity) : base(entity)
        {
        } //end AccountPhysicalLocation(net.autotask.webservices.AccountPhysicalLocation entity)