/*******************************************************************************
  * Copyright (C) 2015-16, 2018 AgGateway and ADAPT Contributors
  * Copyright (C) 2015-16 Deere and Company
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html <http://www.eclipse.org/legal/epl-v10.html> 
  *
  * Contributors:
  *    Tarak Reddy, Tim Shearouse - initial API and implementation
  *    Kathleen Oneal - removed implementConfigId and machineConfigId, added EquipmentConfigId
  *    Justin Sliekers - implement device element changes
  *    Joseph Ross - Added EquipmentConfigurationGroup
  *	   Jason Roesbeke - added Description
  *	   Kelly Nelson -  Changed ProductId to allow for multiples
  *	   Kelly Nelson -  Added CoinicidentOperationDataIDs
  *    R. Andres Ferreyra - Added initialization of CoinicidentOperationDataIDs
  *******************************************************************************/

using System;
using System.Collections.Generic;
using AgGateway.ADAPT.ApplicationDataModel.Common;
using AgGateway.ADAPT.ApplicationDataModel.Equipment;

namespace AgGateway.ADAPT.ApplicationDataModel.LoggedData
{
    public class OperationData
    {
        public OperationData()
        {
            Id = CompoundIdentifierFactory.Instance.Create();
            EquipmentConfigurationIds = new List<int>();
            CoincidentOperationDataIds = new List<int>();
            ProductIds = new List<int>();
        }

        public CompoundIdentifier Id { get; private set; }
        
        public int? LoadId { get; set; }

        public OperationTypeEnum OperationType { get; set; }

        public int? PrescriptionId { get; set; }

        public List<int> ProductIds { get; set; }

        public int? VarietyLocatorId { get; set; }

        public int? WorkItemOperationId { get; set; }

        public int MaxDepth { get; set; }

        public int SpatialRecordCount { get; set; }

        public List<int> EquipmentConfigurationIds { get; set; } 

        public Func<IEnumerable<SpatialRecord>> GetSpatialRecords { get; set; }

        public Func<int, IEnumerable<DeviceElementUse>> GetDeviceElementUses { get; set; }

        public string Description { get; set; }

        public List<int> CoincidentOperationDataIds { get; set; }
        
        public List<ContextItem> ContextItems { get; set; }
    }
}
