/// <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); }
/// <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); }
/// <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; }
/// <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; }
/// <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; }