BORDERSEARCH_OBJ_INTERFACE.cs 2.13 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FObjBase;
using FLY.Thick.Base.Common;
using Misc;
8 9
using AutoMapper;
using FLY.Thick.Base.IService;
潘栩锋's avatar
潘栩锋 committed
10 11 12 13 14

namespace FLY.Thick.Base.OBJ_INTERFACE
{
    public class BORDERSEARCH_OBJ_INTERFACE
    {
15 16 17 18 19
        public static Mapper Mapper { get; } = new AutoMapper.Mapper(new MapperConfiguration(c =>
        {
            c.CreateMap<IBorderSearchService, Pack_Params>();
            c.CreateMap<IBorderSearchService, Pack_State>();
        }));
潘栩锋's avatar
潘栩锋 committed
20
        #region Pack
21
        public class Pack_Params
潘栩锋's avatar
潘栩锋 committed
22
        {
23 24 25 26 27 28 29 30 31 32 33 34
            public bool Enable;
            public Range Valid;
            public bool TempADBySet;
            public int TempAD;
            public int TempRange;
            public int N;
            public int SensorWidth;
            public int N2;
            public int N3;
            public bool IsBreakDetect;
            public bool IsTempRangeByPercent;
            public double TempRangePercent;
潘栩锋's avatar
潘栩锋 committed
35
        }
36
        public class Pack_State 
潘栩锋's avatar
潘栩锋 committed
37
        {
38 39 40 41 42 43
            public Range Border_Forw;
            public Range Border_Backw;
            public Range Border;
            public int Width;
            public int Mid;
            public DateTime UpdateTime;
44
            public int ProductWidth;
潘栩锋's avatar
潘栩锋 committed
45 46 47 48 49 50 51 52
        }
        #endregion
        #region GetValue
        /// <summary>
        /// Pack_Params
        /// </summary>
        public const UInt16 GET_PARAMS = 0;
        /// <summary>
53
        /// Pack_State
潘栩锋's avatar
潘栩锋 committed
54
        /// </summary>
55
        public const UInt16 GET_STATE = 1;
潘栩锋's avatar
潘栩锋 committed
56 57 58
        #endregion
        #region SetValue
        /// <summary>
59
        /// Pack_Params
潘栩锋's avatar
潘栩锋 committed
60 61 62 63 64
        /// </summary>
        public const UInt16 SET_PARAMS = 0;
        #endregion
        #region PushMsg
        /// <summary>
65
        /// Pack_Params
潘栩锋's avatar
潘栩锋 committed
66 67 68
        /// </summary>
        public const UInt16 PUSH_PARAMS = 0;
        /// <summary>
69
        /// Pack_State
潘栩锋's avatar
潘栩锋 committed
70
        /// </summary>
71 72 73
        public const UInt16 PUSH_STATE = 1;
        #endregion
        #region Call
潘栩锋's avatar
潘栩锋 committed
74
        /// <summary>
75
        /// 
潘栩锋's avatar
潘栩锋 committed
76
        /// </summary>
77
        public const UInt16 CALL_GETVIEW = 0;
潘栩锋's avatar
潘栩锋 committed
78 79 80
        #endregion
    }
}