public Reporte(int id,int idPost,int idUsuarioReportado,TipoReporte tipoReporte,Usuario usuario) { if (id == 0) { throw new ArgumentNullException("Constructor Reporte - ID invalida."); } else { if (idPost == 0) { throw new ArgumentNullException("Constructor Reporte - IDPost invalida."); } else { if (idUsuarioReportado == 0) { throw new ArgumentNullException("Constructor Reporte - ID Usuario Reportado invalida."); } else { if (tipoReporte == null || tipoReporte.getID().Equals(0)) { throw new ArgumentNullException("Constructor Reporte - Tipo Reporte invalido."); } else { if (usuario == null || usuario.getID().Equals(0)) { throw new ArgumentNullException("Constructor Reporte - Usuario invalido."); } else { setID(id); setIDPost(idPost); setIDUsuarioReportado(idUsuarioReportado); setTipoReporte(tipoReporte); setUsuario(usuario); setFechaCreacion(DateTime.Now); } } } } } }