/// <summary> /// Sets the calculation method parameters using custom parameters. /// </summary> /// <param name="fajrAngleParameter"> /// Custom fajr prayer angle calculation parameter. /// </param> /// <param name="maghribParameter"> /// Custom maghrib prayer calculation parameter value. /// </param> /// <param name="maghribParameterType"> /// Custom maghrib prayer calculation parameter type. /// </param> /// <param name="ishaParameter"> /// Custom isha prayer calculation parameter value. /// </param> /// <param name="ishaParameterType"> /// Custom isha prayer calculation parameter type. /// </param> /// <param name="midnight"> /// Midnight time calculation method. /// </param> public void SetCustomCalculationMethod(double fajrAngleParameter, double maghribParameter, PrayerCalculationParameterType maghribParameterType, double ishaParameter, PrayerCalculationParameterType ishaParameterType, Midnight midnight) { Preset = CalculationMethodPreset.Custom; FajrParameter.Value = fajrAngleParameter; FajrParameter.Type = PrayerCalculationParameterType.Angle; MaghribParameter.Value = maghribParameter; MaghribParameter.Type = maghribParameterType; IshaParameter.Value = ishaParameter; IshaParameter.Type = ishaParameterType; MidnightMethod = midnight; }
/// <summary> /// Create new <see cref="PrayerCalculationParameter" />. /// </summary> public PrayerCalculationParameter(double value, PrayerCalculationParameterType type) { Value = value; Type = type; }