using System.Xml.Serialization;
using OPSAgentDialer.Model.Settings;

namespace OPSAgentDialer.Model
{
    public class AgentEntry
    {
        public PhoneBookItemInfo AgentInfo { get; set; }

        [XmlIgnore]
        public AgentState State { get; set; }

        public string CurrentCallId { get; set; }
        public bool Operational { get; set; }
        public int NumberOfCalls { get; set; }

        public AgentEntry()
        {
            NumberOfCalls = 0;
        }

        public AgentEntry(PhoneBookItemInfo agentInfo, AgentState state)
            : this()
        {
            AgentInfo = agentInfo;
            State = state;
        }
    }
}
