Exemplo n.º 1
0
        ///=================================================================================================
        /// <summary>   Behaviours the given request. </summary>
        ///
        /// <remarks>   lyy, 2017:6:5_9:57:59. </remarks>
        ///
        /// <param name="request">  The request. </param>
        ///-------------------------------------------------------------------------------------------------

        public override void Behaviour(BehaviourRequest request)
        {
            if (request.TxTNumber < 5)
            {
                request.StrResult = "ManagerRole:OK";
            }
            else if (NextRole != null)
            {
                NextRole.Behaviour(request);
            }
        }
Exemplo n.º 2
0
        ///=================================================================================================
        /// <summary>   Behaviours the given request. </summary>
        ///
        /// <remarks>   lyy, 2017:6:5_9:57:59. </remarks>
        ///
        /// <param name="request">  The request. </param>
        ///-------------------------------------------------------------------------------------------------

        public override void Behaviour(BehaviourRequest request)
        {
            if (request.TxTNumber > 15 && request.TxTNumber < 30)
            {
                request.StrResult = "PresigengtRole:OK";
            }
            else
            {
                request.StrResult = "No person can deal it ";
            }
        }
Exemplo n.º 3
0
        ///=================================================================================================
        /// <summary>   Behaviours the given request. </summary>
        ///
        /// <remarks>   lyy, 2017:6:5_9:57:59. </remarks>
        ///
        /// <param name="request">  The request. </param>
        ///-------------------------------------------------------------------------------------------------

        public override void Behaviour(BehaviourRequest request)
        {
            if (request.TxTNumber > 5 && request.TxTNumber < 15)
            {
                request.StrResult = "PresidentRole:OK";
            }
            else if (NextRole != null)
            {
                NextRole.Behaviour(request);
            }
        }
Exemplo n.º 4
0
        ///=================================================================================================
        /// <summary>   Behaviours the given request. </summary>
        ///
        /// <remarks>   lyy, 2017:6:5_9:58:0. </remarks>
        ///
        /// <param name="request">  The request. </param>
        ///-------------------------------------------------------------------------------------------------

        public abstract void Behaviour(BehaviourRequest request);