Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EveryAction" /> class.
 /// </summary>
 /// <param name="interval">interval.</param>
 /// <param name="specific">specific.</param>
 /// <param name="actions">actions (required).</param>
 /// <param name="sequence">sequence.</param>
 public EveryAction(Interval interval = default(Interval), DateTimeOperand specific = default(DateTimeOperand), List <Action> actions = default(List <Action>), ActionSequence sequence = default(ActionSequence))
 {
     // to ensure "actions" is required (not null)
     if (actions == null)
     {
         throw new ArgumentNullException("actions is a required property for EveryAction and cannot be null");
     }
     this.Actions  = actions;
     this.Interval = interval;
     this.Specific = specific;
     this.Sequence = sequence;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Operand" /> class.
 /// </summary>
 /// <param name="boolean">boolean.</param>
 /// <param name="_decimal">_decimal.</param>
 /// <param name="integer">integer.</param>
 /// <param name="_string">_string.</param>
 /// <param name="array">array.</param>
 /// <param name="map">map.</param>
 /// <param name="device">device.</param>
 /// <param name="location">location.</param>
 /// <param name="date">date.</param>
 /// <param name="time">time.</param>
 /// <param name="datetime">datetime.</param>
 public Operand(bool boolean = default(bool), double _decimal = default(double), long integer = default(long), string _string = default(string), ArrayOperand array = default(ArrayOperand), Dictionary <string, Operand> map = default(Dictionary <string, Operand>), DeviceOperand device = default(DeviceOperand), LocationOperand location = default(LocationOperand), DateOperand date = default(DateOperand), TimeOperand time = default(TimeOperand), DateTimeOperand datetime = default(DateTimeOperand))
 {
     this.Boolean  = boolean;
     this.Decimal  = _decimal;
     this.Integer  = integer;
     this.String   = _string;
     this.Array    = array;
     this.Map      = map;
     this.Device   = device;
     this.Location = location;
     this.Date     = date;
     this.Time     = time;
     this.Datetime = datetime;
 }