﻿using System;
using System.ComponentModel;

namespace WorkData
{
    public class Holiday : ICloneable
    {
        [Description("@holiday_id")]
        public int HolidayId { get; set; }

        [Description("@name")]
        public string Name { get; set; }

        [Description("@description")]
        public string Description { get; set; }

        [Description("@holiday_type_id")]
        public int HolidayTypeId { get; set; }

        [Description("@active")]
        public bool? Active { get; set; }

        public Holiday()
        {
        }

        public Holiday(Holiday another)
        {
            HolidayId = another.HolidayId;
            Name = another.Name;
            Description = another.Description;
            HolidayTypeId = another.HolidayTypeId;
            Active = another.Active;
        }

        public object Clone()
        {
            return new Holiday(this);
        }
    }
}
