BUFFER_OBJ_INTERFACE.cs 2.03 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
using FObjBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FLY.OBJComponents.OBJ_INTERFACE
{
    public class BUFFER_OBJ_INTERFACE
    {
        #region Pack
        public class Pack_GetRecordRequest
        {
            public int last_id;
            public int count;
        }
        public class Pack_GetRecordNewestRequest
        {
            public int count;
        }
潘栩锋's avatar
潘栩锋 committed
22 23 24 25 26 27 28 29 30
        public class Pack_Status 
        {
            public int newestId;
            public int count;
        }
        public class Pack_Params 
        {
            public int capcity;
        }
潘栩锋's avatar
潘栩锋 committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44
        #endregion

        #region SetValue
        /// <summary>
        /// Dictionary<string, object>
        /// </summary>
        public const UInt16 SET_PARAMS = 0;
        #endregion

        #region GetValue
        /// <summary>
        /// Dictionary<string, object>
        /// </summary>
        public const UInt16 GET_PARAMS = 0;
潘栩锋's avatar
潘栩锋 committed
45 46 47 48
        /// <summary>
        /// Pack_Status
        /// </summary>
        public const UInt16 GET_STATUS = 1;
潘栩锋's avatar
潘栩锋 committed
49 50 51 52 53 54 55 56
        #endregion

        #region PushMsg
        /// <summary>
        /// Dictionary<string, object>
        /// </summary>
        public const UInt16 PUSH_PARAMS = 0;
        /// <summary>
潘栩锋's avatar
潘栩锋 committed
57 58 59 60
        /// Pack_Status
        /// </summary>
        public const UInt16 PUSH_STATUS = 1;
        /// <summary>
潘栩锋's avatar
潘栩锋 committed
61 62
        /// NotifyBufferChangedEventArgs
        /// </summary>
潘栩锋's avatar
潘栩锋 committed
63
        public const UInt16 PUSH_BUFFERCHANGED = 10;
潘栩锋's avatar
潘栩锋 committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
        #endregion
        #region Call
        /// <summary>
        /// request:int last_id, int count;
        /// reponse:GetRecordReponse<T>
        /// </summary>
        public const UInt16 CALL_GETRECORD = 1;

        /// <summary>
        /// request:int count;
        /// reponse:GetRecordReponse<T>
        /// </summary>
        public const UInt16 CALL_GETRECORD_NEWEST = 2;

        /// <summary>
        /// null
        /// </summary>
        public const UInt16 CALL_RESET = 3;
        #endregion
    }
}