Пример #1
0
 public sCallTimeOfDayCondition(sCallTime? start, sCallTime? end, sCallTimeOfDayRange? timeRange, sCallTimeDateRange? dateRange,
     ICallAction[] actions,ICallAction[] antiActions,CallConditionBreakTypes? breakType)
 {
     _start = start;
     _end = end;
     _timeRange = timeRange;
     _dateRange = dateRange;
     if (_end == null && _start == null && _timeRange == null && _dateRange == null)
         throw new Exception("You must specify at least one type of time condition");
     _actions = (actions == null ? new ICallAction[0] : actions);
     _antiActions = (antiActions == null ? new ICallAction[0] : antiActions);
     _break = breakType;
 }
Пример #2
0
 public sCallTimeOfDayCondition(sCallTimeDateRange dateRange, ICallAction[] actions, ICallAction[] antiActions, CallConditionBreakTypes?breakType)
     : this(null, null, null, dateRange, actions, antiActions, breakType)
 {
 }
Пример #3
0
 public sCallTimeOfDayCondition(sCallTimeDateRange dateRange, ICallAction[] actions, ICallAction[] antiActions, CallConditionBreakTypes? breakType)
     : this(null, null, null, dateRange, actions, antiActions, breakType) { }