/// <summary>
        /// Initializes a new instance of the <see cref="EscalationPolicyInfo" /> class.
        /// </summary>
        /// <param name="policy">policy (required).</param>
        /// <param name="team">team.</param>
        public EscalationPolicyInfo(EscalationPolicy policy = default(EscalationPolicy), Team team = default(Team))
        {
            // to ensure "policy" is required (not null)
            if (policy == null)
            {
                throw new InvalidDataException("policy is a required property for EscalationPolicyInfo and cannot be null");
            }
            else
            {
                this.Policy = policy;
            }

            this.Team = team;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="PolicySchedule" /> class.
 /// </summary>
 /// <param name="policy">policy.</param>
 /// <param name="schedule">schedule.</param>
 /// <param name="overrides">overrides.</param>
 public PolicySchedule(EscalationPolicy policy = default(EscalationPolicy), List <OnCallEntry> schedule = default(List <OnCallEntry>), List <OnCallOverride> overrides = default(List <OnCallOverride>))
 {
     this.Policy    = policy;
     this.Schedule  = schedule;
     this.Overrides = overrides;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OnCallInterval" /> class.
 /// </summary>
 /// <param name="_true">_true.</param>
 /// <param name="_false">_false.</param>
 /// <param name="duration">duration.</param>
 /// <param name="escalationPolicy">escalationPolicy.</param>
 public OnCallInterval(string _true = default(string), string _false = default(string), UserLogTotal duration = default(UserLogTotal), EscalationPolicy escalationPolicy = default(EscalationPolicy))
 {
     this.True             = _true;
     this.False            = _false;
     this.Duration         = duration;
     this.EscalationPolicy = escalationPolicy;
 }