﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Domain.Entities
{
   public class Notifications : IEntity
    {
        public virtual long Id { get; set; }

        public virtual bool Archived { get; protected set; }

        public virtual long UserId { get; set; }

        public virtual string Message { get; set; }

        public virtual long ItemId { get; set; }
        
       public Notifications()
       {
           Archived = false;

          
       }

        public virtual void Archive()
        {
            Archived = true;

        }

        public virtual void Activate()
        {
            Archived = false;
        }

    }
}
