using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace  ZktecoAttendenceService
{
  public class AttendanceMachine
    {
        private string machineId;
        private string machineIp;
        private int portNumber;
        private string machineName;
        private int siteId;
        private string status;
        private DateTime lastSyncDate;



        public AttendanceMachine()
        {

        }

        public AttendanceMachine(string machineId, string machineIp, int portNumber, string machineName, int siteId, string status, DateTime lastSyncDate)
        {
            this.MachineId = machineId;
            this.MachineIp = machineIp;
            this.PortNumber = portNumber;
            this.MachineName = machineName;
            this.SiteId = siteId;
            this.Status = status;
            this.LastSyncDate = lastSyncDate;

        }


        public string MachineId { get => machineId; set => machineId = value; }
        public string MachineIp { get => machineIp; set => machineIp = value; }
        public int PortNumber { get => portNumber; set => portNumber = value; }
        public string MachineName { get => machineName; set => machineName = value; }
        public int SiteId { get => siteId; set => siteId = value; }
        public string Status { get => status; set => status = value; }
        public DateTime LastSyncDate { get => lastSyncDate; set => lastSyncDate = value; }





        public string GetDeviceInfo()
        {
            return "DeviceInfo( dev_id = \"1\" dev_type = \"HW_HDCP\" comm_type = \"ip\" ip_address = \"" + this.machineIp + "\", password = \"\", port_number = \"" + this.portNumber + "\")";
        }
    }
}
