Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConditionGroupNode" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Group">Group.</param>
 /// <param name="Condition">Condition.</param>
 public ConditionGroupNode(string Id = default(string), ConditionGroup Group = default(ConditionGroup), Condition Condition = default(Condition))
 {
     this.Id        = Id;
     this.Group     = Group;
     this.Condition = Condition;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Part" /> class.
 /// </summary>
 /// <param name="Template">Template (required).</param>
 /// <param name="TemplateDisplayName">Read-only, will contain the displayName of the linked template at the moment of retrieval.</param>
 /// <param name="Type">Type (required).</param>
 /// <param name="_Break">_Break.</param>
 /// <param name="LinkHeaders">LinkHeaders (default to true).</param>
 /// <param name="Occurrence">Occurrence (default to OccurrenceEnum.Primary).</param>
 /// <param name="Conditions">Conditions.</param>
 public Part(string Template = default(string), string TemplateDisplayName = default(string), TypeEnum? Type = default(TypeEnum?), BreakEnum? _Break = default(BreakEnum?), bool? LinkHeaders = true, OccurrenceEnum? Occurrence = OccurrenceEnum.Primary, ConditionGroup Conditions = default(ConditionGroup))
 {
     // to ensure "Template" is required (not null)
     if (Template == null)
     {
         throw new InvalidDataException("Template is a required property for Part and cannot be null");
     }
     else
     {
         this.Template = Template;
     }
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for Part and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.TemplateDisplayName = TemplateDisplayName;
     this._Break = _Break;
     // use default value if no "LinkHeaders" provided
     if (LinkHeaders == null)
     {
         this.LinkHeaders = true;
     }
     else
     {
         this.LinkHeaders = LinkHeaders;
     }
     // use default value if no "Occurrence" provided
     if (Occurrence == null)
     {
         this.Occurrence = OccurrenceEnum.Primary;
     }
     else
     {
         this.Occurrence = Occurrence;
     }
     this.Conditions = Conditions;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FlowCondition" /> class.
 /// </summary>
 /// <param name="Conditions">Conditions.</param>
 /// <param name="BodyIfTrue">BodyIfTrue.</param>
 /// <param name="BodyIfFalse">BodyIfFalse.</param>
 public FlowCondition(ConditionGroup Conditions = default(ConditionGroup), List <FlowZone> BodyIfTrue = default(List <FlowZone>), List <FlowZone> BodyIfFalse = default(List <FlowZone>))
 {
     this.Conditions  = Conditions;
     this.BodyIfTrue  = BodyIfTrue;
     this.BodyIfFalse = BodyIfFalse;
 }