Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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;
 }
Beispiel #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;
        }
Beispiel #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;
        }
Beispiel #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;
 }