using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Dfs.WayneChina.IMisPlus.Models
{
///
/// Forecourt config
///
public class ForecourtConfig
{
#region Constructor
public ForecourtConfig()
{
Dispensers = new List();
Pumps = new List();
Tanks = new List();
Terminals = new List();
Fuels = new List();
}
#endregion
public bool IsConfigValid()
{
if (string.IsNullOrEmpty(CurrentVersion))
return false;
if (Terminals.Count == 0 || Pumps.Count == 0 || Pumps.Count > 0 && Pumps.Any(p => p.Nozzles.Count == 0))
return false;
return true;
}
public string CurrentVersion { get; set; }
public IList Dispensers { get; set; }
public IList Pumps { get; set; }
public IList Tanks { get; set; }
public IList Terminals { get; set; }
public IList Fuels { get; set; }
}
}