public proto.UsuarioRegistroResponse Response(adduohelper.ResponseEnvelope <dto.entries.UsuarioRegistro> envelope)
        {
            var response = new proto.UsuarioRegistroResponse
            {
                HttpStatusCode = (int)envelope.HttpStatusCode,
                Usuario        = new proto.UsuarioRegistroRequest
                {
                    Nome = new proto.EntryString
                    {
                        Value  = envelope.Item.Nome.Value,
                        Code   = (int)envelope.Item.Nome.Code,
                        Status = (int)envelope.Item.Nome.Status
                    },
                    Apelido = new proto.EntryString
                    {
                        Value  = envelope.Item.Apelido.Value,
                        Code   = (int)envelope.Item.Apelido.Code,
                        Status = (int)envelope.Item.Apelido.Status
                    },
                    Email = new proto.EntryString
                    {
                        Value  = envelope.Item.Email.Value,
                        Code   = (int)envelope.Item.Email.Code,
                        Status = (int)envelope.Item.Email.Status
                    },
                    Senha = new proto.EntryString
                    {
                        Value  = envelope.Item.Senha.Value,
                        Code   = (int)envelope.Item.Senha.Code,
                        Status = (int)envelope.Item.Senha.Status
                    }
                }
            };

            return(response);
        }
        public adduohelper.envelopes.ResponseEnvelope <dto.entries.UsuarioRegistro> Response(proto.UsuarioRegistroResponse usuarioResponse)
        {
            var response = new adduohelper.envelopes.ResponseEnvelope <dto.entries.UsuarioRegistro>
            {
                HttpStatusCode = (HttpStatusCode)usuarioResponse.HttpStatusCode,
                Item           = new dto.entries.UsuarioRegistro
                {
                    Nome = new adduohelper.entries.Name
                    {
                        Code   = (adduohelper.entries.CODE)usuarioResponse.Usuario.Nome.Code,
                        Status = (adduohelper.entries.STATUS)usuarioResponse.Usuario.Nome.Status,
                        Value  = usuarioResponse.Usuario.Nome.Value
                    },
                    Apelido = new adduohelper.entries.String32
                    {
                        Code   = (adduohelper.entries.CODE)usuarioResponse.Usuario.Apelido.Code,
                        Status = (adduohelper.entries.STATUS)usuarioResponse.Usuario.Apelido.Status,
                        Value  = usuarioResponse.Usuario.Apelido.Value
                    },
                    Email = new adduohelper.entries.Email
                    {
                        Code   = (adduohelper.entries.CODE)usuarioResponse.Usuario.Email.Code,
                        Status = (adduohelper.entries.STATUS)usuarioResponse.Usuario.Email.Status,
                        Value  = usuarioResponse.Usuario.Email.Value
                    },
                    Senha = new adduohelper.entries.Password
                    {
                        Code   = (adduohelper.entries.CODE)usuarioResponse.Usuario.Senha.Code,
                        Status = (adduohelper.entries.STATUS)usuarioResponse.Usuario.Senha.Status,
                        Value  = string.Empty
                    }
                }
            };

            return(response);
        }