34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C#
		
	
	
	
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Linq;
 | 
						|
using System.Text;
 | 
						|
using System.Threading.Tasks;
 | 
						|
 | 
						|
namespace DM_Weight.util
 | 
						|
{
 | 
						|
    public class DeviceMsg
 | 
						|
    {
 | 
						|
        private string _windowName;
 | 
						|
        private int _drawerNo;
 | 
						|
        private EventType _eventType;
 | 
						|
        private int[] _quantitys;
 | 
						|
        private string code;
 | 
						|
        private string _message;
 | 
						|
 | 
						|
        public string WindowName { get { return _windowName; } set { _windowName = value; } }
 | 
						|
        public int DrawerNo { get { return _drawerNo; } set { _drawerNo = value; } }
 | 
						|
        public EventType EventType { get { return _eventType; } set { _eventType = value; } }
 | 
						|
        public int[] Quantitys { get { return _quantitys; } set { _quantitys = value; } }
 | 
						|
 | 
						|
        public string Code { get { return code; } set { code = value; } }
 | 
						|
 | 
						|
        public string Message { get { return _message; } set { _message = value; } }
 | 
						|
    }
 | 
						|
 | 
						|
    
 | 
						|
    public enum EventType
 | 
						|
    {
 | 
						|
        DRAWEROPEN = 1, DRAWERCLOSE = 2, UPDATEQUANTITY = 3, OPENERROR = 4, CODESCAN = 5
 | 
						|
    }
 | 
						|
}
 |