예제 #1
0
        /// <summary>If the CAACK is in its constructor default value then this method sets it to the given value.  In either case the method returns the target object to support call chaining.</summary>
        public CarrierActionResult SetFirstCAACK(CAACK caack)
        {
            if (CAACK == CAACK.Undefinded)
            {
                CAACK = caack;
            }

            return(this);
        }
예제 #2
0
        /// <summary>If the StatusListIsSuccess then sets the first CAACK to CAACK.AcknowledgedCommandHasBeenPerformed otherwise replaces either IsSuccess CAACK with CAACK.CommandPerformedWithErrors.  Supports call chaining.</summary>
        public CarrierActionResult SetCommandHasBeenPerformed()
        {
            if (StatusListIsSuccess)
            {
                return(SetFirstCAACK(CAACK.AcknowledgedCommandHasBeenPerformed));
            }
            else if (CAACK.IsSuccess() && !StatusListIsSuccess)
            {
                CAACK = CAACK.CommandPerformedWithErrors;
            }

            return(this);
        }
예제 #3
0
 /// <summary>
 /// Default constructor.
 /// Sets CAACK = CAACK.Undefined and StatusList to be empty.
 /// <para/>This is generally used with property initializers to complete the content construction.
 /// </summary>
 public CarrierActionResult()
 {
     CAACK = CAACK.Undefinded;
 }
예제 #4
0
        /// <summary>If the CAACK is in its constructor default value then this method sets it to the given value.  In either case the method returns the target object to support call chaining.</summary>
        public CarrierActionResult SetFirstCAACK(CAACK caack)
        {
            if (CAACK == CAACK.Undefinded)
                CAACK = caack;

            return this;
        }
예제 #5
0
        /// <summary>If the StatusListIsSuccess then sets the first CAACK to CAACK.AcknowledgedCommandHasBeenPerformed otherwise replaces either IsSuccess CAACK with CAACK.CommandPerformedWithErrors.  Supports call chaining.</summary>
        public CarrierActionResult SetCommandHasBeenPerformed()
        {
            if (StatusListIsSuccess)
            {
                return SetFirstCAACK(CAACK.AcknowledgedCommandHasBeenPerformed);
            }
            else if (CAACK.IsSuccess() && !StatusListIsSuccess)
            {
                CAACK = CAACK.CommandPerformedWithErrors;
            }

            return this;
        }
예제 #6
0
 /// <summary>
 /// Default constructor.  
 /// Sets CAACK = CAACK.Undefined and StatusList to be empty.
 /// <para/>This is generally used with property initializers to complete the content construction.
 /// </summary>
 public CarrierActionResult()
 {
     CAACK = CAACK.Undefinded;
 }