import { Entity } from './entity'; export declare class AcaoUser { id_usuario: string; dispensada: boolean; lida: boolean; } export class Notificacao extends Entity { title: string; tipo: 'error' | 'sale' | 'warning' | 'info' | 'report'; date: string; group_id: string; descricao_detalhada: string; acoes_user: Array; empresas: Array; usuarios: Array; data: any; automatic_modal: boolean; html: string; url: string; constructor(json?: any, generateId?: boolean) { super(json, generateId); json = json || {}; this.title = json.title || ''; this.tipo = json.tipo || ''; this.empresas = json.empresas || new Array(); this.usuarios = json.usuarios || new Array(); this.date = json.date || new Date().toISOString(); this.acoes_user = json && json.acoes_user && new Array(...json.acoes_user) || new Array(); this.group_id = json.group_id || ''; this.descricao_detalhada = json.descricao_detalhada || ''; this.data = json.data || {}; this.automatic_modal = json.automatic_modal || false; this.html = json.html; this.url = json.url; } }