using com.superscene.util;
using parkMonitor.viewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace parkMonitor.model {
	public enum DeviceType {
		/// <summary>未知</summary>
		Unknown,
		/// <summary>Web Server</summary>
		WebServer,
		/// <summary>手机端</summary>
		Mobile,
		/// <summary>中控</summary>
		Central,
		/// <summary>PLC</summary>
		PLC,
		/// <summary>号牌机</summary>
		NumMachine,
		/// <summary>激光</summary>
		Laser,
		/// <summary>托盘</summary>
		Tray,
		/// <summary>抓手</summary>
		Robot,
		/// <summary>光栅</summary>
		Raster,
		/// <summary>超声波</summary>
		Ultrasonic,
		/// <summary>传感器</summary>
		Sensor,
		/// <summary>车库</summary>
		Garage,
		/// <summary>车辆</summary>
		Car,
		/// <summary>其他物体</summary>
		OrtherObject,
		/// <summary>其他设备</summary>
		OrtherDevice,
	}
	
	/// <summary>设备状态</summary>
	public enum ComInfoStatus {
		/// <summary>无状态</summary>
		None,
		/// <summary>离线</summary>
		Offline,
		/// <summary>正常</summary>
		Normal,
		/// <summary>警告</summary>
		Warning,
		/// <summary>错误</summary>
		Error,

		/// <summary>待机</summary>
		Wait,
		/// <summary>工作中</summary>
		Working,
		/// <summary>维护</summary>
		Maintain,
	}

	/// <summary>报警状态</summary>
	public enum AlarmStatus {
		/// <summary>无状态</summary>
		None,
		/// <summary>正常</summary>
		Normal,
		/// <summary>离线</summary>
		Offline,
		/// <summary>信息</summary>
		Info,
		/// <summary>复位</summary>
		Reset,
		/// <summary>警告</summary>
		Warning,
		/// <summary>错误</summary>
		Error
	}

	public class MainModel {
		public static readonly MainModel ins = new MainModel();

		public MainWindow mainWin = null;
		public MainWinVM mainWinVM { get{ return mainWin.winVM; } }
	}
}
