Exemplo n.º 1
0
        public Unidade DefinirPropriedades(Intelbras.Message.Helper.MSG0084 xml)
        {
            var crm = new Unidade(this.Organizacao, this.IsOffline);

            #region Propriedades Crm->Xml

            if (!string.IsNullOrEmpty(xml.DescricaoUnidadeMedida))
            {
                crm.Nome = xml.DescricaoUnidadeMedida;
            }
            else
            {
                crm.AddNullProperty("Nome");
            }

            #endregion

            return(crm);
        }