internal void SetData(SafeHarborType type, double safeHarbor, double trafficStudy) { TrafficStudyType = (short)type; TrafficStudyFedPcnt = trafficStudy; if (safeHarbor < RATE_EPSILON) { switch (type) { case SafeHarborType.Cellular: SafeHarborFedPcnt = AfcSafeHarborValues.Cellular; break; case SafeHarborType.VoIP: SafeHarborFedPcnt = AfcSafeHarborValues.VoIP; break; case SafeHarborType.Paging: SafeHarborFedPcnt = AfcSafeHarborValues.Paging; break; } } else { SafeHarborFedPcnt = safeHarbor; } }
/// <summary>Instantiate using provided safe harbor percent</summary> public AfcTrafficStudyOverride(SafeHarborType type, double safeHarbor, double trafficStudy) { SetData(type, safeHarbor, trafficStudy); }