Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EveryAction" /> class.
 /// </summary>
 /// <param name="id">Unique id for the action.</param>
 /// <param name="interval">interval.</param>
 /// <param name="specific">specific.</param>
 /// <param name="actions">actions (required).</param>
 public EveryAction(string id = default(string), Interval interval = default(Interval), TimeOperand specific = default(TimeOperand), List <Action> actions = default(List <Action>))
 {
     // to ensure "actions" is required (not null)
     this.Actions  = actions ?? throw new ArgumentNullException("actions is a required property for EveryAction and cannot be null");
     this.Id       = id;
     this.Interval = interval;
     this.Specific = specific;
 }
Exemplo n.º 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;
 }