常用方法
常用方法
常用方法
常用方法
public void SetWeatherCondition(string weatherCondition) { if (weatherCondition == "sunny") { _emailClient.CreateEmailMessage(weatherCondition); } else if (weatherCondition == "rainy") { _phone.CreateSMSMessage(weatherCondition); } }